Initial import
[platform/upstream/libgsasl.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libgsasl 1.8.0.
4 #
5 # Report bugs to <bug-gsasl@gnu.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
178
179   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183     PATH=/empty FPATH=/empty; export PATH FPATH
184     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-gsasl@gnu.org
250 $0: about your system, including any error possibly output
251 $0: before this message. Then install a modern shell, or
252 $0: manually run the script under such a shell if you do
253 $0: have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='libgsasl'
572 PACKAGE_TARNAME='libgsasl'
573 PACKAGE_VERSION='1.8.0'
574 PACKAGE_STRING='libgsasl 1.8.0'
575 PACKAGE_BUGREPORT='bug-gsasl@gnu.org'
576 PACKAGE_URL=''
577
578 # Factoring default headers for most tests.
579 ac_includes_default="\
580 #include <stdio.h>
581 #ifdef HAVE_SYS_TYPES_H
582 # include <sys/types.h>
583 #endif
584 #ifdef HAVE_SYS_STAT_H
585 # include <sys/stat.h>
586 #endif
587 #ifdef STDC_HEADERS
588 # include <stdlib.h>
589 # include <stddef.h>
590 #else
591 # ifdef HAVE_STDLIB_H
592 #  include <stdlib.h>
593 # endif
594 #endif
595 #ifdef HAVE_STRING_H
596 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
597 #  include <memory.h>
598 # endif
599 # include <string.h>
600 #endif
601 #ifdef HAVE_STRINGS_H
602 # include <strings.h>
603 #endif
604 #ifdef HAVE_INTTYPES_H
605 # include <inttypes.h>
606 #endif
607 #ifdef HAVE_STDINT_H
608 # include <stdint.h>
609 #endif
610 #ifdef HAVE_UNISTD_H
611 # include <unistd.h>
612 #endif"
613
614 gt_needs=
615 ac_func_list=
616 ac_header_list=
617 ac_subst_vars='gltests_LTLIBOBJS
618 gltests_LIBOBJS
619 gl_LTLIBOBJS
620 gl_LIBOBJS
621 CONFIG_INCLUDE
622 am__EXEEXT_FALSE
623 am__EXEEXT_TRUE
624 LTLIBOBJS
625 LIBOBJS
626 WARN_CFLAGS
627 GSSAPI_FALSE
628 GSSAPI_TRUE
629 GS2_FALSE
630 GS2_TRUE
631 LIBTESTS_LIBDEPS
632 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
633 NEXT_INTTYPES_H
634 UINT64_MAX_EQ_ULONG_MAX
635 UINT32_MAX_LT_UINTMAX_MAX
636 PRIPTR_PREFIX
637 PRI_MACROS_BROKEN
638 INT64_MAX_EQ_LONG_MAX
639 INT32_MAX_LT_INTMAX_MAX
640 REPLACE_STRTOIMAX
641 HAVE_DECL_STRTOUMAX
642 HAVE_DECL_STRTOIMAX
643 HAVE_DECL_IMAXDIV
644 HAVE_DECL_IMAXABS
645 GNULIB_STRTOUMAX
646 GNULIB_STRTOIMAX
647 GNULIB_IMAXDIV
648 GNULIB_IMAXABS
649 HAVE_MSVC_INVALID_PARAMETER_HANDLER
650 gltests_WITNESS
651 HAVE_WINT_T
652 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
653 NEXT_WCHAR_H
654 REPLACE_WCSWIDTH
655 REPLACE_WCWIDTH
656 REPLACE_WCSNRTOMBS
657 REPLACE_WCSRTOMBS
658 REPLACE_WCRTOMB
659 REPLACE_MBSNRTOWCS
660 REPLACE_MBSRTOWCS
661 REPLACE_MBRLEN
662 REPLACE_MBRTOWC
663 REPLACE_MBSINIT
664 REPLACE_WCTOB
665 REPLACE_BTOWC
666 REPLACE_MBSTATE_T
667 HAVE_DECL_WCWIDTH
668 HAVE_DECL_WCTOB
669 HAVE_WCSWIDTH
670 HAVE_WCSTOK
671 HAVE_WCSSTR
672 HAVE_WCSPBRK
673 HAVE_WCSSPN
674 HAVE_WCSCSPN
675 HAVE_WCSRCHR
676 HAVE_WCSCHR
677 HAVE_WCSDUP
678 HAVE_WCSXFRM
679 HAVE_WCSCOLL
680 HAVE_WCSNCASECMP
681 HAVE_WCSCASECMP
682 HAVE_WCSNCMP
683 HAVE_WCSCMP
684 HAVE_WCSNCAT
685 HAVE_WCSCAT
686 HAVE_WCPNCPY
687 HAVE_WCSNCPY
688 HAVE_WCPCPY
689 HAVE_WCSCPY
690 HAVE_WCSNLEN
691 HAVE_WCSLEN
692 HAVE_WMEMSET
693 HAVE_WMEMMOVE
694 HAVE_WMEMCPY
695 HAVE_WMEMCMP
696 HAVE_WMEMCHR
697 HAVE_WCSNRTOMBS
698 HAVE_WCSRTOMBS
699 HAVE_WCRTOMB
700 HAVE_MBSNRTOWCS
701 HAVE_MBSRTOWCS
702 HAVE_MBRLEN
703 HAVE_MBRTOWC
704 HAVE_MBSINIT
705 HAVE_BTOWC
706 GNULIB_WCSWIDTH
707 GNULIB_WCSTOK
708 GNULIB_WCSSTR
709 GNULIB_WCSPBRK
710 GNULIB_WCSSPN
711 GNULIB_WCSCSPN
712 GNULIB_WCSRCHR
713 GNULIB_WCSCHR
714 GNULIB_WCSDUP
715 GNULIB_WCSXFRM
716 GNULIB_WCSCOLL
717 GNULIB_WCSNCASECMP
718 GNULIB_WCSCASECMP
719 GNULIB_WCSNCMP
720 GNULIB_WCSCMP
721 GNULIB_WCSNCAT
722 GNULIB_WCSCAT
723 GNULIB_WCPNCPY
724 GNULIB_WCSNCPY
725 GNULIB_WCPCPY
726 GNULIB_WCSCPY
727 GNULIB_WCSNLEN
728 GNULIB_WCSLEN
729 GNULIB_WMEMSET
730 GNULIB_WMEMMOVE
731 GNULIB_WMEMCPY
732 GNULIB_WMEMCMP
733 GNULIB_WMEMCHR
734 GNULIB_WCWIDTH
735 GNULIB_WCSNRTOMBS
736 GNULIB_WCSRTOMBS
737 GNULIB_WCRTOMB
738 GNULIB_MBSNRTOWCS
739 GNULIB_MBSRTOWCS
740 GNULIB_MBRLEN
741 GNULIB_MBRTOWC
742 GNULIB_MBSINIT
743 GNULIB_WCTOB
744 GNULIB_BTOWC
745 HAVE_FEATURES_H
746 HAVE_UNISTD_H
747 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
748 NEXT_UNISTD_H
749 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
750 UNISTD_H_HAVE_WINSOCK2_H
751 REPLACE_WRITE
752 REPLACE_USLEEP
753 REPLACE_UNLINKAT
754 REPLACE_UNLINK
755 REPLACE_TTYNAME_R
756 REPLACE_SYMLINK
757 REPLACE_SLEEP
758 REPLACE_RMDIR
759 REPLACE_READLINK
760 REPLACE_READ
761 REPLACE_PWRITE
762 REPLACE_PREAD
763 REPLACE_LSEEK
764 REPLACE_LINKAT
765 REPLACE_LINK
766 REPLACE_LCHOWN
767 REPLACE_ISATTY
768 REPLACE_GETPAGESIZE
769 REPLACE_GETGROUPS
770 REPLACE_GETLOGIN_R
771 REPLACE_GETDOMAINNAME
772 REPLACE_GETCWD
773 REPLACE_FTRUNCATE
774 REPLACE_FCHOWNAT
775 REPLACE_DUP2
776 REPLACE_DUP
777 REPLACE_CLOSE
778 REPLACE_CHOWN
779 HAVE_SYS_PARAM_H
780 HAVE_OS_H
781 HAVE_DECL_TTYNAME_R
782 HAVE_DECL_SETHOSTNAME
783 HAVE_DECL_GETUSERSHELL
784 HAVE_DECL_GETPAGESIZE
785 HAVE_DECL_GETLOGIN_R
786 HAVE_DECL_GETDOMAINNAME
787 HAVE_DECL_FDATASYNC
788 HAVE_DECL_FCHDIR
789 HAVE_DECL_ENVIRON
790 HAVE_USLEEP
791 HAVE_UNLINKAT
792 HAVE_SYMLINKAT
793 HAVE_SYMLINK
794 HAVE_SLEEP
795 HAVE_SETHOSTNAME
796 HAVE_READLINKAT
797 HAVE_READLINK
798 HAVE_PWRITE
799 HAVE_PREAD
800 HAVE_PIPE2
801 HAVE_PIPE
802 HAVE_LINKAT
803 HAVE_LINK
804 HAVE_LCHOWN
805 HAVE_GROUP_MEMBER
806 HAVE_GETPAGESIZE
807 HAVE_GETLOGIN
808 HAVE_GETHOSTNAME
809 HAVE_GETGROUPS
810 HAVE_GETDTABLESIZE
811 HAVE_FTRUNCATE
812 HAVE_FSYNC
813 HAVE_FDATASYNC
814 HAVE_FCHOWNAT
815 HAVE_FCHDIR
816 HAVE_FACCESSAT
817 HAVE_EUIDACCESS
818 HAVE_DUP3
819 HAVE_DUP2
820 HAVE_CHOWN
821 GNULIB_WRITE
822 GNULIB_USLEEP
823 GNULIB_UNLINKAT
824 GNULIB_UNLINK
825 GNULIB_UNISTD_H_SIGPIPE
826 GNULIB_UNISTD_H_NONBLOCKING
827 GNULIB_TTYNAME_R
828 GNULIB_SYMLINKAT
829 GNULIB_SYMLINK
830 GNULIB_SLEEP
831 GNULIB_SETHOSTNAME
832 GNULIB_RMDIR
833 GNULIB_READLINKAT
834 GNULIB_READLINK
835 GNULIB_READ
836 GNULIB_PWRITE
837 GNULIB_PREAD
838 GNULIB_PIPE2
839 GNULIB_PIPE
840 GNULIB_LSEEK
841 GNULIB_LINKAT
842 GNULIB_LINK
843 GNULIB_LCHOWN
844 GNULIB_ISATTY
845 GNULIB_GROUP_MEMBER
846 GNULIB_GETUSERSHELL
847 GNULIB_GETPAGESIZE
848 GNULIB_GETLOGIN_R
849 GNULIB_GETLOGIN
850 GNULIB_GETHOSTNAME
851 GNULIB_GETGROUPS
852 GNULIB_GETDTABLESIZE
853 GNULIB_GETDOMAINNAME
854 GNULIB_GETCWD
855 GNULIB_FTRUNCATE
856 GNULIB_FSYNC
857 GNULIB_FDATASYNC
858 GNULIB_FCHOWNAT
859 GNULIB_FCHDIR
860 GNULIB_FACCESSAT
861 GNULIB_EUIDACCESS
862 GNULIB_ENVIRON
863 GNULIB_DUP3
864 GNULIB_DUP2
865 GNULIB_DUP
866 GNULIB_CLOSE
867 GNULIB_CHOWN
868 GNULIB_CHDIR
869 WINDOWS_64_BIT_OFF_T
870 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
871 NEXT_SYS_TYPES_H
872 NEXT_AS_FIRST_DIRECTIVE_STRING_H
873 NEXT_STRING_H
874 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
875 NEXT_STDLIB_H
876 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
877 NEXT_STDIO_H
878 GL_GENERATE_STDINT_H_FALSE
879 GL_GENERATE_STDINT_H_TRUE
880 STDINT_H
881 WINT_T_SUFFIX
882 WCHAR_T_SUFFIX
883 SIG_ATOMIC_T_SUFFIX
884 SIZE_T_SUFFIX
885 PTRDIFF_T_SUFFIX
886 HAVE_SIGNED_WINT_T
887 HAVE_SIGNED_WCHAR_T
888 HAVE_SIGNED_SIG_ATOMIC_T
889 BITSIZEOF_WINT_T
890 BITSIZEOF_WCHAR_T
891 BITSIZEOF_SIG_ATOMIC_T
892 BITSIZEOF_SIZE_T
893 BITSIZEOF_PTRDIFF_T
894 HAVE_SYS_BITYPES_H
895 HAVE_SYS_INTTYPES_H
896 HAVE_STDINT_H
897 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
898 NEXT_STDINT_H
899 HAVE_SYS_TYPES_H
900 HAVE_INTTYPES_H
901 HAVE_WCHAR_H
902 HAVE_UNSIGNED_LONG_LONG_INT
903 HAVE_LONG_LONG_INT
904 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
905 NEXT_STDDEF_H
906 GL_GENERATE_STDDEF_H_FALSE
907 GL_GENERATE_STDDEF_H_TRUE
908 STDDEF_H
909 HAVE_WCHAR_T
910 REPLACE_NULL
911 HAVE__BOOL
912 GL_GENERATE_STDBOOL_H_FALSE
913 GL_GENERATE_STDBOOL_H_TRUE
914 STDBOOL_H
915 GL_GENERATE_STDALIGN_H_FALSE
916 GL_GENERATE_STDALIGN_H_TRUE
917 STDALIGN_H
918 REPLACE_WCTOMB
919 REPLACE_UNSETENV
920 REPLACE_STRTOD
921 REPLACE_SETENV
922 REPLACE_REALPATH
923 REPLACE_REALLOC
924 REPLACE_RANDOM_R
925 REPLACE_PUTENV
926 REPLACE_PTSNAME_R
927 REPLACE_MKSTEMP
928 REPLACE_MBTOWC
929 REPLACE_MALLOC
930 REPLACE_CANONICALIZE_FILE_NAME
931 REPLACE_CALLOC
932 HAVE_DECL_UNSETENV
933 HAVE_UNLOCKPT
934 HAVE_SYS_LOADAVG_H
935 HAVE_STRUCT_RANDOM_DATA
936 HAVE_STRTOULL
937 HAVE_STRTOLL
938 HAVE_STRTOD
939 HAVE_DECL_SETENV
940 HAVE_SETENV
941 HAVE_RPMATCH
942 HAVE_REALPATH
943 HAVE_RANDOM_R
944 HAVE_RANDOM_H
945 HAVE_RANDOM
946 HAVE_PTSNAME_R
947 HAVE_PTSNAME
948 HAVE_POSIX_OPENPT
949 HAVE_MKSTEMPS
950 HAVE_MKSTEMP
951 HAVE_MKOSTEMPS
952 HAVE_MKOSTEMP
953 HAVE_MKDTEMP
954 HAVE_GRANTPT
955 HAVE_GETSUBOPT
956 HAVE_DECL_GETLOADAVG
957 HAVE_CANONICALIZE_FILE_NAME
958 HAVE_ATOLL
959 HAVE__EXIT
960 GNULIB_WCTOMB
961 GNULIB_UNSETENV
962 GNULIB_UNLOCKPT
963 GNULIB_SYSTEM_POSIX
964 GNULIB_STRTOULL
965 GNULIB_STRTOLL
966 GNULIB_STRTOD
967 GNULIB_SETENV
968 GNULIB_RPMATCH
969 GNULIB_REALPATH
970 GNULIB_REALLOC_POSIX
971 GNULIB_RANDOM_R
972 GNULIB_RANDOM
973 GNULIB_PUTENV
974 GNULIB_PTSNAME_R
975 GNULIB_PTSNAME
976 GNULIB_POSIX_OPENPT
977 GNULIB_MKSTEMPS
978 GNULIB_MKSTEMP
979 GNULIB_MKOSTEMPS
980 GNULIB_MKOSTEMP
981 GNULIB_MKDTEMP
982 GNULIB_MBTOWC
983 GNULIB_MALLOC_POSIX
984 GNULIB_GRANTPT
985 GNULIB_GETSUBOPT
986 GNULIB_GETLOADAVG
987 GNULIB_CANONICALIZE_FILE_NAME
988 GNULIB_CALLOC_POSIX
989 GNULIB_ATOLL
990 GNULIB__EXIT
991 APPLE_UNIVERSAL_BUILD
992 UNDEFINE_STRTOK_R
993 REPLACE_STRTOK_R
994 REPLACE_STRSIGNAL
995 REPLACE_STRNLEN
996 REPLACE_STRNDUP
997 REPLACE_STRNCAT
998 REPLACE_STRERROR_R
999 REPLACE_STRERROR
1000 REPLACE_STRCHRNUL
1001 REPLACE_STRCASESTR
1002 REPLACE_STRSTR
1003 REPLACE_STRDUP
1004 REPLACE_STPNCPY
1005 REPLACE_MEMMEM
1006 REPLACE_MEMCHR
1007 HAVE_STRVERSCMP
1008 HAVE_DECL_STRSIGNAL
1009 HAVE_DECL_STRERROR_R
1010 HAVE_DECL_STRTOK_R
1011 HAVE_STRCASESTR
1012 HAVE_STRSEP
1013 HAVE_STRPBRK
1014 HAVE_DECL_STRNLEN
1015 HAVE_DECL_STRNDUP
1016 HAVE_DECL_STRDUP
1017 HAVE_STRCHRNUL
1018 HAVE_STPNCPY
1019 HAVE_STPCPY
1020 HAVE_RAWMEMCHR
1021 HAVE_DECL_MEMRCHR
1022 HAVE_MEMPCPY
1023 HAVE_DECL_MEMMEM
1024 HAVE_MEMCHR
1025 HAVE_FFSLL
1026 HAVE_FFSL
1027 HAVE_MBSLEN
1028 GNULIB_STRVERSCMP
1029 GNULIB_STRSIGNAL
1030 GNULIB_STRERROR_R
1031 GNULIB_STRERROR
1032 GNULIB_MBSTOK_R
1033 GNULIB_MBSSEP
1034 GNULIB_MBSSPN
1035 GNULIB_MBSPBRK
1036 GNULIB_MBSCSPN
1037 GNULIB_MBSCASESTR
1038 GNULIB_MBSPCASECMP
1039 GNULIB_MBSNCASECMP
1040 GNULIB_MBSCASECMP
1041 GNULIB_MBSSTR
1042 GNULIB_MBSRCHR
1043 GNULIB_MBSCHR
1044 GNULIB_MBSNLEN
1045 GNULIB_MBSLEN
1046 GNULIB_STRTOK_R
1047 GNULIB_STRCASESTR
1048 GNULIB_STRSTR
1049 GNULIB_STRSEP
1050 GNULIB_STRPBRK
1051 GNULIB_STRNLEN
1052 GNULIB_STRNDUP
1053 GNULIB_STRNCAT
1054 GNULIB_STRDUP
1055 GNULIB_STRCHRNUL
1056 GNULIB_STPNCPY
1057 GNULIB_STPCPY
1058 GNULIB_RAWMEMCHR
1059 GNULIB_MEMRCHR
1060 GNULIB_MEMPCPY
1061 GNULIB_MEMMEM
1062 GNULIB_MEMCHR
1063 GNULIB_FFSLL
1064 GNULIB_FFSL
1065 HAVE_VISIBILITY
1066 CFLAG_VISIBILITY
1067 HAVE_LD_VERSION_SCRIPT_FALSE
1068 HAVE_LD_VERSION_SCRIPT_TRUE
1069 HAVE_LD_OUTPUT_DEF_FALSE
1070 HAVE_LD_OUTPUT_DEF_TRUE
1071 REPLACE_VSPRINTF
1072 REPLACE_VSNPRINTF
1073 REPLACE_VPRINTF
1074 REPLACE_VFPRINTF
1075 REPLACE_VDPRINTF
1076 REPLACE_VASPRINTF
1077 REPLACE_TMPFILE
1078 REPLACE_STDIO_WRITE_FUNCS
1079 REPLACE_STDIO_READ_FUNCS
1080 REPLACE_SPRINTF
1081 REPLACE_SNPRINTF
1082 REPLACE_RENAMEAT
1083 REPLACE_RENAME
1084 REPLACE_REMOVE
1085 REPLACE_PRINTF
1086 REPLACE_POPEN
1087 REPLACE_PERROR
1088 REPLACE_OBSTACK_PRINTF
1089 REPLACE_GETLINE
1090 REPLACE_GETDELIM
1091 REPLACE_FTELLO
1092 REPLACE_FTELL
1093 REPLACE_FSEEKO
1094 REPLACE_FSEEK
1095 REPLACE_FREOPEN
1096 REPLACE_FPURGE
1097 REPLACE_FPRINTF
1098 REPLACE_FOPEN
1099 REPLACE_FFLUSH
1100 REPLACE_FDOPEN
1101 REPLACE_FCLOSE
1102 REPLACE_DPRINTF
1103 HAVE_VDPRINTF
1104 HAVE_VASPRINTF
1105 HAVE_RENAMEAT
1106 HAVE_POPEN
1107 HAVE_PCLOSE
1108 HAVE_FTELLO
1109 HAVE_FSEEKO
1110 HAVE_DPRINTF
1111 HAVE_DECL_VSNPRINTF
1112 HAVE_DECL_SNPRINTF
1113 HAVE_DECL_OBSTACK_PRINTF
1114 HAVE_DECL_GETLINE
1115 HAVE_DECL_GETDELIM
1116 HAVE_DECL_FTELLO
1117 HAVE_DECL_FSEEKO
1118 HAVE_DECL_FPURGE
1119 GNULIB_VSPRINTF_POSIX
1120 GNULIB_VSNPRINTF
1121 GNULIB_VPRINTF_POSIX
1122 GNULIB_VPRINTF
1123 GNULIB_VFPRINTF_POSIX
1124 GNULIB_VFPRINTF
1125 GNULIB_VDPRINTF
1126 GNULIB_VSCANF
1127 GNULIB_VFSCANF
1128 GNULIB_VASPRINTF
1129 GNULIB_TMPFILE
1130 GNULIB_STDIO_H_SIGPIPE
1131 GNULIB_STDIO_H_NONBLOCKING
1132 GNULIB_SPRINTF_POSIX
1133 GNULIB_SNPRINTF
1134 GNULIB_SCANF
1135 GNULIB_RENAMEAT
1136 GNULIB_RENAME
1137 GNULIB_REMOVE
1138 GNULIB_PUTS
1139 GNULIB_PUTCHAR
1140 GNULIB_PUTC
1141 GNULIB_PRINTF_POSIX
1142 GNULIB_PRINTF
1143 GNULIB_POPEN
1144 GNULIB_PERROR
1145 GNULIB_PCLOSE
1146 GNULIB_OBSTACK_PRINTF_POSIX
1147 GNULIB_OBSTACK_PRINTF
1148 GNULIB_GETLINE
1149 GNULIB_GETDELIM
1150 GNULIB_GETCHAR
1151 GNULIB_GETC
1152 GNULIB_FWRITE
1153 GNULIB_FTELLO
1154 GNULIB_FTELL
1155 GNULIB_FSEEKO
1156 GNULIB_FSEEK
1157 GNULIB_FSCANF
1158 GNULIB_FREOPEN
1159 GNULIB_FREAD
1160 GNULIB_FPUTS
1161 GNULIB_FPUTC
1162 GNULIB_FPURGE
1163 GNULIB_FPRINTF_POSIX
1164 GNULIB_FPRINTF
1165 GNULIB_FOPEN
1166 GNULIB_FGETS
1167 GNULIB_FGETC
1168 GNULIB_FFLUSH
1169 GNULIB_FDOPEN
1170 GNULIB_FCLOSE
1171 GNULIB_DPRINTF
1172 REPLACE_ITOLD
1173 GL_GENERATE_FLOAT_H_FALSE
1174 GL_GENERATE_FLOAT_H_TRUE
1175 FLOAT_H
1176 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1177 NEXT_FLOAT_H
1178 EOVERFLOW_VALUE
1179 EOVERFLOW_HIDDEN
1180 ENOLINK_VALUE
1181 ENOLINK_HIDDEN
1182 EMULTIHOP_VALUE
1183 EMULTIHOP_HIDDEN
1184 GL_GENERATE_ERRNO_H_FALSE
1185 GL_GENERATE_ERRNO_H_TRUE
1186 ERRNO_H
1187 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1188 NEXT_ERRNO_H
1189 PRAGMA_COLUMNS
1190 PRAGMA_SYSTEM_HEADER
1191 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1192 INCLUDE_NEXT
1193 LIBGCRYPT_PREFIX
1194 LTLIBGCRYPT
1195 LIBGCRYPT
1196 HAVE_LIBGCRYPT
1197 GL_GENERATE_ALLOCA_H_FALSE
1198 GL_GENERATE_ALLOCA_H_TRUE
1199 ALLOCA_H
1200 ALLOCA
1201 GL_COND_LIBTOOL_FALSE
1202 GL_COND_LIBTOOL_TRUE
1203 OBSOLETE_FALSE
1204 OBSOLETE_TRUE
1205 SERVER_FALSE
1206 SERVER_TRUE
1207 CLIENT_FALSE
1208 CLIENT_TRUE
1209 LIBIDN_PREFIX
1210 LTLIBIDN
1211 LIBIDN
1212 HAVE_LIBIDN
1213 KERBEROS_V5_FALSE
1214 KERBEROS_V5_TRUE
1215 LIBSHISHI_PREFIX
1216 LTLIBSHISHI
1217 LIBSHISHI
1218 HAVE_LIBSHISHI
1219 GSS_LIBS
1220 GSS_CFLAGS
1221 KRB5_CONFIG
1222 LIBGSSAPI32_PREFIX
1223 LTLIBGSSAPI32
1224 LIBGSSAPI32
1225 HAVE_LIBGSSAPI32
1226 LIBGSS_PREFIX
1227 LTLIBGSS
1228 LIBGSS
1229 HAVE_LIBGSS
1230 OPENID20_FALSE
1231 OPENID20_TRUE
1232 SAML20_FALSE
1233 SAML20_TRUE
1234 SCRAM_FALSE
1235 SCRAM_TRUE
1236 DIGEST_MD5_FALSE
1237 DIGEST_MD5_TRUE
1238 CRAM_MD5_FALSE
1239 CRAM_MD5_TRUE
1240 NTLM_FALSE
1241 NTLM_TRUE
1242 LIBNTLM_PREFIX
1243 LTLIBNTLM
1244 LIBNTLM
1245 HAVE_LIBNTLM
1246 SECURID_FALSE
1247 SECURID_TRUE
1248 LOGIN_FALSE
1249 LOGIN_TRUE
1250 PLAIN_FALSE
1251 PLAIN_TRUE
1252 EXTERNAL_FALSE
1253 EXTERNAL_TRUE
1254 ANONYMOUS_FALSE
1255 ANONYMOUS_TRUE
1256 POSUB
1257 LTLIBINTL
1258 LIBINTL
1259 INTLLIBS
1260 LTLIBICONV
1261 LIBICONV
1262 INTL_MACOSX_LIBS
1263 XGETTEXT_EXTRA_OPTIONS
1264 MSGMERGE
1265 XGETTEXT_015
1266 XGETTEXT
1267 GMSGFMT_015
1268 MSGFMT_015
1269 GMSGFMT
1270 MSGFMT
1271 GETTEXT_MACRO_VERSION
1272 USE_NLS
1273 OTOOL64
1274 OTOOL
1275 LIPO
1276 NMEDIT
1277 DSYMUTIL
1278 MANIFEST_TOOL
1279 ac_ct_AR
1280 LN_S
1281 NM
1282 ac_ct_DUMPBIN
1283 DUMPBIN
1284 LD
1285 FGREP
1286 SED
1287 LIBTOOL
1288 OBJDUMP
1289 DLLTOOL
1290 AS
1291 host_os
1292 host_vendor
1293 host_cpu
1294 host
1295 build_os
1296 build_vendor
1297 build_cpu
1298 build
1299 RANLIB
1300 ARFLAGS
1301 AR
1302 EGREP
1303 GREP
1304 CPP
1305 am__fastdepCC_FALSE
1306 am__fastdepCC_TRUE
1307 CCDEPMODE
1308 am__nodep
1309 AMDEPBACKSLASH
1310 AMDEP_FALSE
1311 AMDEP_TRUE
1312 am__quote
1313 am__include
1314 DEPDIR
1315 OBJEXT
1316 EXEEXT
1317 ac_ct_CC
1318 CPPFLAGS
1319 LDFLAGS
1320 CFLAGS
1321 CC
1322 AM_BACKSLASH
1323 AM_DEFAULT_VERBOSITY
1324 AM_DEFAULT_V
1325 AM_V
1326 am__untar
1327 am__tar
1328 AMTAR
1329 am__leading_dot
1330 SET_MAKE
1331 AWK
1332 mkdir_p
1333 MKDIR_P
1334 INSTALL_STRIP_PROGRAM
1335 STRIP
1336 install_sh
1337 MAKEINFO
1338 AUTOHEADER
1339 AUTOMAKE
1340 AUTOCONF
1341 ACLOCAL
1342 VERSION
1343 PACKAGE
1344 CYGPATH_W
1345 am__isrc
1346 INSTALL_DATA
1347 INSTALL_SCRIPT
1348 INSTALL_PROGRAM
1349 DLL_VERSION
1350 LT_AGE
1351 LT_REVISION
1352 LT_CURRENT
1353 target_alias
1354 host_alias
1355 build_alias
1356 LIBS
1357 ECHO_T
1358 ECHO_N
1359 ECHO_C
1360 DEFS
1361 mandir
1362 localedir
1363 libdir
1364 psdir
1365 pdfdir
1366 dvidir
1367 htmldir
1368 infodir
1369 docdir
1370 oldincludedir
1371 includedir
1372 localstatedir
1373 sharedstatedir
1374 sysconfdir
1375 datadir
1376 datarootdir
1377 libexecdir
1378 sbindir
1379 bindir
1380 program_transform_name
1381 prefix
1382 exec_prefix
1383 PACKAGE_URL
1384 PACKAGE_BUGREPORT
1385 PACKAGE_STRING
1386 PACKAGE_VERSION
1387 PACKAGE_TARNAME
1388 PACKAGE_NAME
1389 PATH_SEPARATOR
1390 SHELL'
1391 ac_subst_files=''
1392 ac_user_opts='
1393 enable_option_checking
1394 enable_silent_rules
1395 enable_dependency_tracking
1396 enable_shared
1397 enable_static
1398 with_pic
1399 enable_fast_install
1400 with_gnu_ld
1401 with_sysroot
1402 enable_libtool_lock
1403 enable_nls
1404 enable_rpath
1405 with_libiconv_prefix
1406 with_libintl_prefix
1407 enable_anonymous
1408 enable_external
1409 enable_plain
1410 enable_login
1411 enable_securid
1412 enable_ntlm
1413 with_libntlm_prefix
1414 enable_cram_md5
1415 enable_digest_md5
1416 enable_scram_sha1
1417 enable_saml20
1418 enable_openid20
1419 enable_gs2
1420 enable_gssapi
1421 with_gssapi_impl
1422 with_libgss_prefix
1423 with_libgssapi32_prefix
1424 enable_kerberos_v5
1425 with_libshishi_prefix
1426 with_stringprep
1427 with_libidn_prefix
1428 enable_client
1429 enable_server
1430 enable_obsolete
1431 with_libgcrypt
1432 with_libgcrypt_prefix
1433 enable_random_device
1434 enable_pseudo_random_device
1435 enable_nonce_device
1436 enable_ld_version_script
1437 '
1438       ac_precious_vars='build_alias
1439 host_alias
1440 target_alias
1441 CC
1442 CFLAGS
1443 LDFLAGS
1444 LIBS
1445 CPPFLAGS
1446 CPP'
1447
1448
1449 # Initialize some variables set by options.
1450 ac_init_help=
1451 ac_init_version=false
1452 ac_unrecognized_opts=
1453 ac_unrecognized_sep=
1454 # The variables have the same names as the options, with
1455 # dashes changed to underlines.
1456 cache_file=/dev/null
1457 exec_prefix=NONE
1458 no_create=
1459 no_recursion=
1460 prefix=NONE
1461 program_prefix=NONE
1462 program_suffix=NONE
1463 program_transform_name=s,x,x,
1464 silent=
1465 site=
1466 srcdir=
1467 verbose=
1468 x_includes=NONE
1469 x_libraries=NONE
1470
1471 # Installation directory options.
1472 # These are left unexpanded so users can "make install exec_prefix=/foo"
1473 # and all the variables that are supposed to be based on exec_prefix
1474 # by default will actually change.
1475 # Use braces instead of parens because sh, perl, etc. also accept them.
1476 # (The list follows the same order as the GNU Coding Standards.)
1477 bindir='${exec_prefix}/bin'
1478 sbindir='${exec_prefix}/sbin'
1479 libexecdir='${exec_prefix}/libexec'
1480 datarootdir='${prefix}/share'
1481 datadir='${datarootdir}'
1482 sysconfdir='${prefix}/etc'
1483 sharedstatedir='${prefix}/com'
1484 localstatedir='${prefix}/var'
1485 includedir='${prefix}/include'
1486 oldincludedir='/usr/include'
1487 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1488 infodir='${datarootdir}/info'
1489 htmldir='${docdir}'
1490 dvidir='${docdir}'
1491 pdfdir='${docdir}'
1492 psdir='${docdir}'
1493 libdir='${exec_prefix}/lib'
1494 localedir='${datarootdir}/locale'
1495 mandir='${datarootdir}/man'
1496
1497 ac_prev=
1498 ac_dashdash=
1499 for ac_option
1500 do
1501   # If the previous option needs an argument, assign it.
1502   if test -n "$ac_prev"; then
1503     eval $ac_prev=\$ac_option
1504     ac_prev=
1505     continue
1506   fi
1507
1508   case $ac_option in
1509   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1510   *=)   ac_optarg= ;;
1511   *)    ac_optarg=yes ;;
1512   esac
1513
1514   # Accept the important Cygnus configure options, so we can diagnose typos.
1515
1516   case $ac_dashdash$ac_option in
1517   --)
1518     ac_dashdash=yes ;;
1519
1520   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1521     ac_prev=bindir ;;
1522   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1523     bindir=$ac_optarg ;;
1524
1525   -build | --build | --buil | --bui | --bu)
1526     ac_prev=build_alias ;;
1527   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1528     build_alias=$ac_optarg ;;
1529
1530   -cache-file | --cache-file | --cache-fil | --cache-fi \
1531   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1532     ac_prev=cache_file ;;
1533   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1534   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1535     cache_file=$ac_optarg ;;
1536
1537   --config-cache | -C)
1538     cache_file=config.cache ;;
1539
1540   -datadir | --datadir | --datadi | --datad)
1541     ac_prev=datadir ;;
1542   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1543     datadir=$ac_optarg ;;
1544
1545   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1546   | --dataroo | --dataro | --datar)
1547     ac_prev=datarootdir ;;
1548   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1549   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1550     datarootdir=$ac_optarg ;;
1551
1552   -disable-* | --disable-*)
1553     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1554     # Reject names that are not valid shell variable names.
1555     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1556       as_fn_error $? "invalid feature name: $ac_useropt"
1557     ac_useropt_orig=$ac_useropt
1558     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1559     case $ac_user_opts in
1560       *"
1561 "enable_$ac_useropt"
1562 "*) ;;
1563       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1564          ac_unrecognized_sep=', ';;
1565     esac
1566     eval enable_$ac_useropt=no ;;
1567
1568   -docdir | --docdir | --docdi | --doc | --do)
1569     ac_prev=docdir ;;
1570   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1571     docdir=$ac_optarg ;;
1572
1573   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1574     ac_prev=dvidir ;;
1575   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1576     dvidir=$ac_optarg ;;
1577
1578   -enable-* | --enable-*)
1579     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1580     # Reject names that are not valid shell variable names.
1581     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1582       as_fn_error $? "invalid feature name: $ac_useropt"
1583     ac_useropt_orig=$ac_useropt
1584     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1585     case $ac_user_opts in
1586       *"
1587 "enable_$ac_useropt"
1588 "*) ;;
1589       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1590          ac_unrecognized_sep=', ';;
1591     esac
1592     eval enable_$ac_useropt=\$ac_optarg ;;
1593
1594   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1595   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1596   | --exec | --exe | --ex)
1597     ac_prev=exec_prefix ;;
1598   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1599   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1600   | --exec=* | --exe=* | --ex=*)
1601     exec_prefix=$ac_optarg ;;
1602
1603   -gas | --gas | --ga | --g)
1604     # Obsolete; use --with-gas.
1605     with_gas=yes ;;
1606
1607   -help | --help | --hel | --he | -h)
1608     ac_init_help=long ;;
1609   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1610     ac_init_help=recursive ;;
1611   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1612     ac_init_help=short ;;
1613
1614   -host | --host | --hos | --ho)
1615     ac_prev=host_alias ;;
1616   -host=* | --host=* | --hos=* | --ho=*)
1617     host_alias=$ac_optarg ;;
1618
1619   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1620     ac_prev=htmldir ;;
1621   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1622   | --ht=*)
1623     htmldir=$ac_optarg ;;
1624
1625   -includedir | --includedir | --includedi | --included | --include \
1626   | --includ | --inclu | --incl | --inc)
1627     ac_prev=includedir ;;
1628   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1629   | --includ=* | --inclu=* | --incl=* | --inc=*)
1630     includedir=$ac_optarg ;;
1631
1632   -infodir | --infodir | --infodi | --infod | --info | --inf)
1633     ac_prev=infodir ;;
1634   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1635     infodir=$ac_optarg ;;
1636
1637   -libdir | --libdir | --libdi | --libd)
1638     ac_prev=libdir ;;
1639   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1640     libdir=$ac_optarg ;;
1641
1642   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1643   | --libexe | --libex | --libe)
1644     ac_prev=libexecdir ;;
1645   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1646   | --libexe=* | --libex=* | --libe=*)
1647     libexecdir=$ac_optarg ;;
1648
1649   -localedir | --localedir | --localedi | --localed | --locale)
1650     ac_prev=localedir ;;
1651   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1652     localedir=$ac_optarg ;;
1653
1654   -localstatedir | --localstatedir | --localstatedi | --localstated \
1655   | --localstate | --localstat | --localsta | --localst | --locals)
1656     ac_prev=localstatedir ;;
1657   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1658   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1659     localstatedir=$ac_optarg ;;
1660
1661   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1662     ac_prev=mandir ;;
1663   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1664     mandir=$ac_optarg ;;
1665
1666   -nfp | --nfp | --nf)
1667     # Obsolete; use --without-fp.
1668     with_fp=no ;;
1669
1670   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1671   | --no-cr | --no-c | -n)
1672     no_create=yes ;;
1673
1674   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1675   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1676     no_recursion=yes ;;
1677
1678   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1679   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1680   | --oldin | --oldi | --old | --ol | --o)
1681     ac_prev=oldincludedir ;;
1682   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1683   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1684   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1685     oldincludedir=$ac_optarg ;;
1686
1687   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1688     ac_prev=prefix ;;
1689   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1690     prefix=$ac_optarg ;;
1691
1692   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1693   | --program-pre | --program-pr | --program-p)
1694     ac_prev=program_prefix ;;
1695   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1696   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1697     program_prefix=$ac_optarg ;;
1698
1699   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1700   | --program-suf | --program-su | --program-s)
1701     ac_prev=program_suffix ;;
1702   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1703   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1704     program_suffix=$ac_optarg ;;
1705
1706   -program-transform-name | --program-transform-name \
1707   | --program-transform-nam | --program-transform-na \
1708   | --program-transform-n | --program-transform- \
1709   | --program-transform | --program-transfor \
1710   | --program-transfo | --program-transf \
1711   | --program-trans | --program-tran \
1712   | --progr-tra | --program-tr | --program-t)
1713     ac_prev=program_transform_name ;;
1714   -program-transform-name=* | --program-transform-name=* \
1715   | --program-transform-nam=* | --program-transform-na=* \
1716   | --program-transform-n=* | --program-transform-=* \
1717   | --program-transform=* | --program-transfor=* \
1718   | --program-transfo=* | --program-transf=* \
1719   | --program-trans=* | --program-tran=* \
1720   | --progr-tra=* | --program-tr=* | --program-t=*)
1721     program_transform_name=$ac_optarg ;;
1722
1723   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1724     ac_prev=pdfdir ;;
1725   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1726     pdfdir=$ac_optarg ;;
1727
1728   -psdir | --psdir | --psdi | --psd | --ps)
1729     ac_prev=psdir ;;
1730   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1731     psdir=$ac_optarg ;;
1732
1733   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1734   | -silent | --silent | --silen | --sile | --sil)
1735     silent=yes ;;
1736
1737   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1738     ac_prev=sbindir ;;
1739   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1740   | --sbi=* | --sb=*)
1741     sbindir=$ac_optarg ;;
1742
1743   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1744   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1745   | --sharedst | --shareds | --shared | --share | --shar \
1746   | --sha | --sh)
1747     ac_prev=sharedstatedir ;;
1748   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1749   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1750   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1751   | --sha=* | --sh=*)
1752     sharedstatedir=$ac_optarg ;;
1753
1754   -site | --site | --sit)
1755     ac_prev=site ;;
1756   -site=* | --site=* | --sit=*)
1757     site=$ac_optarg ;;
1758
1759   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1760     ac_prev=srcdir ;;
1761   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1762     srcdir=$ac_optarg ;;
1763
1764   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1765   | --syscon | --sysco | --sysc | --sys | --sy)
1766     ac_prev=sysconfdir ;;
1767   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1768   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1769     sysconfdir=$ac_optarg ;;
1770
1771   -target | --target | --targe | --targ | --tar | --ta | --t)
1772     ac_prev=target_alias ;;
1773   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1774     target_alias=$ac_optarg ;;
1775
1776   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1777     verbose=yes ;;
1778
1779   -version | --version | --versio | --versi | --vers | -V)
1780     ac_init_version=: ;;
1781
1782   -with-* | --with-*)
1783     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1784     # Reject names that are not valid shell variable names.
1785     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1786       as_fn_error $? "invalid package name: $ac_useropt"
1787     ac_useropt_orig=$ac_useropt
1788     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1789     case $ac_user_opts in
1790       *"
1791 "with_$ac_useropt"
1792 "*) ;;
1793       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1794          ac_unrecognized_sep=', ';;
1795     esac
1796     eval with_$ac_useropt=\$ac_optarg ;;
1797
1798   -without-* | --without-*)
1799     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1800     # Reject names that are not valid shell variable names.
1801     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1802       as_fn_error $? "invalid package name: $ac_useropt"
1803     ac_useropt_orig=$ac_useropt
1804     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1805     case $ac_user_opts in
1806       *"
1807 "with_$ac_useropt"
1808 "*) ;;
1809       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1810          ac_unrecognized_sep=', ';;
1811     esac
1812     eval with_$ac_useropt=no ;;
1813
1814   --x)
1815     # Obsolete; use --with-x.
1816     with_x=yes ;;
1817
1818   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1819   | --x-incl | --x-inc | --x-in | --x-i)
1820     ac_prev=x_includes ;;
1821   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1822   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1823     x_includes=$ac_optarg ;;
1824
1825   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1826   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1827     ac_prev=x_libraries ;;
1828   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1829   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1830     x_libraries=$ac_optarg ;;
1831
1832   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1833 Try \`$0 --help' for more information"
1834     ;;
1835
1836   *=*)
1837     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1838     # Reject names that are not valid shell variable names.
1839     case $ac_envvar in #(
1840       '' | [0-9]* | *[!_$as_cr_alnum]* )
1841       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1842     esac
1843     eval $ac_envvar=\$ac_optarg
1844     export $ac_envvar ;;
1845
1846   *)
1847     # FIXME: should be removed in autoconf 3.0.
1848     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1849     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1850       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1851     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1852     ;;
1853
1854   esac
1855 done
1856
1857 if test -n "$ac_prev"; then
1858   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1859   as_fn_error $? "missing argument to $ac_option"
1860 fi
1861
1862 if test -n "$ac_unrecognized_opts"; then
1863   case $enable_option_checking in
1864     no) ;;
1865     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1866     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1867   esac
1868 fi
1869
1870 # Check all directory arguments for consistency.
1871 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1872                 datadir sysconfdir sharedstatedir localstatedir includedir \
1873                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1874                 libdir localedir mandir
1875 do
1876   eval ac_val=\$$ac_var
1877   # Remove trailing slashes.
1878   case $ac_val in
1879     */ )
1880       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1881       eval $ac_var=\$ac_val;;
1882   esac
1883   # Be sure to have absolute directory names.
1884   case $ac_val in
1885     [\\/$]* | ?:[\\/]* )  continue;;
1886     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1887   esac
1888   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1889 done
1890
1891 # There might be people who depend on the old broken behavior: `$host'
1892 # used to hold the argument of --host etc.
1893 # FIXME: To remove some day.
1894 build=$build_alias
1895 host=$host_alias
1896 target=$target_alias
1897
1898 # FIXME: To remove some day.
1899 if test "x$host_alias" != x; then
1900   if test "x$build_alias" = x; then
1901     cross_compiling=maybe
1902     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1903     If a cross compiler is detected then cross compile mode will be used" >&2
1904   elif test "x$build_alias" != "x$host_alias"; then
1905     cross_compiling=yes
1906   fi
1907 fi
1908
1909 ac_tool_prefix=
1910 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1911
1912 test "$silent" = yes && exec 6>/dev/null
1913
1914
1915 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1916 ac_ls_di=`ls -di .` &&
1917 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1918   as_fn_error $? "working directory cannot be determined"
1919 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1920   as_fn_error $? "pwd does not report name of working directory"
1921
1922
1923 # Find the source files, if location was not specified.
1924 if test -z "$srcdir"; then
1925   ac_srcdir_defaulted=yes
1926   # Try the directory containing this script, then the parent directory.
1927   ac_confdir=`$as_dirname -- "$as_myself" ||
1928 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1929          X"$as_myself" : 'X\(//\)[^/]' \| \
1930          X"$as_myself" : 'X\(//\)$' \| \
1931          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1932 $as_echo X"$as_myself" |
1933     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1934             s//\1/
1935             q
1936           }
1937           /^X\(\/\/\)[^/].*/{
1938             s//\1/
1939             q
1940           }
1941           /^X\(\/\/\)$/{
1942             s//\1/
1943             q
1944           }
1945           /^X\(\/\).*/{
1946             s//\1/
1947             q
1948           }
1949           s/.*/./; q'`
1950   srcdir=$ac_confdir
1951   if test ! -r "$srcdir/$ac_unique_file"; then
1952     srcdir=..
1953   fi
1954 else
1955   ac_srcdir_defaulted=no
1956 fi
1957 if test ! -r "$srcdir/$ac_unique_file"; then
1958   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1959   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1960 fi
1961 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1962 ac_abs_confdir=`(
1963         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1964         pwd)`
1965 # When building in place, set srcdir=.
1966 if test "$ac_abs_confdir" = "$ac_pwd"; then
1967   srcdir=.
1968 fi
1969 # Remove unnecessary trailing slashes from srcdir.
1970 # Double slashes in file names in object file debugging info
1971 # mess up M-x gdb in Emacs.
1972 case $srcdir in
1973 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1974 esac
1975 for ac_var in $ac_precious_vars; do
1976   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1977   eval ac_env_${ac_var}_value=\$${ac_var}
1978   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1979   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1980 done
1981
1982 #
1983 # Report the --help message.
1984 #
1985 if test "$ac_init_help" = "long"; then
1986   # Omit some internal or obsolete options to make the list less imposing.
1987   # This message is too long to be a string in the A/UX 3.1 sh.
1988   cat <<_ACEOF
1989 \`configure' configures libgsasl 1.8.0 to adapt to many kinds of systems.
1990
1991 Usage: $0 [OPTION]... [VAR=VALUE]...
1992
1993 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1994 VAR=VALUE.  See below for descriptions of some of the useful variables.
1995
1996 Defaults for the options are specified in brackets.
1997
1998 Configuration:
1999   -h, --help              display this help and exit
2000       --help=short        display options specific to this package
2001       --help=recursive    display the short help of all the included packages
2002   -V, --version           display version information and exit
2003   -q, --quiet, --silent   do not print \`checking ...' messages
2004       --cache-file=FILE   cache test results in FILE [disabled]
2005   -C, --config-cache      alias for \`--cache-file=config.cache'
2006   -n, --no-create         do not create output files
2007       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2008
2009 Installation directories:
2010   --prefix=PREFIX         install architecture-independent files in PREFIX
2011                           [$ac_default_prefix]
2012   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2013                           [PREFIX]
2014
2015 By default, \`make install' will install all the files in
2016 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2017 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2018 for instance \`--prefix=\$HOME'.
2019
2020 For better control, use the options below.
2021
2022 Fine tuning of the installation directories:
2023   --bindir=DIR            user executables [EPREFIX/bin]
2024   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2025   --libexecdir=DIR        program executables [EPREFIX/libexec]
2026   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2027   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2028   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2029   --libdir=DIR            object code libraries [EPREFIX/lib]
2030   --includedir=DIR        C header files [PREFIX/include]
2031   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2032   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2033   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2034   --infodir=DIR           info documentation [DATAROOTDIR/info]
2035   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2036   --mandir=DIR            man documentation [DATAROOTDIR/man]
2037   --docdir=DIR            documentation root [DATAROOTDIR/doc/libgsasl]
2038   --htmldir=DIR           html documentation [DOCDIR]
2039   --dvidir=DIR            dvi documentation [DOCDIR]
2040   --pdfdir=DIR            pdf documentation [DOCDIR]
2041   --psdir=DIR             ps documentation [DOCDIR]
2042 _ACEOF
2043
2044   cat <<\_ACEOF
2045
2046 Program names:
2047   --program-prefix=PREFIX            prepend PREFIX to installed program names
2048   --program-suffix=SUFFIX            append SUFFIX to installed program names
2049   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2050
2051 System types:
2052   --build=BUILD     configure for building on BUILD [guessed]
2053   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2054 _ACEOF
2055 fi
2056
2057 if test -n "$ac_init_help"; then
2058   case $ac_init_help in
2059      short | recursive ) echo "Configuration of libgsasl 1.8.0:";;
2060    esac
2061   cat <<\_ACEOF
2062
2063 Optional Features:
2064   --disable-option-checking  ignore unrecognized --enable/--with options
2065   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2066   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2067   --enable-silent-rules          less verbose build output (undo: `make V=1')
2068   --disable-silent-rules         verbose build output (undo: `make V=0')
2069   --disable-dependency-tracking  speeds up one-time build
2070   --enable-dependency-tracking   do not reject slow dependency extractors
2071   --enable-shared[=PKGS]  build shared libraries [default=yes]
2072   --enable-static[=PKGS]  build static libraries [default=yes]
2073   --enable-fast-install[=PKGS]
2074                           optimize for fast installation [default=yes]
2075   --disable-libtool-lock  avoid locking (might break parallel builds)
2076   --disable-nls           do not use Native Language Support
2077   --disable-rpath         do not hardcode runtime library paths
2078   --disable-anonymous     don't use the ANONYMOUS mechanism
2079   --disable-external      don't use the EXTERNAL mechanism
2080   --disable-plain         don't use the PLAIN mechanism
2081   --disable-login         don't use the LOGIN mechanism
2082   --disable-securid       don't use the SECURID mechanism
2083   --disable-ntlm          don't use the NTLM mechanism
2084   --disable-cram-md5      don't use the CRAM-MD5 mechanism
2085   --disable-digest-md5    don't use the DIGEST-MD5 mechanism
2086   --enable-scram-sha1     use the SCRAM-SHA-1 mechanism
2087   --disable-saml20        don't use the SAML20 mechanism
2088   --disable-openid20      don't use the OPENID20 mechanism
2089   --disable-gs2           don't use the GS2 mechanism
2090   --disable-gssapi        don't use the GSSAPI mechanism
2091   --enable-kerberos_v5    use the KERBEROS_V5 mechanism
2092   --disable-client        disable client code
2093   --disable-server        disable server code
2094   --disable-obsolete      disable backwards compatibility code
2095   --enable-random-device  device with (strong) randomness (for Nettle)
2096   --enable-pseudo-random-device
2097                           device with pseudo randomness (for Nettle)
2098   --enable-nonce-device   device with unpredictable nonces (for Nettle)
2099   --enable-ld-version-script
2100                           enable linker version script (default is enabled
2101                           when possible)
2102
2103 Optional Packages:
2104   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2105   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2106   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2107                           both]
2108   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2109   --with-sysroot=DIR Search for dependent libraries within DIR
2110                         (or the compiler's sysroot if not specified).
2111   --with-gnu-ld           assume the C compiler uses GNU ld default=no
2112   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2113   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2114   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
2115   --without-libintl-prefix     don't search for libintl in includedir and libdir
2116   --with-libntlm-prefix[=DIR]  search for libntlm in DIR/include and DIR/lib
2117   --without-libntlm-prefix     don't search for libntlm in includedir and libdir
2118   --with-gssapi-impl=no/gss/kfw/mit/heimdal/yes
2119                           select GSS-API implementation
2120   --with-libgss-prefix[=DIR]  search for libgss in DIR/include and DIR/lib
2121   --without-libgss-prefix     don't search for libgss in includedir and libdir
2122   --with-libgssapi32-prefix[=DIR]  search for libgssapi32 in DIR/include and DIR/lib
2123   --without-libgssapi32-prefix     don't search for libgssapi32 in includedir and libdir
2124   --with-libshishi-prefix[=DIR]  search for libshishi in DIR/include and DIR/lib
2125   --without-libshishi-prefix     don't search for libshishi in includedir and libdir
2126   --without-stringprep    disable non-ASCII support
2127   --with-libidn-prefix[=DIR]  search for libidn in DIR/include and DIR/lib
2128   --without-libidn-prefix     don't search for libidn in includedir and libdir
2129   --with-libgcrypt        use libgcrypt for low-level crypto
2130   --with-libgcrypt-prefix[=DIR]  search for libgcrypt in DIR/include and DIR/lib
2131   --without-libgcrypt-prefix     don't search for libgcrypt in includedir and libdir
2132
2133 Some influential environment variables:
2134   CC          C compiler command
2135   CFLAGS      C compiler flags
2136   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2137               nonstandard directory <lib dir>
2138   LIBS        libraries to pass to the linker, e.g. -l<library>
2139   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2140               you have headers in a nonstandard directory <include dir>
2141   CPP         C preprocessor
2142
2143 Use these variables to override the choices made by `configure' or to help
2144 it to find libraries and programs with nonstandard names/locations.
2145
2146 Report bugs to <bug-gsasl@gnu.org>.
2147 _ACEOF
2148 ac_status=$?
2149 fi
2150
2151 if test "$ac_init_help" = "recursive"; then
2152   # If there are subdirs, report their specific --help.
2153   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2154     test -d "$ac_dir" ||
2155       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2156       continue
2157     ac_builddir=.
2158
2159 case "$ac_dir" in
2160 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2161 *)
2162   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2163   # A ".." for each directory in $ac_dir_suffix.
2164   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2165   case $ac_top_builddir_sub in
2166   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2167   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2168   esac ;;
2169 esac
2170 ac_abs_top_builddir=$ac_pwd
2171 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2172 # for backward compatibility:
2173 ac_top_builddir=$ac_top_build_prefix
2174
2175 case $srcdir in
2176   .)  # We are building in place.
2177     ac_srcdir=.
2178     ac_top_srcdir=$ac_top_builddir_sub
2179     ac_abs_top_srcdir=$ac_pwd ;;
2180   [\\/]* | ?:[\\/]* )  # Absolute name.
2181     ac_srcdir=$srcdir$ac_dir_suffix;
2182     ac_top_srcdir=$srcdir
2183     ac_abs_top_srcdir=$srcdir ;;
2184   *) # Relative name.
2185     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2186     ac_top_srcdir=$ac_top_build_prefix$srcdir
2187     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2188 esac
2189 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2190
2191     cd "$ac_dir" || { ac_status=$?; continue; }
2192     # Check for guested configure.
2193     if test -f "$ac_srcdir/configure.gnu"; then
2194       echo &&
2195       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2196     elif test -f "$ac_srcdir/configure"; then
2197       echo &&
2198       $SHELL "$ac_srcdir/configure" --help=recursive
2199     else
2200       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2201     fi || ac_status=$?
2202     cd "$ac_pwd" || { ac_status=$?; break; }
2203   done
2204 fi
2205
2206 test -n "$ac_init_help" && exit $ac_status
2207 if $ac_init_version; then
2208   cat <<\_ACEOF
2209 libgsasl configure 1.8.0
2210 generated by GNU Autoconf 2.68
2211
2212 Copyright (C) 2010 Free Software Foundation, Inc.
2213 This configure script is free software; the Free Software Foundation
2214 gives unlimited permission to copy, distribute and modify it.
2215 _ACEOF
2216   exit
2217 fi
2218
2219 ## ------------------------ ##
2220 ## Autoconf initialization. ##
2221 ## ------------------------ ##
2222
2223 # ac_fn_c_try_compile LINENO
2224 # --------------------------
2225 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2226 ac_fn_c_try_compile ()
2227 {
2228   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2229   rm -f conftest.$ac_objext
2230   if { { ac_try="$ac_compile"
2231 case "(($ac_try" in
2232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233   *) ac_try_echo=$ac_try;;
2234 esac
2235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2236 $as_echo "$ac_try_echo"; } >&5
2237   (eval "$ac_compile") 2>conftest.err
2238   ac_status=$?
2239   if test -s conftest.err; then
2240     grep -v '^ *+' conftest.err >conftest.er1
2241     cat conftest.er1 >&5
2242     mv -f conftest.er1 conftest.err
2243   fi
2244   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2245   test $ac_status = 0; } && {
2246          test -z "$ac_c_werror_flag" ||
2247          test ! -s conftest.err
2248        } && test -s conftest.$ac_objext; then :
2249   ac_retval=0
2250 else
2251   $as_echo "$as_me: failed program was:" >&5
2252 sed 's/^/| /' conftest.$ac_ext >&5
2253
2254         ac_retval=1
2255 fi
2256   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2257   as_fn_set_status $ac_retval
2258
2259 } # ac_fn_c_try_compile
2260
2261 # ac_fn_c_try_cpp LINENO
2262 # ----------------------
2263 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2264 ac_fn_c_try_cpp ()
2265 {
2266   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267   if { { ac_try="$ac_cpp conftest.$ac_ext"
2268 case "(($ac_try" in
2269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2270   *) ac_try_echo=$ac_try;;
2271 esac
2272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2273 $as_echo "$ac_try_echo"; } >&5
2274   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2275   ac_status=$?
2276   if test -s conftest.err; then
2277     grep -v '^ *+' conftest.err >conftest.er1
2278     cat conftest.er1 >&5
2279     mv -f conftest.er1 conftest.err
2280   fi
2281   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2282   test $ac_status = 0; } > conftest.i && {
2283          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2284          test ! -s conftest.err
2285        }; then :
2286   ac_retval=0
2287 else
2288   $as_echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2290
2291     ac_retval=1
2292 fi
2293   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294   as_fn_set_status $ac_retval
2295
2296 } # ac_fn_c_try_cpp
2297
2298 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2299 # -------------------------------------------------------
2300 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2301 # the include files in INCLUDES and setting the cache variable VAR
2302 # accordingly.
2303 ac_fn_c_check_header_mongrel ()
2304 {
2305   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306   if eval \${$3+:} false; then :
2307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2308 $as_echo_n "checking for $2... " >&6; }
2309 if eval \${$3+:} false; then :
2310   $as_echo_n "(cached) " >&6
2311 fi
2312 eval ac_res=\$$3
2313                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2314 $as_echo "$ac_res" >&6; }
2315 else
2316   # Is the header compilable?
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2318 $as_echo_n "checking $2 usability... " >&6; }
2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320 /* end confdefs.h.  */
2321 $4
2322 #include <$2>
2323 _ACEOF
2324 if ac_fn_c_try_compile "$LINENO"; then :
2325   ac_header_compiler=yes
2326 else
2327   ac_header_compiler=no
2328 fi
2329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2331 $as_echo "$ac_header_compiler" >&6; }
2332
2333 # Is the header present?
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2335 $as_echo_n "checking $2 presence... " >&6; }
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337 /* end confdefs.h.  */
2338 #include <$2>
2339 _ACEOF
2340 if ac_fn_c_try_cpp "$LINENO"; then :
2341   ac_header_preproc=yes
2342 else
2343   ac_header_preproc=no
2344 fi
2345 rm -f conftest.err conftest.i conftest.$ac_ext
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2347 $as_echo "$ac_header_preproc" >&6; }
2348
2349 # So?  What about this header?
2350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2351   yes:no: )
2352     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2353 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2354     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2355 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2356     ;;
2357   no:yes:* )
2358     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2359 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2360     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2361 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2362     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2363 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2364     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2365 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2366     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2367 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2368 ( $as_echo "## -------------------------------- ##
2369 ## Report this to bug-gsasl@gnu.org ##
2370 ## -------------------------------- ##"
2371      ) | sed "s/^/$as_me: WARNING:     /" >&2
2372     ;;
2373 esac
2374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2375 $as_echo_n "checking for $2... " >&6; }
2376 if eval \${$3+:} false; then :
2377   $as_echo_n "(cached) " >&6
2378 else
2379   eval "$3=\$ac_header_compiler"
2380 fi
2381 eval ac_res=\$$3
2382                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2383 $as_echo "$ac_res" >&6; }
2384 fi
2385   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2386
2387 } # ac_fn_c_check_header_mongrel
2388
2389 # ac_fn_c_try_run LINENO
2390 # ----------------------
2391 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2392 # that executables *can* be run.
2393 ac_fn_c_try_run ()
2394 {
2395   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2396   if { { ac_try="$ac_link"
2397 case "(($ac_try" in
2398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399   *) ac_try_echo=$ac_try;;
2400 esac
2401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2402 $as_echo "$ac_try_echo"; } >&5
2403   (eval "$ac_link") 2>&5
2404   ac_status=$?
2405   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2406   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2407   { { case "(($ac_try" in
2408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409   *) ac_try_echo=$ac_try;;
2410 esac
2411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2412 $as_echo "$ac_try_echo"; } >&5
2413   (eval "$ac_try") 2>&5
2414   ac_status=$?
2415   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2416   test $ac_status = 0; }; }; then :
2417   ac_retval=0
2418 else
2419   $as_echo "$as_me: program exited with status $ac_status" >&5
2420        $as_echo "$as_me: failed program was:" >&5
2421 sed 's/^/| /' conftest.$ac_ext >&5
2422
2423        ac_retval=$ac_status
2424 fi
2425   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2426   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2427   as_fn_set_status $ac_retval
2428
2429 } # ac_fn_c_try_run
2430
2431 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2432 # -------------------------------------------------------
2433 # Tests whether HEADER exists and can be compiled using the include files in
2434 # INCLUDES, setting the cache variable VAR accordingly.
2435 ac_fn_c_check_header_compile ()
2436 {
2437   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2438   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2439 $as_echo_n "checking for $2... " >&6; }
2440 if eval \${$3+:} false; then :
2441   $as_echo_n "(cached) " >&6
2442 else
2443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h.  */
2445 $4
2446 #include <$2>
2447 _ACEOF
2448 if ac_fn_c_try_compile "$LINENO"; then :
2449   eval "$3=yes"
2450 else
2451   eval "$3=no"
2452 fi
2453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2454 fi
2455 eval ac_res=\$$3
2456                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2457 $as_echo "$ac_res" >&6; }
2458   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2459
2460 } # ac_fn_c_check_header_compile
2461
2462 # ac_fn_c_try_link LINENO
2463 # -----------------------
2464 # Try to link conftest.$ac_ext, and return whether this succeeded.
2465 ac_fn_c_try_link ()
2466 {
2467   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2468   rm -f conftest.$ac_objext conftest$ac_exeext
2469   if { { ac_try="$ac_link"
2470 case "(($ac_try" in
2471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472   *) ac_try_echo=$ac_try;;
2473 esac
2474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2475 $as_echo "$ac_try_echo"; } >&5
2476   (eval "$ac_link") 2>conftest.err
2477   ac_status=$?
2478   if test -s conftest.err; then
2479     grep -v '^ *+' conftest.err >conftest.er1
2480     cat conftest.er1 >&5
2481     mv -f conftest.er1 conftest.err
2482   fi
2483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2484   test $ac_status = 0; } && {
2485          test -z "$ac_c_werror_flag" ||
2486          test ! -s conftest.err
2487        } && test -s conftest$ac_exeext && {
2488          test "$cross_compiling" = yes ||
2489          $as_test_x conftest$ac_exeext
2490        }; then :
2491   ac_retval=0
2492 else
2493   $as_echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.$ac_ext >&5
2495
2496         ac_retval=1
2497 fi
2498   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2499   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2500   # interfere with the next link command; also delete a directory that is
2501   # left behind by Apple's compiler.  We do this before executing the actions.
2502   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2503   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2504   as_fn_set_status $ac_retval
2505
2506 } # ac_fn_c_try_link
2507
2508 # ac_fn_c_check_func LINENO FUNC VAR
2509 # ----------------------------------
2510 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2511 ac_fn_c_check_func ()
2512 {
2513   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2515 $as_echo_n "checking for $2... " >&6; }
2516 if eval \${$3+:} false; then :
2517   $as_echo_n "(cached) " >&6
2518 else
2519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520 /* end confdefs.h.  */
2521 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2522    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2523 #define $2 innocuous_$2
2524
2525 /* System header to define __stub macros and hopefully few prototypes,
2526     which can conflict with char $2 (); below.
2527     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2528     <limits.h> exists even on freestanding compilers.  */
2529
2530 #ifdef __STDC__
2531 # include <limits.h>
2532 #else
2533 # include <assert.h>
2534 #endif
2535
2536 #undef $2
2537
2538 /* Override any GCC internal prototype to avoid an error.
2539    Use char because int might match the return type of a GCC
2540    builtin and then its argument prototype would still apply.  */
2541 #ifdef __cplusplus
2542 extern "C"
2543 #endif
2544 char $2 ();
2545 /* The GNU C library defines this for functions which it implements
2546     to always fail with ENOSYS.  Some functions are actually named
2547     something starting with __ and the normal name is an alias.  */
2548 #if defined __stub_$2 || defined __stub___$2
2549 choke me
2550 #endif
2551
2552 int
2553 main ()
2554 {
2555 return $2 ();
2556   ;
2557   return 0;
2558 }
2559 _ACEOF
2560 if ac_fn_c_try_link "$LINENO"; then :
2561   eval "$3=yes"
2562 else
2563   eval "$3=no"
2564 fi
2565 rm -f core conftest.err conftest.$ac_objext \
2566     conftest$ac_exeext conftest.$ac_ext
2567 fi
2568 eval ac_res=\$$3
2569                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2570 $as_echo "$ac_res" >&6; }
2571   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2572
2573 } # ac_fn_c_check_func
2574
2575 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2576 # -------------------------------------------
2577 # Tests whether TYPE exists after having included INCLUDES, setting cache
2578 # variable VAR accordingly.
2579 ac_fn_c_check_type ()
2580 {
2581   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2583 $as_echo_n "checking for $2... " >&6; }
2584 if eval \${$3+:} false; then :
2585   $as_echo_n "(cached) " >&6
2586 else
2587   eval "$3=no"
2588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589 /* end confdefs.h.  */
2590 $4
2591 int
2592 main ()
2593 {
2594 if (sizeof ($2))
2595          return 0;
2596   ;
2597   return 0;
2598 }
2599 _ACEOF
2600 if ac_fn_c_try_compile "$LINENO"; then :
2601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602 /* end confdefs.h.  */
2603 $4
2604 int
2605 main ()
2606 {
2607 if (sizeof (($2)))
2608             return 0;
2609   ;
2610   return 0;
2611 }
2612 _ACEOF
2613 if ac_fn_c_try_compile "$LINENO"; then :
2614
2615 else
2616   eval "$3=yes"
2617 fi
2618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 fi
2620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621 fi
2622 eval ac_res=\$$3
2623                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2624 $as_echo "$ac_res" >&6; }
2625   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2626
2627 } # ac_fn_c_check_type
2628
2629 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2630 # --------------------------------------------
2631 # Tries to find the compile-time value of EXPR in a program that includes
2632 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2633 # computed
2634 ac_fn_c_compute_int ()
2635 {
2636   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2637   if test "$cross_compiling" = yes; then
2638     # Depending upon the size, compute the lo and hi bounds.
2639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2640 /* end confdefs.h.  */
2641 $4
2642 int
2643 main ()
2644 {
2645 static int test_array [1 - 2 * !(($2) >= 0)];
2646 test_array [0] = 0
2647
2648   ;
2649   return 0;
2650 }
2651 _ACEOF
2652 if ac_fn_c_try_compile "$LINENO"; then :
2653   ac_lo=0 ac_mid=0
2654   while :; do
2655     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2656 /* end confdefs.h.  */
2657 $4
2658 int
2659 main ()
2660 {
2661 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2662 test_array [0] = 0
2663
2664   ;
2665   return 0;
2666 }
2667 _ACEOF
2668 if ac_fn_c_try_compile "$LINENO"; then :
2669   ac_hi=$ac_mid; break
2670 else
2671   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2672                         if test $ac_lo -le $ac_mid; then
2673                           ac_lo= ac_hi=
2674                           break
2675                         fi
2676                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2677 fi
2678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2679   done
2680 else
2681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2682 /* end confdefs.h.  */
2683 $4
2684 int
2685 main ()
2686 {
2687 static int test_array [1 - 2 * !(($2) < 0)];
2688 test_array [0] = 0
2689
2690   ;
2691   return 0;
2692 }
2693 _ACEOF
2694 if ac_fn_c_try_compile "$LINENO"; then :
2695   ac_hi=-1 ac_mid=-1
2696   while :; do
2697     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2698 /* end confdefs.h.  */
2699 $4
2700 int
2701 main ()
2702 {
2703 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2704 test_array [0] = 0
2705
2706   ;
2707   return 0;
2708 }
2709 _ACEOF
2710 if ac_fn_c_try_compile "$LINENO"; then :
2711   ac_lo=$ac_mid; break
2712 else
2713   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2714                         if test $ac_mid -le $ac_hi; then
2715                           ac_lo= ac_hi=
2716                           break
2717                         fi
2718                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2719 fi
2720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2721   done
2722 else
2723   ac_lo= ac_hi=
2724 fi
2725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2726 fi
2727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2728 # Binary search between lo and hi bounds.
2729 while test "x$ac_lo" != "x$ac_hi"; do
2730   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2732 /* end confdefs.h.  */
2733 $4
2734 int
2735 main ()
2736 {
2737 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2738 test_array [0] = 0
2739
2740   ;
2741   return 0;
2742 }
2743 _ACEOF
2744 if ac_fn_c_try_compile "$LINENO"; then :
2745   ac_hi=$ac_mid
2746 else
2747   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2748 fi
2749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2750 done
2751 case $ac_lo in #((
2752 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2753 '') ac_retval=1 ;;
2754 esac
2755   else
2756     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2757 /* end confdefs.h.  */
2758 $4
2759 static long int longval () { return $2; }
2760 static unsigned long int ulongval () { return $2; }
2761 #include <stdio.h>
2762 #include <stdlib.h>
2763 int
2764 main ()
2765 {
2766
2767   FILE *f = fopen ("conftest.val", "w");
2768   if (! f)
2769     return 1;
2770   if (($2) < 0)
2771     {
2772       long int i = longval ();
2773       if (i != ($2))
2774         return 1;
2775       fprintf (f, "%ld", i);
2776     }
2777   else
2778     {
2779       unsigned long int i = ulongval ();
2780       if (i != ($2))
2781         return 1;
2782       fprintf (f, "%lu", i);
2783     }
2784   /* Do not output a trailing newline, as this causes \r\n confusion
2785      on some platforms.  */
2786   return ferror (f) || fclose (f) != 0;
2787
2788   ;
2789   return 0;
2790 }
2791 _ACEOF
2792 if ac_fn_c_try_run "$LINENO"; then :
2793   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2794 else
2795   ac_retval=1
2796 fi
2797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2798   conftest.$ac_objext conftest.beam conftest.$ac_ext
2799 rm -f conftest.val
2800
2801   fi
2802   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2803   as_fn_set_status $ac_retval
2804
2805 } # ac_fn_c_compute_int
2806
2807 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2808 # ---------------------------------------------
2809 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2810 # accordingly.
2811 ac_fn_c_check_decl ()
2812 {
2813   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2814   as_decl_name=`echo $2|sed 's/ *(.*//'`
2815   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2817 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2818 if eval \${$3+:} false; then :
2819   $as_echo_n "(cached) " >&6
2820 else
2821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822 /* end confdefs.h.  */
2823 $4
2824 int
2825 main ()
2826 {
2827 #ifndef $as_decl_name
2828 #ifdef __cplusplus
2829   (void) $as_decl_use;
2830 #else
2831   (void) $as_decl_name;
2832 #endif
2833 #endif
2834
2835   ;
2836   return 0;
2837 }
2838 _ACEOF
2839 if ac_fn_c_try_compile "$LINENO"; then :
2840   eval "$3=yes"
2841 else
2842   eval "$3=no"
2843 fi
2844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2845 fi
2846 eval ac_res=\$$3
2847                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2848 $as_echo "$ac_res" >&6; }
2849   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2850
2851 } # ac_fn_c_check_decl
2852 cat >config.log <<_ACEOF
2853 This file contains any messages produced by compilers while
2854 running configure, to aid debugging if configure makes a mistake.
2855
2856 It was created by libgsasl $as_me 1.8.0, which was
2857 generated by GNU Autoconf 2.68.  Invocation command line was
2858
2859   $ $0 $@
2860
2861 _ACEOF
2862 exec 5>>config.log
2863 {
2864 cat <<_ASUNAME
2865 ## --------- ##
2866 ## Platform. ##
2867 ## --------- ##
2868
2869 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2870 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2871 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2872 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2873 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2874
2875 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2876 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2877
2878 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2879 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2880 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2881 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2882 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2883 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2884 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2885
2886 _ASUNAME
2887
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2890 do
2891   IFS=$as_save_IFS
2892   test -z "$as_dir" && as_dir=.
2893     $as_echo "PATH: $as_dir"
2894   done
2895 IFS=$as_save_IFS
2896
2897 } >&5
2898
2899 cat >&5 <<_ACEOF
2900
2901
2902 ## ----------- ##
2903 ## Core tests. ##
2904 ## ----------- ##
2905
2906 _ACEOF
2907
2908
2909 # Keep a trace of the command line.
2910 # Strip out --no-create and --no-recursion so they do not pile up.
2911 # Strip out --silent because we don't want to record it for future runs.
2912 # Also quote any args containing shell meta-characters.
2913 # Make two passes to allow for proper duplicate-argument suppression.
2914 ac_configure_args=
2915 ac_configure_args0=
2916 ac_configure_args1=
2917 ac_must_keep_next=false
2918 for ac_pass in 1 2
2919 do
2920   for ac_arg
2921   do
2922     case $ac_arg in
2923     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2924     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2925     | -silent | --silent | --silen | --sile | --sil)
2926       continue ;;
2927     *\'*)
2928       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2929     esac
2930     case $ac_pass in
2931     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2932     2)
2933       as_fn_append ac_configure_args1 " '$ac_arg'"
2934       if test $ac_must_keep_next = true; then
2935         ac_must_keep_next=false # Got value, back to normal.
2936       else
2937         case $ac_arg in
2938           *=* | --config-cache | -C | -disable-* | --disable-* \
2939           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2940           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2941           | -with-* | --with-* | -without-* | --without-* | --x)
2942             case "$ac_configure_args0 " in
2943               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2944             esac
2945             ;;
2946           -* ) ac_must_keep_next=true ;;
2947         esac
2948       fi
2949       as_fn_append ac_configure_args " '$ac_arg'"
2950       ;;
2951     esac
2952   done
2953 done
2954 { ac_configure_args0=; unset ac_configure_args0;}
2955 { ac_configure_args1=; unset ac_configure_args1;}
2956
2957 # When interrupted or exit'd, cleanup temporary files, and complete
2958 # config.log.  We remove comments because anyway the quotes in there
2959 # would cause problems or look ugly.
2960 # WARNING: Use '\'' to represent an apostrophe within the trap.
2961 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2962 trap 'exit_status=$?
2963   # Save into config.log some information that might help in debugging.
2964   {
2965     echo
2966
2967     $as_echo "## ---------------- ##
2968 ## Cache variables. ##
2969 ## ---------------- ##"
2970     echo
2971     # The following way of writing the cache mishandles newlines in values,
2972 (
2973   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2974     eval ac_val=\$$ac_var
2975     case $ac_val in #(
2976     *${as_nl}*)
2977       case $ac_var in #(
2978       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2979 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2980       esac
2981       case $ac_var in #(
2982       _ | IFS | as_nl) ;; #(
2983       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2984       *) { eval $ac_var=; unset $ac_var;} ;;
2985       esac ;;
2986     esac
2987   done
2988   (set) 2>&1 |
2989     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2990     *${as_nl}ac_space=\ *)
2991       sed -n \
2992         "s/'\''/'\''\\\\'\'''\''/g;
2993           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2994       ;; #(
2995     *)
2996       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2997       ;;
2998     esac |
2999     sort
3000 )
3001     echo
3002
3003     $as_echo "## ----------------- ##
3004 ## Output variables. ##
3005 ## ----------------- ##"
3006     echo
3007     for ac_var in $ac_subst_vars
3008     do
3009       eval ac_val=\$$ac_var
3010       case $ac_val in
3011       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3012       esac
3013       $as_echo "$ac_var='\''$ac_val'\''"
3014     done | sort
3015     echo
3016
3017     if test -n "$ac_subst_files"; then
3018       $as_echo "## ------------------- ##
3019 ## File substitutions. ##
3020 ## ------------------- ##"
3021       echo
3022       for ac_var in $ac_subst_files
3023       do
3024         eval ac_val=\$$ac_var
3025         case $ac_val in
3026         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3027         esac
3028         $as_echo "$ac_var='\''$ac_val'\''"
3029       done | sort
3030       echo
3031     fi
3032
3033     if test -s confdefs.h; then
3034       $as_echo "## ----------- ##
3035 ## confdefs.h. ##
3036 ## ----------- ##"
3037       echo
3038       cat confdefs.h
3039       echo
3040     fi
3041     test "$ac_signal" != 0 &&
3042       $as_echo "$as_me: caught signal $ac_signal"
3043     $as_echo "$as_me: exit $exit_status"
3044   } >&5
3045   rm -f core *.core core.conftest.* &&
3046     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3047     exit $exit_status
3048 ' 0
3049 for ac_signal in 1 2 13 15; do
3050   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3051 done
3052 ac_signal=0
3053
3054 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3055 rm -f -r conftest* confdefs.h
3056
3057 $as_echo "/* confdefs.h */" > confdefs.h
3058
3059 # Predefined preprocessor variables.
3060
3061 cat >>confdefs.h <<_ACEOF
3062 #define PACKAGE_NAME "$PACKAGE_NAME"
3063 _ACEOF
3064
3065 cat >>confdefs.h <<_ACEOF
3066 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3067 _ACEOF
3068
3069 cat >>confdefs.h <<_ACEOF
3070 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3071 _ACEOF
3072
3073 cat >>confdefs.h <<_ACEOF
3074 #define PACKAGE_STRING "$PACKAGE_STRING"
3075 _ACEOF
3076
3077 cat >>confdefs.h <<_ACEOF
3078 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3079 _ACEOF
3080
3081 cat >>confdefs.h <<_ACEOF
3082 #define PACKAGE_URL "$PACKAGE_URL"
3083 _ACEOF
3084
3085
3086 # Let the site file select an alternate cache file if it wants to.
3087 # Prefer an explicitly selected file to automatically selected ones.
3088 ac_site_file1=NONE
3089 ac_site_file2=NONE
3090 if test -n "$CONFIG_SITE"; then
3091   # We do not want a PATH search for config.site.
3092   case $CONFIG_SITE in #((
3093     -*)  ac_site_file1=./$CONFIG_SITE;;
3094     */*) ac_site_file1=$CONFIG_SITE;;
3095     *)   ac_site_file1=./$CONFIG_SITE;;
3096   esac
3097 elif test "x$prefix" != xNONE; then
3098   ac_site_file1=$prefix/share/config.site
3099   ac_site_file2=$prefix/etc/config.site
3100 else
3101   ac_site_file1=$ac_default_prefix/share/config.site
3102   ac_site_file2=$ac_default_prefix/etc/config.site
3103 fi
3104 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3105 do
3106   test "x$ac_site_file" = xNONE && continue
3107   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3108     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3109 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3110     sed 's/^/| /' "$ac_site_file" >&5
3111     . "$ac_site_file" \
3112       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3114 as_fn_error $? "failed to load site script $ac_site_file
3115 See \`config.log' for more details" "$LINENO" 5; }
3116   fi
3117 done
3118
3119 if test -r "$cache_file"; then
3120   # Some versions of bash will fail to source /dev/null (special files
3121   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3122   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3123     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3124 $as_echo "$as_me: loading cache $cache_file" >&6;}
3125     case $cache_file in
3126       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3127       *)                      . "./$cache_file";;
3128     esac
3129   fi
3130 else
3131   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3132 $as_echo "$as_me: creating cache $cache_file" >&6;}
3133   >$cache_file
3134 fi
3135
3136 gt_needs="$gt_needs "
3137 as_fn_append ac_func_list " getdelim"
3138 as_fn_append ac_header_list " sys/mman.h"
3139 as_fn_append ac_func_list " mprotect"
3140 as_fn_append ac_header_list " wchar.h"
3141 as_fn_append ac_header_list " stdint.h"
3142 as_fn_append ac_func_list " strndup"
3143 as_fn_append ac_header_list " unistd.h"
3144 as_fn_append ac_func_list " vasnprintf"
3145 as_fn_append ac_header_list " features.h"
3146 as_fn_append ac_func_list " snprintf"
3147 as_fn_append ac_func_list " _set_invalid_parameter_handler"
3148 as_fn_append ac_header_list " inttypes.h"
3149 # Check that the precious variables saved in the cache have kept the same
3150 # value.
3151 ac_cache_corrupted=false
3152 for ac_var in $ac_precious_vars; do
3153   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3154   eval ac_new_set=\$ac_env_${ac_var}_set
3155   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3156   eval ac_new_val=\$ac_env_${ac_var}_value
3157   case $ac_old_set,$ac_new_set in
3158     set,)
3159       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3160 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3161       ac_cache_corrupted=: ;;
3162     ,set)
3163       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3164 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3165       ac_cache_corrupted=: ;;
3166     ,);;
3167     *)
3168       if test "x$ac_old_val" != "x$ac_new_val"; then
3169         # differences in whitespace do not lead to failure.
3170         ac_old_val_w=`echo x $ac_old_val`
3171         ac_new_val_w=`echo x $ac_new_val`
3172         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3173           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3174 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3175           ac_cache_corrupted=:
3176         else
3177           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3178 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3179           eval $ac_var=\$ac_old_val
3180         fi
3181         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3182 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3183         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3184 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3185       fi;;
3186   esac
3187   # Pass precious variables to config.status.
3188   if test "$ac_new_set" = set; then
3189     case $ac_new_val in
3190     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3191     *) ac_arg=$ac_var=$ac_new_val ;;
3192     esac
3193     case " $ac_configure_args " in
3194       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3195       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3196     esac
3197   fi
3198 done
3199 if $ac_cache_corrupted; then
3200   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3202   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3203 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3204   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3205 fi
3206 ## -------------------- ##
3207 ## Main body of script. ##
3208 ## -------------------- ##
3209
3210 ac_ext=c
3211 ac_cpp='$CPP $CPPFLAGS'
3212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215
3216
3217 ac_aux_dir=
3218 for ac_dir in build-aux "$srcdir"/build-aux; do
3219   if test -f "$ac_dir/install-sh"; then
3220     ac_aux_dir=$ac_dir
3221     ac_install_sh="$ac_aux_dir/install-sh -c"
3222     break
3223   elif test -f "$ac_dir/install.sh"; then
3224     ac_aux_dir=$ac_dir
3225     ac_install_sh="$ac_aux_dir/install.sh -c"
3226     break
3227   elif test -f "$ac_dir/shtool"; then
3228     ac_aux_dir=$ac_dir
3229     ac_install_sh="$ac_aux_dir/shtool install -c"
3230     break
3231   fi
3232 done
3233 if test -z "$ac_aux_dir"; then
3234   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3235 fi
3236
3237 # These three variables are undocumented and unsupported,
3238 # and are intended to be withdrawn in a future Autoconf release.
3239 # They can cause serious problems if a builder's source tree is in a directory
3240 # whose full name contains unusual characters.
3241 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3242 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3243 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3244
3245
3246
3247
3248 # Library code modified:                              REVISION++
3249 # Interfaces changed/added/removed:   CURRENT++       REVISION=0
3250 # Interfaces added:                             AGE++
3251 # Interfaces removed:                           AGE=0
3252 LT_CURRENT=16
3253
3254 LT_REVISION=6
3255
3256 LT_AGE=9
3257
3258
3259 # Used when creating libgsasl-XX.def.
3260 DLL_VERSION=`expr ${LT_CURRENT} - ${LT_AGE}`
3261
3262
3263 am__api_version='1.11'
3264
3265 # Find a good install program.  We prefer a C program (faster),
3266 # so one script is as good as another.  But avoid the broken or
3267 # incompatible versions:
3268 # SysV /etc/install, /usr/sbin/install
3269 # SunOS /usr/etc/install
3270 # IRIX /sbin/install
3271 # AIX /bin/install
3272 # AmigaOS /C/install, which installs bootblocks on floppy discs
3273 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3274 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3275 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3276 # OS/2's system install, which has a completely different semantic
3277 # ./install, which can be erroneously created by make from ./install.sh.
3278 # Reject install programs that cannot install multiple files.
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3280 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3281 if test -z "$INSTALL"; then
3282 if ${ac_cv_path_install+:} false; then :
3283   $as_echo_n "(cached) " >&6
3284 else
3285   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 for as_dir in $PATH
3287 do
3288   IFS=$as_save_IFS
3289   test -z "$as_dir" && as_dir=.
3290     # Account for people who put trailing slashes in PATH elements.
3291 case $as_dir/ in #((
3292   ./ | .// | /[cC]/* | \
3293   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3294   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3295   /usr/ucb/* ) ;;
3296   *)
3297     # OSF1 and SCO ODT 3.0 have their own names for install.
3298     # Don't use installbsd from OSF since it installs stuff as root
3299     # by default.
3300     for ac_prog in ginstall scoinst install; do
3301       for ac_exec_ext in '' $ac_executable_extensions; do
3302         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3303           if test $ac_prog = install &&
3304             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3305             # AIX install.  It has an incompatible calling convention.
3306             :
3307           elif test $ac_prog = install &&
3308             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3309             # program-specific install script used by HP pwplus--don't use.
3310             :
3311           else
3312             rm -rf conftest.one conftest.two conftest.dir
3313             echo one > conftest.one
3314             echo two > conftest.two
3315             mkdir conftest.dir
3316             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3317               test -s conftest.one && test -s conftest.two &&
3318               test -s conftest.dir/conftest.one &&
3319               test -s conftest.dir/conftest.two
3320             then
3321               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3322               break 3
3323             fi
3324           fi
3325         fi
3326       done
3327     done
3328     ;;
3329 esac
3330
3331   done
3332 IFS=$as_save_IFS
3333
3334 rm -rf conftest.one conftest.two conftest.dir
3335
3336 fi
3337   if test "${ac_cv_path_install+set}" = set; then
3338     INSTALL=$ac_cv_path_install
3339   else
3340     # As a last resort, use the slow shell script.  Don't cache a
3341     # value for INSTALL within a source directory, because that will
3342     # break other packages using the cache if that directory is
3343     # removed, or if the value is a relative name.
3344     INSTALL=$ac_install_sh
3345   fi
3346 fi
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3348 $as_echo "$INSTALL" >&6; }
3349
3350 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3351 # It thinks the first close brace ends the variable substitution.
3352 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3353
3354 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3355
3356 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3357
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3359 $as_echo_n "checking whether build environment is sane... " >&6; }
3360 # Just in case
3361 sleep 1
3362 echo timestamp > conftest.file
3363 # Reject unsafe characters in $srcdir or the absolute working directory
3364 # name.  Accept space and tab only in the latter.
3365 am_lf='
3366 '
3367 case `pwd` in
3368   *[\\\"\#\$\&\'\`$am_lf]*)
3369     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3370 esac
3371 case $srcdir in
3372   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3373     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3374 esac
3375
3376 # Do `set' in a subshell so we don't clobber the current shell's
3377 # arguments.  Must try -L first in case configure is actually a
3378 # symlink; some systems play weird games with the mod time of symlinks
3379 # (eg FreeBSD returns the mod time of the symlink's containing
3380 # directory).
3381 if (
3382    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3383    if test "$*" = "X"; then
3384       # -L didn't work.
3385       set X `ls -t "$srcdir/configure" conftest.file`
3386    fi
3387    rm -f conftest.file
3388    if test "$*" != "X $srcdir/configure conftest.file" \
3389       && test "$*" != "X conftest.file $srcdir/configure"; then
3390
3391       # If neither matched, then we have a broken ls.  This can happen
3392       # if, for instance, CONFIG_SHELL is bash and it inherits a
3393       # broken ls alias from the environment.  This has actually
3394       # happened.  Such a system could not be considered "sane".
3395       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3396 alias in your environment" "$LINENO" 5
3397    fi
3398
3399    test "$2" = conftest.file
3400    )
3401 then
3402    # Ok.
3403    :
3404 else
3405    as_fn_error $? "newly created file is older than distributed files!
3406 Check your system clock" "$LINENO" 5
3407 fi
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3409 $as_echo "yes" >&6; }
3410 test "$program_prefix" != NONE &&
3411   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3412 # Use a double $ so make ignores it.
3413 test "$program_suffix" != NONE &&
3414   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3415 # Double any \ or $.
3416 # By default was `s,x,x', remove it if useless.
3417 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3418 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3419
3420 # expand $ac_aux_dir to an absolute path
3421 am_aux_dir=`cd $ac_aux_dir && pwd`
3422
3423 if test x"${MISSING+set}" != xset; then
3424   case $am_aux_dir in
3425   *\ * | *\     *)
3426     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3427   *)
3428     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3429   esac
3430 fi
3431 # Use eval to expand $SHELL
3432 if eval "$MISSING --run true"; then
3433   am_missing_run="$MISSING --run "
3434 else
3435   am_missing_run=
3436   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3437 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3438 fi
3439
3440 if test x"${install_sh}" != xset; then
3441   case $am_aux_dir in
3442   *\ * | *\     *)
3443     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3444   *)
3445     install_sh="\${SHELL} $am_aux_dir/install-sh"
3446   esac
3447 fi
3448
3449 # Installed binaries are usually stripped using `strip' when the user
3450 # run `make install-strip'.  However `strip' might not be the right
3451 # tool to use in cross-compilation environments, therefore Automake
3452 # will honor the `STRIP' environment variable to overrule this program.
3453 if test "$cross_compiling" != no; then
3454   if test -n "$ac_tool_prefix"; then
3455   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3456 set dummy ${ac_tool_prefix}strip; ac_word=$2
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458 $as_echo_n "checking for $ac_word... " >&6; }
3459 if ${ac_cv_prog_STRIP+:} false; then :
3460   $as_echo_n "(cached) " >&6
3461 else
3462   if test -n "$STRIP"; then
3463   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3464 else
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 for as_dir in $PATH
3467 do
3468   IFS=$as_save_IFS
3469   test -z "$as_dir" && as_dir=.
3470     for ac_exec_ext in '' $ac_executable_extensions; do
3471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3472     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3474     break 2
3475   fi
3476 done
3477   done
3478 IFS=$as_save_IFS
3479
3480 fi
3481 fi
3482 STRIP=$ac_cv_prog_STRIP
3483 if test -n "$STRIP"; then
3484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3485 $as_echo "$STRIP" >&6; }
3486 else
3487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3489 fi
3490
3491
3492 fi
3493 if test -z "$ac_cv_prog_STRIP"; then
3494   ac_ct_STRIP=$STRIP
3495   # Extract the first word of "strip", so it can be a program name with args.
3496 set dummy strip; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3500   $as_echo_n "(cached) " >&6
3501 else
3502   if test -n "$ac_ct_STRIP"; then
3503   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3507 do
3508   IFS=$as_save_IFS
3509   test -z "$as_dir" && as_dir=.
3510     for ac_exec_ext in '' $ac_executable_extensions; do
3511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512     ac_cv_prog_ac_ct_STRIP="strip"
3513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514     break 2
3515   fi
3516 done
3517   done
3518 IFS=$as_save_IFS
3519
3520 fi
3521 fi
3522 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3523 if test -n "$ac_ct_STRIP"; then
3524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3525 $as_echo "$ac_ct_STRIP" >&6; }
3526 else
3527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3529 fi
3530
3531   if test "x$ac_ct_STRIP" = x; then
3532     STRIP=":"
3533   else
3534     case $cross_compiling:$ac_tool_warned in
3535 yes:)
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3538 ac_tool_warned=yes ;;
3539 esac
3540     STRIP=$ac_ct_STRIP
3541   fi
3542 else
3543   STRIP="$ac_cv_prog_STRIP"
3544 fi
3545
3546 fi
3547 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3548
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3550 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3551 if test -z "$MKDIR_P"; then
3552   if ${ac_cv_path_mkdir+:} false; then :
3553   $as_echo_n "(cached) " >&6
3554 else
3555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3557 do
3558   IFS=$as_save_IFS
3559   test -z "$as_dir" && as_dir=.
3560     for ac_prog in mkdir gmkdir; do
3561          for ac_exec_ext in '' $ac_executable_extensions; do
3562            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3563            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3564              'mkdir (GNU coreutils) '* | \
3565              'mkdir (coreutils) '* | \
3566              'mkdir (fileutils) '4.1*)
3567                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3568                break 3;;
3569            esac
3570          done
3571        done
3572   done
3573 IFS=$as_save_IFS
3574
3575 fi
3576
3577   test -d ./--version && rmdir ./--version
3578   if test "${ac_cv_path_mkdir+set}" = set; then
3579     MKDIR_P="$ac_cv_path_mkdir -p"
3580   else
3581     # As a last resort, use the slow shell script.  Don't cache a
3582     # value for MKDIR_P within a source directory, because that will
3583     # break other packages using the cache if that directory is
3584     # removed, or if the value is a relative name.
3585     MKDIR_P="$ac_install_sh -d"
3586   fi
3587 fi
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3589 $as_echo "$MKDIR_P" >&6; }
3590
3591
3592 mkdir_p="$MKDIR_P"
3593 case $mkdir_p in
3594   [\\/$]* | ?:[\\/]*) ;;
3595   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3596 esac
3597
3598 for ac_prog in gawk mawk nawk awk
3599 do
3600   # Extract the first word of "$ac_prog", so it can be a program name with args.
3601 set dummy $ac_prog; ac_word=$2
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3603 $as_echo_n "checking for $ac_word... " >&6; }
3604 if ${ac_cv_prog_AWK+:} false; then :
3605   $as_echo_n "(cached) " >&6
3606 else
3607   if test -n "$AWK"; then
3608   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3609 else
3610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611 for as_dir in $PATH
3612 do
3613   IFS=$as_save_IFS
3614   test -z "$as_dir" && as_dir=.
3615     for ac_exec_ext in '' $ac_executable_extensions; do
3616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3617     ac_cv_prog_AWK="$ac_prog"
3618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3619     break 2
3620   fi
3621 done
3622   done
3623 IFS=$as_save_IFS
3624
3625 fi
3626 fi
3627 AWK=$ac_cv_prog_AWK
3628 if test -n "$AWK"; then
3629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3630 $as_echo "$AWK" >&6; }
3631 else
3632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3634 fi
3635
3636
3637   test -n "$AWK" && break
3638 done
3639
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3641 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3642 set x ${MAKE-make}
3643 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3644 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3645   $as_echo_n "(cached) " >&6
3646 else
3647   cat >conftest.make <<\_ACEOF
3648 SHELL = /bin/sh
3649 all:
3650         @echo '@@@%%%=$(MAKE)=@@@%%%'
3651 _ACEOF
3652 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3653 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3654   *@@@%%%=?*=@@@%%%*)
3655     eval ac_cv_prog_make_${ac_make}_set=yes;;
3656   *)
3657     eval ac_cv_prog_make_${ac_make}_set=no;;
3658 esac
3659 rm -f conftest.make
3660 fi
3661 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3663 $as_echo "yes" >&6; }
3664   SET_MAKE=
3665 else
3666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3667 $as_echo "no" >&6; }
3668   SET_MAKE="MAKE=${MAKE-make}"
3669 fi
3670
3671 rm -rf .tst 2>/dev/null
3672 mkdir .tst 2>/dev/null
3673 if test -d .tst; then
3674   am__leading_dot=.
3675 else
3676   am__leading_dot=_
3677 fi
3678 rmdir .tst 2>/dev/null
3679
3680 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3681   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3682   # is not polluted with repeated "-I."
3683   am__isrc=' -I$(srcdir)'
3684   # test to see if srcdir already configured
3685   if test -f $srcdir/config.status; then
3686     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3687   fi
3688 fi
3689
3690 # test whether we have cygpath
3691 if test -z "$CYGPATH_W"; then
3692   if (cygpath --version) >/dev/null 2>/dev/null; then
3693     CYGPATH_W='cygpath -w'
3694   else
3695     CYGPATH_W=echo
3696   fi
3697 fi
3698
3699
3700 # Define the identity of the package.
3701  PACKAGE='libgsasl'
3702  VERSION='1.8.0'
3703
3704
3705 cat >>confdefs.h <<_ACEOF
3706 #define PACKAGE "$PACKAGE"
3707 _ACEOF
3708
3709
3710 cat >>confdefs.h <<_ACEOF
3711 #define VERSION "$VERSION"
3712 _ACEOF
3713
3714 # Some tools Automake needs.
3715
3716 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3717
3718
3719 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3720
3721
3722 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3723
3724
3725 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3726
3727
3728 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3729
3730 # We need awk for the "check" target.  The system "awk" is bad on
3731 # some platforms.
3732 # Always define AMTAR for backward compatibility.  Yes, it's still used
3733 # in the wild :-(  We should find a proper way to deprecate it ...
3734 AMTAR='$${TAR-tar}'
3735
3736 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3737
3738
3739
3740
3741
3742 # Check whether --enable-silent-rules was given.
3743 if test "${enable_silent_rules+set}" = set; then :
3744   enableval=$enable_silent_rules;
3745 fi
3746
3747 case $enable_silent_rules in
3748 yes) AM_DEFAULT_VERBOSITY=0;;
3749 no)  AM_DEFAULT_VERBOSITY=1;;
3750 *)   AM_DEFAULT_VERBOSITY=0;;
3751 esac
3752 am_make=${MAKE-make}
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3754 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3755 if ${am_cv_make_support_nested_variables+:} false; then :
3756   $as_echo_n "(cached) " >&6
3757 else
3758   if $as_echo 'TRUE=$(BAR$(V))
3759 BAR0=false
3760 BAR1=true
3761 V=1
3762 am__doit:
3763         @$(TRUE)
3764 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3765   am_cv_make_support_nested_variables=yes
3766 else
3767   am_cv_make_support_nested_variables=no
3768 fi
3769 fi
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3771 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3772 if test $am_cv_make_support_nested_variables = yes; then
3773     AM_V='$(V)'
3774   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3775 else
3776   AM_V=$AM_DEFAULT_VERBOSITY
3777   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3778 fi
3779 AM_BACKSLASH='\'
3780
3781 ac_config_headers="$ac_config_headers config.h"
3782
3783
3784 # Checks for programs.
3785 ac_ext=c
3786 ac_cpp='$CPP $CPPFLAGS'
3787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3790 if test -n "$ac_tool_prefix"; then
3791   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3792 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3794 $as_echo_n "checking for $ac_word... " >&6; }
3795 if ${ac_cv_prog_CC+:} false; then :
3796   $as_echo_n "(cached) " >&6
3797 else
3798   if test -n "$CC"; then
3799   ac_cv_prog_CC="$CC" # Let the user override the test.
3800 else
3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802 for as_dir in $PATH
3803 do
3804   IFS=$as_save_IFS
3805   test -z "$as_dir" && as_dir=.
3806     for ac_exec_ext in '' $ac_executable_extensions; do
3807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3808     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3810     break 2
3811   fi
3812 done
3813   done
3814 IFS=$as_save_IFS
3815
3816 fi
3817 fi
3818 CC=$ac_cv_prog_CC
3819 if test -n "$CC"; then
3820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3821 $as_echo "$CC" >&6; }
3822 else
3823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824 $as_echo "no" >&6; }
3825 fi
3826
3827
3828 fi
3829 if test -z "$ac_cv_prog_CC"; then
3830   ac_ct_CC=$CC
3831   # Extract the first word of "gcc", so it can be a program name with args.
3832 set dummy gcc; ac_word=$2
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3834 $as_echo_n "checking for $ac_word... " >&6; }
3835 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3836   $as_echo_n "(cached) " >&6
3837 else
3838   if test -n "$ac_ct_CC"; then
3839   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3840 else
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 for as_dir in $PATH
3843 do
3844   IFS=$as_save_IFS
3845   test -z "$as_dir" && as_dir=.
3846     for ac_exec_ext in '' $ac_executable_extensions; do
3847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3848     ac_cv_prog_ac_ct_CC="gcc"
3849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3850     break 2
3851   fi
3852 done
3853   done
3854 IFS=$as_save_IFS
3855
3856 fi
3857 fi
3858 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3859 if test -n "$ac_ct_CC"; then
3860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3861 $as_echo "$ac_ct_CC" >&6; }
3862 else
3863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864 $as_echo "no" >&6; }
3865 fi
3866
3867   if test "x$ac_ct_CC" = x; then
3868     CC=""
3869   else
3870     case $cross_compiling:$ac_tool_warned in
3871 yes:)
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3874 ac_tool_warned=yes ;;
3875 esac
3876     CC=$ac_ct_CC
3877   fi
3878 else
3879   CC="$ac_cv_prog_CC"
3880 fi
3881
3882 if test -z "$CC"; then
3883           if test -n "$ac_tool_prefix"; then
3884     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3885 set dummy ${ac_tool_prefix}cc; ac_word=$2
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3887 $as_echo_n "checking for $ac_word... " >&6; }
3888 if ${ac_cv_prog_CC+:} false; then :
3889   $as_echo_n "(cached) " >&6
3890 else
3891   if test -n "$CC"; then
3892   ac_cv_prog_CC="$CC" # Let the user override the test.
3893 else
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 for as_dir in $PATH
3896 do
3897   IFS=$as_save_IFS
3898   test -z "$as_dir" && as_dir=.
3899     for ac_exec_ext in '' $ac_executable_extensions; do
3900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3901     ac_cv_prog_CC="${ac_tool_prefix}cc"
3902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3903     break 2
3904   fi
3905 done
3906   done
3907 IFS=$as_save_IFS
3908
3909 fi
3910 fi
3911 CC=$ac_cv_prog_CC
3912 if test -n "$CC"; then
3913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3914 $as_echo "$CC" >&6; }
3915 else
3916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3917 $as_echo "no" >&6; }
3918 fi
3919
3920
3921   fi
3922 fi
3923 if test -z "$CC"; then
3924   # Extract the first word of "cc", so it can be a program name with args.
3925 set dummy cc; ac_word=$2
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3927 $as_echo_n "checking for $ac_word... " >&6; }
3928 if ${ac_cv_prog_CC+:} false; then :
3929   $as_echo_n "(cached) " >&6
3930 else
3931   if test -n "$CC"; then
3932   ac_cv_prog_CC="$CC" # Let the user override the test.
3933 else
3934   ac_prog_rejected=no
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 for as_dir in $PATH
3937 do
3938   IFS=$as_save_IFS
3939   test -z "$as_dir" && as_dir=.
3940     for ac_exec_ext in '' $ac_executable_extensions; do
3941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3942     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3943        ac_prog_rejected=yes
3944        continue
3945      fi
3946     ac_cv_prog_CC="cc"
3947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3948     break 2
3949   fi
3950 done
3951   done
3952 IFS=$as_save_IFS
3953
3954 if test $ac_prog_rejected = yes; then
3955   # We found a bogon in the path, so make sure we never use it.
3956   set dummy $ac_cv_prog_CC
3957   shift
3958   if test $# != 0; then
3959     # We chose a different compiler from the bogus one.
3960     # However, it has the same basename, so the bogon will be chosen
3961     # first if we set CC to just the basename; use the full file name.
3962     shift
3963     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3964   fi
3965 fi
3966 fi
3967 fi
3968 CC=$ac_cv_prog_CC
3969 if test -n "$CC"; then
3970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3971 $as_echo "$CC" >&6; }
3972 else
3973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3974 $as_echo "no" >&6; }
3975 fi
3976
3977
3978 fi
3979 if test -z "$CC"; then
3980   if test -n "$ac_tool_prefix"; then
3981   for ac_prog in cl.exe
3982   do
3983     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3984 set dummy $ac_tool_prefix$ac_prog; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4000     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
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     test -n "$CC" && break
4021   done
4022 fi
4023 if test -z "$CC"; then
4024   ac_ct_CC=$CC
4025   for ac_prog in cl.exe
4026 do
4027   # Extract the first word of "$ac_prog", so it can be a program name with args.
4028 set dummy $ac_prog; ac_word=$2
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4030 $as_echo_n "checking for $ac_word... " >&6; }
4031 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4032   $as_echo_n "(cached) " >&6
4033 else
4034   if test -n "$ac_ct_CC"; then
4035   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4036 else
4037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038 for as_dir in $PATH
4039 do
4040   IFS=$as_save_IFS
4041   test -z "$as_dir" && as_dir=.
4042     for ac_exec_ext in '' $ac_executable_extensions; do
4043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4044     ac_cv_prog_ac_ct_CC="$ac_prog"
4045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4046     break 2
4047   fi
4048 done
4049   done
4050 IFS=$as_save_IFS
4051
4052 fi
4053 fi
4054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4055 if test -n "$ac_ct_CC"; then
4056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4057 $as_echo "$ac_ct_CC" >&6; }
4058 else
4059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4060 $as_echo "no" >&6; }
4061 fi
4062
4063
4064   test -n "$ac_ct_CC" && break
4065 done
4066
4067   if test "x$ac_ct_CC" = x; then
4068     CC=""
4069   else
4070     case $cross_compiling:$ac_tool_warned in
4071 yes:)
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4074 ac_tool_warned=yes ;;
4075 esac
4076     CC=$ac_ct_CC
4077   fi
4078 fi
4079
4080 fi
4081
4082
4083 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4085 as_fn_error $? "no acceptable C compiler found in \$PATH
4086 See \`config.log' for more details" "$LINENO" 5; }
4087
4088 # Provide some information about the compiler.
4089 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4090 set X $ac_compile
4091 ac_compiler=$2
4092 for ac_option in --version -v -V -qversion; do
4093   { { ac_try="$ac_compiler $ac_option >&5"
4094 case "(($ac_try" in
4095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096   *) ac_try_echo=$ac_try;;
4097 esac
4098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4099 $as_echo "$ac_try_echo"; } >&5
4100   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4101   ac_status=$?
4102   if test -s conftest.err; then
4103     sed '10a\
4104 ... rest of stderr output deleted ...
4105          10q' conftest.err >conftest.er1
4106     cat conftest.er1 >&5
4107   fi
4108   rm -f conftest.er1 conftest.err
4109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4110   test $ac_status = 0; }
4111 done
4112
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h.  */
4115
4116 int
4117 main ()
4118 {
4119
4120   ;
4121   return 0;
4122 }
4123 _ACEOF
4124 ac_clean_files_save=$ac_clean_files
4125 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4126 # Try to create an executable without -o first, disregard a.out.
4127 # It will help us diagnose broken compilers, and finding out an intuition
4128 # of exeext.
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4130 $as_echo_n "checking whether the C compiler works... " >&6; }
4131 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4132
4133 # The possible output files:
4134 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4135
4136 ac_rmfiles=
4137 for ac_file in $ac_files
4138 do
4139   case $ac_file in
4140     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4141     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4142   esac
4143 done
4144 rm -f $ac_rmfiles
4145
4146 if { { ac_try="$ac_link_default"
4147 case "(($ac_try" in
4148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149   *) ac_try_echo=$ac_try;;
4150 esac
4151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4152 $as_echo "$ac_try_echo"; } >&5
4153   (eval "$ac_link_default") 2>&5
4154   ac_status=$?
4155   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4156   test $ac_status = 0; }; then :
4157   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4158 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4159 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4160 # so that the user can short-circuit this test for compilers unknown to
4161 # Autoconf.
4162 for ac_file in $ac_files ''
4163 do
4164   test -f "$ac_file" || continue
4165   case $ac_file in
4166     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4167         ;;
4168     [ab].out )
4169         # We found the default executable, but exeext='' is most
4170         # certainly right.
4171         break;;
4172     *.* )
4173         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4174         then :; else
4175            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4176         fi
4177         # We set ac_cv_exeext here because the later test for it is not
4178         # safe: cross compilers may not add the suffix if given an `-o'
4179         # argument, so we may need to know it at that point already.
4180         # Even if this section looks crufty: it has the advantage of
4181         # actually working.
4182         break;;
4183     * )
4184         break;;
4185   esac
4186 done
4187 test "$ac_cv_exeext" = no && ac_cv_exeext=
4188
4189 else
4190   ac_file=''
4191 fi
4192 if test -z "$ac_file"; then :
4193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194 $as_echo "no" >&6; }
4195 $as_echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4197
4198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4200 as_fn_error 77 "C compiler cannot create executables
4201 See \`config.log' for more details" "$LINENO" 5; }
4202 else
4203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4204 $as_echo "yes" >&6; }
4205 fi
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4207 $as_echo_n "checking for C compiler default output file name... " >&6; }
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4209 $as_echo "$ac_file" >&6; }
4210 ac_exeext=$ac_cv_exeext
4211
4212 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4213 ac_clean_files=$ac_clean_files_save
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4215 $as_echo_n "checking for suffix of executables... " >&6; }
4216 if { { ac_try="$ac_link"
4217 case "(($ac_try" in
4218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219   *) ac_try_echo=$ac_try;;
4220 esac
4221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4222 $as_echo "$ac_try_echo"; } >&5
4223   (eval "$ac_link") 2>&5
4224   ac_status=$?
4225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4226   test $ac_status = 0; }; then :
4227   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4228 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4229 # work properly (i.e., refer to `conftest.exe'), while it won't with
4230 # `rm'.
4231 for ac_file in conftest.exe conftest conftest.*; do
4232   test -f "$ac_file" || continue
4233   case $ac_file in
4234     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4235     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4236           break;;
4237     * ) break;;
4238   esac
4239 done
4240 else
4241   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4243 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4244 See \`config.log' for more details" "$LINENO" 5; }
4245 fi
4246 rm -f conftest conftest$ac_cv_exeext
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4248 $as_echo "$ac_cv_exeext" >&6; }
4249
4250 rm -f conftest.$ac_ext
4251 EXEEXT=$ac_cv_exeext
4252 ac_exeext=$EXEEXT
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h.  */
4255 #include <stdio.h>
4256 int
4257 main ()
4258 {
4259 FILE *f = fopen ("conftest.out", "w");
4260  return ferror (f) || fclose (f) != 0;
4261
4262   ;
4263   return 0;
4264 }
4265 _ACEOF
4266 ac_clean_files="$ac_clean_files conftest.out"
4267 # Check that the compiler produces executables we can run.  If not, either
4268 # the compiler is broken, or we cross compile.
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4270 $as_echo_n "checking whether we are cross compiling... " >&6; }
4271 if test "$cross_compiling" != yes; then
4272   { { ac_try="$ac_link"
4273 case "(($ac_try" in
4274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275   *) ac_try_echo=$ac_try;;
4276 esac
4277 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4278 $as_echo "$ac_try_echo"; } >&5
4279   (eval "$ac_link") 2>&5
4280   ac_status=$?
4281   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4282   test $ac_status = 0; }
4283   if { ac_try='./conftest$ac_cv_exeext'
4284   { { case "(($ac_try" in
4285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286   *) ac_try_echo=$ac_try;;
4287 esac
4288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4289 $as_echo "$ac_try_echo"; } >&5
4290   (eval "$ac_try") 2>&5
4291   ac_status=$?
4292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4293   test $ac_status = 0; }; }; then
4294     cross_compiling=no
4295   else
4296     if test "$cross_compiling" = maybe; then
4297         cross_compiling=yes
4298     else
4299         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4301 as_fn_error $? "cannot run C compiled programs.
4302 If you meant to cross compile, use \`--host'.
4303 See \`config.log' for more details" "$LINENO" 5; }
4304     fi
4305   fi
4306 fi
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4308 $as_echo "$cross_compiling" >&6; }
4309
4310 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4311 ac_clean_files=$ac_clean_files_save
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4313 $as_echo_n "checking for suffix of object files... " >&6; }
4314 if ${ac_cv_objext+:} false; then :
4315   $as_echo_n "(cached) " >&6
4316 else
4317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h.  */
4319
4320 int
4321 main ()
4322 {
4323
4324   ;
4325   return 0;
4326 }
4327 _ACEOF
4328 rm -f conftest.o conftest.obj
4329 if { { ac_try="$ac_compile"
4330 case "(($ac_try" in
4331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332   *) ac_try_echo=$ac_try;;
4333 esac
4334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4335 $as_echo "$ac_try_echo"; } >&5
4336   (eval "$ac_compile") 2>&5
4337   ac_status=$?
4338   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4339   test $ac_status = 0; }; then :
4340   for ac_file in conftest.o conftest.obj conftest.*; do
4341   test -f "$ac_file" || continue;
4342   case $ac_file in
4343     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4344     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4345        break;;
4346   esac
4347 done
4348 else
4349   $as_echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4351
4352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4354 as_fn_error $? "cannot compute suffix of object files: cannot compile
4355 See \`config.log' for more details" "$LINENO" 5; }
4356 fi
4357 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4358 fi
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4360 $as_echo "$ac_cv_objext" >&6; }
4361 OBJEXT=$ac_cv_objext
4362 ac_objext=$OBJEXT
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4364 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4365 if ${ac_cv_c_compiler_gnu+:} false; then :
4366   $as_echo_n "(cached) " >&6
4367 else
4368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h.  */
4370
4371 int
4372 main ()
4373 {
4374 #ifndef __GNUC__
4375        choke me
4376 #endif
4377
4378   ;
4379   return 0;
4380 }
4381 _ACEOF
4382 if ac_fn_c_try_compile "$LINENO"; then :
4383   ac_compiler_gnu=yes
4384 else
4385   ac_compiler_gnu=no
4386 fi
4387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4388 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4389
4390 fi
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4392 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4393 if test $ac_compiler_gnu = yes; then
4394   GCC=yes
4395 else
4396   GCC=
4397 fi
4398 ac_test_CFLAGS=${CFLAGS+set}
4399 ac_save_CFLAGS=$CFLAGS
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4401 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4402 if ${ac_cv_prog_cc_g+:} false; then :
4403   $as_echo_n "(cached) " >&6
4404 else
4405   ac_save_c_werror_flag=$ac_c_werror_flag
4406    ac_c_werror_flag=yes
4407    ac_cv_prog_cc_g=no
4408    CFLAGS="-g"
4409    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h.  */
4411
4412 int
4413 main ()
4414 {
4415
4416   ;
4417   return 0;
4418 }
4419 _ACEOF
4420 if ac_fn_c_try_compile "$LINENO"; then :
4421   ac_cv_prog_cc_g=yes
4422 else
4423   CFLAGS=""
4424       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h.  */
4426
4427 int
4428 main ()
4429 {
4430
4431   ;
4432   return 0;
4433 }
4434 _ACEOF
4435 if ac_fn_c_try_compile "$LINENO"; then :
4436
4437 else
4438   ac_c_werror_flag=$ac_save_c_werror_flag
4439          CFLAGS="-g"
4440          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h.  */
4442
4443 int
4444 main ()
4445 {
4446
4447   ;
4448   return 0;
4449 }
4450 _ACEOF
4451 if ac_fn_c_try_compile "$LINENO"; then :
4452   ac_cv_prog_cc_g=yes
4453 fi
4454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4455 fi
4456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4457 fi
4458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4459    ac_c_werror_flag=$ac_save_c_werror_flag
4460 fi
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4462 $as_echo "$ac_cv_prog_cc_g" >&6; }
4463 if test "$ac_test_CFLAGS" = set; then
4464   CFLAGS=$ac_save_CFLAGS
4465 elif test $ac_cv_prog_cc_g = yes; then
4466   if test "$GCC" = yes; then
4467     CFLAGS="-g -O2"
4468   else
4469     CFLAGS="-g"
4470   fi
4471 else
4472   if test "$GCC" = yes; then
4473     CFLAGS="-O2"
4474   else
4475     CFLAGS=
4476   fi
4477 fi
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4479 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4480 if ${ac_cv_prog_cc_c89+:} false; then :
4481   $as_echo_n "(cached) " >&6
4482 else
4483   ac_cv_prog_cc_c89=no
4484 ac_save_CC=$CC
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h.  */
4487 #include <stdarg.h>
4488 #include <stdio.h>
4489 #include <sys/types.h>
4490 #include <sys/stat.h>
4491 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4492 struct buf { int x; };
4493 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4494 static char *e (p, i)
4495      char **p;
4496      int i;
4497 {
4498   return p[i];
4499 }
4500 static char *f (char * (*g) (char **, int), char **p, ...)
4501 {
4502   char *s;
4503   va_list v;
4504   va_start (v,p);
4505   s = g (p, va_arg (v,int));
4506   va_end (v);
4507   return s;
4508 }
4509
4510 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4511    function prototypes and stuff, but not '\xHH' hex character constants.
4512    These don't provoke an error unfortunately, instead are silently treated
4513    as 'x'.  The following induces an error, until -std is added to get
4514    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4515    array size at least.  It's necessary to write '\x00'==0 to get something
4516    that's true only with -std.  */
4517 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4518
4519 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4520    inside strings and character constants.  */
4521 #define FOO(x) 'x'
4522 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4523
4524 int test (int i, double x);
4525 struct s1 {int (*f) (int a);};
4526 struct s2 {int (*f) (double a);};
4527 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4528 int argc;
4529 char **argv;
4530 int
4531 main ()
4532 {
4533 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4534   ;
4535   return 0;
4536 }
4537 _ACEOF
4538 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4539         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4540 do
4541   CC="$ac_save_CC $ac_arg"
4542   if ac_fn_c_try_compile "$LINENO"; then :
4543   ac_cv_prog_cc_c89=$ac_arg
4544 fi
4545 rm -f core conftest.err conftest.$ac_objext
4546   test "x$ac_cv_prog_cc_c89" != "xno" && break
4547 done
4548 rm -f conftest.$ac_ext
4549 CC=$ac_save_CC
4550
4551 fi
4552 # AC_CACHE_VAL
4553 case "x$ac_cv_prog_cc_c89" in
4554   x)
4555     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4556 $as_echo "none needed" >&6; } ;;
4557   xno)
4558     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4559 $as_echo "unsupported" >&6; } ;;
4560   *)
4561     CC="$CC $ac_cv_prog_cc_c89"
4562     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4563 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4564 esac
4565 if test "x$ac_cv_prog_cc_c89" != xno; then :
4566
4567 fi
4568
4569 ac_ext=c
4570 ac_cpp='$CPP $CPPFLAGS'
4571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4574 DEPDIR="${am__leading_dot}deps"
4575
4576 ac_config_commands="$ac_config_commands depfiles"
4577
4578
4579 am_make=${MAKE-make}
4580 cat > confinc << 'END'
4581 am__doit:
4582         @echo this is the am__doit target
4583 .PHONY: am__doit
4584 END
4585 # If we don't find an include directive, just comment out the code.
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4587 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4588 am__include="#"
4589 am__quote=
4590 _am_result=none
4591 # First try GNU make style include.
4592 echo "include confinc" > confmf
4593 # Ignore all kinds of additional output from `make'.
4594 case `$am_make -s -f confmf 2> /dev/null` in #(
4595 *the\ am__doit\ target*)
4596   am__include=include
4597   am__quote=
4598   _am_result=GNU
4599   ;;
4600 esac
4601 # Now try BSD make style include.
4602 if test "$am__include" = "#"; then
4603    echo '.include "confinc"' > confmf
4604    case `$am_make -s -f confmf 2> /dev/null` in #(
4605    *the\ am__doit\ target*)
4606      am__include=.include
4607      am__quote="\""
4608      _am_result=BSD
4609      ;;
4610    esac
4611 fi
4612
4613
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4615 $as_echo "$_am_result" >&6; }
4616 rm -f confinc confmf
4617
4618 # Check whether --enable-dependency-tracking was given.
4619 if test "${enable_dependency_tracking+set}" = set; then :
4620   enableval=$enable_dependency_tracking;
4621 fi
4622
4623 if test "x$enable_dependency_tracking" != xno; then
4624   am_depcomp="$ac_aux_dir/depcomp"
4625   AMDEPBACKSLASH='\'
4626   am__nodep='_no'
4627 fi
4628  if test "x$enable_dependency_tracking" != xno; then
4629   AMDEP_TRUE=
4630   AMDEP_FALSE='#'
4631 else
4632   AMDEP_TRUE='#'
4633   AMDEP_FALSE=
4634 fi
4635
4636
4637
4638 depcc="$CC"   am_compiler_list=
4639
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4641 $as_echo_n "checking dependency style of $depcc... " >&6; }
4642 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4643   $as_echo_n "(cached) " >&6
4644 else
4645   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4646   # We make a subdir and do the tests there.  Otherwise we can end up
4647   # making bogus files that we don't know about and never remove.  For
4648   # instance it was reported that on HP-UX the gcc test will end up
4649   # making a dummy file named `D' -- because `-MD' means `put the output
4650   # in D'.
4651   rm -rf conftest.dir
4652   mkdir conftest.dir
4653   # Copy depcomp to subdir because otherwise we won't find it if we're
4654   # using a relative directory.
4655   cp "$am_depcomp" conftest.dir
4656   cd conftest.dir
4657   # We will build objects and dependencies in a subdirectory because
4658   # it helps to detect inapplicable dependency modes.  For instance
4659   # both Tru64's cc and ICC support -MD to output dependencies as a
4660   # side effect of compilation, but ICC will put the dependencies in
4661   # the current directory while Tru64 will put them in the object
4662   # directory.
4663   mkdir sub
4664
4665   am_cv_CC_dependencies_compiler_type=none
4666   if test "$am_compiler_list" = ""; then
4667      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4668   fi
4669   am__universal=false
4670   case " $depcc " in #(
4671      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4672      esac
4673
4674   for depmode in $am_compiler_list; do
4675     # Setup a source with many dependencies, because some compilers
4676     # like to wrap large dependency lists on column 80 (with \), and
4677     # we should not choose a depcomp mode which is confused by this.
4678     #
4679     # We need to recreate these files for each test, as the compiler may
4680     # overwrite some of them when testing with obscure command lines.
4681     # This happens at least with the AIX C compiler.
4682     : > sub/conftest.c
4683     for i in 1 2 3 4 5 6; do
4684       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4685       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4686       # Solaris 8's {/usr,}/bin/sh.
4687       touch sub/conftst$i.h
4688     done
4689     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4690
4691     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4692     # mode.  It turns out that the SunPro C++ compiler does not properly
4693     # handle `-M -o', and we need to detect this.  Also, some Intel
4694     # versions had trouble with output in subdirs
4695     am__obj=sub/conftest.${OBJEXT-o}
4696     am__minus_obj="-o $am__obj"
4697     case $depmode in
4698     gcc)
4699       # This depmode causes a compiler race in universal mode.
4700       test "$am__universal" = false || continue
4701       ;;
4702     nosideeffect)
4703       # after this tag, mechanisms are not by side-effect, so they'll
4704       # only be used when explicitly requested
4705       if test "x$enable_dependency_tracking" = xyes; then
4706         continue
4707       else
4708         break
4709       fi
4710       ;;
4711     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4712       # This compiler won't grok `-c -o', but also, the minuso test has
4713       # not run yet.  These depmodes are late enough in the game, and
4714       # so weak that their functioning should not be impacted.
4715       am__obj=conftest.${OBJEXT-o}
4716       am__minus_obj=
4717       ;;
4718     none) break ;;
4719     esac
4720     if depmode=$depmode \
4721        source=sub/conftest.c object=$am__obj \
4722        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4723        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4724          >/dev/null 2>conftest.err &&
4725        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4726        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4727        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4728        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4729       # icc doesn't choke on unknown options, it will just issue warnings
4730       # or remarks (even with -Werror).  So we grep stderr for any message
4731       # that says an option was ignored or not supported.
4732       # When given -MP, icc 7.0 and 7.1 complain thusly:
4733       #   icc: Command line warning: ignoring option '-M'; no argument required
4734       # The diagnosis changed in icc 8.0:
4735       #   icc: Command line remark: option '-MP' not supported
4736       if (grep 'ignoring option' conftest.err ||
4737           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4738         am_cv_CC_dependencies_compiler_type=$depmode
4739         break
4740       fi
4741     fi
4742   done
4743
4744   cd ..
4745   rm -rf conftest.dir
4746 else
4747   am_cv_CC_dependencies_compiler_type=none
4748 fi
4749
4750 fi
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4752 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4753 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4754
4755  if
4756   test "x$enable_dependency_tracking" != xno \
4757   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4758   am__fastdepCC_TRUE=
4759   am__fastdepCC_FALSE='#'
4760 else
4761   am__fastdepCC_TRUE='#'
4762   am__fastdepCC_FALSE=
4763 fi
4764
4765
4766
4767 ac_ext=c
4768 ac_cpp='$CPP $CPPFLAGS'
4769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4773 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4774 # On Suns, sometimes $CPP names a directory.
4775 if test -n "$CPP" && test -d "$CPP"; then
4776   CPP=
4777 fi
4778 if test -z "$CPP"; then
4779   if ${ac_cv_prog_CPP+:} false; then :
4780   $as_echo_n "(cached) " >&6
4781 else
4782       # Double quotes because CPP needs to be expanded
4783     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4784     do
4785       ac_preproc_ok=false
4786 for ac_c_preproc_warn_flag in '' yes
4787 do
4788   # Use a header file that comes with gcc, so configuring glibc
4789   # with a fresh cross-compiler works.
4790   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4791   # <limits.h> exists even on freestanding compilers.
4792   # On the NeXT, cc -E runs the code through the compiler's parser,
4793   # not just through cpp. "Syntax error" is here to catch this case.
4794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h.  */
4796 #ifdef __STDC__
4797 # include <limits.h>
4798 #else
4799 # include <assert.h>
4800 #endif
4801                      Syntax error
4802 _ACEOF
4803 if ac_fn_c_try_cpp "$LINENO"; then :
4804
4805 else
4806   # Broken: fails on valid input.
4807 continue
4808 fi
4809 rm -f conftest.err conftest.i conftest.$ac_ext
4810
4811   # OK, works on sane cases.  Now check whether nonexistent headers
4812   # can be detected and how.
4813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h.  */
4815 #include <ac_nonexistent.h>
4816 _ACEOF
4817 if ac_fn_c_try_cpp "$LINENO"; then :
4818   # Broken: success on invalid input.
4819 continue
4820 else
4821   # Passes both tests.
4822 ac_preproc_ok=:
4823 break
4824 fi
4825 rm -f conftest.err conftest.i conftest.$ac_ext
4826
4827 done
4828 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4829 rm -f conftest.i conftest.err conftest.$ac_ext
4830 if $ac_preproc_ok; then :
4831   break
4832 fi
4833
4834     done
4835     ac_cv_prog_CPP=$CPP
4836
4837 fi
4838   CPP=$ac_cv_prog_CPP
4839 else
4840   ac_cv_prog_CPP=$CPP
4841 fi
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4843 $as_echo "$CPP" >&6; }
4844 ac_preproc_ok=false
4845 for ac_c_preproc_warn_flag in '' yes
4846 do
4847   # Use a header file that comes with gcc, so configuring glibc
4848   # with a fresh cross-compiler works.
4849   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4850   # <limits.h> exists even on freestanding compilers.
4851   # On the NeXT, cc -E runs the code through the compiler's parser,
4852   # not just through cpp. "Syntax error" is here to catch this case.
4853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4854 /* end confdefs.h.  */
4855 #ifdef __STDC__
4856 # include <limits.h>
4857 #else
4858 # include <assert.h>
4859 #endif
4860                      Syntax error
4861 _ACEOF
4862 if ac_fn_c_try_cpp "$LINENO"; then :
4863
4864 else
4865   # Broken: fails on valid input.
4866 continue
4867 fi
4868 rm -f conftest.err conftest.i conftest.$ac_ext
4869
4870   # OK, works on sane cases.  Now check whether nonexistent headers
4871   # can be detected and how.
4872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h.  */
4874 #include <ac_nonexistent.h>
4875 _ACEOF
4876 if ac_fn_c_try_cpp "$LINENO"; then :
4877   # Broken: success on invalid input.
4878 continue
4879 else
4880   # Passes both tests.
4881 ac_preproc_ok=:
4882 break
4883 fi
4884 rm -f conftest.err conftest.i conftest.$ac_ext
4885
4886 done
4887 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4888 rm -f conftest.i conftest.err conftest.$ac_ext
4889 if $ac_preproc_ok; then :
4890
4891 else
4892   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4894 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4895 See \`config.log' for more details" "$LINENO" 5; }
4896 fi
4897
4898 ac_ext=c
4899 ac_cpp='$CPP $CPPFLAGS'
4900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4903
4904
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4906 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4907 if ${ac_cv_path_GREP+:} false; then :
4908   $as_echo_n "(cached) " >&6
4909 else
4910   if test -z "$GREP"; then
4911   ac_path_GREP_found=false
4912   # Loop through the user's path and test for each of PROGNAME-LIST
4913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4915 do
4916   IFS=$as_save_IFS
4917   test -z "$as_dir" && as_dir=.
4918     for ac_prog in grep ggrep; do
4919     for ac_exec_ext in '' $ac_executable_extensions; do
4920       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4921       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4922 # Check for GNU ac_path_GREP and select it if it is found.
4923   # Check for GNU $ac_path_GREP
4924 case `"$ac_path_GREP" --version 2>&1` in
4925 *GNU*)
4926   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4927 *)
4928   ac_count=0
4929   $as_echo_n 0123456789 >"conftest.in"
4930   while :
4931   do
4932     cat "conftest.in" "conftest.in" >"conftest.tmp"
4933     mv "conftest.tmp" "conftest.in"
4934     cp "conftest.in" "conftest.nl"
4935     $as_echo 'GREP' >> "conftest.nl"
4936     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4937     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4938     as_fn_arith $ac_count + 1 && ac_count=$as_val
4939     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4940       # Best one so far, save it but keep looking for a better one
4941       ac_cv_path_GREP="$ac_path_GREP"
4942       ac_path_GREP_max=$ac_count
4943     fi
4944     # 10*(2^10) chars as input seems more than enough
4945     test $ac_count -gt 10 && break
4946   done
4947   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4948 esac
4949
4950       $ac_path_GREP_found && break 3
4951     done
4952   done
4953   done
4954 IFS=$as_save_IFS
4955   if test -z "$ac_cv_path_GREP"; then
4956     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4957   fi
4958 else
4959   ac_cv_path_GREP=$GREP
4960 fi
4961
4962 fi
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4964 $as_echo "$ac_cv_path_GREP" >&6; }
4965  GREP="$ac_cv_path_GREP"
4966
4967
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4969 $as_echo_n "checking for egrep... " >&6; }
4970 if ${ac_cv_path_EGREP+:} false; then :
4971   $as_echo_n "(cached) " >&6
4972 else
4973   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4974    then ac_cv_path_EGREP="$GREP -E"
4975    else
4976      if test -z "$EGREP"; then
4977   ac_path_EGREP_found=false
4978   # Loop through the user's path and test for each of PROGNAME-LIST
4979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4981 do
4982   IFS=$as_save_IFS
4983   test -z "$as_dir" && as_dir=.
4984     for ac_prog in egrep; do
4985     for ac_exec_ext in '' $ac_executable_extensions; do
4986       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4987       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4988 # Check for GNU ac_path_EGREP and select it if it is found.
4989   # Check for GNU $ac_path_EGREP
4990 case `"$ac_path_EGREP" --version 2>&1` in
4991 *GNU*)
4992   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4993 *)
4994   ac_count=0
4995   $as_echo_n 0123456789 >"conftest.in"
4996   while :
4997   do
4998     cat "conftest.in" "conftest.in" >"conftest.tmp"
4999     mv "conftest.tmp" "conftest.in"
5000     cp "conftest.in" "conftest.nl"
5001     $as_echo 'EGREP' >> "conftest.nl"
5002     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5003     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5004     as_fn_arith $ac_count + 1 && ac_count=$as_val
5005     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5006       # Best one so far, save it but keep looking for a better one
5007       ac_cv_path_EGREP="$ac_path_EGREP"
5008       ac_path_EGREP_max=$ac_count
5009     fi
5010     # 10*(2^10) chars as input seems more than enough
5011     test $ac_count -gt 10 && break
5012   done
5013   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5014 esac
5015
5016       $ac_path_EGREP_found && break 3
5017     done
5018   done
5019   done
5020 IFS=$as_save_IFS
5021   if test -z "$ac_cv_path_EGREP"; then
5022     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5023   fi
5024 else
5025   ac_cv_path_EGREP=$EGREP
5026 fi
5027
5028    fi
5029 fi
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5031 $as_echo "$ac_cv_path_EGREP" >&6; }
5032  EGREP="$ac_cv_path_EGREP"
5033
5034
5035
5036
5037   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5038 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5039 if ${gl_cv_c_amsterdam_compiler+:} false; then :
5040   $as_echo_n "(cached) " >&6
5041 else
5042
5043       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h.  */
5045
5046 #ifdef __ACK__
5047 Amsterdam
5048 #endif
5049
5050 _ACEOF
5051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5052   $EGREP "Amsterdam" >/dev/null 2>&1; then :
5053   gl_cv_c_amsterdam_compiler=yes
5054 else
5055   gl_cv_c_amsterdam_compiler=no
5056 fi
5057 rm -f conftest*
5058
5059
5060 fi
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
5062 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
5063   if test -z "$AR"; then
5064     if test $gl_cv_c_amsterdam_compiler = yes; then
5065       AR='cc -c.a'
5066       if test -z "$ARFLAGS"; then
5067         ARFLAGS='-o'
5068       fi
5069     else
5070                   if test -n "$ac_tool_prefix"; then
5071   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5072 set dummy ${ac_tool_prefix}ar; ac_word=$2
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if ${ac_cv_prog_AR+:} false; then :
5076   $as_echo_n "(cached) " >&6
5077 else
5078   if test -n "$AR"; then
5079   ac_cv_prog_AR="$AR" # Let the user override the test.
5080 else
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in $PATH
5083 do
5084   IFS=$as_save_IFS
5085   test -z "$as_dir" && as_dir=.
5086     for ac_exec_ext in '' $ac_executable_extensions; do
5087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088     ac_cv_prog_AR="${ac_tool_prefix}ar"
5089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090     break 2
5091   fi
5092 done
5093   done
5094 IFS=$as_save_IFS
5095
5096 fi
5097 fi
5098 AR=$ac_cv_prog_AR
5099 if test -n "$AR"; then
5100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5101 $as_echo "$AR" >&6; }
5102 else
5103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
5105 fi
5106
5107
5108 fi
5109 if test -z "$ac_cv_prog_AR"; then
5110   ac_ct_AR=$AR
5111   # Extract the first word of "ar", so it can be a program name with args.
5112 set dummy ar; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5116   $as_echo_n "(cached) " >&6
5117 else
5118   if test -n "$ac_ct_AR"; then
5119   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5120 else
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH
5123 do
5124   IFS=$as_save_IFS
5125   test -z "$as_dir" && as_dir=.
5126     for ac_exec_ext in '' $ac_executable_extensions; do
5127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128     ac_cv_prog_ac_ct_AR="ar"
5129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130     break 2
5131   fi
5132 done
5133   done
5134 IFS=$as_save_IFS
5135
5136 fi
5137 fi
5138 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5139 if test -n "$ac_ct_AR"; then
5140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5141 $as_echo "$ac_ct_AR" >&6; }
5142 else
5143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 $as_echo "no" >&6; }
5145 fi
5146
5147   if test "x$ac_ct_AR" = x; then
5148     AR="ar"
5149   else
5150     case $cross_compiling:$ac_tool_warned in
5151 yes:)
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5154 ac_tool_warned=yes ;;
5155 esac
5156     AR=$ac_ct_AR
5157   fi
5158 else
5159   AR="$ac_cv_prog_AR"
5160 fi
5161
5162       if test -z "$ARFLAGS"; then
5163         ARFLAGS='cru'
5164       fi
5165     fi
5166   else
5167     if test -z "$ARFLAGS"; then
5168       ARFLAGS='cru'
5169     fi
5170   fi
5171
5172
5173   if test -z "$RANLIB"; then
5174     if test $gl_cv_c_amsterdam_compiler = yes; then
5175       RANLIB=':'
5176     else
5177             if test -n "$ac_tool_prefix"; then
5178   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5179 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if ${ac_cv_prog_RANLIB+:} false; then :
5183   $as_echo_n "(cached) " >&6
5184 else
5185   if test -n "$RANLIB"; then
5186   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5187 else
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5190 do
5191   IFS=$as_save_IFS
5192   test -z "$as_dir" && as_dir=.
5193     for ac_exec_ext in '' $ac_executable_extensions; do
5194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5195     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197     break 2
5198   fi
5199 done
5200   done
5201 IFS=$as_save_IFS
5202
5203 fi
5204 fi
5205 RANLIB=$ac_cv_prog_RANLIB
5206 if test -n "$RANLIB"; then
5207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5208 $as_echo "$RANLIB" >&6; }
5209 else
5210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5212 fi
5213
5214
5215 fi
5216 if test -z "$ac_cv_prog_RANLIB"; then
5217   ac_ct_RANLIB=$RANLIB
5218   # Extract the first word of "ranlib", so it can be a program name with args.
5219 set dummy ranlib; ac_word=$2
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221 $as_echo_n "checking for $ac_word... " >&6; }
5222 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5223   $as_echo_n "(cached) " >&6
5224 else
5225   if test -n "$ac_ct_RANLIB"; then
5226   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5227 else
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH
5230 do
5231   IFS=$as_save_IFS
5232   test -z "$as_dir" && as_dir=.
5233     for ac_exec_ext in '' $ac_executable_extensions; do
5234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5235     ac_cv_prog_ac_ct_RANLIB="ranlib"
5236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237     break 2
5238   fi
5239 done
5240   done
5241 IFS=$as_save_IFS
5242
5243 fi
5244 fi
5245 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5246 if test -n "$ac_ct_RANLIB"; then
5247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5248 $as_echo "$ac_ct_RANLIB" >&6; }
5249 else
5250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5252 fi
5253
5254   if test "x$ac_ct_RANLIB" = x; then
5255     RANLIB=":"
5256   else
5257     case $cross_compiling:$ac_tool_warned in
5258 yes:)
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5261 ac_tool_warned=yes ;;
5262 esac
5263     RANLIB=$ac_ct_RANLIB
5264   fi
5265 else
5266   RANLIB="$ac_cv_prog_RANLIB"
5267 fi
5268
5269     fi
5270   fi
5271
5272
5273 # Make sure we can run config.sub.
5274 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5275   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5276
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5278 $as_echo_n "checking build system type... " >&6; }
5279 if ${ac_cv_build+:} false; then :
5280   $as_echo_n "(cached) " >&6
5281 else
5282   ac_build_alias=$build_alias
5283 test "x$ac_build_alias" = x &&
5284   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5285 test "x$ac_build_alias" = x &&
5286   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5287 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5288   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5289
5290 fi
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5292 $as_echo "$ac_cv_build" >&6; }
5293 case $ac_cv_build in
5294 *-*-*) ;;
5295 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5296 esac
5297 build=$ac_cv_build
5298 ac_save_IFS=$IFS; IFS='-'
5299 set x $ac_cv_build
5300 shift
5301 build_cpu=$1
5302 build_vendor=$2
5303 shift; shift
5304 # Remember, the first character of IFS is used to create $*,
5305 # except with old shells:
5306 build_os=$*
5307 IFS=$ac_save_IFS
5308 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5309
5310
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5312 $as_echo_n "checking host system type... " >&6; }
5313 if ${ac_cv_host+:} false; then :
5314   $as_echo_n "(cached) " >&6
5315 else
5316   if test "x$host_alias" = x; then
5317   ac_cv_host=$ac_cv_build
5318 else
5319   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5320     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5321 fi
5322
5323 fi
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5325 $as_echo "$ac_cv_host" >&6; }
5326 case $ac_cv_host in
5327 *-*-*) ;;
5328 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5329 esac
5330 host=$ac_cv_host
5331 ac_save_IFS=$IFS; IFS='-'
5332 set x $ac_cv_host
5333 shift
5334 host_cpu=$1
5335 host_vendor=$2
5336 shift; shift
5337 # Remember, the first character of IFS is used to create $*,
5338 # except with old shells:
5339 host_os=$*
5340 IFS=$ac_save_IFS
5341 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5342
5343
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5345 $as_echo_n "checking for ANSI C header files... " >&6; }
5346 if ${ac_cv_header_stdc+:} false; then :
5347   $as_echo_n "(cached) " >&6
5348 else
5349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h.  */
5351 #include <stdlib.h>
5352 #include <stdarg.h>
5353 #include <string.h>
5354 #include <float.h>
5355
5356 int
5357 main ()
5358 {
5359
5360   ;
5361   return 0;
5362 }
5363 _ACEOF
5364 if ac_fn_c_try_compile "$LINENO"; then :
5365   ac_cv_header_stdc=yes
5366 else
5367   ac_cv_header_stdc=no
5368 fi
5369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5370
5371 if test $ac_cv_header_stdc = yes; then
5372   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374 /* end confdefs.h.  */
5375 #include <string.h>
5376
5377 _ACEOF
5378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5379   $EGREP "memchr" >/dev/null 2>&1; then :
5380
5381 else
5382   ac_cv_header_stdc=no
5383 fi
5384 rm -f conftest*
5385
5386 fi
5387
5388 if test $ac_cv_header_stdc = yes; then
5389   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h.  */
5392 #include <stdlib.h>
5393
5394 _ACEOF
5395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5396   $EGREP "free" >/dev/null 2>&1; then :
5397
5398 else
5399   ac_cv_header_stdc=no
5400 fi
5401 rm -f conftest*
5402
5403 fi
5404
5405 if test $ac_cv_header_stdc = yes; then
5406   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5407   if test "$cross_compiling" = yes; then :
5408   :
5409 else
5410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h.  */
5412 #include <ctype.h>
5413 #include <stdlib.h>
5414 #if ((' ' & 0x0FF) == 0x020)
5415 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5416 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5417 #else
5418 # define ISLOWER(c) \
5419                    (('a' <= (c) && (c) <= 'i') \
5420                      || ('j' <= (c) && (c) <= 'r') \
5421                      || ('s' <= (c) && (c) <= 'z'))
5422 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5423 #endif
5424
5425 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5426 int
5427 main ()
5428 {
5429   int i;
5430   for (i = 0; i < 256; i++)
5431     if (XOR (islower (i), ISLOWER (i))
5432         || toupper (i) != TOUPPER (i))
5433       return 2;
5434   return 0;
5435 }
5436 _ACEOF
5437 if ac_fn_c_try_run "$LINENO"; then :
5438
5439 else
5440   ac_cv_header_stdc=no
5441 fi
5442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5443   conftest.$ac_objext conftest.beam conftest.$ac_ext
5444 fi
5445
5446 fi
5447 fi
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5449 $as_echo "$ac_cv_header_stdc" >&6; }
5450 if test $ac_cv_header_stdc = yes; then
5451
5452 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5453
5454 fi
5455
5456 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5457 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5458                   inttypes.h stdint.h unistd.h
5459 do :
5460   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5461 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5462 "
5463 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5464   cat >>confdefs.h <<_ACEOF
5465 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5466 _ACEOF
5467
5468 fi
5469
5470 done
5471
5472
5473
5474
5475
5476   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5477 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5478   MINIX=yes
5479 else
5480   MINIX=
5481 fi
5482
5483
5484   if test "$MINIX" = yes; then
5485
5486 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5487
5488
5489 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5490
5491
5492 $as_echo "#define _MINIX 1" >>confdefs.h
5493
5494   fi
5495
5496         case "$host_os" in
5497     hpux*)
5498
5499 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5500
5501       ;;
5502   esac
5503
5504
5505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5506 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5507 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5508   $as_echo_n "(cached) " >&6
5509 else
5510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h.  */
5512
5513 #         define __EXTENSIONS__ 1
5514           $ac_includes_default
5515 int
5516 main ()
5517 {
5518
5519   ;
5520   return 0;
5521 }
5522 _ACEOF
5523 if ac_fn_c_try_compile "$LINENO"; then :
5524   ac_cv_safe_to_define___extensions__=yes
5525 else
5526   ac_cv_safe_to_define___extensions__=no
5527 fi
5528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5529 fi
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5531 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5532   test $ac_cv_safe_to_define___extensions__ = yes &&
5533     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5534
5535   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5536
5537   $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5538
5539   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5540
5541   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5542
5543   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555   # IEEE behaviour is the default on all CPUs except Alpha and SH
5556   # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5557   # and the GCC 4.1.2 manual).
5558   case "$host_cpu" in
5559     alpha*)
5560       # On Alpha systems, a compiler option provides the behaviour.
5561       # See the ieee(3) manual page, also available at
5562       # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5563       if test -n "$GCC"; then
5564         # GCC has the option -mieee.
5565         # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
5566         CPPFLAGS="$CPPFLAGS -mieee"
5567       else
5568         # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
5569         # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
5570         CPPFLAGS="$CPPFLAGS -ieee"
5571       fi
5572       ;;
5573     sh*)
5574       if test -n "$GCC"; then
5575         # GCC has the option -mieee.
5576         CPPFLAGS="$CPPFLAGS -mieee"
5577       fi
5578       ;;
5579   esac
5580
5581
5582
5583   # Code from module alloca-opt:
5584   # Code from module alloca-opt-tests:
5585   # Code from module base64:
5586   # Code from module base64-tests:
5587   # Code from module c-ctype:
5588   # Code from module c-ctype-tests:
5589   # Code from module crypto/gc:
5590   # Code from module crypto/gc-hmac-md5:
5591   # Code from module crypto/gc-hmac-md5-tests:
5592   # Code from module crypto/gc-hmac-sha1:
5593   # Code from module crypto/gc-hmac-sha1-tests:
5594   # Code from module crypto/gc-md5:
5595   # Code from module crypto/gc-md5-tests:
5596   # Code from module crypto/gc-pbkdf2-sha1:
5597   # Code from module crypto/gc-pbkdf2-sha1-tests:
5598   # Code from module crypto/gc-random:
5599   # Code from module crypto/gc-sha1:
5600   # Code from module crypto/gc-sha1-tests:
5601   # Code from module crypto/gc-tests:
5602   # Code from module crypto/hmac-md5:
5603   # Code from module crypto/hmac-md5-tests:
5604   # Code from module crypto/hmac-sha1:
5605   # Code from module crypto/hmac-sha1-tests:
5606   # Code from module crypto/md5:
5607   # Code from module crypto/md5-tests:
5608   # Code from module crypto/sha1:
5609   # Code from module crypto/sha1-tests:
5610   # Code from module errno:
5611   # Code from module errno-tests:
5612   # Code from module extensions:
5613
5614   # Code from module fdopen:
5615   # Code from module fdopen-tests:
5616   # Code from module fgetc-tests:
5617   # Code from module float:
5618   # Code from module float-tests:
5619   # Code from module fpieee:
5620
5621   # Code from module fpucw:
5622   # Code from module fputc-tests:
5623   # Code from module fread-tests:
5624   # Code from module fwrite-tests:
5625   # Code from module getdelim:
5626   # Code from module getdelim-tests:
5627   # Code from module getline:
5628   # Code from module getline-tests:
5629   # Code from module getpagesize:
5630   # Code from module gettext:
5631   # Code from module gettext-h:
5632   # Code from module gnumakefile:
5633   # Code from module gss-extra:
5634   # Code from module havelib:
5635   # Code from module include_next:
5636   # Code from module intprops:
5637   # Code from module intprops-tests:
5638   # Code from module inttypes:
5639   # Code from module inttypes-incomplete:
5640   # Code from module inttypes-tests:
5641   # Code from module lib-msvc-compat:
5642   # Code from module lib-symbol-versions:
5643   # Code from module lib-symbol-visibility:
5644   # Code from module maintainer-makefile:
5645   # Code from module memchr:
5646   # Code from module memchr-tests:
5647   # Code from module memmem:
5648   # Code from module memmem-simple:
5649   # Code from module memmem-tests:
5650   # Code from module memxor:
5651   # Code from module minmax:
5652   # Code from module msvc-inval:
5653   # Code from module multiarch:
5654   # Code from module realloc-posix:
5655   # Code from module size_max:
5656   # Code from module snippet/_Noreturn:
5657   # Code from module snippet/arg-nonnull:
5658   # Code from module snippet/c++defs:
5659   # Code from module snippet/warn-on-use:
5660   # Code from module ssize_t:
5661   # Code from module stdalign:
5662   # Code from module stdalign-tests:
5663   # Code from module stdbool:
5664   # Code from module stdbool-tests:
5665   # Code from module stddef:
5666   # Code from module stddef-tests:
5667   # Code from module stdint:
5668   # Code from module stdint-tests:
5669   # Code from module stdio:
5670   # Code from module stdio-tests:
5671   # Code from module stdlib:
5672   # Code from module stdlib-tests:
5673   # Code from module string:
5674   # Code from module string-tests:
5675   # Code from module strndup:
5676   # Code from module strnlen:
5677   # Code from module strnlen-tests:
5678   # Code from module strverscmp:
5679   # Code from module strverscmp-tests:
5680   # Code from module sys_types:
5681   # Code from module sys_types-tests:
5682   # Code from module test-framework-sh:
5683   # Code from module test-framework-sh-tests:
5684   # Code from module unistd:
5685   # Code from module unistd-tests:
5686   # Code from module useless-if-before-free:
5687   # Code from module vasnprintf:
5688   # Code from module vasnprintf-tests:
5689   # Code from module vasprintf:
5690   # Code from module vasprintf-tests:
5691   # Code from module vc-list-files:
5692   # Code from module verify:
5693   # Code from module verify-tests:
5694   # Code from module wchar:
5695   # Code from module wchar-tests:
5696   # Code from module xsize:
5697
5698 enable_win32_dll=yes
5699
5700 case $host in
5701 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
5702   if test -n "$ac_tool_prefix"; then
5703   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5704 set dummy ${ac_tool_prefix}as; ac_word=$2
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706 $as_echo_n "checking for $ac_word... " >&6; }
5707 if ${ac_cv_prog_AS+:} false; then :
5708   $as_echo_n "(cached) " >&6
5709 else
5710   if test -n "$AS"; then
5711   ac_cv_prog_AS="$AS" # Let the user override the test.
5712 else
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714 for as_dir in $PATH
5715 do
5716   IFS=$as_save_IFS
5717   test -z "$as_dir" && as_dir=.
5718     for ac_exec_ext in '' $ac_executable_extensions; do
5719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5720     ac_cv_prog_AS="${ac_tool_prefix}as"
5721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5722     break 2
5723   fi
5724 done
5725   done
5726 IFS=$as_save_IFS
5727
5728 fi
5729 fi
5730 AS=$ac_cv_prog_AS
5731 if test -n "$AS"; then
5732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5733 $as_echo "$AS" >&6; }
5734 else
5735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736 $as_echo "no" >&6; }
5737 fi
5738
5739
5740 fi
5741 if test -z "$ac_cv_prog_AS"; then
5742   ac_ct_AS=$AS
5743   # Extract the first word of "as", so it can be a program name with args.
5744 set dummy as; ac_word=$2
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5746 $as_echo_n "checking for $ac_word... " >&6; }
5747 if ${ac_cv_prog_ac_ct_AS+:} false; then :
5748   $as_echo_n "(cached) " >&6
5749 else
5750   if test -n "$ac_ct_AS"; then
5751   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5752 else
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 for as_dir in $PATH
5755 do
5756   IFS=$as_save_IFS
5757   test -z "$as_dir" && as_dir=.
5758     for ac_exec_ext in '' $ac_executable_extensions; do
5759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5760     ac_cv_prog_ac_ct_AS="as"
5761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5762     break 2
5763   fi
5764 done
5765   done
5766 IFS=$as_save_IFS
5767
5768 fi
5769 fi
5770 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5771 if test -n "$ac_ct_AS"; then
5772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5773 $as_echo "$ac_ct_AS" >&6; }
5774 else
5775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776 $as_echo "no" >&6; }
5777 fi
5778
5779   if test "x$ac_ct_AS" = x; then
5780     AS="false"
5781   else
5782     case $cross_compiling:$ac_tool_warned in
5783 yes:)
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5786 ac_tool_warned=yes ;;
5787 esac
5788     AS=$ac_ct_AS
5789   fi
5790 else
5791   AS="$ac_cv_prog_AS"
5792 fi
5793
5794   if test -n "$ac_tool_prefix"; then
5795   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5796 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5798 $as_echo_n "checking for $ac_word... " >&6; }
5799 if ${ac_cv_prog_DLLTOOL+:} false; then :
5800   $as_echo_n "(cached) " >&6
5801 else
5802   if test -n "$DLLTOOL"; then
5803   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5804 else
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH
5807 do
5808   IFS=$as_save_IFS
5809   test -z "$as_dir" && as_dir=.
5810     for ac_exec_ext in '' $ac_executable_extensions; do
5811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5812     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5814     break 2
5815   fi
5816 done
5817   done
5818 IFS=$as_save_IFS
5819
5820 fi
5821 fi
5822 DLLTOOL=$ac_cv_prog_DLLTOOL
5823 if test -n "$DLLTOOL"; then
5824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5825 $as_echo "$DLLTOOL" >&6; }
5826 else
5827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 $as_echo "no" >&6; }
5829 fi
5830
5831
5832 fi
5833 if test -z "$ac_cv_prog_DLLTOOL"; then
5834   ac_ct_DLLTOOL=$DLLTOOL
5835   # Extract the first word of "dlltool", so it can be a program name with args.
5836 set dummy dlltool; ac_word=$2
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5838 $as_echo_n "checking for $ac_word... " >&6; }
5839 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5840   $as_echo_n "(cached) " >&6
5841 else
5842   if test -n "$ac_ct_DLLTOOL"; then
5843   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5844 else
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 for as_dir in $PATH
5847 do
5848   IFS=$as_save_IFS
5849   test -z "$as_dir" && as_dir=.
5850     for ac_exec_ext in '' $ac_executable_extensions; do
5851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5852     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5854     break 2
5855   fi
5856 done
5857   done
5858 IFS=$as_save_IFS
5859
5860 fi
5861 fi
5862 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5863 if test -n "$ac_ct_DLLTOOL"; then
5864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5865 $as_echo "$ac_ct_DLLTOOL" >&6; }
5866 else
5867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868 $as_echo "no" >&6; }
5869 fi
5870
5871   if test "x$ac_ct_DLLTOOL" = x; then
5872     DLLTOOL="false"
5873   else
5874     case $cross_compiling:$ac_tool_warned in
5875 yes:)
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5878 ac_tool_warned=yes ;;
5879 esac
5880     DLLTOOL=$ac_ct_DLLTOOL
5881   fi
5882 else
5883   DLLTOOL="$ac_cv_prog_DLLTOOL"
5884 fi
5885
5886   if test -n "$ac_tool_prefix"; then
5887   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5888 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890 $as_echo_n "checking for $ac_word... " >&6; }
5891 if ${ac_cv_prog_OBJDUMP+:} false; then :
5892   $as_echo_n "(cached) " >&6
5893 else
5894   if test -n "$OBJDUMP"; then
5895   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5896 else
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH
5899 do
5900   IFS=$as_save_IFS
5901   test -z "$as_dir" && as_dir=.
5902     for ac_exec_ext in '' $ac_executable_extensions; do
5903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5904     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5906     break 2
5907   fi
5908 done
5909   done
5910 IFS=$as_save_IFS
5911
5912 fi
5913 fi
5914 OBJDUMP=$ac_cv_prog_OBJDUMP
5915 if test -n "$OBJDUMP"; then
5916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5917 $as_echo "$OBJDUMP" >&6; }
5918 else
5919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920 $as_echo "no" >&6; }
5921 fi
5922
5923
5924 fi
5925 if test -z "$ac_cv_prog_OBJDUMP"; then
5926   ac_ct_OBJDUMP=$OBJDUMP
5927   # Extract the first word of "objdump", so it can be a program name with args.
5928 set dummy objdump; ac_word=$2
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5930 $as_echo_n "checking for $ac_word... " >&6; }
5931 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5932   $as_echo_n "(cached) " >&6
5933 else
5934   if test -n "$ac_ct_OBJDUMP"; then
5935   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5936 else
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5939 do
5940   IFS=$as_save_IFS
5941   test -z "$as_dir" && as_dir=.
5942     for ac_exec_ext in '' $ac_executable_extensions; do
5943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5944     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5946     break 2
5947   fi
5948 done
5949   done
5950 IFS=$as_save_IFS
5951
5952 fi
5953 fi
5954 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5955 if test -n "$ac_ct_OBJDUMP"; then
5956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5957 $as_echo "$ac_ct_OBJDUMP" >&6; }
5958 else
5959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960 $as_echo "no" >&6; }
5961 fi
5962
5963   if test "x$ac_ct_OBJDUMP" = x; then
5964     OBJDUMP="false"
5965   else
5966     case $cross_compiling:$ac_tool_warned in
5967 yes:)
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5970 ac_tool_warned=yes ;;
5971 esac
5972     OBJDUMP=$ac_ct_OBJDUMP
5973   fi
5974 else
5975   OBJDUMP="$ac_cv_prog_OBJDUMP"
5976 fi
5977
5978   ;;
5979 esac
5980
5981 test -z "$AS" && AS=as
5982
5983
5984
5985
5986
5987 test -z "$DLLTOOL" && DLLTOOL=dlltool
5988
5989
5990
5991
5992
5993 test -z "$OBJDUMP" && OBJDUMP=objdump
5994
5995
5996
5997
5998
5999
6000
6001 case `pwd` in
6002   *\ * | *\     *)
6003     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6004 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6005 esac
6006
6007
6008
6009 macro_version='2.4.2'
6010 macro_revision='1.3337'
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024 ltmain="$ac_aux_dir/ltmain.sh"
6025
6026 # Backslashify metacharacters that are still active within
6027 # double-quoted strings.
6028 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6029
6030 # Same as above, but do not quote variable references.
6031 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6032
6033 # Sed substitution to delay expansion of an escaped shell variable in a
6034 # double_quote_subst'ed string.
6035 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6036
6037 # Sed substitution to delay expansion of an escaped single quote.
6038 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6039
6040 # Sed substitution to avoid accidental globbing in evaled expressions
6041 no_glob_subst='s/\*/\\\*/g'
6042
6043 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6044 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6045 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6046
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6048 $as_echo_n "checking how to print strings... " >&6; }
6049 # Test print first, because it will be a builtin if present.
6050 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6051    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6052   ECHO='print -r --'
6053 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6054   ECHO='printf %s\n'
6055 else
6056   # Use this function as a fallback that always works.
6057   func_fallback_echo ()
6058   {
6059     eval 'cat <<_LTECHO_EOF
6060 $1
6061 _LTECHO_EOF'
6062   }
6063   ECHO='func_fallback_echo'
6064 fi
6065
6066 # func_echo_all arg...
6067 # Invoke $ECHO with all args, space-separated.
6068 func_echo_all ()
6069 {
6070     $ECHO ""
6071 }
6072
6073 case "$ECHO" in
6074   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6075 $as_echo "printf" >&6; } ;;
6076   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6077 $as_echo "print -r" >&6; } ;;
6078   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6079 $as_echo "cat" >&6; } ;;
6080 esac
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6096 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6097 if ${ac_cv_path_SED+:} false; then :
6098   $as_echo_n "(cached) " >&6
6099 else
6100             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6101      for ac_i in 1 2 3 4 5 6 7; do
6102        ac_script="$ac_script$as_nl$ac_script"
6103      done
6104      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6105      { ac_script=; unset ac_script;}
6106      if test -z "$SED"; then
6107   ac_path_SED_found=false
6108   # Loop through the user's path and test for each of PROGNAME-LIST
6109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 for as_dir in $PATH
6111 do
6112   IFS=$as_save_IFS
6113   test -z "$as_dir" && as_dir=.
6114     for ac_prog in sed gsed; do
6115     for ac_exec_ext in '' $ac_executable_extensions; do
6116       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6117       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6118 # Check for GNU ac_path_SED and select it if it is found.
6119   # Check for GNU $ac_path_SED
6120 case `"$ac_path_SED" --version 2>&1` in
6121 *GNU*)
6122   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6123 *)
6124   ac_count=0
6125   $as_echo_n 0123456789 >"conftest.in"
6126   while :
6127   do
6128     cat "conftest.in" "conftest.in" >"conftest.tmp"
6129     mv "conftest.tmp" "conftest.in"
6130     cp "conftest.in" "conftest.nl"
6131     $as_echo '' >> "conftest.nl"
6132     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6133     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6134     as_fn_arith $ac_count + 1 && ac_count=$as_val
6135     if test $ac_count -gt ${ac_path_SED_max-0}; then
6136       # Best one so far, save it but keep looking for a better one
6137       ac_cv_path_SED="$ac_path_SED"
6138       ac_path_SED_max=$ac_count
6139     fi
6140     # 10*(2^10) chars as input seems more than enough
6141     test $ac_count -gt 10 && break
6142   done
6143   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6144 esac
6145
6146       $ac_path_SED_found && break 3
6147     done
6148   done
6149   done
6150 IFS=$as_save_IFS
6151   if test -z "$ac_cv_path_SED"; then
6152     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6153   fi
6154 else
6155   ac_cv_path_SED=$SED
6156 fi
6157
6158 fi
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6160 $as_echo "$ac_cv_path_SED" >&6; }
6161  SED="$ac_cv_path_SED"
6162   rm -f conftest.sed
6163
6164 test -z "$SED" && SED=sed
6165 Xsed="$SED -e 1s/^X//"
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6178 $as_echo_n "checking for fgrep... " >&6; }
6179 if ${ac_cv_path_FGREP+:} false; then :
6180   $as_echo_n "(cached) " >&6
6181 else
6182   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6183    then ac_cv_path_FGREP="$GREP -F"
6184    else
6185      if test -z "$FGREP"; then
6186   ac_path_FGREP_found=false
6187   # Loop through the user's path and test for each of PROGNAME-LIST
6188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6190 do
6191   IFS=$as_save_IFS
6192   test -z "$as_dir" && as_dir=.
6193     for ac_prog in fgrep; do
6194     for ac_exec_ext in '' $ac_executable_extensions; do
6195       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6196       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6197 # Check for GNU ac_path_FGREP and select it if it is found.
6198   # Check for GNU $ac_path_FGREP
6199 case `"$ac_path_FGREP" --version 2>&1` in
6200 *GNU*)
6201   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6202 *)
6203   ac_count=0
6204   $as_echo_n 0123456789 >"conftest.in"
6205   while :
6206   do
6207     cat "conftest.in" "conftest.in" >"conftest.tmp"
6208     mv "conftest.tmp" "conftest.in"
6209     cp "conftest.in" "conftest.nl"
6210     $as_echo 'FGREP' >> "conftest.nl"
6211     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6212     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6213     as_fn_arith $ac_count + 1 && ac_count=$as_val
6214     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6215       # Best one so far, save it but keep looking for a better one
6216       ac_cv_path_FGREP="$ac_path_FGREP"
6217       ac_path_FGREP_max=$ac_count
6218     fi
6219     # 10*(2^10) chars as input seems more than enough
6220     test $ac_count -gt 10 && break
6221   done
6222   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6223 esac
6224
6225       $ac_path_FGREP_found && break 3
6226     done
6227   done
6228   done
6229 IFS=$as_save_IFS
6230   if test -z "$ac_cv_path_FGREP"; then
6231     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6232   fi
6233 else
6234   ac_cv_path_FGREP=$FGREP
6235 fi
6236
6237    fi
6238 fi
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6240 $as_echo "$ac_cv_path_FGREP" >&6; }
6241  FGREP="$ac_cv_path_FGREP"
6242
6243
6244 test -z "$GREP" && GREP=grep
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264 # Check whether --with-gnu-ld was given.
6265 if test "${with_gnu_ld+set}" = set; then :
6266   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6267 else
6268   with_gnu_ld=no
6269 fi
6270
6271 ac_prog=ld
6272 if test "$GCC" = yes; then
6273   # Check if gcc -print-prog-name=ld gives a path.
6274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6275 $as_echo_n "checking for ld used by $CC... " >&6; }
6276   case $host in
6277   *-*-mingw*)
6278     # gcc leaves a trailing carriage return which upsets mingw
6279     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6280   *)
6281     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6282   esac
6283   case $ac_prog in
6284     # Accept absolute paths.
6285     [\\/]* | ?:[\\/]*)
6286       re_direlt='/[^/][^/]*/\.\./'
6287       # Canonicalize the pathname of ld
6288       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6289       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6290         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6291       done
6292       test -z "$LD" && LD="$ac_prog"
6293       ;;
6294   "")
6295     # If it fails, then pretend we aren't using GCC.
6296     ac_prog=ld
6297     ;;
6298   *)
6299     # If it is relative, then search for the first ld in PATH.
6300     with_gnu_ld=unknown
6301     ;;
6302   esac
6303 elif test "$with_gnu_ld" = yes; then
6304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6305 $as_echo_n "checking for GNU ld... " >&6; }
6306 else
6307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6308 $as_echo_n "checking for non-GNU ld... " >&6; }
6309 fi
6310 if ${lt_cv_path_LD+:} false; then :
6311   $as_echo_n "(cached) " >&6
6312 else
6313   if test -z "$LD"; then
6314   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6315   for ac_dir in $PATH; do
6316     IFS="$lt_save_ifs"
6317     test -z "$ac_dir" && ac_dir=.
6318     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6319       lt_cv_path_LD="$ac_dir/$ac_prog"
6320       # Check to see if the program is GNU ld.  I'd rather use --version,
6321       # but apparently some variants of GNU ld only accept -v.
6322       # Break only if it was the GNU/non-GNU ld that we prefer.
6323       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6324       *GNU* | *'with BFD'*)
6325         test "$with_gnu_ld" != no && break
6326         ;;
6327       *)
6328         test "$with_gnu_ld" != yes && break
6329         ;;
6330       esac
6331     fi
6332   done
6333   IFS="$lt_save_ifs"
6334 else
6335   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6336 fi
6337 fi
6338
6339 LD="$lt_cv_path_LD"
6340 if test -n "$LD"; then
6341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6342 $as_echo "$LD" >&6; }
6343 else
6344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6346 fi
6347 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6349 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6350 if ${lt_cv_prog_gnu_ld+:} false; then :
6351   $as_echo_n "(cached) " >&6
6352 else
6353   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6354 case `$LD -v 2>&1 </dev/null` in
6355 *GNU* | *'with BFD'*)
6356   lt_cv_prog_gnu_ld=yes
6357   ;;
6358 *)
6359   lt_cv_prog_gnu_ld=no
6360   ;;
6361 esac
6362 fi
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6364 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6365 with_gnu_ld=$lt_cv_prog_gnu_ld
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6376 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6377 if ${lt_cv_path_NM+:} false; then :
6378   $as_echo_n "(cached) " >&6
6379 else
6380   if test -n "$NM"; then
6381   # Let the user override the test.
6382   lt_cv_path_NM="$NM"
6383 else
6384   lt_nm_to_check="${ac_tool_prefix}nm"
6385   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6386     lt_nm_to_check="$lt_nm_to_check nm"
6387   fi
6388   for lt_tmp_nm in $lt_nm_to_check; do
6389     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6390     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6391       IFS="$lt_save_ifs"
6392       test -z "$ac_dir" && ac_dir=.
6393       tmp_nm="$ac_dir/$lt_tmp_nm"
6394       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6395         # Check to see if the nm accepts a BSD-compat flag.
6396         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6397         #   nm: unknown option "B" ignored
6398         # Tru64's nm complains that /dev/null is an invalid object file
6399         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6400         */dev/null* | *'Invalid file or object type'*)
6401           lt_cv_path_NM="$tmp_nm -B"
6402           break
6403           ;;
6404         *)
6405           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6406           */dev/null*)
6407             lt_cv_path_NM="$tmp_nm -p"
6408             break
6409             ;;
6410           *)
6411             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6412             continue # so that we can try to find one that supports BSD flags
6413             ;;
6414           esac
6415           ;;
6416         esac
6417       fi
6418     done
6419     IFS="$lt_save_ifs"
6420   done
6421   : ${lt_cv_path_NM=no}
6422 fi
6423 fi
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6425 $as_echo "$lt_cv_path_NM" >&6; }
6426 if test "$lt_cv_path_NM" != "no"; then
6427   NM="$lt_cv_path_NM"
6428 else
6429   # Didn't find any BSD compatible name lister, look for dumpbin.
6430   if test -n "$DUMPBIN"; then :
6431     # Let the user override the test.
6432   else
6433     if test -n "$ac_tool_prefix"; then
6434   for ac_prog in dumpbin "link -dump"
6435   do
6436     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6437 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if ${ac_cv_prog_DUMPBIN+:} false; then :
6441   $as_echo_n "(cached) " >&6
6442 else
6443   if test -n "$DUMPBIN"; then
6444   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6445 else
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 for as_dir in $PATH
6448 do
6449   IFS=$as_save_IFS
6450   test -z "$as_dir" && as_dir=.
6451     for ac_exec_ext in '' $ac_executable_extensions; do
6452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6453     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455     break 2
6456   fi
6457 done
6458   done
6459 IFS=$as_save_IFS
6460
6461 fi
6462 fi
6463 DUMPBIN=$ac_cv_prog_DUMPBIN
6464 if test -n "$DUMPBIN"; then
6465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6466 $as_echo "$DUMPBIN" >&6; }
6467 else
6468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 $as_echo "no" >&6; }
6470 fi
6471
6472
6473     test -n "$DUMPBIN" && break
6474   done
6475 fi
6476 if test -z "$DUMPBIN"; then
6477   ac_ct_DUMPBIN=$DUMPBIN
6478   for ac_prog in dumpbin "link -dump"
6479 do
6480   # Extract the first word of "$ac_prog", so it can be a program name with args.
6481 set dummy $ac_prog; ac_word=$2
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483 $as_echo_n "checking for $ac_word... " >&6; }
6484 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6485   $as_echo_n "(cached) " >&6
6486 else
6487   if test -n "$ac_ct_DUMPBIN"; then
6488   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6489 else
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 for as_dir in $PATH
6492 do
6493   IFS=$as_save_IFS
6494   test -z "$as_dir" && as_dir=.
6495     for ac_exec_ext in '' $ac_executable_extensions; do
6496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6497     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6499     break 2
6500   fi
6501 done
6502   done
6503 IFS=$as_save_IFS
6504
6505 fi
6506 fi
6507 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6508 if test -n "$ac_ct_DUMPBIN"; then
6509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6510 $as_echo "$ac_ct_DUMPBIN" >&6; }
6511 else
6512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513 $as_echo "no" >&6; }
6514 fi
6515
6516
6517   test -n "$ac_ct_DUMPBIN" && break
6518 done
6519
6520   if test "x$ac_ct_DUMPBIN" = x; then
6521     DUMPBIN=":"
6522   else
6523     case $cross_compiling:$ac_tool_warned in
6524 yes:)
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6527 ac_tool_warned=yes ;;
6528 esac
6529     DUMPBIN=$ac_ct_DUMPBIN
6530   fi
6531 fi
6532
6533     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6534     *COFF*)
6535       DUMPBIN="$DUMPBIN -symbols"
6536       ;;
6537     *)
6538       DUMPBIN=:
6539       ;;
6540     esac
6541   fi
6542
6543   if test "$DUMPBIN" != ":"; then
6544     NM="$DUMPBIN"
6545   fi
6546 fi
6547 test -z "$NM" && NM=nm
6548
6549
6550
6551
6552
6553
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6555 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6556 if ${lt_cv_nm_interface+:} false; then :
6557   $as_echo_n "(cached) " >&6
6558 else
6559   lt_cv_nm_interface="BSD nm"
6560   echo "int some_variable = 0;" > conftest.$ac_ext
6561   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6562   (eval "$ac_compile" 2>conftest.err)
6563   cat conftest.err >&5
6564   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6565   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6566   cat conftest.err >&5
6567   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6568   cat conftest.out >&5
6569   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6570     lt_cv_nm_interface="MS dumpbin"
6571   fi
6572   rm -f conftest*
6573 fi
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6575 $as_echo "$lt_cv_nm_interface" >&6; }
6576
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6578 $as_echo_n "checking whether ln -s works... " >&6; }
6579 LN_S=$as_ln_s
6580 if test "$LN_S" = "ln -s"; then
6581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6582 $as_echo "yes" >&6; }
6583 else
6584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6585 $as_echo "no, using $LN_S" >&6; }
6586 fi
6587
6588 # find the maximum length of command line arguments
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6590 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6591 if ${lt_cv_sys_max_cmd_len+:} false; then :
6592   $as_echo_n "(cached) " >&6
6593 else
6594     i=0
6595   teststring="ABCD"
6596
6597   case $build_os in
6598   msdosdjgpp*)
6599     # On DJGPP, this test can blow up pretty badly due to problems in libc
6600     # (any single argument exceeding 2000 bytes causes a buffer overrun
6601     # during glob expansion).  Even if it were fixed, the result of this
6602     # check would be larger than it should be.
6603     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6604     ;;
6605
6606   gnu*)
6607     # Under GNU Hurd, this test is not required because there is
6608     # no limit to the length of command line arguments.
6609     # Libtool will interpret -1 as no limit whatsoever
6610     lt_cv_sys_max_cmd_len=-1;
6611     ;;
6612
6613   cygwin* | mingw* | cegcc*)
6614     # On Win9x/ME, this test blows up -- it succeeds, but takes
6615     # about 5 minutes as the teststring grows exponentially.
6616     # Worse, since 9x/ME are not pre-emptively multitasking,
6617     # you end up with a "frozen" computer, even though with patience
6618     # the test eventually succeeds (with a max line length of 256k).
6619     # Instead, let's just punt: use the minimum linelength reported by
6620     # all of the supported platforms: 8192 (on NT/2K/XP).
6621     lt_cv_sys_max_cmd_len=8192;
6622     ;;
6623
6624   mint*)
6625     # On MiNT this can take a long time and run out of memory.
6626     lt_cv_sys_max_cmd_len=8192;
6627     ;;
6628
6629   amigaos*)
6630     # On AmigaOS with pdksh, this test takes hours, literally.
6631     # So we just punt and use a minimum line length of 8192.
6632     lt_cv_sys_max_cmd_len=8192;
6633     ;;
6634
6635   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6636     # This has been around since 386BSD, at least.  Likely further.
6637     if test -x /sbin/sysctl; then
6638       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6639     elif test -x /usr/sbin/sysctl; then
6640       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6641     else
6642       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6643     fi
6644     # And add a safety zone
6645     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6646     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6647     ;;
6648
6649   interix*)
6650     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6651     lt_cv_sys_max_cmd_len=196608
6652     ;;
6653
6654   os2*)
6655     # The test takes a long time on OS/2.
6656     lt_cv_sys_max_cmd_len=8192
6657     ;;
6658
6659   osf*)
6660     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6661     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6662     # nice to cause kernel panics so lets avoid the loop below.
6663     # First set a reasonable default.
6664     lt_cv_sys_max_cmd_len=16384
6665     #
6666     if test -x /sbin/sysconfig; then
6667       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6668         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6669       esac
6670     fi
6671     ;;
6672   sco3.2v5*)
6673     lt_cv_sys_max_cmd_len=102400
6674     ;;
6675   sysv5* | sco5v6* | sysv4.2uw2*)
6676     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6677     if test -n "$kargmax"; then
6678       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6679     else
6680       lt_cv_sys_max_cmd_len=32768
6681     fi
6682     ;;
6683   *)
6684     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6685     if test -n "$lt_cv_sys_max_cmd_len"; then
6686       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6687       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6688     else
6689       # Make teststring a little bigger before we do anything with it.
6690       # a 1K string should be a reasonable start.
6691       for i in 1 2 3 4 5 6 7 8 ; do
6692         teststring=$teststring$teststring
6693       done
6694       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6695       # If test is not a shell built-in, we'll probably end up computing a
6696       # maximum length that is only half of the actual maximum length, but
6697       # we can't tell.
6698       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6699                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6700               test $i != 17 # 1/2 MB should be enough
6701       do
6702         i=`expr $i + 1`
6703         teststring=$teststring$teststring
6704       done
6705       # Only check the string length outside the loop.
6706       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6707       teststring=
6708       # Add a significant safety factor because C++ compilers can tack on
6709       # massive amounts of additional arguments before passing them to the
6710       # linker.  It appears as though 1/2 is a usable value.
6711       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6712     fi
6713     ;;
6714   esac
6715
6716 fi
6717
6718 if test -n $lt_cv_sys_max_cmd_len ; then
6719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6720 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6721 else
6722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6723 $as_echo "none" >&6; }
6724 fi
6725 max_cmd_len=$lt_cv_sys_max_cmd_len
6726
6727
6728
6729
6730
6731
6732 : ${CP="cp -f"}
6733 : ${MV="mv -f"}
6734 : ${RM="rm -f"}
6735
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6737 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6738 # Try some XSI features
6739 xsi_shell=no
6740 ( _lt_dummy="a/b/c"
6741   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6742       = c,a/b,b/c, \
6743     && eval 'test $(( 1 + 1 )) -eq 2 \
6744     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6745   && xsi_shell=yes
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6747 $as_echo "$xsi_shell" >&6; }
6748
6749
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6751 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6752 lt_shell_append=no
6753 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6754     >/dev/null 2>&1 \
6755   && lt_shell_append=yes
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6757 $as_echo "$lt_shell_append" >&6; }
6758
6759
6760 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6761   lt_unset=unset
6762 else
6763   lt_unset=false
6764 fi
6765
6766
6767
6768
6769
6770 # test EBCDIC or ASCII
6771 case `echo X|tr X '\101'` in
6772  A) # ASCII based system
6773     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6774   lt_SP2NL='tr \040 \012'
6775   lt_NL2SP='tr \015\012 \040\040'
6776   ;;
6777  *) # EBCDIC based system
6778   lt_SP2NL='tr \100 \n'
6779   lt_NL2SP='tr \r\n \100\100'
6780   ;;
6781 esac
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6792 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6793 if ${lt_cv_to_host_file_cmd+:} false; then :
6794   $as_echo_n "(cached) " >&6
6795 else
6796   case $host in
6797   *-*-mingw* )
6798     case $build in
6799       *-*-mingw* ) # actually msys
6800         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6801         ;;
6802       *-*-cygwin* )
6803         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6804         ;;
6805       * ) # otherwise, assume *nix
6806         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6807         ;;
6808     esac
6809     ;;
6810   *-*-cygwin* )
6811     case $build in
6812       *-*-mingw* ) # actually msys
6813         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6814         ;;
6815       *-*-cygwin* )
6816         lt_cv_to_host_file_cmd=func_convert_file_noop
6817         ;;
6818       * ) # otherwise, assume *nix
6819         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6820         ;;
6821     esac
6822     ;;
6823   * ) # unhandled hosts (and "normal" native builds)
6824     lt_cv_to_host_file_cmd=func_convert_file_noop
6825     ;;
6826 esac
6827
6828 fi
6829
6830 to_host_file_cmd=$lt_cv_to_host_file_cmd
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6832 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6833
6834
6835
6836
6837
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6839 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6840 if ${lt_cv_to_tool_file_cmd+:} false; then :
6841   $as_echo_n "(cached) " >&6
6842 else
6843   #assume ordinary cross tools, or native build.
6844 lt_cv_to_tool_file_cmd=func_convert_file_noop
6845 case $host in
6846   *-*-mingw* )
6847     case $build in
6848       *-*-mingw* ) # actually msys
6849         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6850         ;;
6851     esac
6852     ;;
6853 esac
6854
6855 fi
6856
6857 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6859 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6860
6861
6862
6863
6864
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6866 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6867 if ${lt_cv_ld_reload_flag+:} false; then :
6868   $as_echo_n "(cached) " >&6
6869 else
6870   lt_cv_ld_reload_flag='-r'
6871 fi
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6873 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6874 reload_flag=$lt_cv_ld_reload_flag
6875 case $reload_flag in
6876 "" | " "*) ;;
6877 *) reload_flag=" $reload_flag" ;;
6878 esac
6879 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6880 case $host_os in
6881   cygwin* | mingw* | pw32* | cegcc*)
6882     if test "$GCC" != yes; then
6883       reload_cmds=false
6884     fi
6885     ;;
6886   darwin*)
6887     if test "$GCC" = yes; then
6888       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6889     else
6890       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6891     fi
6892     ;;
6893 esac
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903 if test -n "$ac_tool_prefix"; then
6904   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6905 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907 $as_echo_n "checking for $ac_word... " >&6; }
6908 if ${ac_cv_prog_OBJDUMP+:} false; then :
6909   $as_echo_n "(cached) " >&6
6910 else
6911   if test -n "$OBJDUMP"; then
6912   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6913 else
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 for as_dir in $PATH
6916 do
6917   IFS=$as_save_IFS
6918   test -z "$as_dir" && as_dir=.
6919     for ac_exec_ext in '' $ac_executable_extensions; do
6920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6921     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6923     break 2
6924   fi
6925 done
6926   done
6927 IFS=$as_save_IFS
6928
6929 fi
6930 fi
6931 OBJDUMP=$ac_cv_prog_OBJDUMP
6932 if test -n "$OBJDUMP"; then
6933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6934 $as_echo "$OBJDUMP" >&6; }
6935 else
6936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937 $as_echo "no" >&6; }
6938 fi
6939
6940
6941 fi
6942 if test -z "$ac_cv_prog_OBJDUMP"; then
6943   ac_ct_OBJDUMP=$OBJDUMP
6944   # Extract the first word of "objdump", so it can be a program name with args.
6945 set dummy objdump; ac_word=$2
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6947 $as_echo_n "checking for $ac_word... " >&6; }
6948 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6949   $as_echo_n "(cached) " >&6
6950 else
6951   if test -n "$ac_ct_OBJDUMP"; then
6952   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6953 else
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 for as_dir in $PATH
6956 do
6957   IFS=$as_save_IFS
6958   test -z "$as_dir" && as_dir=.
6959     for ac_exec_ext in '' $ac_executable_extensions; do
6960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6961     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6963     break 2
6964   fi
6965 done
6966   done
6967 IFS=$as_save_IFS
6968
6969 fi
6970 fi
6971 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6972 if test -n "$ac_ct_OBJDUMP"; then
6973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6974 $as_echo "$ac_ct_OBJDUMP" >&6; }
6975 else
6976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6977 $as_echo "no" >&6; }
6978 fi
6979
6980   if test "x$ac_ct_OBJDUMP" = x; then
6981     OBJDUMP="false"
6982   else
6983     case $cross_compiling:$ac_tool_warned in
6984 yes:)
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6987 ac_tool_warned=yes ;;
6988 esac
6989     OBJDUMP=$ac_ct_OBJDUMP
6990   fi
6991 else
6992   OBJDUMP="$ac_cv_prog_OBJDUMP"
6993 fi
6994
6995 test -z "$OBJDUMP" && OBJDUMP=objdump
6996
6997
6998
6999
7000
7001
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7003 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7004 if ${lt_cv_deplibs_check_method+:} false; then :
7005   $as_echo_n "(cached) " >&6
7006 else
7007   lt_cv_file_magic_cmd='$MAGIC_CMD'
7008 lt_cv_file_magic_test_file=
7009 lt_cv_deplibs_check_method='unknown'
7010 # Need to set the preceding variable on all platforms that support
7011 # interlibrary dependencies.
7012 # 'none' -- dependencies not supported.
7013 # `unknown' -- same as none, but documents that we really don't know.
7014 # 'pass_all' -- all dependencies passed with no checks.
7015 # 'test_compile' -- check by making test program.
7016 # 'file_magic [[regex]]' -- check by looking for files in library path
7017 # which responds to the $file_magic_cmd with a given extended regex.
7018 # If you have `file' or equivalent on your system and you're not sure
7019 # whether `pass_all' will *always* work, you probably want this one.
7020
7021 case $host_os in
7022 aix[4-9]*)
7023   lt_cv_deplibs_check_method=pass_all
7024   ;;
7025
7026 beos*)
7027   lt_cv_deplibs_check_method=pass_all
7028   ;;
7029
7030 bsdi[45]*)
7031   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7032   lt_cv_file_magic_cmd='/usr/bin/file -L'
7033   lt_cv_file_magic_test_file=/shlib/libc.so
7034   ;;
7035
7036 cygwin*)
7037   # func_win32_libid is a shell function defined in ltmain.sh
7038   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7039   lt_cv_file_magic_cmd='func_win32_libid'
7040   ;;
7041
7042 mingw* | pw32*)
7043   # Base MSYS/MinGW do not provide the 'file' command needed by
7044   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7045   # unless we find 'file', for example because we are cross-compiling.
7046   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7047   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7048     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7049     lt_cv_file_magic_cmd='func_win32_libid'
7050   else
7051     # Keep this pattern in sync with the one in func_win32_libid.
7052     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7053     lt_cv_file_magic_cmd='$OBJDUMP -f'
7054   fi
7055   ;;
7056
7057 cegcc*)
7058   # use the weaker test based on 'objdump'. See mingw*.
7059   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7060   lt_cv_file_magic_cmd='$OBJDUMP -f'
7061   ;;
7062
7063 darwin* | rhapsody*)
7064   lt_cv_deplibs_check_method=pass_all
7065   ;;
7066
7067 freebsd* | dragonfly*)
7068   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7069     case $host_cpu in
7070     i*86 )
7071       # Not sure whether the presence of OpenBSD here was a mistake.
7072       # Let's accept both of them until this is cleared up.
7073       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7074       lt_cv_file_magic_cmd=/usr/bin/file
7075       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7076       ;;
7077     esac
7078   else
7079     lt_cv_deplibs_check_method=pass_all
7080   fi
7081   ;;
7082
7083 gnu*)
7084   lt_cv_deplibs_check_method=pass_all
7085   ;;
7086
7087 haiku*)
7088   lt_cv_deplibs_check_method=pass_all
7089   ;;
7090
7091 hpux10.20* | hpux11*)
7092   lt_cv_file_magic_cmd=/usr/bin/file
7093   case $host_cpu in
7094   ia64*)
7095     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7096     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7097     ;;
7098   hppa*64*)
7099     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]'
7100     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7101     ;;
7102   *)
7103     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7104     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7105     ;;
7106   esac
7107   ;;
7108
7109 interix[3-9]*)
7110   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7111   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7112   ;;
7113
7114 irix5* | irix6* | nonstopux*)
7115   case $LD in
7116   *-32|*"-32 ") libmagic=32-bit;;
7117   *-n32|*"-n32 ") libmagic=N32;;
7118   *-64|*"-64 ") libmagic=64-bit;;
7119   *) libmagic=never-match;;
7120   esac
7121   lt_cv_deplibs_check_method=pass_all
7122   ;;
7123
7124 # This must be glibc/ELF.
7125 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7126   lt_cv_deplibs_check_method=pass_all
7127   ;;
7128
7129 netbsd* | netbsdelf*-gnu)
7130   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7131     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7132   else
7133     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7134   fi
7135   ;;
7136
7137 newos6*)
7138   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7139   lt_cv_file_magic_cmd=/usr/bin/file
7140   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7141   ;;
7142
7143 *nto* | *qnx*)
7144   lt_cv_deplibs_check_method=pass_all
7145   ;;
7146
7147 openbsd*)
7148   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7149     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7150   else
7151     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7152   fi
7153   ;;
7154
7155 osf3* | osf4* | osf5*)
7156   lt_cv_deplibs_check_method=pass_all
7157   ;;
7158
7159 rdos*)
7160   lt_cv_deplibs_check_method=pass_all
7161   ;;
7162
7163 solaris*)
7164   lt_cv_deplibs_check_method=pass_all
7165   ;;
7166
7167 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7168   lt_cv_deplibs_check_method=pass_all
7169   ;;
7170
7171 sysv4 | sysv4.3*)
7172   case $host_vendor in
7173   motorola)
7174     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]'
7175     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7176     ;;
7177   ncr)
7178     lt_cv_deplibs_check_method=pass_all
7179     ;;
7180   sequent)
7181     lt_cv_file_magic_cmd='/bin/file'
7182     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7183     ;;
7184   sni)
7185     lt_cv_file_magic_cmd='/bin/file'
7186     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7187     lt_cv_file_magic_test_file=/lib/libc.so
7188     ;;
7189   siemens)
7190     lt_cv_deplibs_check_method=pass_all
7191     ;;
7192   pc)
7193     lt_cv_deplibs_check_method=pass_all
7194     ;;
7195   esac
7196   ;;
7197
7198 tpf*)
7199   lt_cv_deplibs_check_method=pass_all
7200   ;;
7201 esac
7202
7203 fi
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7205 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7206
7207 file_magic_glob=
7208 want_nocaseglob=no
7209 if test "$build" = "$host"; then
7210   case $host_os in
7211   mingw* | pw32*)
7212     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7213       want_nocaseglob=yes
7214     else
7215       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7216     fi
7217     ;;
7218   esac
7219 fi
7220
7221 file_magic_cmd=$lt_cv_file_magic_cmd
7222 deplibs_check_method=$lt_cv_deplibs_check_method
7223 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246 if test -n "$ac_tool_prefix"; then
7247   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7248 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7250 $as_echo_n "checking for $ac_word... " >&6; }
7251 if ${ac_cv_prog_DLLTOOL+:} false; then :
7252   $as_echo_n "(cached) " >&6
7253 else
7254   if test -n "$DLLTOOL"; then
7255   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7256 else
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 for as_dir in $PATH
7259 do
7260   IFS=$as_save_IFS
7261   test -z "$as_dir" && as_dir=.
7262     for ac_exec_ext in '' $ac_executable_extensions; do
7263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7264     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7266     break 2
7267   fi
7268 done
7269   done
7270 IFS=$as_save_IFS
7271
7272 fi
7273 fi
7274 DLLTOOL=$ac_cv_prog_DLLTOOL
7275 if test -n "$DLLTOOL"; then
7276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7277 $as_echo "$DLLTOOL" >&6; }
7278 else
7279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280 $as_echo "no" >&6; }
7281 fi
7282
7283
7284 fi
7285 if test -z "$ac_cv_prog_DLLTOOL"; then
7286   ac_ct_DLLTOOL=$DLLTOOL
7287   # Extract the first word of "dlltool", so it can be a program name with args.
7288 set dummy dlltool; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7292   $as_echo_n "(cached) " >&6
7293 else
7294   if test -n "$ac_ct_DLLTOOL"; then
7295   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7296 else
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 for as_dir in $PATH
7299 do
7300   IFS=$as_save_IFS
7301   test -z "$as_dir" && as_dir=.
7302     for ac_exec_ext in '' $ac_executable_extensions; do
7303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7304     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7306     break 2
7307   fi
7308 done
7309   done
7310 IFS=$as_save_IFS
7311
7312 fi
7313 fi
7314 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7315 if test -n "$ac_ct_DLLTOOL"; then
7316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7317 $as_echo "$ac_ct_DLLTOOL" >&6; }
7318 else
7319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7321 fi
7322
7323   if test "x$ac_ct_DLLTOOL" = x; then
7324     DLLTOOL="false"
7325   else
7326     case $cross_compiling:$ac_tool_warned in
7327 yes:)
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7330 ac_tool_warned=yes ;;
7331 esac
7332     DLLTOOL=$ac_ct_DLLTOOL
7333   fi
7334 else
7335   DLLTOOL="$ac_cv_prog_DLLTOOL"
7336 fi
7337
7338 test -z "$DLLTOOL" && DLLTOOL=dlltool
7339
7340
7341
7342
7343
7344
7345
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7347 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7348 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7349   $as_echo_n "(cached) " >&6
7350 else
7351   lt_cv_sharedlib_from_linklib_cmd='unknown'
7352
7353 case $host_os in
7354 cygwin* | mingw* | pw32* | cegcc*)
7355   # two different shell functions defined in ltmain.sh
7356   # decide which to use based on capabilities of $DLLTOOL
7357   case `$DLLTOOL --help 2>&1` in
7358   *--identify-strict*)
7359     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7360     ;;
7361   *)
7362     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7363     ;;
7364   esac
7365   ;;
7366 *)
7367   # fallback: assume linklib IS sharedlib
7368   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7369   ;;
7370 esac
7371
7372 fi
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7374 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7375 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7376 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7377
7378
7379
7380
7381
7382
7383
7384 if test -n "$ac_tool_prefix"; then
7385   for ac_prog in ar
7386   do
7387     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7388 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390 $as_echo_n "checking for $ac_word... " >&6; }
7391 if ${ac_cv_prog_AR+:} false; then :
7392   $as_echo_n "(cached) " >&6
7393 else
7394   if test -n "$AR"; then
7395   ac_cv_prog_AR="$AR" # Let the user override the test.
7396 else
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in $PATH
7399 do
7400   IFS=$as_save_IFS
7401   test -z "$as_dir" && as_dir=.
7402     for ac_exec_ext in '' $ac_executable_extensions; do
7403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7404     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7406     break 2
7407   fi
7408 done
7409   done
7410 IFS=$as_save_IFS
7411
7412 fi
7413 fi
7414 AR=$ac_cv_prog_AR
7415 if test -n "$AR"; then
7416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7417 $as_echo "$AR" >&6; }
7418 else
7419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7421 fi
7422
7423
7424     test -n "$AR" && break
7425   done
7426 fi
7427 if test -z "$AR"; then
7428   ac_ct_AR=$AR
7429   for ac_prog in ar
7430 do
7431   # Extract the first word of "$ac_prog", so it can be a program name with args.
7432 set dummy $ac_prog; ac_word=$2
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7434 $as_echo_n "checking for $ac_word... " >&6; }
7435 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7436   $as_echo_n "(cached) " >&6
7437 else
7438   if test -n "$ac_ct_AR"; then
7439   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7440 else
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 for as_dir in $PATH
7443 do
7444   IFS=$as_save_IFS
7445   test -z "$as_dir" && as_dir=.
7446     for ac_exec_ext in '' $ac_executable_extensions; do
7447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7448     ac_cv_prog_ac_ct_AR="$ac_prog"
7449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7450     break 2
7451   fi
7452 done
7453   done
7454 IFS=$as_save_IFS
7455
7456 fi
7457 fi
7458 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7459 if test -n "$ac_ct_AR"; then
7460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7461 $as_echo "$ac_ct_AR" >&6; }
7462 else
7463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7464 $as_echo "no" >&6; }
7465 fi
7466
7467
7468   test -n "$ac_ct_AR" && break
7469 done
7470
7471   if test "x$ac_ct_AR" = x; then
7472     AR="false"
7473   else
7474     case $cross_compiling:$ac_tool_warned in
7475 yes:)
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7478 ac_tool_warned=yes ;;
7479 esac
7480     AR=$ac_ct_AR
7481   fi
7482 fi
7483
7484 : ${AR=ar}
7485 : ${AR_FLAGS=cru}
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7498 $as_echo_n "checking for archiver @FILE support... " >&6; }
7499 if ${lt_cv_ar_at_file+:} false; then :
7500   $as_echo_n "(cached) " >&6
7501 else
7502   lt_cv_ar_at_file=no
7503    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h.  */
7505
7506 int
7507 main ()
7508 {
7509
7510   ;
7511   return 0;
7512 }
7513 _ACEOF
7514 if ac_fn_c_try_compile "$LINENO"; then :
7515   echo conftest.$ac_objext > conftest.lst
7516       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7517       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7518   (eval $lt_ar_try) 2>&5
7519   ac_status=$?
7520   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7521   test $ac_status = 0; }
7522       if test "$ac_status" -eq 0; then
7523         # Ensure the archiver fails upon bogus file names.
7524         rm -f conftest.$ac_objext libconftest.a
7525         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7526   (eval $lt_ar_try) 2>&5
7527   ac_status=$?
7528   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7529   test $ac_status = 0; }
7530         if test "$ac_status" -ne 0; then
7531           lt_cv_ar_at_file=@
7532         fi
7533       fi
7534       rm -f conftest.* libconftest.a
7535
7536 fi
7537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7538
7539 fi
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7541 $as_echo "$lt_cv_ar_at_file" >&6; }
7542
7543 if test "x$lt_cv_ar_at_file" = xno; then
7544   archiver_list_spec=
7545 else
7546   archiver_list_spec=$lt_cv_ar_at_file
7547 fi
7548
7549
7550
7551
7552
7553
7554
7555 if test -n "$ac_tool_prefix"; then
7556   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7557 set dummy ${ac_tool_prefix}strip; ac_word=$2
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7559 $as_echo_n "checking for $ac_word... " >&6; }
7560 if ${ac_cv_prog_STRIP+:} false; then :
7561   $as_echo_n "(cached) " >&6
7562 else
7563   if test -n "$STRIP"; then
7564   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7565 else
7566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567 for as_dir in $PATH
7568 do
7569   IFS=$as_save_IFS
7570   test -z "$as_dir" && as_dir=.
7571     for ac_exec_ext in '' $ac_executable_extensions; do
7572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7573     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7575     break 2
7576   fi
7577 done
7578   done
7579 IFS=$as_save_IFS
7580
7581 fi
7582 fi
7583 STRIP=$ac_cv_prog_STRIP
7584 if test -n "$STRIP"; then
7585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7586 $as_echo "$STRIP" >&6; }
7587 else
7588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589 $as_echo "no" >&6; }
7590 fi
7591
7592
7593 fi
7594 if test -z "$ac_cv_prog_STRIP"; then
7595   ac_ct_STRIP=$STRIP
7596   # Extract the first word of "strip", so it can be a program name with args.
7597 set dummy strip; ac_word=$2
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599 $as_echo_n "checking for $ac_word... " >&6; }
7600 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7601   $as_echo_n "(cached) " >&6
7602 else
7603   if test -n "$ac_ct_STRIP"; then
7604   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7605 else
7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 for as_dir in $PATH
7608 do
7609   IFS=$as_save_IFS
7610   test -z "$as_dir" && as_dir=.
7611     for ac_exec_ext in '' $ac_executable_extensions; do
7612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7613     ac_cv_prog_ac_ct_STRIP="strip"
7614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7615     break 2
7616   fi
7617 done
7618   done
7619 IFS=$as_save_IFS
7620
7621 fi
7622 fi
7623 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7624 if test -n "$ac_ct_STRIP"; then
7625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7626 $as_echo "$ac_ct_STRIP" >&6; }
7627 else
7628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7630 fi
7631
7632   if test "x$ac_ct_STRIP" = x; then
7633     STRIP=":"
7634   else
7635     case $cross_compiling:$ac_tool_warned in
7636 yes:)
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7639 ac_tool_warned=yes ;;
7640 esac
7641     STRIP=$ac_ct_STRIP
7642   fi
7643 else
7644   STRIP="$ac_cv_prog_STRIP"
7645 fi
7646
7647 test -z "$STRIP" && STRIP=:
7648
7649
7650
7651
7652
7653
7654 if test -n "$ac_tool_prefix"; then
7655   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7656 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7658 $as_echo_n "checking for $ac_word... " >&6; }
7659 if ${ac_cv_prog_RANLIB+:} false; then :
7660   $as_echo_n "(cached) " >&6
7661 else
7662   if test -n "$RANLIB"; then
7663   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7664 else
7665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666 for as_dir in $PATH
7667 do
7668   IFS=$as_save_IFS
7669   test -z "$as_dir" && as_dir=.
7670     for ac_exec_ext in '' $ac_executable_extensions; do
7671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7672     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7674     break 2
7675   fi
7676 done
7677   done
7678 IFS=$as_save_IFS
7679
7680 fi
7681 fi
7682 RANLIB=$ac_cv_prog_RANLIB
7683 if test -n "$RANLIB"; then
7684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7685 $as_echo "$RANLIB" >&6; }
7686 else
7687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688 $as_echo "no" >&6; }
7689 fi
7690
7691
7692 fi
7693 if test -z "$ac_cv_prog_RANLIB"; then
7694   ac_ct_RANLIB=$RANLIB
7695   # Extract the first word of "ranlib", so it can be a program name with args.
7696 set dummy ranlib; ac_word=$2
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698 $as_echo_n "checking for $ac_word... " >&6; }
7699 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7700   $as_echo_n "(cached) " >&6
7701 else
7702   if test -n "$ac_ct_RANLIB"; then
7703   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7704 else
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 for as_dir in $PATH
7707 do
7708   IFS=$as_save_IFS
7709   test -z "$as_dir" && as_dir=.
7710     for ac_exec_ext in '' $ac_executable_extensions; do
7711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7712     ac_cv_prog_ac_ct_RANLIB="ranlib"
7713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7714     break 2
7715   fi
7716 done
7717   done
7718 IFS=$as_save_IFS
7719
7720 fi
7721 fi
7722 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7723 if test -n "$ac_ct_RANLIB"; then
7724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7725 $as_echo "$ac_ct_RANLIB" >&6; }
7726 else
7727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7729 fi
7730
7731   if test "x$ac_ct_RANLIB" = x; then
7732     RANLIB=":"
7733   else
7734     case $cross_compiling:$ac_tool_warned in
7735 yes:)
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7738 ac_tool_warned=yes ;;
7739 esac
7740     RANLIB=$ac_ct_RANLIB
7741   fi
7742 else
7743   RANLIB="$ac_cv_prog_RANLIB"
7744 fi
7745
7746 test -z "$RANLIB" && RANLIB=:
7747
7748
7749
7750
7751
7752
7753 # Determine commands to create old-style static archives.
7754 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7755 old_postinstall_cmds='chmod 644 $oldlib'
7756 old_postuninstall_cmds=
7757
7758 if test -n "$RANLIB"; then
7759   case $host_os in
7760   openbsd*)
7761     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7762     ;;
7763   *)
7764     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7765     ;;
7766   esac
7767   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7768 fi
7769
7770 case $host_os in
7771   darwin*)
7772     lock_old_archive_extraction=yes ;;
7773   *)
7774     lock_old_archive_extraction=no ;;
7775 esac
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815 # If no C compiler was specified, use CC.
7816 LTCC=${LTCC-"$CC"}
7817
7818 # If no C compiler flags were specified, use CFLAGS.
7819 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7820
7821 # Allow CC to be a program name with arguments.
7822 compiler=$CC
7823
7824
7825 # Check for command to grab the raw symbol name followed by C symbol from nm.
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7827 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7828 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7829   $as_echo_n "(cached) " >&6
7830 else
7831
7832 # These are sane defaults that work on at least a few old systems.
7833 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7834
7835 # Character class describing NM global symbol codes.
7836 symcode='[BCDEGRST]'
7837
7838 # Regexp to match symbols that can be accessed directly from C.
7839 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7840
7841 # Define system-specific variables.
7842 case $host_os in
7843 aix*)
7844   symcode='[BCDT]'
7845   ;;
7846 cygwin* | mingw* | pw32* | cegcc*)
7847   symcode='[ABCDGISTW]'
7848   ;;
7849 hpux*)
7850   if test "$host_cpu" = ia64; then
7851     symcode='[ABCDEGRST]'
7852   fi
7853   ;;
7854 irix* | nonstopux*)
7855   symcode='[BCDEGRST]'
7856   ;;
7857 osf*)
7858   symcode='[BCDEGQRST]'
7859   ;;
7860 solaris*)
7861   symcode='[BDRT]'
7862   ;;
7863 sco3.2v5*)
7864   symcode='[DT]'
7865   ;;
7866 sysv4.2uw2*)
7867   symcode='[DT]'
7868   ;;
7869 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7870   symcode='[ABDT]'
7871   ;;
7872 sysv4)
7873   symcode='[DFNSTU]'
7874   ;;
7875 esac
7876
7877 # If we're using GNU nm, then use its standard symbol codes.
7878 case `$NM -V 2>&1` in
7879 *GNU* | *'with BFD'*)
7880   symcode='[ABCDGIRSTW]' ;;
7881 esac
7882
7883 # Transform an extracted symbol line into a proper C declaration.
7884 # Some systems (esp. on ia64) link data and code symbols differently,
7885 # so use this general approach.
7886 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7887
7888 # Transform an extracted symbol line into symbol name and symbol address
7889 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7890 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'"
7891
7892 # Handle CRLF in mingw tool chain
7893 opt_cr=
7894 case $build_os in
7895 mingw*)
7896   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7897   ;;
7898 esac
7899
7900 # Try without a prefix underscore, then with it.
7901 for ac_symprfx in "" "_"; do
7902
7903   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7904   symxfrm="\\1 $ac_symprfx\\2 \\2"
7905
7906   # Write the raw and C identifiers.
7907   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7908     # Fake it for dumpbin and say T for any non-static function
7909     # and D for any global variable.
7910     # Also find C++ and __fastcall symbols from MSVC++,
7911     # which start with @ or ?.
7912     lt_cv_sys_global_symbol_pipe="$AWK '"\
7913 "     {last_section=section; section=\$ 3};"\
7914 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7915 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7916 "     \$ 0!~/External *\|/{next};"\
7917 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7918 "     {if(hide[section]) next};"\
7919 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7920 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7921 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7922 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7923 "     ' prfx=^$ac_symprfx"
7924   else
7925     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7926   fi
7927   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7928
7929   # Check to see that the pipe works correctly.
7930   pipe_works=no
7931
7932   rm -f conftest*
7933   cat > conftest.$ac_ext <<_LT_EOF
7934 #ifdef __cplusplus
7935 extern "C" {
7936 #endif
7937 char nm_test_var;
7938 void nm_test_func(void);
7939 void nm_test_func(void){}
7940 #ifdef __cplusplus
7941 }
7942 #endif
7943 int main(){nm_test_var='a';nm_test_func();return(0);}
7944 _LT_EOF
7945
7946   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7947   (eval $ac_compile) 2>&5
7948   ac_status=$?
7949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7950   test $ac_status = 0; }; then
7951     # Now try to grab the symbols.
7952     nlist=conftest.nm
7953     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7954   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7955   ac_status=$?
7956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7957   test $ac_status = 0; } && test -s "$nlist"; then
7958       # Try sorting and uniquifying the output.
7959       if sort "$nlist" | uniq > "$nlist"T; then
7960         mv -f "$nlist"T "$nlist"
7961       else
7962         rm -f "$nlist"T
7963       fi
7964
7965       # Make sure that we snagged all the symbols we need.
7966       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7967         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7968           cat <<_LT_EOF > conftest.$ac_ext
7969 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7970 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7971 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7972    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7973 # define LT_DLSYM_CONST
7974 #elif defined(__osf__)
7975 /* This system does not cope well with relocations in const data.  */
7976 # define LT_DLSYM_CONST
7977 #else
7978 # define LT_DLSYM_CONST const
7979 #endif
7980
7981 #ifdef __cplusplus
7982 extern "C" {
7983 #endif
7984
7985 _LT_EOF
7986           # Now generate the symbol file.
7987           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7988
7989           cat <<_LT_EOF >> conftest.$ac_ext
7990
7991 /* The mapping between symbol names and symbols.  */
7992 LT_DLSYM_CONST struct {
7993   const char *name;
7994   void       *address;
7995 }
7996 lt__PROGRAM__LTX_preloaded_symbols[] =
7997 {
7998   { "@PROGRAM@", (void *) 0 },
7999 _LT_EOF
8000           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8001           cat <<\_LT_EOF >> conftest.$ac_ext
8002   {0, (void *) 0}
8003 };
8004
8005 /* This works around a problem in FreeBSD linker */
8006 #ifdef FREEBSD_WORKAROUND
8007 static const void *lt_preloaded_setup() {
8008   return lt__PROGRAM__LTX_preloaded_symbols;
8009 }
8010 #endif
8011
8012 #ifdef __cplusplus
8013 }
8014 #endif
8015 _LT_EOF
8016           # Now try linking the two files.
8017           mv conftest.$ac_objext conftstm.$ac_objext
8018           lt_globsym_save_LIBS=$LIBS
8019           lt_globsym_save_CFLAGS=$CFLAGS
8020           LIBS="conftstm.$ac_objext"
8021           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8022           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8023   (eval $ac_link) 2>&5
8024   ac_status=$?
8025   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8026   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8027             pipe_works=yes
8028           fi
8029           LIBS=$lt_globsym_save_LIBS
8030           CFLAGS=$lt_globsym_save_CFLAGS
8031         else
8032           echo "cannot find nm_test_func in $nlist" >&5
8033         fi
8034       else
8035         echo "cannot find nm_test_var in $nlist" >&5
8036       fi
8037     else
8038       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8039     fi
8040   else
8041     echo "$progname: failed program was:" >&5
8042     cat conftest.$ac_ext >&5
8043   fi
8044   rm -rf conftest* conftst*
8045
8046   # Do not use the global_symbol_pipe unless it works.
8047   if test "$pipe_works" = yes; then
8048     break
8049   else
8050     lt_cv_sys_global_symbol_pipe=
8051   fi
8052 done
8053
8054 fi
8055
8056 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8057   lt_cv_sys_global_symbol_to_cdecl=
8058 fi
8059 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8061 $as_echo "failed" >&6; }
8062 else
8063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8064 $as_echo "ok" >&6; }
8065 fi
8066
8067 # Response file support.
8068 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8069   nm_file_list_spec='@'
8070 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8071   nm_file_list_spec='@'
8072 fi
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8101 $as_echo_n "checking for sysroot... " >&6; }
8102
8103 # Check whether --with-sysroot was given.
8104 if test "${with_sysroot+set}" = set; then :
8105   withval=$with_sysroot;
8106 else
8107   with_sysroot=no
8108 fi
8109
8110
8111 lt_sysroot=
8112 case ${with_sysroot} in #(
8113  yes)
8114    if test "$GCC" = yes; then
8115      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8116    fi
8117    ;; #(
8118  /*)
8119    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8120    ;; #(
8121  no|'')
8122    ;; #(
8123  *)
8124    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8125 $as_echo "${with_sysroot}" >&6; }
8126    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8127    ;;
8128 esac
8129
8130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8131 $as_echo "${lt_sysroot:-no}" >&6; }
8132
8133
8134
8135
8136
8137 # Check whether --enable-libtool-lock was given.
8138 if test "${enable_libtool_lock+set}" = set; then :
8139   enableval=$enable_libtool_lock;
8140 fi
8141
8142 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8143
8144 # Some flags need to be propagated to the compiler or linker for good
8145 # libtool support.
8146 case $host in
8147 ia64-*-hpux*)
8148   # Find out which ABI we are using.
8149   echo 'int i;' > conftest.$ac_ext
8150   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8151   (eval $ac_compile) 2>&5
8152   ac_status=$?
8153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8154   test $ac_status = 0; }; then
8155     case `/usr/bin/file conftest.$ac_objext` in
8156       *ELF-32*)
8157         HPUX_IA64_MODE="32"
8158         ;;
8159       *ELF-64*)
8160         HPUX_IA64_MODE="64"
8161         ;;
8162     esac
8163   fi
8164   rm -rf conftest*
8165   ;;
8166 *-*-irix6*)
8167   # Find out which ABI we are using.
8168   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8169   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8170   (eval $ac_compile) 2>&5
8171   ac_status=$?
8172   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8173   test $ac_status = 0; }; then
8174     if test "$lt_cv_prog_gnu_ld" = yes; then
8175       case `/usr/bin/file conftest.$ac_objext` in
8176         *32-bit*)
8177           LD="${LD-ld} -melf32bsmip"
8178           ;;
8179         *N32*)
8180           LD="${LD-ld} -melf32bmipn32"
8181           ;;
8182         *64-bit*)
8183           LD="${LD-ld} -melf64bmip"
8184         ;;
8185       esac
8186     else
8187       case `/usr/bin/file conftest.$ac_objext` in
8188         *32-bit*)
8189           LD="${LD-ld} -32"
8190           ;;
8191         *N32*)
8192           LD="${LD-ld} -n32"
8193           ;;
8194         *64-bit*)
8195           LD="${LD-ld} -64"
8196           ;;
8197       esac
8198     fi
8199   fi
8200   rm -rf conftest*
8201   ;;
8202
8203 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8204 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8205   # Find out which ABI we are using.
8206   echo 'int i;' > conftest.$ac_ext
8207   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8208   (eval $ac_compile) 2>&5
8209   ac_status=$?
8210   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8211   test $ac_status = 0; }; then
8212     case `/usr/bin/file conftest.o` in
8213       *32-bit*)
8214         case $host in
8215           x86_64-*kfreebsd*-gnu)
8216             LD="${LD-ld} -m elf_i386_fbsd"
8217             ;;
8218           x86_64-*linux*)
8219             LD="${LD-ld} -m elf_i386"
8220             ;;
8221           ppc64-*linux*|powerpc64-*linux*)
8222             LD="${LD-ld} -m elf32ppclinux"
8223             ;;
8224           s390x-*linux*)
8225             LD="${LD-ld} -m elf_s390"
8226             ;;
8227           sparc64-*linux*)
8228             LD="${LD-ld} -m elf32_sparc"
8229             ;;
8230         esac
8231         ;;
8232       *64-bit*)
8233         case $host in
8234           x86_64-*kfreebsd*-gnu)
8235             LD="${LD-ld} -m elf_x86_64_fbsd"
8236             ;;
8237           x86_64-*linux*)
8238             LD="${LD-ld} -m elf_x86_64"
8239             ;;
8240           ppc*-*linux*|powerpc*-*linux*)
8241             LD="${LD-ld} -m elf64ppc"
8242             ;;
8243           s390*-*linux*|s390*-*tpf*)
8244             LD="${LD-ld} -m elf64_s390"
8245             ;;
8246           sparc*-*linux*)
8247             LD="${LD-ld} -m elf64_sparc"
8248             ;;
8249         esac
8250         ;;
8251     esac
8252   fi
8253   rm -rf conftest*
8254   ;;
8255
8256 *-*-sco3.2v5*)
8257   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8258   SAVE_CFLAGS="$CFLAGS"
8259   CFLAGS="$CFLAGS -belf"
8260   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8261 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8262 if ${lt_cv_cc_needs_belf+:} false; then :
8263   $as_echo_n "(cached) " >&6
8264 else
8265   ac_ext=c
8266 ac_cpp='$CPP $CPPFLAGS'
8267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8270
8271      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h.  */
8273
8274 int
8275 main ()
8276 {
8277
8278   ;
8279   return 0;
8280 }
8281 _ACEOF
8282 if ac_fn_c_try_link "$LINENO"; then :
8283   lt_cv_cc_needs_belf=yes
8284 else
8285   lt_cv_cc_needs_belf=no
8286 fi
8287 rm -f core conftest.err conftest.$ac_objext \
8288     conftest$ac_exeext conftest.$ac_ext
8289      ac_ext=c
8290 ac_cpp='$CPP $CPPFLAGS'
8291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8294
8295 fi
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8297 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8298   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8299     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8300     CFLAGS="$SAVE_CFLAGS"
8301   fi
8302   ;;
8303 *-*solaris*)
8304   # Find out which ABI we are using.
8305   echo 'int i;' > conftest.$ac_ext
8306   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8307   (eval $ac_compile) 2>&5
8308   ac_status=$?
8309   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8310   test $ac_status = 0; }; then
8311     case `/usr/bin/file conftest.o` in
8312     *64-bit*)
8313       case $lt_cv_prog_gnu_ld in
8314       yes*)
8315         case $host in
8316         i?86-*-solaris*)
8317           LD="${LD-ld} -m elf_x86_64"
8318           ;;
8319         sparc*-*-solaris*)
8320           LD="${LD-ld} -m elf64_sparc"
8321           ;;
8322         esac
8323         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8324         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8325           LD="${LD-ld}_sol2"
8326         fi
8327         ;;
8328       *)
8329         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8330           LD="${LD-ld} -64"
8331         fi
8332         ;;
8333       esac
8334       ;;
8335     esac
8336   fi
8337   rm -rf conftest*
8338   ;;
8339 esac
8340
8341 need_locks="$enable_libtool_lock"
8342
8343 if test -n "$ac_tool_prefix"; then
8344   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8345 set dummy ${ac_tool_prefix}mt; ac_word=$2
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8347 $as_echo_n "checking for $ac_word... " >&6; }
8348 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8349   $as_echo_n "(cached) " >&6
8350 else
8351   if test -n "$MANIFEST_TOOL"; then
8352   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8353 else
8354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8355 for as_dir in $PATH
8356 do
8357   IFS=$as_save_IFS
8358   test -z "$as_dir" && as_dir=.
8359     for ac_exec_ext in '' $ac_executable_extensions; do
8360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8361     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8363     break 2
8364   fi
8365 done
8366   done
8367 IFS=$as_save_IFS
8368
8369 fi
8370 fi
8371 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8372 if test -n "$MANIFEST_TOOL"; then
8373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8374 $as_echo "$MANIFEST_TOOL" >&6; }
8375 else
8376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8377 $as_echo "no" >&6; }
8378 fi
8379
8380
8381 fi
8382 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8383   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8384   # Extract the first word of "mt", so it can be a program name with args.
8385 set dummy mt; ac_word=$2
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8387 $as_echo_n "checking for $ac_word... " >&6; }
8388 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8389   $as_echo_n "(cached) " >&6
8390 else
8391   if test -n "$ac_ct_MANIFEST_TOOL"; then
8392   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8393 else
8394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8395 for as_dir in $PATH
8396 do
8397   IFS=$as_save_IFS
8398   test -z "$as_dir" && as_dir=.
8399     for ac_exec_ext in '' $ac_executable_extensions; do
8400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8401     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8403     break 2
8404   fi
8405 done
8406   done
8407 IFS=$as_save_IFS
8408
8409 fi
8410 fi
8411 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8412 if test -n "$ac_ct_MANIFEST_TOOL"; then
8413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8414 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8415 else
8416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }
8418 fi
8419
8420   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8421     MANIFEST_TOOL=":"
8422   else
8423     case $cross_compiling:$ac_tool_warned in
8424 yes:)
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8427 ac_tool_warned=yes ;;
8428 esac
8429     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8430   fi
8431 else
8432   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8433 fi
8434
8435 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8437 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8438 if ${lt_cv_path_mainfest_tool+:} false; then :
8439   $as_echo_n "(cached) " >&6
8440 else
8441   lt_cv_path_mainfest_tool=no
8442   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8443   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8444   cat conftest.err >&5
8445   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8446     lt_cv_path_mainfest_tool=yes
8447   fi
8448   rm -f conftest*
8449 fi
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8451 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8452 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8453   MANIFEST_TOOL=:
8454 fi
8455
8456
8457
8458
8459
8460
8461   case $host_os in
8462     rhapsody* | darwin*)
8463     if test -n "$ac_tool_prefix"; then
8464   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8465 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8467 $as_echo_n "checking for $ac_word... " >&6; }
8468 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8469   $as_echo_n "(cached) " >&6
8470 else
8471   if test -n "$DSYMUTIL"; then
8472   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8473 else
8474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8475 for as_dir in $PATH
8476 do
8477   IFS=$as_save_IFS
8478   test -z "$as_dir" && as_dir=.
8479     for ac_exec_ext in '' $ac_executable_extensions; do
8480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8481     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8483     break 2
8484   fi
8485 done
8486   done
8487 IFS=$as_save_IFS
8488
8489 fi
8490 fi
8491 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8492 if test -n "$DSYMUTIL"; then
8493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8494 $as_echo "$DSYMUTIL" >&6; }
8495 else
8496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8497 $as_echo "no" >&6; }
8498 fi
8499
8500
8501 fi
8502 if test -z "$ac_cv_prog_DSYMUTIL"; then
8503   ac_ct_DSYMUTIL=$DSYMUTIL
8504   # Extract the first word of "dsymutil", so it can be a program name with args.
8505 set dummy dsymutil; ac_word=$2
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8507 $as_echo_n "checking for $ac_word... " >&6; }
8508 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8509   $as_echo_n "(cached) " >&6
8510 else
8511   if test -n "$ac_ct_DSYMUTIL"; then
8512   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8513 else
8514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515 for as_dir in $PATH
8516 do
8517   IFS=$as_save_IFS
8518   test -z "$as_dir" && as_dir=.
8519     for ac_exec_ext in '' $ac_executable_extensions; do
8520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8521     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8523     break 2
8524   fi
8525 done
8526   done
8527 IFS=$as_save_IFS
8528
8529 fi
8530 fi
8531 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8532 if test -n "$ac_ct_DSYMUTIL"; then
8533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8534 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8535 else
8536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
8538 fi
8539
8540   if test "x$ac_ct_DSYMUTIL" = x; then
8541     DSYMUTIL=":"
8542   else
8543     case $cross_compiling:$ac_tool_warned in
8544 yes:)
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8547 ac_tool_warned=yes ;;
8548 esac
8549     DSYMUTIL=$ac_ct_DSYMUTIL
8550   fi
8551 else
8552   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8553 fi
8554
8555     if test -n "$ac_tool_prefix"; then
8556   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8557 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8559 $as_echo_n "checking for $ac_word... " >&6; }
8560 if ${ac_cv_prog_NMEDIT+:} false; then :
8561   $as_echo_n "(cached) " >&6
8562 else
8563   if test -n "$NMEDIT"; then
8564   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8565 else
8566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8567 for as_dir in $PATH
8568 do
8569   IFS=$as_save_IFS
8570   test -z "$as_dir" && as_dir=.
8571     for ac_exec_ext in '' $ac_executable_extensions; do
8572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8573     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8575     break 2
8576   fi
8577 done
8578   done
8579 IFS=$as_save_IFS
8580
8581 fi
8582 fi
8583 NMEDIT=$ac_cv_prog_NMEDIT
8584 if test -n "$NMEDIT"; then
8585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8586 $as_echo "$NMEDIT" >&6; }
8587 else
8588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589 $as_echo "no" >&6; }
8590 fi
8591
8592
8593 fi
8594 if test -z "$ac_cv_prog_NMEDIT"; then
8595   ac_ct_NMEDIT=$NMEDIT
8596   # Extract the first word of "nmedit", so it can be a program name with args.
8597 set dummy nmedit; ac_word=$2
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8599 $as_echo_n "checking for $ac_word... " >&6; }
8600 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8601   $as_echo_n "(cached) " >&6
8602 else
8603   if test -n "$ac_ct_NMEDIT"; then
8604   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8605 else
8606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607 for as_dir in $PATH
8608 do
8609   IFS=$as_save_IFS
8610   test -z "$as_dir" && as_dir=.
8611     for ac_exec_ext in '' $ac_executable_extensions; do
8612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8613     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8615     break 2
8616   fi
8617 done
8618   done
8619 IFS=$as_save_IFS
8620
8621 fi
8622 fi
8623 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8624 if test -n "$ac_ct_NMEDIT"; then
8625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8626 $as_echo "$ac_ct_NMEDIT" >&6; }
8627 else
8628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629 $as_echo "no" >&6; }
8630 fi
8631
8632   if test "x$ac_ct_NMEDIT" = x; then
8633     NMEDIT=":"
8634   else
8635     case $cross_compiling:$ac_tool_warned in
8636 yes:)
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8639 ac_tool_warned=yes ;;
8640 esac
8641     NMEDIT=$ac_ct_NMEDIT
8642   fi
8643 else
8644   NMEDIT="$ac_cv_prog_NMEDIT"
8645 fi
8646
8647     if test -n "$ac_tool_prefix"; then
8648   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8649 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651 $as_echo_n "checking for $ac_word... " >&6; }
8652 if ${ac_cv_prog_LIPO+:} false; then :
8653   $as_echo_n "(cached) " >&6
8654 else
8655   if test -n "$LIPO"; then
8656   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8657 else
8658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659 for as_dir in $PATH
8660 do
8661   IFS=$as_save_IFS
8662   test -z "$as_dir" && as_dir=.
8663     for ac_exec_ext in '' $ac_executable_extensions; do
8664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8665     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8667     break 2
8668   fi
8669 done
8670   done
8671 IFS=$as_save_IFS
8672
8673 fi
8674 fi
8675 LIPO=$ac_cv_prog_LIPO
8676 if test -n "$LIPO"; then
8677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8678 $as_echo "$LIPO" >&6; }
8679 else
8680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681 $as_echo "no" >&6; }
8682 fi
8683
8684
8685 fi
8686 if test -z "$ac_cv_prog_LIPO"; then
8687   ac_ct_LIPO=$LIPO
8688   # Extract the first word of "lipo", so it can be a program name with args.
8689 set dummy lipo; ac_word=$2
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8691 $as_echo_n "checking for $ac_word... " >&6; }
8692 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8693   $as_echo_n "(cached) " >&6
8694 else
8695   if test -n "$ac_ct_LIPO"; then
8696   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8697 else
8698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8699 for as_dir in $PATH
8700 do
8701   IFS=$as_save_IFS
8702   test -z "$as_dir" && as_dir=.
8703     for ac_exec_ext in '' $ac_executable_extensions; do
8704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8705     ac_cv_prog_ac_ct_LIPO="lipo"
8706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8707     break 2
8708   fi
8709 done
8710   done
8711 IFS=$as_save_IFS
8712
8713 fi
8714 fi
8715 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8716 if test -n "$ac_ct_LIPO"; then
8717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8718 $as_echo "$ac_ct_LIPO" >&6; }
8719 else
8720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721 $as_echo "no" >&6; }
8722 fi
8723
8724   if test "x$ac_ct_LIPO" = x; then
8725     LIPO=":"
8726   else
8727     case $cross_compiling:$ac_tool_warned in
8728 yes:)
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8731 ac_tool_warned=yes ;;
8732 esac
8733     LIPO=$ac_ct_LIPO
8734   fi
8735 else
8736   LIPO="$ac_cv_prog_LIPO"
8737 fi
8738
8739     if test -n "$ac_tool_prefix"; then
8740   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8741 set dummy ${ac_tool_prefix}otool; ac_word=$2
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8743 $as_echo_n "checking for $ac_word... " >&6; }
8744 if ${ac_cv_prog_OTOOL+:} false; then :
8745   $as_echo_n "(cached) " >&6
8746 else
8747   if test -n "$OTOOL"; then
8748   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8749 else
8750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8751 for as_dir in $PATH
8752 do
8753   IFS=$as_save_IFS
8754   test -z "$as_dir" && as_dir=.
8755     for ac_exec_ext in '' $ac_executable_extensions; do
8756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8757     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8759     break 2
8760   fi
8761 done
8762   done
8763 IFS=$as_save_IFS
8764
8765 fi
8766 fi
8767 OTOOL=$ac_cv_prog_OTOOL
8768 if test -n "$OTOOL"; then
8769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8770 $as_echo "$OTOOL" >&6; }
8771 else
8772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8773 $as_echo "no" >&6; }
8774 fi
8775
8776
8777 fi
8778 if test -z "$ac_cv_prog_OTOOL"; then
8779   ac_ct_OTOOL=$OTOOL
8780   # Extract the first word of "otool", so it can be a program name with args.
8781 set dummy otool; ac_word=$2
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8783 $as_echo_n "checking for $ac_word... " >&6; }
8784 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8785   $as_echo_n "(cached) " >&6
8786 else
8787   if test -n "$ac_ct_OTOOL"; then
8788   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8789 else
8790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8791 for as_dir in $PATH
8792 do
8793   IFS=$as_save_IFS
8794   test -z "$as_dir" && as_dir=.
8795     for ac_exec_ext in '' $ac_executable_extensions; do
8796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8797     ac_cv_prog_ac_ct_OTOOL="otool"
8798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8799     break 2
8800   fi
8801 done
8802   done
8803 IFS=$as_save_IFS
8804
8805 fi
8806 fi
8807 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8808 if test -n "$ac_ct_OTOOL"; then
8809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8810 $as_echo "$ac_ct_OTOOL" >&6; }
8811 else
8812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813 $as_echo "no" >&6; }
8814 fi
8815
8816   if test "x$ac_ct_OTOOL" = x; then
8817     OTOOL=":"
8818   else
8819     case $cross_compiling:$ac_tool_warned in
8820 yes:)
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8823 ac_tool_warned=yes ;;
8824 esac
8825     OTOOL=$ac_ct_OTOOL
8826   fi
8827 else
8828   OTOOL="$ac_cv_prog_OTOOL"
8829 fi
8830
8831     if test -n "$ac_tool_prefix"; then
8832   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8833 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8835 $as_echo_n "checking for $ac_word... " >&6; }
8836 if ${ac_cv_prog_OTOOL64+:} false; then :
8837   $as_echo_n "(cached) " >&6
8838 else
8839   if test -n "$OTOOL64"; then
8840   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8841 else
8842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843 for as_dir in $PATH
8844 do
8845   IFS=$as_save_IFS
8846   test -z "$as_dir" && as_dir=.
8847     for ac_exec_ext in '' $ac_executable_extensions; do
8848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8849     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8851     break 2
8852   fi
8853 done
8854   done
8855 IFS=$as_save_IFS
8856
8857 fi
8858 fi
8859 OTOOL64=$ac_cv_prog_OTOOL64
8860 if test -n "$OTOOL64"; then
8861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8862 $as_echo "$OTOOL64" >&6; }
8863 else
8864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865 $as_echo "no" >&6; }
8866 fi
8867
8868
8869 fi
8870 if test -z "$ac_cv_prog_OTOOL64"; then
8871   ac_ct_OTOOL64=$OTOOL64
8872   # Extract the first word of "otool64", so it can be a program name with args.
8873 set dummy otool64; ac_word=$2
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8875 $as_echo_n "checking for $ac_word... " >&6; }
8876 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8877   $as_echo_n "(cached) " >&6
8878 else
8879   if test -n "$ac_ct_OTOOL64"; then
8880   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8881 else
8882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883 for as_dir in $PATH
8884 do
8885   IFS=$as_save_IFS
8886   test -z "$as_dir" && as_dir=.
8887     for ac_exec_ext in '' $ac_executable_extensions; do
8888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8889     ac_cv_prog_ac_ct_OTOOL64="otool64"
8890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8891     break 2
8892   fi
8893 done
8894   done
8895 IFS=$as_save_IFS
8896
8897 fi
8898 fi
8899 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8900 if test -n "$ac_ct_OTOOL64"; then
8901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8902 $as_echo "$ac_ct_OTOOL64" >&6; }
8903 else
8904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905 $as_echo "no" >&6; }
8906 fi
8907
8908   if test "x$ac_ct_OTOOL64" = x; then
8909     OTOOL64=":"
8910   else
8911     case $cross_compiling:$ac_tool_warned in
8912 yes:)
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8915 ac_tool_warned=yes ;;
8916 esac
8917     OTOOL64=$ac_ct_OTOOL64
8918   fi
8919 else
8920   OTOOL64="$ac_cv_prog_OTOOL64"
8921 fi
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8950 $as_echo_n "checking for -single_module linker flag... " >&6; }
8951 if ${lt_cv_apple_cc_single_mod+:} false; then :
8952   $as_echo_n "(cached) " >&6
8953 else
8954   lt_cv_apple_cc_single_mod=no
8955       if test -z "${LT_MULTI_MODULE}"; then
8956         # By default we will add the -single_module flag. You can override
8957         # by either setting the environment variable LT_MULTI_MODULE
8958         # non-empty at configure time, or by adding -multi_module to the
8959         # link flags.
8960         rm -rf libconftest.dylib*
8961         echo "int foo(void){return 1;}" > conftest.c
8962         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8963 -dynamiclib -Wl,-single_module conftest.c" >&5
8964         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8965           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8966         _lt_result=$?
8967         # If there is a non-empty error log, and "single_module"
8968         # appears in it, assume the flag caused a linker warning
8969         if test -s conftest.err && $GREP single_module conftest.err; then
8970           cat conftest.err >&5
8971         # Otherwise, if the output was created with a 0 exit code from
8972         # the compiler, it worked.
8973         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8974           lt_cv_apple_cc_single_mod=yes
8975         else
8976           cat conftest.err >&5
8977         fi
8978         rm -rf libconftest.dylib*
8979         rm -f conftest.*
8980       fi
8981 fi
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8983 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8984
8985     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8986 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8987 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8988   $as_echo_n "(cached) " >&6
8989 else
8990   lt_cv_ld_exported_symbols_list=no
8991       save_LDFLAGS=$LDFLAGS
8992       echo "_main" > conftest.sym
8993       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8994       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995 /* end confdefs.h.  */
8996
8997 int
8998 main ()
8999 {
9000
9001   ;
9002   return 0;
9003 }
9004 _ACEOF
9005 if ac_fn_c_try_link "$LINENO"; then :
9006   lt_cv_ld_exported_symbols_list=yes
9007 else
9008   lt_cv_ld_exported_symbols_list=no
9009 fi
9010 rm -f core conftest.err conftest.$ac_objext \
9011     conftest$ac_exeext conftest.$ac_ext
9012         LDFLAGS="$save_LDFLAGS"
9013
9014 fi
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9016 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9017
9018     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9019 $as_echo_n "checking for -force_load linker flag... " >&6; }
9020 if ${lt_cv_ld_force_load+:} false; then :
9021   $as_echo_n "(cached) " >&6
9022 else
9023   lt_cv_ld_force_load=no
9024       cat > conftest.c << _LT_EOF
9025 int forced_loaded() { return 2;}
9026 _LT_EOF
9027       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9028       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9029       echo "$AR cru libconftest.a conftest.o" >&5
9030       $AR cru libconftest.a conftest.o 2>&5
9031       echo "$RANLIB libconftest.a" >&5
9032       $RANLIB libconftest.a 2>&5
9033       cat > conftest.c << _LT_EOF
9034 int main() { return 0;}
9035 _LT_EOF
9036       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9037       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9038       _lt_result=$?
9039       if test -s conftest.err && $GREP force_load conftest.err; then
9040         cat conftest.err >&5
9041       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9042         lt_cv_ld_force_load=yes
9043       else
9044         cat conftest.err >&5
9045       fi
9046         rm -f conftest.err libconftest.a conftest conftest.c
9047         rm -rf conftest.dSYM
9048
9049 fi
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9051 $as_echo "$lt_cv_ld_force_load" >&6; }
9052     case $host_os in
9053     rhapsody* | darwin1.[012])
9054       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9055     darwin1.*)
9056       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9057     darwin*) # darwin 5.x on
9058       # if running on 10.5 or later, the deployment target defaults
9059       # to the OS version, if on x86, and 10.4, the deployment
9060       # target defaults to 10.4. Don't you love it?
9061       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9062         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9063           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9064         10.[012]*)
9065           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9066         10.*)
9067           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9068       esac
9069     ;;
9070   esac
9071     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9072       _lt_dar_single_mod='$single_module'
9073     fi
9074     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9075       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9076     else
9077       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9078     fi
9079     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9080       _lt_dsymutil='~$DSYMUTIL $lib || :'
9081     else
9082       _lt_dsymutil=
9083     fi
9084     ;;
9085   esac
9086
9087 for ac_header in dlfcn.h
9088 do :
9089   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9090 "
9091 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9092   cat >>confdefs.h <<_ACEOF
9093 #define HAVE_DLFCN_H 1
9094 _ACEOF
9095
9096 fi
9097
9098 done
9099
9100
9101
9102
9103
9104 # Set options
9105
9106
9107
9108         enable_dlopen=no
9109
9110
9111
9112             # Check whether --enable-shared was given.
9113 if test "${enable_shared+set}" = set; then :
9114   enableval=$enable_shared; p=${PACKAGE-default}
9115     case $enableval in
9116     yes) enable_shared=yes ;;
9117     no) enable_shared=no ;;
9118     *)
9119       enable_shared=no
9120       # Look at the argument we got.  We use all the common list separators.
9121       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9122       for pkg in $enableval; do
9123         IFS="$lt_save_ifs"
9124         if test "X$pkg" = "X$p"; then
9125           enable_shared=yes
9126         fi
9127       done
9128       IFS="$lt_save_ifs"
9129       ;;
9130     esac
9131 else
9132   enable_shared=yes
9133 fi
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143   # Check whether --enable-static was given.
9144 if test "${enable_static+set}" = set; then :
9145   enableval=$enable_static; p=${PACKAGE-default}
9146     case $enableval in
9147     yes) enable_static=yes ;;
9148     no) enable_static=no ;;
9149     *)
9150      enable_static=no
9151       # Look at the argument we got.  We use all the common list separators.
9152       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9153       for pkg in $enableval; do
9154         IFS="$lt_save_ifs"
9155         if test "X$pkg" = "X$p"; then
9156           enable_static=yes
9157         fi
9158       done
9159       IFS="$lt_save_ifs"
9160       ;;
9161     esac
9162 else
9163   enable_static=yes
9164 fi
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175 # Check whether --with-pic was given.
9176 if test "${with_pic+set}" = set; then :
9177   withval=$with_pic; lt_p=${PACKAGE-default}
9178     case $withval in
9179     yes|no) pic_mode=$withval ;;
9180     *)
9181       pic_mode=default
9182       # Look at the argument we got.  We use all the common list separators.
9183       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9184       for lt_pkg in $withval; do
9185         IFS="$lt_save_ifs"
9186         if test "X$lt_pkg" = "X$lt_p"; then
9187           pic_mode=yes
9188         fi
9189       done
9190       IFS="$lt_save_ifs"
9191       ;;
9192     esac
9193 else
9194   pic_mode=default
9195 fi
9196
9197
9198 test -z "$pic_mode" && pic_mode=default
9199
9200
9201
9202
9203
9204
9205
9206   # Check whether --enable-fast-install was given.
9207 if test "${enable_fast_install+set}" = set; then :
9208   enableval=$enable_fast_install; p=${PACKAGE-default}
9209     case $enableval in
9210     yes) enable_fast_install=yes ;;
9211     no) enable_fast_install=no ;;
9212     *)
9213       enable_fast_install=no
9214       # Look at the argument we got.  We use all the common list separators.
9215       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9216       for pkg in $enableval; do
9217         IFS="$lt_save_ifs"
9218         if test "X$pkg" = "X$p"; then
9219           enable_fast_install=yes
9220         fi
9221       done
9222       IFS="$lt_save_ifs"
9223       ;;
9224     esac
9225 else
9226   enable_fast_install=yes
9227 fi
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239 # This can be used to rebuild libtool when needed
9240 LIBTOOL_DEPS="$ltmain"
9241
9242 # Always use our own libtool.
9243 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274 test -z "$LN_S" && LN_S="ln -s"
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289 if test -n "${ZSH_VERSION+set}" ; then
9290    setopt NO_GLOB_SUBST
9291 fi
9292
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9294 $as_echo_n "checking for objdir... " >&6; }
9295 if ${lt_cv_objdir+:} false; then :
9296   $as_echo_n "(cached) " >&6
9297 else
9298   rm -f .libs 2>/dev/null
9299 mkdir .libs 2>/dev/null
9300 if test -d .libs; then
9301   lt_cv_objdir=.libs
9302 else
9303   # MS-DOS does not allow filenames that begin with a dot.
9304   lt_cv_objdir=_libs
9305 fi
9306 rmdir .libs 2>/dev/null
9307 fi
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9309 $as_echo "$lt_cv_objdir" >&6; }
9310 objdir=$lt_cv_objdir
9311
9312
9313
9314
9315
9316 cat >>confdefs.h <<_ACEOF
9317 #define LT_OBJDIR "$lt_cv_objdir/"
9318 _ACEOF
9319
9320
9321
9322
9323 case $host_os in
9324 aix3*)
9325   # AIX sometimes has problems with the GCC collect2 program.  For some
9326   # reason, if we set the COLLECT_NAMES environment variable, the problems
9327   # vanish in a puff of smoke.
9328   if test "X${COLLECT_NAMES+set}" != Xset; then
9329     COLLECT_NAMES=
9330     export COLLECT_NAMES
9331   fi
9332   ;;
9333 esac
9334
9335 # Global variables:
9336 ofile=libtool
9337 can_build_shared=yes
9338
9339 # All known linkers require a `.a' archive for static linking (except MSVC,
9340 # which needs '.lib').
9341 libext=a
9342
9343 with_gnu_ld="$lt_cv_prog_gnu_ld"
9344
9345 old_CC="$CC"
9346 old_CFLAGS="$CFLAGS"
9347
9348 # Set sane defaults for various variables
9349 test -z "$CC" && CC=cc
9350 test -z "$LTCC" && LTCC=$CC
9351 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9352 test -z "$LD" && LD=ld
9353 test -z "$ac_objext" && ac_objext=o
9354
9355 for cc_temp in $compiler""; do
9356   case $cc_temp in
9357     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9358     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9359     \-*) ;;
9360     *) break;;
9361   esac
9362 done
9363 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9364
9365
9366 # Only perform the check for file, if the check method requires it
9367 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9368 case $deplibs_check_method in
9369 file_magic*)
9370   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9371     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9372 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9373 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9374   $as_echo_n "(cached) " >&6
9375 else
9376   case $MAGIC_CMD in
9377 [\\/*] |  ?:[\\/]*)
9378   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9379   ;;
9380 *)
9381   lt_save_MAGIC_CMD="$MAGIC_CMD"
9382   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9383   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9384   for ac_dir in $ac_dummy; do
9385     IFS="$lt_save_ifs"
9386     test -z "$ac_dir" && ac_dir=.
9387     if test -f $ac_dir/${ac_tool_prefix}file; then
9388       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9389       if test -n "$file_magic_test_file"; then
9390         case $deplibs_check_method in
9391         "file_magic "*)
9392           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9393           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9394           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9395             $EGREP "$file_magic_regex" > /dev/null; then
9396             :
9397           else
9398             cat <<_LT_EOF 1>&2
9399
9400 *** Warning: the command libtool uses to detect shared libraries,
9401 *** $file_magic_cmd, produces output that libtool cannot recognize.
9402 *** The result is that libtool may fail to recognize shared libraries
9403 *** as such.  This will affect the creation of libtool libraries that
9404 *** depend on shared libraries, but programs linked with such libtool
9405 *** libraries will work regardless of this problem.  Nevertheless, you
9406 *** may want to report the problem to your system manager and/or to
9407 *** bug-libtool@gnu.org
9408
9409 _LT_EOF
9410           fi ;;
9411         esac
9412       fi
9413       break
9414     fi
9415   done
9416   IFS="$lt_save_ifs"
9417   MAGIC_CMD="$lt_save_MAGIC_CMD"
9418   ;;
9419 esac
9420 fi
9421
9422 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9423 if test -n "$MAGIC_CMD"; then
9424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9425 $as_echo "$MAGIC_CMD" >&6; }
9426 else
9427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9428 $as_echo "no" >&6; }
9429 fi
9430
9431
9432
9433
9434
9435 if test -z "$lt_cv_path_MAGIC_CMD"; then
9436   if test -n "$ac_tool_prefix"; then
9437     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9438 $as_echo_n "checking for file... " >&6; }
9439 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9440   $as_echo_n "(cached) " >&6
9441 else
9442   case $MAGIC_CMD in
9443 [\\/*] |  ?:[\\/]*)
9444   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9445   ;;
9446 *)
9447   lt_save_MAGIC_CMD="$MAGIC_CMD"
9448   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9449   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9450   for ac_dir in $ac_dummy; do
9451     IFS="$lt_save_ifs"
9452     test -z "$ac_dir" && ac_dir=.
9453     if test -f $ac_dir/file; then
9454       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9455       if test -n "$file_magic_test_file"; then
9456         case $deplibs_check_method in
9457         "file_magic "*)
9458           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9459           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9460           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9461             $EGREP "$file_magic_regex" > /dev/null; then
9462             :
9463           else
9464             cat <<_LT_EOF 1>&2
9465
9466 *** Warning: the command libtool uses to detect shared libraries,
9467 *** $file_magic_cmd, produces output that libtool cannot recognize.
9468 *** The result is that libtool may fail to recognize shared libraries
9469 *** as such.  This will affect the creation of libtool libraries that
9470 *** depend on shared libraries, but programs linked with such libtool
9471 *** libraries will work regardless of this problem.  Nevertheless, you
9472 *** may want to report the problem to your system manager and/or to
9473 *** bug-libtool@gnu.org
9474
9475 _LT_EOF
9476           fi ;;
9477         esac
9478       fi
9479       break
9480     fi
9481   done
9482   IFS="$lt_save_ifs"
9483   MAGIC_CMD="$lt_save_MAGIC_CMD"
9484   ;;
9485 esac
9486 fi
9487
9488 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9489 if test -n "$MAGIC_CMD"; then
9490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9491 $as_echo "$MAGIC_CMD" >&6; }
9492 else
9493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9494 $as_echo "no" >&6; }
9495 fi
9496
9497
9498   else
9499     MAGIC_CMD=:
9500   fi
9501 fi
9502
9503   fi
9504   ;;
9505 esac
9506
9507 # Use C for the default configuration in the libtool script
9508
9509 lt_save_CC="$CC"
9510 ac_ext=c
9511 ac_cpp='$CPP $CPPFLAGS'
9512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9515
9516
9517 # Source file extension for C test sources.
9518 ac_ext=c
9519
9520 # Object file extension for compiled C test sources.
9521 objext=o
9522 objext=$objext
9523
9524 # Code to be used in simple compile tests
9525 lt_simple_compile_test_code="int some_variable = 0;"
9526
9527 # Code to be used in simple link tests
9528 lt_simple_link_test_code='int main(){return(0);}'
9529
9530
9531
9532
9533
9534
9535
9536 # If no C compiler was specified, use CC.
9537 LTCC=${LTCC-"$CC"}
9538
9539 # If no C compiler flags were specified, use CFLAGS.
9540 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9541
9542 # Allow CC to be a program name with arguments.
9543 compiler=$CC
9544
9545 # Save the default compiler, since it gets overwritten when the other
9546 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9547 compiler_DEFAULT=$CC
9548
9549 # save warnings/boilerplate of simple test code
9550 ac_outfile=conftest.$ac_objext
9551 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9552 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9553 _lt_compiler_boilerplate=`cat conftest.err`
9554 $RM conftest*
9555
9556 ac_outfile=conftest.$ac_objext
9557 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9558 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9559 _lt_linker_boilerplate=`cat conftest.err`
9560 $RM -r conftest*
9561
9562
9563 ## CAVEAT EMPTOR:
9564 ## There is no encapsulation within the following macros, do not change
9565 ## the running order or otherwise move them around unless you know exactly
9566 ## what you are doing...
9567 if test -n "$compiler"; then
9568
9569 lt_prog_compiler_no_builtin_flag=
9570
9571 if test "$GCC" = yes; then
9572   case $cc_basename in
9573   nvcc*)
9574     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9575   *)
9576     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9577   esac
9578
9579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9580 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9581 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9582   $as_echo_n "(cached) " >&6
9583 else
9584   lt_cv_prog_compiler_rtti_exceptions=no
9585    ac_outfile=conftest.$ac_objext
9586    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9587    lt_compiler_flag="-fno-rtti -fno-exceptions"
9588    # Insert the option either (1) after the last *FLAGS variable, or
9589    # (2) before a word containing "conftest.", or (3) at the end.
9590    # Note that $ac_compile itself does not contain backslashes and begins
9591    # with a dollar sign (not a hyphen), so the echo should work correctly.
9592    # The option is referenced via a variable to avoid confusing sed.
9593    lt_compile=`echo "$ac_compile" | $SED \
9594    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9595    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9596    -e 's:$: $lt_compiler_flag:'`
9597    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9598    (eval "$lt_compile" 2>conftest.err)
9599    ac_status=$?
9600    cat conftest.err >&5
9601    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602    if (exit $ac_status) && test -s "$ac_outfile"; then
9603      # The compiler can only warn and ignore the option if not recognized
9604      # So say no if there are warnings other than the usual output.
9605      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9606      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9607      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9608        lt_cv_prog_compiler_rtti_exceptions=yes
9609      fi
9610    fi
9611    $RM conftest*
9612
9613 fi
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9615 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9616
9617 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9618     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9619 else
9620     :
9621 fi
9622
9623 fi
9624
9625
9626
9627
9628
9629
9630   lt_prog_compiler_wl=
9631 lt_prog_compiler_pic=
9632 lt_prog_compiler_static=
9633
9634
9635   if test "$GCC" = yes; then
9636     lt_prog_compiler_wl='-Wl,'
9637     lt_prog_compiler_static='-static'
9638
9639     case $host_os in
9640       aix*)
9641       # All AIX code is PIC.
9642       if test "$host_cpu" = ia64; then
9643         # AIX 5 now supports IA64 processor
9644         lt_prog_compiler_static='-Bstatic'
9645       fi
9646       ;;
9647
9648     amigaos*)
9649       case $host_cpu in
9650       powerpc)
9651             # see comment about AmigaOS4 .so support
9652             lt_prog_compiler_pic='-fPIC'
9653         ;;
9654       m68k)
9655             # FIXME: we need at least 68020 code to build shared libraries, but
9656             # adding the `-m68020' flag to GCC prevents building anything better,
9657             # like `-m68040'.
9658             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9659         ;;
9660       esac
9661       ;;
9662
9663     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9664       # PIC is the default for these OSes.
9665       ;;
9666
9667     mingw* | cygwin* | pw32* | os2* | cegcc*)
9668       # This hack is so that the source file can tell whether it is being
9669       # built for inclusion in a dll (and should export symbols for example).
9670       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9671       # (--disable-auto-import) libraries
9672       lt_prog_compiler_pic='-DDLL_EXPORT'
9673       ;;
9674
9675     darwin* | rhapsody*)
9676       # PIC is the default on this platform
9677       # Common symbols not allowed in MH_DYLIB files
9678       lt_prog_compiler_pic='-fno-common'
9679       ;;
9680
9681     haiku*)
9682       # PIC is the default for Haiku.
9683       # The "-static" flag exists, but is broken.
9684       lt_prog_compiler_static=
9685       ;;
9686
9687     hpux*)
9688       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9689       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9690       # sets the default TLS model and affects inlining.
9691       case $host_cpu in
9692       hppa*64*)
9693         # +Z the default
9694         ;;
9695       *)
9696         lt_prog_compiler_pic='-fPIC'
9697         ;;
9698       esac
9699       ;;
9700
9701     interix[3-9]*)
9702       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9703       # Instead, we relocate shared libraries at runtime.
9704       ;;
9705
9706     msdosdjgpp*)
9707       # Just because we use GCC doesn't mean we suddenly get shared libraries
9708       # on systems that don't support them.
9709       lt_prog_compiler_can_build_shared=no
9710       enable_shared=no
9711       ;;
9712
9713     *nto* | *qnx*)
9714       # QNX uses GNU C++, but need to define -shared option too, otherwise
9715       # it will coredump.
9716       lt_prog_compiler_pic='-fPIC -shared'
9717       ;;
9718
9719     sysv4*MP*)
9720       if test -d /usr/nec; then
9721         lt_prog_compiler_pic=-Kconform_pic
9722       fi
9723       ;;
9724
9725     *)
9726       lt_prog_compiler_pic='-fPIC'
9727       ;;
9728     esac
9729
9730     case $cc_basename in
9731     nvcc*) # Cuda Compiler Driver 2.2
9732       lt_prog_compiler_wl='-Xlinker '
9733       if test -n "$lt_prog_compiler_pic"; then
9734         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9735       fi
9736       ;;
9737     esac
9738   else
9739     # PORTME Check for flag to pass linker flags through the system compiler.
9740     case $host_os in
9741     aix*)
9742       lt_prog_compiler_wl='-Wl,'
9743       if test "$host_cpu" = ia64; then
9744         # AIX 5 now supports IA64 processor
9745         lt_prog_compiler_static='-Bstatic'
9746       else
9747         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9748       fi
9749       ;;
9750
9751     mingw* | cygwin* | pw32* | os2* | cegcc*)
9752       # This hack is so that the source file can tell whether it is being
9753       # built for inclusion in a dll (and should export symbols for example).
9754       lt_prog_compiler_pic='-DDLL_EXPORT'
9755       ;;
9756
9757     hpux9* | hpux10* | hpux11*)
9758       lt_prog_compiler_wl='-Wl,'
9759       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9760       # not for PA HP-UX.
9761       case $host_cpu in
9762       hppa*64*|ia64*)
9763         # +Z the default
9764         ;;
9765       *)
9766         lt_prog_compiler_pic='+Z'
9767         ;;
9768       esac
9769       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9770       lt_prog_compiler_static='${wl}-a ${wl}archive'
9771       ;;
9772
9773     irix5* | irix6* | nonstopux*)
9774       lt_prog_compiler_wl='-Wl,'
9775       # PIC (with -KPIC) is the default.
9776       lt_prog_compiler_static='-non_shared'
9777       ;;
9778
9779     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9780       case $cc_basename in
9781       # old Intel for x86_64 which still supported -KPIC.
9782       ecc*)
9783         lt_prog_compiler_wl='-Wl,'
9784         lt_prog_compiler_pic='-KPIC'
9785         lt_prog_compiler_static='-static'
9786         ;;
9787       # icc used to be incompatible with GCC.
9788       # ICC 10 doesn't accept -KPIC any more.
9789       icc* | ifort*)
9790         lt_prog_compiler_wl='-Wl,'
9791         lt_prog_compiler_pic='-fPIC'
9792         lt_prog_compiler_static='-static'
9793         ;;
9794       # Lahey Fortran 8.1.
9795       lf95*)
9796         lt_prog_compiler_wl='-Wl,'
9797         lt_prog_compiler_pic='--shared'
9798         lt_prog_compiler_static='--static'
9799         ;;
9800       nagfor*)
9801         # NAG Fortran compiler
9802         lt_prog_compiler_wl='-Wl,-Wl,,'
9803         lt_prog_compiler_pic='-PIC'
9804         lt_prog_compiler_static='-Bstatic'
9805         ;;
9806       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9807         # Portland Group compilers (*not* the Pentium gcc compiler,
9808         # which looks to be a dead project)
9809         lt_prog_compiler_wl='-Wl,'
9810         lt_prog_compiler_pic='-fpic'
9811         lt_prog_compiler_static='-Bstatic'
9812         ;;
9813       ccc*)
9814         lt_prog_compiler_wl='-Wl,'
9815         # All Alpha code is PIC.
9816         lt_prog_compiler_static='-non_shared'
9817         ;;
9818       xl* | bgxl* | bgf* | mpixl*)
9819         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9820         lt_prog_compiler_wl='-Wl,'
9821         lt_prog_compiler_pic='-qpic'
9822         lt_prog_compiler_static='-qstaticlink'
9823         ;;
9824       *)
9825         case `$CC -V 2>&1 | sed 5q` in
9826         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9827           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9828           lt_prog_compiler_pic='-KPIC'
9829           lt_prog_compiler_static='-Bstatic'
9830           lt_prog_compiler_wl=''
9831           ;;
9832         *Sun\ F* | *Sun*Fortran*)
9833           lt_prog_compiler_pic='-KPIC'
9834           lt_prog_compiler_static='-Bstatic'
9835           lt_prog_compiler_wl='-Qoption ld '
9836           ;;
9837         *Sun\ C*)
9838           # Sun C 5.9
9839           lt_prog_compiler_pic='-KPIC'
9840           lt_prog_compiler_static='-Bstatic'
9841           lt_prog_compiler_wl='-Wl,'
9842           ;;
9843         *Intel*\ [CF]*Compiler*)
9844           lt_prog_compiler_wl='-Wl,'
9845           lt_prog_compiler_pic='-fPIC'
9846           lt_prog_compiler_static='-static'
9847           ;;
9848         *Portland\ Group*)
9849           lt_prog_compiler_wl='-Wl,'
9850           lt_prog_compiler_pic='-fpic'
9851           lt_prog_compiler_static='-Bstatic'
9852           ;;
9853         esac
9854         ;;
9855       esac
9856       ;;
9857
9858     newsos6)
9859       lt_prog_compiler_pic='-KPIC'
9860       lt_prog_compiler_static='-Bstatic'
9861       ;;
9862
9863     *nto* | *qnx*)
9864       # QNX uses GNU C++, but need to define -shared option too, otherwise
9865       # it will coredump.
9866       lt_prog_compiler_pic='-fPIC -shared'
9867       ;;
9868
9869     osf3* | osf4* | osf5*)
9870       lt_prog_compiler_wl='-Wl,'
9871       # All OSF/1 code is PIC.
9872       lt_prog_compiler_static='-non_shared'
9873       ;;
9874
9875     rdos*)
9876       lt_prog_compiler_static='-non_shared'
9877       ;;
9878
9879     solaris*)
9880       lt_prog_compiler_pic='-KPIC'
9881       lt_prog_compiler_static='-Bstatic'
9882       case $cc_basename in
9883       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9884         lt_prog_compiler_wl='-Qoption ld ';;
9885       *)
9886         lt_prog_compiler_wl='-Wl,';;
9887       esac
9888       ;;
9889
9890     sunos4*)
9891       lt_prog_compiler_wl='-Qoption ld '
9892       lt_prog_compiler_pic='-PIC'
9893       lt_prog_compiler_static='-Bstatic'
9894       ;;
9895
9896     sysv4 | sysv4.2uw2* | sysv4.3*)
9897       lt_prog_compiler_wl='-Wl,'
9898       lt_prog_compiler_pic='-KPIC'
9899       lt_prog_compiler_static='-Bstatic'
9900       ;;
9901
9902     sysv4*MP*)
9903       if test -d /usr/nec ;then
9904         lt_prog_compiler_pic='-Kconform_pic'
9905         lt_prog_compiler_static='-Bstatic'
9906       fi
9907       ;;
9908
9909     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9910       lt_prog_compiler_wl='-Wl,'
9911       lt_prog_compiler_pic='-KPIC'
9912       lt_prog_compiler_static='-Bstatic'
9913       ;;
9914
9915     unicos*)
9916       lt_prog_compiler_wl='-Wl,'
9917       lt_prog_compiler_can_build_shared=no
9918       ;;
9919
9920     uts4*)
9921       lt_prog_compiler_pic='-pic'
9922       lt_prog_compiler_static='-Bstatic'
9923       ;;
9924
9925     *)
9926       lt_prog_compiler_can_build_shared=no
9927       ;;
9928     esac
9929   fi
9930
9931 case $host_os in
9932   # For platforms which do not support PIC, -DPIC is meaningless:
9933   *djgpp*)
9934     lt_prog_compiler_pic=
9935     ;;
9936   *)
9937     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9938     ;;
9939 esac
9940
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9942 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9943 if ${lt_cv_prog_compiler_pic+:} false; then :
9944   $as_echo_n "(cached) " >&6
9945 else
9946   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9947 fi
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9949 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9950 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9951
9952 #
9953 # Check to make sure the PIC flag actually works.
9954 #
9955 if test -n "$lt_prog_compiler_pic"; then
9956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9957 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9958 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9959   $as_echo_n "(cached) " >&6
9960 else
9961   lt_cv_prog_compiler_pic_works=no
9962    ac_outfile=conftest.$ac_objext
9963    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9964    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9965    # Insert the option either (1) after the last *FLAGS variable, or
9966    # (2) before a word containing "conftest.", or (3) at the end.
9967    # Note that $ac_compile itself does not contain backslashes and begins
9968    # with a dollar sign (not a hyphen), so the echo should work correctly.
9969    # The option is referenced via a variable to avoid confusing sed.
9970    lt_compile=`echo "$ac_compile" | $SED \
9971    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9972    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9973    -e 's:$: $lt_compiler_flag:'`
9974    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9975    (eval "$lt_compile" 2>conftest.err)
9976    ac_status=$?
9977    cat conftest.err >&5
9978    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979    if (exit $ac_status) && test -s "$ac_outfile"; then
9980      # The compiler can only warn and ignore the option if not recognized
9981      # So say no if there are warnings other than the usual output.
9982      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9983      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9984      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9985        lt_cv_prog_compiler_pic_works=yes
9986      fi
9987    fi
9988    $RM conftest*
9989
9990 fi
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9992 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9993
9994 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9995     case $lt_prog_compiler_pic in
9996      "" | " "*) ;;
9997      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9998      esac
9999 else
10000     lt_prog_compiler_pic=
10001      lt_prog_compiler_can_build_shared=no
10002 fi
10003
10004 fi
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016 #
10017 # Check to make sure the static flag actually works.
10018 #
10019 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10021 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10022 if ${lt_cv_prog_compiler_static_works+:} false; then :
10023   $as_echo_n "(cached) " >&6
10024 else
10025   lt_cv_prog_compiler_static_works=no
10026    save_LDFLAGS="$LDFLAGS"
10027    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10028    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10029    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10030      # The linker can only warn and ignore the option if not recognized
10031      # So say no if there are warnings
10032      if test -s conftest.err; then
10033        # Append any errors to the config.log.
10034        cat conftest.err 1>&5
10035        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10036        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10037        if diff conftest.exp conftest.er2 >/dev/null; then
10038          lt_cv_prog_compiler_static_works=yes
10039        fi
10040      else
10041        lt_cv_prog_compiler_static_works=yes
10042      fi
10043    fi
10044    $RM -r conftest*
10045    LDFLAGS="$save_LDFLAGS"
10046
10047 fi
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10049 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10050
10051 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10052     :
10053 else
10054     lt_prog_compiler_static=
10055 fi
10056
10057
10058
10059
10060
10061
10062
10063   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10064 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10065 if ${lt_cv_prog_compiler_c_o+:} false; then :
10066   $as_echo_n "(cached) " >&6
10067 else
10068   lt_cv_prog_compiler_c_o=no
10069    $RM -r conftest 2>/dev/null
10070    mkdir conftest
10071    cd conftest
10072    mkdir out
10073    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10074
10075    lt_compiler_flag="-o out/conftest2.$ac_objext"
10076    # Insert the option either (1) after the last *FLAGS variable, or
10077    # (2) before a word containing "conftest.", or (3) at the end.
10078    # Note that $ac_compile itself does not contain backslashes and begins
10079    # with a dollar sign (not a hyphen), so the echo should work correctly.
10080    lt_compile=`echo "$ac_compile" | $SED \
10081    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10082    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10083    -e 's:$: $lt_compiler_flag:'`
10084    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10085    (eval "$lt_compile" 2>out/conftest.err)
10086    ac_status=$?
10087    cat out/conftest.err >&5
10088    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10090    then
10091      # The compiler can only warn and ignore the option if not recognized
10092      # So say no if there are warnings
10093      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10094      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10095      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10096        lt_cv_prog_compiler_c_o=yes
10097      fi
10098    fi
10099    chmod u+w . 2>&5
10100    $RM conftest*
10101    # SGI C++ compiler will create directory out/ii_files/ for
10102    # template instantiation
10103    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10104    $RM out/* && rmdir out
10105    cd ..
10106    $RM -r conftest
10107    $RM conftest*
10108
10109 fi
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10111 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10112
10113
10114
10115
10116
10117
10118   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10119 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10120 if ${lt_cv_prog_compiler_c_o+:} false; then :
10121   $as_echo_n "(cached) " >&6
10122 else
10123   lt_cv_prog_compiler_c_o=no
10124    $RM -r conftest 2>/dev/null
10125    mkdir conftest
10126    cd conftest
10127    mkdir out
10128    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10129
10130    lt_compiler_flag="-o out/conftest2.$ac_objext"
10131    # Insert the option either (1) after the last *FLAGS variable, or
10132    # (2) before a word containing "conftest.", or (3) at the end.
10133    # Note that $ac_compile itself does not contain backslashes and begins
10134    # with a dollar sign (not a hyphen), so the echo should work correctly.
10135    lt_compile=`echo "$ac_compile" | $SED \
10136    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10137    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10138    -e 's:$: $lt_compiler_flag:'`
10139    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10140    (eval "$lt_compile" 2>out/conftest.err)
10141    ac_status=$?
10142    cat out/conftest.err >&5
10143    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10145    then
10146      # The compiler can only warn and ignore the option if not recognized
10147      # So say no if there are warnings
10148      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10149      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10150      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10151        lt_cv_prog_compiler_c_o=yes
10152      fi
10153    fi
10154    chmod u+w . 2>&5
10155    $RM conftest*
10156    # SGI C++ compiler will create directory out/ii_files/ for
10157    # template instantiation
10158    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10159    $RM out/* && rmdir out
10160    cd ..
10161    $RM -r conftest
10162    $RM conftest*
10163
10164 fi
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10166 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10167
10168
10169
10170
10171 hard_links="nottested"
10172 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10173   # do not overwrite the value of need_locks provided by the user
10174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10175 $as_echo_n "checking if we can lock with hard links... " >&6; }
10176   hard_links=yes
10177   $RM conftest*
10178   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10179   touch conftest.a
10180   ln conftest.a conftest.b 2>&5 || hard_links=no
10181   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10183 $as_echo "$hard_links" >&6; }
10184   if test "$hard_links" = no; then
10185     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10186 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10187     need_locks=warn
10188   fi
10189 else
10190   need_locks=no
10191 fi
10192
10193
10194
10195
10196
10197
10198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10199 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10200
10201   runpath_var=
10202   allow_undefined_flag=
10203   always_export_symbols=no
10204   archive_cmds=
10205   archive_expsym_cmds=
10206   compiler_needs_object=no
10207   enable_shared_with_static_runtimes=no
10208   export_dynamic_flag_spec=
10209   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10210   hardcode_automatic=no
10211   hardcode_direct=no
10212   hardcode_direct_absolute=no
10213   hardcode_libdir_flag_spec=
10214   hardcode_libdir_separator=
10215   hardcode_minus_L=no
10216   hardcode_shlibpath_var=unsupported
10217   inherit_rpath=no
10218   link_all_deplibs=unknown
10219   module_cmds=
10220   module_expsym_cmds=
10221   old_archive_from_new_cmds=
10222   old_archive_from_expsyms_cmds=
10223   thread_safe_flag_spec=
10224   whole_archive_flag_spec=
10225   # include_expsyms should be a list of space-separated symbols to be *always*
10226   # included in the symbol list
10227   include_expsyms=
10228   # exclude_expsyms can be an extended regexp of symbols to exclude
10229   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10230   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10231   # as well as any symbol that contains `d'.
10232   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10233   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10234   # platforms (ab)use it in PIC code, but their linkers get confused if
10235   # the symbol is explicitly referenced.  Since portable code cannot
10236   # rely on this symbol name, it's probably fine to never include it in
10237   # preloaded symbol tables.
10238   # Exclude shared library initialization/finalization symbols.
10239   extract_expsyms_cmds=
10240
10241   case $host_os in
10242   cygwin* | mingw* | pw32* | cegcc*)
10243     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10244     # When not using gcc, we currently assume that we are using
10245     # Microsoft Visual C++.
10246     if test "$GCC" != yes; then
10247       with_gnu_ld=no
10248     fi
10249     ;;
10250   interix*)
10251     # we just hope/assume this is gcc and not c89 (= MSVC++)
10252     with_gnu_ld=yes
10253     ;;
10254   openbsd*)
10255     with_gnu_ld=no
10256     ;;
10257   linux* | k*bsd*-gnu | gnu*)
10258     link_all_deplibs=no
10259     ;;
10260   esac
10261
10262   ld_shlibs=yes
10263
10264   # On some targets, GNU ld is compatible enough with the native linker
10265   # that we're better off using the native interface for both.
10266   lt_use_gnu_ld_interface=no
10267   if test "$with_gnu_ld" = yes; then
10268     case $host_os in
10269       aix*)
10270         # The AIX port of GNU ld has always aspired to compatibility
10271         # with the native linker.  However, as the warning in the GNU ld
10272         # block says, versions before 2.19.5* couldn't really create working
10273         # shared libraries, regardless of the interface used.
10274         case `$LD -v 2>&1` in
10275           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10276           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10277           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10278           *)
10279             lt_use_gnu_ld_interface=yes
10280             ;;
10281         esac
10282         ;;
10283       *)
10284         lt_use_gnu_ld_interface=yes
10285         ;;
10286     esac
10287   fi
10288
10289   if test "$lt_use_gnu_ld_interface" = yes; then
10290     # If archive_cmds runs LD, not CC, wlarc should be empty
10291     wlarc='${wl}'
10292
10293     # Set some defaults for GNU ld with shared library support. These
10294     # are reset later if shared libraries are not supported. Putting them
10295     # here allows them to be overridden if necessary.
10296     runpath_var=LD_RUN_PATH
10297     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10298     export_dynamic_flag_spec='${wl}--export-dynamic'
10299     # ancient GNU ld didn't support --whole-archive et. al.
10300     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10301       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10302     else
10303       whole_archive_flag_spec=
10304     fi
10305     supports_anon_versioning=no
10306     case `$LD -v 2>&1` in
10307       *GNU\ gold*) supports_anon_versioning=yes ;;
10308       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10309       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10310       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10311       *\ 2.11.*) ;; # other 2.11 versions
10312       *) supports_anon_versioning=yes ;;
10313     esac
10314
10315     # See if GNU ld supports shared libraries.
10316     case $host_os in
10317     aix[3-9]*)
10318       # On AIX/PPC, the GNU linker is very broken
10319       if test "$host_cpu" != ia64; then
10320         ld_shlibs=no
10321         cat <<_LT_EOF 1>&2
10322
10323 *** Warning: the GNU linker, at least up to release 2.19, is reported
10324 *** to be unable to reliably create shared libraries on AIX.
10325 *** Therefore, libtool is disabling shared libraries support.  If you
10326 *** really care for shared libraries, you may want to install binutils
10327 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10328 *** You will then need to restart the configuration process.
10329
10330 _LT_EOF
10331       fi
10332       ;;
10333
10334     amigaos*)
10335       case $host_cpu in
10336       powerpc)
10337             # see comment about AmigaOS4 .so support
10338             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10339             archive_expsym_cmds=''
10340         ;;
10341       m68k)
10342             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)'
10343             hardcode_libdir_flag_spec='-L$libdir'
10344             hardcode_minus_L=yes
10345         ;;
10346       esac
10347       ;;
10348
10349     beos*)
10350       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10351         allow_undefined_flag=unsupported
10352         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10353         # support --undefined.  This deserves some investigation.  FIXME
10354         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10355       else
10356         ld_shlibs=no
10357       fi
10358       ;;
10359
10360     cygwin* | mingw* | pw32* | cegcc*)
10361       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10362       # as there is no search path for DLLs.
10363       hardcode_libdir_flag_spec='-L$libdir'
10364       export_dynamic_flag_spec='${wl}--export-all-symbols'
10365       allow_undefined_flag=unsupported
10366       always_export_symbols=no
10367       enable_shared_with_static_runtimes=yes
10368       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'
10369       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10370
10371       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10372         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10373         # If the export-symbols file already is a .def file (1st line
10374         # is EXPORTS), use it as is; otherwise, prepend...
10375         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10376           cp $export_symbols $output_objdir/$soname.def;
10377         else
10378           echo EXPORTS > $output_objdir/$soname.def;
10379           cat $export_symbols >> $output_objdir/$soname.def;
10380         fi~
10381         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10382       else
10383         ld_shlibs=no
10384       fi
10385       ;;
10386
10387     haiku*)
10388       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10389       link_all_deplibs=yes
10390       ;;
10391
10392     interix[3-9]*)
10393       hardcode_direct=no
10394       hardcode_shlibpath_var=no
10395       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10396       export_dynamic_flag_spec='${wl}-E'
10397       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10398       # Instead, shared libraries are loaded at an image base (0x10000000 by
10399       # default) and relocated if they conflict, which is a slow very memory
10400       # consuming and fragmenting process.  To avoid this, we pick a random,
10401       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10402       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10403       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10404       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'
10405       ;;
10406
10407     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10408       tmp_diet=no
10409       if test "$host_os" = linux-dietlibc; then
10410         case $cc_basename in
10411           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10412         esac
10413       fi
10414       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10415          && test "$tmp_diet" = no
10416       then
10417         tmp_addflag=' $pic_flag'
10418         tmp_sharedflag='-shared'
10419         case $cc_basename,$host_cpu in
10420         pgcc*)                          # Portland Group C compiler
10421           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'
10422           tmp_addflag=' $pic_flag'
10423           ;;
10424         pgf77* | pgf90* | pgf95* | pgfortran*)
10425                                         # Portland Group f77 and f90 compilers
10426           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'
10427           tmp_addflag=' $pic_flag -Mnomain' ;;
10428         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10429           tmp_addflag=' -i_dynamic' ;;
10430         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10431           tmp_addflag=' -i_dynamic -nofor_main' ;;
10432         ifc* | ifort*)                  # Intel Fortran compiler
10433           tmp_addflag=' -nofor_main' ;;
10434         lf95*)                          # Lahey Fortran 8.1
10435           whole_archive_flag_spec=
10436           tmp_sharedflag='--shared' ;;
10437         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10438           tmp_sharedflag='-qmkshrobj'
10439           tmp_addflag= ;;
10440         nvcc*)  # Cuda Compiler Driver 2.2
10441           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'
10442           compiler_needs_object=yes
10443           ;;
10444         esac
10445         case `$CC -V 2>&1 | sed 5q` in
10446         *Sun\ C*)                       # Sun C 5.9
10447           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'
10448           compiler_needs_object=yes
10449           tmp_sharedflag='-G' ;;
10450         *Sun\ F*)                       # Sun Fortran 8.3
10451           tmp_sharedflag='-G' ;;
10452         esac
10453         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10454
10455         if test "x$supports_anon_versioning" = xyes; then
10456           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10457             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10458             echo "local: *; };" >> $output_objdir/$libname.ver~
10459             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10460         fi
10461
10462         case $cc_basename in
10463         xlf* | bgf* | bgxlf* | mpixlf*)
10464           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10465           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10466           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10467           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10468           if test "x$supports_anon_versioning" = xyes; then
10469             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10470               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10471               echo "local: *; };" >> $output_objdir/$libname.ver~
10472               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10473           fi
10474           ;;
10475         esac
10476       else
10477         ld_shlibs=no
10478       fi
10479       ;;
10480
10481     netbsd* | netbsdelf*-gnu)
10482       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10483         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10484         wlarc=
10485       else
10486         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10487         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10488       fi
10489       ;;
10490
10491     solaris*)
10492       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10493         ld_shlibs=no
10494         cat <<_LT_EOF 1>&2
10495
10496 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10497 *** create shared libraries on Solaris systems.  Therefore, libtool
10498 *** is disabling shared libraries support.  We urge you to upgrade GNU
10499 *** binutils to release 2.9.1 or newer.  Another option is to modify
10500 *** your PATH or compiler configuration so that the native linker is
10501 *** used, and then restart.
10502
10503 _LT_EOF
10504       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10505         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10506         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10507       else
10508         ld_shlibs=no
10509       fi
10510       ;;
10511
10512     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10513       case `$LD -v 2>&1` in
10514         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10515         ld_shlibs=no
10516         cat <<_LT_EOF 1>&2
10517
10518 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10519 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10520 *** is disabling shared libraries support.  We urge you to upgrade GNU
10521 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10522 *** your PATH or compiler configuration so that the native linker is
10523 *** used, and then restart.
10524
10525 _LT_EOF
10526         ;;
10527         *)
10528           # For security reasons, it is highly recommended that you always
10529           # use absolute paths for naming shared libraries, and exclude the
10530           # DT_RUNPATH tag from executables and libraries.  But doing so
10531           # requires that you compile everything twice, which is a pain.
10532           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10533             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10534             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10535             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10536           else
10537             ld_shlibs=no
10538           fi
10539         ;;
10540       esac
10541       ;;
10542
10543     sunos4*)
10544       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10545       wlarc=
10546       hardcode_direct=yes
10547       hardcode_shlibpath_var=no
10548       ;;
10549
10550     *)
10551       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10552         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10553         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10554       else
10555         ld_shlibs=no
10556       fi
10557       ;;
10558     esac
10559
10560     if test "$ld_shlibs" = no; then
10561       runpath_var=
10562       hardcode_libdir_flag_spec=
10563       export_dynamic_flag_spec=
10564       whole_archive_flag_spec=
10565     fi
10566   else
10567     # PORTME fill in a description of your system's linker (not GNU ld)
10568     case $host_os in
10569     aix3*)
10570       allow_undefined_flag=unsupported
10571       always_export_symbols=yes
10572       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'
10573       # Note: this linker hardcodes the directories in LIBPATH if there
10574       # are no directories specified by -L.
10575       hardcode_minus_L=yes
10576       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10577         # Neither direct hardcoding nor static linking is supported with a
10578         # broken collect2.
10579         hardcode_direct=unsupported
10580       fi
10581       ;;
10582
10583     aix[4-9]*)
10584       if test "$host_cpu" = ia64; then
10585         # On IA64, the linker does run time linking by default, so we don't
10586         # have to do anything special.
10587         aix_use_runtimelinking=no
10588         exp_sym_flag='-Bexport'
10589         no_entry_flag=""
10590       else
10591         # If we're using GNU nm, then we don't want the "-C" option.
10592         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10593         # Also, AIX nm treats weak defined symbols like other global
10594         # defined symbols, whereas GNU nm marks them as "W".
10595         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10596           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'
10597         else
10598           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'
10599         fi
10600         aix_use_runtimelinking=no
10601
10602         # Test if we are trying to use run time linking or normal
10603         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10604         # need to do runtime linking.
10605         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10606           for ld_flag in $LDFLAGS; do
10607           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10608             aix_use_runtimelinking=yes
10609             break
10610           fi
10611           done
10612           ;;
10613         esac
10614
10615         exp_sym_flag='-bexport'
10616         no_entry_flag='-bnoentry'
10617       fi
10618
10619       # When large executables or shared objects are built, AIX ld can
10620       # have problems creating the table of contents.  If linking a library
10621       # or program results in "error TOC overflow" add -mminimal-toc to
10622       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10623       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10624
10625       archive_cmds=''
10626       hardcode_direct=yes
10627       hardcode_direct_absolute=yes
10628       hardcode_libdir_separator=':'
10629       link_all_deplibs=yes
10630       file_list_spec='${wl}-f,'
10631
10632       if test "$GCC" = yes; then
10633         case $host_os in aix4.[012]|aix4.[012].*)
10634         # We only want to do this on AIX 4.2 and lower, the check
10635         # below for broken collect2 doesn't work under 4.3+
10636           collect2name=`${CC} -print-prog-name=collect2`
10637           if test -f "$collect2name" &&
10638            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10639           then
10640           # We have reworked collect2
10641           :
10642           else
10643           # We have old collect2
10644           hardcode_direct=unsupported
10645           # It fails to find uninstalled libraries when the uninstalled
10646           # path is not listed in the libpath.  Setting hardcode_minus_L
10647           # to unsupported forces relinking
10648           hardcode_minus_L=yes
10649           hardcode_libdir_flag_spec='-L$libdir'
10650           hardcode_libdir_separator=
10651           fi
10652           ;;
10653         esac
10654         shared_flag='-shared'
10655         if test "$aix_use_runtimelinking" = yes; then
10656           shared_flag="$shared_flag "'${wl}-G'
10657         fi
10658         link_all_deplibs=no
10659       else
10660         # not using gcc
10661         if test "$host_cpu" = ia64; then
10662         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10663         # chokes on -Wl,-G. The following line is correct:
10664           shared_flag='-G'
10665         else
10666           if test "$aix_use_runtimelinking" = yes; then
10667             shared_flag='${wl}-G'
10668           else
10669             shared_flag='${wl}-bM:SRE'
10670           fi
10671         fi
10672       fi
10673
10674       export_dynamic_flag_spec='${wl}-bexpall'
10675       # It seems that -bexpall does not export symbols beginning with
10676       # underscore (_), so it is better to generate a list of symbols to export.
10677       always_export_symbols=yes
10678       if test "$aix_use_runtimelinking" = yes; then
10679         # Warning - without using the other runtime loading flags (-brtl),
10680         # -berok will link without error, but may produce a broken library.
10681         allow_undefined_flag='-berok'
10682         # Determine the default libpath from the value encoded in an
10683         # empty executable.
10684         if test "${lt_cv_aix_libpath+set}" = set; then
10685   aix_libpath=$lt_cv_aix_libpath
10686 else
10687   if ${lt_cv_aix_libpath_+:} false; then :
10688   $as_echo_n "(cached) " >&6
10689 else
10690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10691 /* end confdefs.h.  */
10692
10693 int
10694 main ()
10695 {
10696
10697   ;
10698   return 0;
10699 }
10700 _ACEOF
10701 if ac_fn_c_try_link "$LINENO"; then :
10702
10703   lt_aix_libpath_sed='
10704       /Import File Strings/,/^$/ {
10705           /^0/ {
10706               s/^0  *\([^ ]*\) *$/\1/
10707               p
10708           }
10709       }'
10710   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10711   # Check for a 64-bit object if we didn't find anything.
10712   if test -z "$lt_cv_aix_libpath_"; then
10713     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10714   fi
10715 fi
10716 rm -f core conftest.err conftest.$ac_objext \
10717     conftest$ac_exeext conftest.$ac_ext
10718   if test -z "$lt_cv_aix_libpath_"; then
10719     lt_cv_aix_libpath_="/usr/lib:/lib"
10720   fi
10721
10722 fi
10723
10724   aix_libpath=$lt_cv_aix_libpath_
10725 fi
10726
10727         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10728         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"
10729       else
10730         if test "$host_cpu" = ia64; then
10731           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10732           allow_undefined_flag="-z nodefs"
10733           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"
10734         else
10735          # Determine the default libpath from the value encoded in an
10736          # empty executable.
10737          if test "${lt_cv_aix_libpath+set}" = set; then
10738   aix_libpath=$lt_cv_aix_libpath
10739 else
10740   if ${lt_cv_aix_libpath_+:} false; then :
10741   $as_echo_n "(cached) " >&6
10742 else
10743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10744 /* end confdefs.h.  */
10745
10746 int
10747 main ()
10748 {
10749
10750   ;
10751   return 0;
10752 }
10753 _ACEOF
10754 if ac_fn_c_try_link "$LINENO"; then :
10755
10756   lt_aix_libpath_sed='
10757       /Import File Strings/,/^$/ {
10758           /^0/ {
10759               s/^0  *\([^ ]*\) *$/\1/
10760               p
10761           }
10762       }'
10763   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10764   # Check for a 64-bit object if we didn't find anything.
10765   if test -z "$lt_cv_aix_libpath_"; then
10766     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10767   fi
10768 fi
10769 rm -f core conftest.err conftest.$ac_objext \
10770     conftest$ac_exeext conftest.$ac_ext
10771   if test -z "$lt_cv_aix_libpath_"; then
10772     lt_cv_aix_libpath_="/usr/lib:/lib"
10773   fi
10774
10775 fi
10776
10777   aix_libpath=$lt_cv_aix_libpath_
10778 fi
10779
10780          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10781           # Warning - without using the other run time loading flags,
10782           # -berok will link without error, but may produce a broken library.
10783           no_undefined_flag=' ${wl}-bernotok'
10784           allow_undefined_flag=' ${wl}-berok'
10785           if test "$with_gnu_ld" = yes; then
10786             # We only use this code for GNU lds that support --whole-archive.
10787             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10788           else
10789             # Exported symbols can be pulled into shared objects from archives
10790             whole_archive_flag_spec='$convenience'
10791           fi
10792           archive_cmds_need_lc=yes
10793           # This is similar to how AIX traditionally builds its shared libraries.
10794           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'
10795         fi
10796       fi
10797       ;;
10798
10799     amigaos*)
10800       case $host_cpu in
10801       powerpc)
10802             # see comment about AmigaOS4 .so support
10803             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10804             archive_expsym_cmds=''
10805         ;;
10806       m68k)
10807             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)'
10808             hardcode_libdir_flag_spec='-L$libdir'
10809             hardcode_minus_L=yes
10810         ;;
10811       esac
10812       ;;
10813
10814     bsdi[45]*)
10815       export_dynamic_flag_spec=-rdynamic
10816       ;;
10817
10818     cygwin* | mingw* | pw32* | cegcc*)
10819       # When not using gcc, we currently assume that we are using
10820       # Microsoft Visual C++.
10821       # hardcode_libdir_flag_spec is actually meaningless, as there is
10822       # no search path for DLLs.
10823       case $cc_basename in
10824       cl*)
10825         # Native MSVC
10826         hardcode_libdir_flag_spec=' '
10827         allow_undefined_flag=unsupported
10828         always_export_symbols=yes
10829         file_list_spec='@'
10830         # Tell ltmain to make .lib files, not .a files.
10831         libext=lib
10832         # Tell ltmain to make .dll files, not .so files.
10833         shrext_cmds=".dll"
10834         # FIXME: Setting linknames here is a bad hack.
10835         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10836         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10837             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10838           else
10839             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10840           fi~
10841           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10842           linknames='
10843         # The linker will not automatically build a static lib if we build a DLL.
10844         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10845         enable_shared_with_static_runtimes=yes
10846         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10847         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10848         # Don't use ranlib
10849         old_postinstall_cmds='chmod 644 $oldlib'
10850         postlink_cmds='lt_outputfile="@OUTPUT@"~
10851           lt_tool_outputfile="@TOOL_OUTPUT@"~
10852           case $lt_outputfile in
10853             *.exe|*.EXE) ;;
10854             *)
10855               lt_outputfile="$lt_outputfile.exe"
10856               lt_tool_outputfile="$lt_tool_outputfile.exe"
10857               ;;
10858           esac~
10859           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10860             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10861             $RM "$lt_outputfile.manifest";
10862           fi'
10863         ;;
10864       *)
10865         # Assume MSVC wrapper
10866         hardcode_libdir_flag_spec=' '
10867         allow_undefined_flag=unsupported
10868         # Tell ltmain to make .lib files, not .a files.
10869         libext=lib
10870         # Tell ltmain to make .dll files, not .so files.
10871         shrext_cmds=".dll"
10872         # FIXME: Setting linknames here is a bad hack.
10873         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10874         # The linker will automatically build a .lib file if we build a DLL.
10875         old_archive_from_new_cmds='true'
10876         # FIXME: Should let the user specify the lib program.
10877         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10878         enable_shared_with_static_runtimes=yes
10879         ;;
10880       esac
10881       ;;
10882
10883     darwin* | rhapsody*)
10884
10885
10886   archive_cmds_need_lc=no
10887   hardcode_direct=no
10888   hardcode_automatic=yes
10889   hardcode_shlibpath_var=unsupported
10890   if test "$lt_cv_ld_force_load" = "yes"; then
10891     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\"`'
10892
10893   else
10894     whole_archive_flag_spec=''
10895   fi
10896   link_all_deplibs=yes
10897   allow_undefined_flag="$_lt_dar_allow_undefined"
10898   case $cc_basename in
10899      ifort*) _lt_dar_can_shared=yes ;;
10900      *) _lt_dar_can_shared=$GCC ;;
10901   esac
10902   if test "$_lt_dar_can_shared" = "yes"; then
10903     output_verbose_link_cmd=func_echo_all
10904     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10905     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10906     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}"
10907     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}"
10908
10909   else
10910   ld_shlibs=no
10911   fi
10912
10913       ;;
10914
10915     dgux*)
10916       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10917       hardcode_libdir_flag_spec='-L$libdir'
10918       hardcode_shlibpath_var=no
10919       ;;
10920
10921     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10922     # support.  Future versions do this automatically, but an explicit c++rt0.o
10923     # does not break anything, and helps significantly (at the cost of a little
10924     # extra space).
10925     freebsd2.2*)
10926       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10927       hardcode_libdir_flag_spec='-R$libdir'
10928       hardcode_direct=yes
10929       hardcode_shlibpath_var=no
10930       ;;
10931
10932     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10933     freebsd2.*)
10934       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10935       hardcode_direct=yes
10936       hardcode_minus_L=yes
10937       hardcode_shlibpath_var=no
10938       ;;
10939
10940     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10941     freebsd* | dragonfly*)
10942       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10943       hardcode_libdir_flag_spec='-R$libdir'
10944       hardcode_direct=yes
10945       hardcode_shlibpath_var=no
10946       ;;
10947
10948     hpux9*)
10949       if test "$GCC" = yes; then
10950         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'
10951       else
10952         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'
10953       fi
10954       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10955       hardcode_libdir_separator=:
10956       hardcode_direct=yes
10957
10958       # hardcode_minus_L: Not really in the search PATH,
10959       # but as the default location of the library.
10960       hardcode_minus_L=yes
10961       export_dynamic_flag_spec='${wl}-E'
10962       ;;
10963
10964     hpux10*)
10965       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10966         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10967       else
10968         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10969       fi
10970       if test "$with_gnu_ld" = no; then
10971         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10972         hardcode_libdir_separator=:
10973         hardcode_direct=yes
10974         hardcode_direct_absolute=yes
10975         export_dynamic_flag_spec='${wl}-E'
10976         # hardcode_minus_L: Not really in the search PATH,
10977         # but as the default location of the library.
10978         hardcode_minus_L=yes
10979       fi
10980       ;;
10981
10982     hpux11*)
10983       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10984         case $host_cpu in
10985         hppa*64*)
10986           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10987           ;;
10988         ia64*)
10989           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10990           ;;
10991         *)
10992           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10993           ;;
10994         esac
10995       else
10996         case $host_cpu in
10997         hppa*64*)
10998           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10999           ;;
11000         ia64*)
11001           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11002           ;;
11003         *)
11004
11005           # Older versions of the 11.00 compiler do not understand -b yet
11006           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11007           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11008 $as_echo_n "checking if $CC understands -b... " >&6; }
11009 if ${lt_cv_prog_compiler__b+:} false; then :
11010   $as_echo_n "(cached) " >&6
11011 else
11012   lt_cv_prog_compiler__b=no
11013    save_LDFLAGS="$LDFLAGS"
11014    LDFLAGS="$LDFLAGS -b"
11015    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11016    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11017      # The linker can only warn and ignore the option if not recognized
11018      # So say no if there are warnings
11019      if test -s conftest.err; then
11020        # Append any errors to the config.log.
11021        cat conftest.err 1>&5
11022        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11023        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11024        if diff conftest.exp conftest.er2 >/dev/null; then
11025          lt_cv_prog_compiler__b=yes
11026        fi
11027      else
11028        lt_cv_prog_compiler__b=yes
11029      fi
11030    fi
11031    $RM -r conftest*
11032    LDFLAGS="$save_LDFLAGS"
11033
11034 fi
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11036 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11037
11038 if test x"$lt_cv_prog_compiler__b" = xyes; then
11039     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11040 else
11041     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11042 fi
11043
11044           ;;
11045         esac
11046       fi
11047       if test "$with_gnu_ld" = no; then
11048         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11049         hardcode_libdir_separator=:
11050
11051         case $host_cpu in
11052         hppa*64*|ia64*)
11053           hardcode_direct=no
11054           hardcode_shlibpath_var=no
11055           ;;
11056         *)
11057           hardcode_direct=yes
11058           hardcode_direct_absolute=yes
11059           export_dynamic_flag_spec='${wl}-E'
11060
11061           # hardcode_minus_L: Not really in the search PATH,
11062           # but as the default location of the library.
11063           hardcode_minus_L=yes
11064           ;;
11065         esac
11066       fi
11067       ;;
11068
11069     irix5* | irix6* | nonstopux*)
11070       if test "$GCC" = yes; then
11071         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'
11072         # Try to use the -exported_symbol ld option, if it does not
11073         # work, assume that -exports_file does not work either and
11074         # implicitly export all symbols.
11075         # This should be the same for all languages, so no per-tag cache variable.
11076         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11077 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11078 if ${lt_cv_irix_exported_symbol+:} false; then :
11079   $as_echo_n "(cached) " >&6
11080 else
11081   save_LDFLAGS="$LDFLAGS"
11082            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11083            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11084 /* end confdefs.h.  */
11085 int foo (void) { return 0; }
11086 _ACEOF
11087 if ac_fn_c_try_link "$LINENO"; then :
11088   lt_cv_irix_exported_symbol=yes
11089 else
11090   lt_cv_irix_exported_symbol=no
11091 fi
11092 rm -f core conftest.err conftest.$ac_objext \
11093     conftest$ac_exeext conftest.$ac_ext
11094            LDFLAGS="$save_LDFLAGS"
11095 fi
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11097 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11098         if test "$lt_cv_irix_exported_symbol" = yes; then
11099           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'
11100         fi
11101       else
11102         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'
11103         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'
11104       fi
11105       archive_cmds_need_lc='no'
11106       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11107       hardcode_libdir_separator=:
11108       inherit_rpath=yes
11109       link_all_deplibs=yes
11110       ;;
11111
11112     netbsd* | netbsdelf*-gnu)
11113       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11114         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11115       else
11116         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11117       fi
11118       hardcode_libdir_flag_spec='-R$libdir'
11119       hardcode_direct=yes
11120       hardcode_shlibpath_var=no
11121       ;;
11122
11123     newsos6)
11124       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11125       hardcode_direct=yes
11126       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11127       hardcode_libdir_separator=:
11128       hardcode_shlibpath_var=no
11129       ;;
11130
11131     *nto* | *qnx*)
11132       ;;
11133
11134     openbsd*)
11135       if test -f /usr/libexec/ld.so; then
11136         hardcode_direct=yes
11137         hardcode_shlibpath_var=no
11138         hardcode_direct_absolute=yes
11139         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11140           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11141           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11142           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11143           export_dynamic_flag_spec='${wl}-E'
11144         else
11145           case $host_os in
11146            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11147              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11148              hardcode_libdir_flag_spec='-R$libdir'
11149              ;;
11150            *)
11151              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11152              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11153              ;;
11154           esac
11155         fi
11156       else
11157         ld_shlibs=no
11158       fi
11159       ;;
11160
11161     os2*)
11162       hardcode_libdir_flag_spec='-L$libdir'
11163       hardcode_minus_L=yes
11164       allow_undefined_flag=unsupported
11165       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'
11166       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11167       ;;
11168
11169     osf3*)
11170       if test "$GCC" = yes; then
11171         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11172         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'
11173       else
11174         allow_undefined_flag=' -expect_unresolved \*'
11175         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'
11176       fi
11177       archive_cmds_need_lc='no'
11178       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11179       hardcode_libdir_separator=:
11180       ;;
11181
11182     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11183       if test "$GCC" = yes; then
11184         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11185         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'
11186         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11187       else
11188         allow_undefined_flag=' -expect_unresolved \*'
11189         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'
11190         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~
11191         $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'
11192
11193         # Both c and cxx compiler support -rpath directly
11194         hardcode_libdir_flag_spec='-rpath $libdir'
11195       fi
11196       archive_cmds_need_lc='no'
11197       hardcode_libdir_separator=:
11198       ;;
11199
11200     solaris*)
11201       no_undefined_flag=' -z defs'
11202       if test "$GCC" = yes; then
11203         wlarc='${wl}'
11204         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11205         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11206           $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'
11207       else
11208         case `$CC -V 2>&1` in
11209         *"Compilers 5.0"*)
11210           wlarc=''
11211           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11212           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11213           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11214           ;;
11215         *)
11216           wlarc='${wl}'
11217           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11218           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11219           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11220           ;;
11221         esac
11222       fi
11223       hardcode_libdir_flag_spec='-R$libdir'
11224       hardcode_shlibpath_var=no
11225       case $host_os in
11226       solaris2.[0-5] | solaris2.[0-5].*) ;;
11227       *)
11228         # The compiler driver will combine and reorder linker options,
11229         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11230         # but is careful enough not to reorder.
11231         # Supported since Solaris 2.6 (maybe 2.5.1?)
11232         if test "$GCC" = yes; then
11233           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11234         else
11235           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11236         fi
11237         ;;
11238       esac
11239       link_all_deplibs=yes
11240       ;;
11241
11242     sunos4*)
11243       if test "x$host_vendor" = xsequent; then
11244         # Use $CC to link under sequent, because it throws in some extra .o
11245         # files that make .init and .fini sections work.
11246         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11247       else
11248         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11249       fi
11250       hardcode_libdir_flag_spec='-L$libdir'
11251       hardcode_direct=yes
11252       hardcode_minus_L=yes
11253       hardcode_shlibpath_var=no
11254       ;;
11255
11256     sysv4)
11257       case $host_vendor in
11258         sni)
11259           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11260           hardcode_direct=yes # is this really true???
11261         ;;
11262         siemens)
11263           ## LD is ld it makes a PLAMLIB
11264           ## CC just makes a GrossModule.
11265           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11266           reload_cmds='$CC -r -o $output$reload_objs'
11267           hardcode_direct=no
11268         ;;
11269         motorola)
11270           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11271           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11272         ;;
11273       esac
11274       runpath_var='LD_RUN_PATH'
11275       hardcode_shlibpath_var=no
11276       ;;
11277
11278     sysv4.3*)
11279       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11280       hardcode_shlibpath_var=no
11281       export_dynamic_flag_spec='-Bexport'
11282       ;;
11283
11284     sysv4*MP*)
11285       if test -d /usr/nec; then
11286         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11287         hardcode_shlibpath_var=no
11288         runpath_var=LD_RUN_PATH
11289         hardcode_runpath_var=yes
11290         ld_shlibs=yes
11291       fi
11292       ;;
11293
11294     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11295       no_undefined_flag='${wl}-z,text'
11296       archive_cmds_need_lc=no
11297       hardcode_shlibpath_var=no
11298       runpath_var='LD_RUN_PATH'
11299
11300       if test "$GCC" = yes; then
11301         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11302         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11303       else
11304         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11305         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11306       fi
11307       ;;
11308
11309     sysv5* | sco3.2v5* | sco5v6*)
11310       # Note: We can NOT use -z defs as we might desire, because we do not
11311       # link with -lc, and that would cause any symbols used from libc to
11312       # always be unresolved, which means just about no library would
11313       # ever link correctly.  If we're not using GNU ld we use -z text
11314       # though, which does catch some bad symbols but isn't as heavy-handed
11315       # as -z defs.
11316       no_undefined_flag='${wl}-z,text'
11317       allow_undefined_flag='${wl}-z,nodefs'
11318       archive_cmds_need_lc=no
11319       hardcode_shlibpath_var=no
11320       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11321       hardcode_libdir_separator=':'
11322       link_all_deplibs=yes
11323       export_dynamic_flag_spec='${wl}-Bexport'
11324       runpath_var='LD_RUN_PATH'
11325
11326       if test "$GCC" = yes; then
11327         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11328         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11329       else
11330         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11331         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11332       fi
11333       ;;
11334
11335     uts4*)
11336       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11337       hardcode_libdir_flag_spec='-L$libdir'
11338       hardcode_shlibpath_var=no
11339       ;;
11340
11341     *)
11342       ld_shlibs=no
11343       ;;
11344     esac
11345
11346     if test x$host_vendor = xsni; then
11347       case $host in
11348       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11349         export_dynamic_flag_spec='${wl}-Blargedynsym'
11350         ;;
11351       esac
11352     fi
11353   fi
11354
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11356 $as_echo "$ld_shlibs" >&6; }
11357 test "$ld_shlibs" = no && can_build_shared=no
11358
11359 with_gnu_ld=$with_gnu_ld
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375 #
11376 # Do we need to explicitly link libc?
11377 #
11378 case "x$archive_cmds_need_lc" in
11379 x|xyes)
11380   # Assume -lc should be added
11381   archive_cmds_need_lc=yes
11382
11383   if test "$enable_shared" = yes && test "$GCC" = yes; then
11384     case $archive_cmds in
11385     *'~'*)
11386       # FIXME: we may have to deal with multi-command sequences.
11387       ;;
11388     '$CC '*)
11389       # Test whether the compiler implicitly links with -lc since on some
11390       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11391       # to ld, don't add -lc before -lgcc.
11392       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11393 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11394 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11395   $as_echo_n "(cached) " >&6
11396 else
11397   $RM conftest*
11398         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11399
11400         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11401   (eval $ac_compile) 2>&5
11402   ac_status=$?
11403   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11404   test $ac_status = 0; } 2>conftest.err; then
11405           soname=conftest
11406           lib=conftest
11407           libobjs=conftest.$ac_objext
11408           deplibs=
11409           wl=$lt_prog_compiler_wl
11410           pic_flag=$lt_prog_compiler_pic
11411           compiler_flags=-v
11412           linker_flags=-v
11413           verstring=
11414           output_objdir=.
11415           libname=conftest
11416           lt_save_allow_undefined_flag=$allow_undefined_flag
11417           allow_undefined_flag=
11418           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11419   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11420   ac_status=$?
11421   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11422   test $ac_status = 0; }
11423           then
11424             lt_cv_archive_cmds_need_lc=no
11425           else
11426             lt_cv_archive_cmds_need_lc=yes
11427           fi
11428           allow_undefined_flag=$lt_save_allow_undefined_flag
11429         else
11430           cat conftest.err 1>&5
11431         fi
11432         $RM conftest*
11433
11434 fi
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11436 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11437       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11438       ;;
11439     esac
11440   fi
11441   ;;
11442 esac
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11596 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11597
11598 if test "$GCC" = yes; then
11599   case $host_os in
11600     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11601     *) lt_awk_arg="/^libraries:/" ;;
11602   esac
11603   case $host_os in
11604     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11605     *) lt_sed_strip_eq="s,=/,/,g" ;;
11606   esac
11607   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11608   case $lt_search_path_spec in
11609   *\;*)
11610     # if the path contains ";" then we assume it to be the separator
11611     # otherwise default to the standard path separator (i.e. ":") - it is
11612     # assumed that no part of a normal pathname contains ";" but that should
11613     # okay in the real world where ";" in dirpaths is itself problematic.
11614     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11615     ;;
11616   *)
11617     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11618     ;;
11619   esac
11620   # Ok, now we have the path, separated by spaces, we can step through it
11621   # and add multilib dir if necessary.
11622   lt_tmp_lt_search_path_spec=
11623   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11624   for lt_sys_path in $lt_search_path_spec; do
11625     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11626       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11627     else
11628       test -d "$lt_sys_path" && \
11629         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11630     fi
11631   done
11632   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11633 BEGIN {RS=" "; FS="/|\n";} {
11634   lt_foo="";
11635   lt_count=0;
11636   for (lt_i = NF; lt_i > 0; lt_i--) {
11637     if ($lt_i != "" && $lt_i != ".") {
11638       if ($lt_i == "..") {
11639         lt_count++;
11640       } else {
11641         if (lt_count == 0) {
11642           lt_foo="/" $lt_i lt_foo;
11643         } else {
11644           lt_count--;
11645         }
11646       }
11647     }
11648   }
11649   if (lt_foo != "") { lt_freq[lt_foo]++; }
11650   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11651 }'`
11652   # AWK program above erroneously prepends '/' to C:/dos/paths
11653   # for these hosts.
11654   case $host_os in
11655     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11656       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11657   esac
11658   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11659 else
11660   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11661 fi
11662 library_names_spec=
11663 libname_spec='lib$name'
11664 soname_spec=
11665 shrext_cmds=".so"
11666 postinstall_cmds=
11667 postuninstall_cmds=
11668 finish_cmds=
11669 finish_eval=
11670 shlibpath_var=
11671 shlibpath_overrides_runpath=unknown
11672 version_type=none
11673 dynamic_linker="$host_os ld.so"
11674 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11675 need_lib_prefix=unknown
11676 hardcode_into_libs=no
11677
11678 # when you set need_version to no, make sure it does not cause -set_version
11679 # flags to be left without arguments
11680 need_version=unknown
11681
11682 case $host_os in
11683 aix3*)
11684   version_type=linux # correct to gnu/linux during the next big refactor
11685   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11686   shlibpath_var=LIBPATH
11687
11688   # AIX 3 has no versioning support, so we append a major version to the name.
11689   soname_spec='${libname}${release}${shared_ext}$major'
11690   ;;
11691
11692 aix[4-9]*)
11693   version_type=linux # correct to gnu/linux during the next big refactor
11694   need_lib_prefix=no
11695   need_version=no
11696   hardcode_into_libs=yes
11697   if test "$host_cpu" = ia64; then
11698     # AIX 5 supports IA64
11699     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11700     shlibpath_var=LD_LIBRARY_PATH
11701   else
11702     # With GCC up to 2.95.x, collect2 would create an import file
11703     # for dependence libraries.  The import file would start with
11704     # the line `#! .'.  This would cause the generated library to
11705     # depend on `.', always an invalid library.  This was fixed in
11706     # development snapshots of GCC prior to 3.0.
11707     case $host_os in
11708       aix4 | aix4.[01] | aix4.[01].*)
11709       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11710            echo ' yes '
11711            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11712         :
11713       else
11714         can_build_shared=no
11715       fi
11716       ;;
11717     esac
11718     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11719     # soname into executable. Probably we can add versioning support to
11720     # collect2, so additional links can be useful in future.
11721     if test "$aix_use_runtimelinking" = yes; then
11722       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11723       # instead of lib<name>.a to let people know that these are not
11724       # typical AIX shared libraries.
11725       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11726     else
11727       # We preserve .a as extension for shared libraries through AIX4.2
11728       # and later when we are not doing run time linking.
11729       library_names_spec='${libname}${release}.a $libname.a'
11730       soname_spec='${libname}${release}${shared_ext}$major'
11731     fi
11732     shlibpath_var=LIBPATH
11733   fi
11734   ;;
11735
11736 amigaos*)
11737   case $host_cpu in
11738   powerpc)
11739     # Since July 2007 AmigaOS4 officially supports .so libraries.
11740     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11741     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11742     ;;
11743   m68k)
11744     library_names_spec='$libname.ixlibrary $libname.a'
11745     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11746     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'
11747     ;;
11748   esac
11749   ;;
11750
11751 beos*)
11752   library_names_spec='${libname}${shared_ext}'
11753   dynamic_linker="$host_os ld.so"
11754   shlibpath_var=LIBRARY_PATH
11755   ;;
11756
11757 bsdi[45]*)
11758   version_type=linux # correct to gnu/linux during the next big refactor
11759   need_version=no
11760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11761   soname_spec='${libname}${release}${shared_ext}$major'
11762   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11763   shlibpath_var=LD_LIBRARY_PATH
11764   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11765   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11766   # the default ld.so.conf also contains /usr/contrib/lib and
11767   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11768   # libtool to hard-code these into programs
11769   ;;
11770
11771 cygwin* | mingw* | pw32* | cegcc*)
11772   version_type=windows
11773   shrext_cmds=".dll"
11774   need_version=no
11775   need_lib_prefix=no
11776
11777   case $GCC,$cc_basename in
11778   yes,*)
11779     # gcc
11780     library_names_spec='$libname.dll.a'
11781     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11782     postinstall_cmds='base_file=`basename \${file}`~
11783       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11784       dldir=$destdir/`dirname \$dlpath`~
11785       test -d \$dldir || mkdir -p \$dldir~
11786       $install_prog $dir/$dlname \$dldir/$dlname~
11787       chmod a+x \$dldir/$dlname~
11788       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11789         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11790       fi'
11791     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11792       dlpath=$dir/\$dldll~
11793        $RM \$dlpath'
11794     shlibpath_overrides_runpath=yes
11795
11796     case $host_os in
11797     cygwin*)
11798       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11799       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11800
11801       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11802       ;;
11803     mingw* | cegcc*)
11804       # MinGW DLLs use traditional 'lib' prefix
11805       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11806       ;;
11807     pw32*)
11808       # pw32 DLLs use 'pw' prefix rather than 'lib'
11809       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11810       ;;
11811     esac
11812     dynamic_linker='Win32 ld.exe'
11813     ;;
11814
11815   *,cl*)
11816     # Native MSVC
11817     libname_spec='$name'
11818     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11819     library_names_spec='${libname}.dll.lib'
11820
11821     case $build_os in
11822     mingw*)
11823       sys_lib_search_path_spec=
11824       lt_save_ifs=$IFS
11825       IFS=';'
11826       for lt_path in $LIB
11827       do
11828         IFS=$lt_save_ifs
11829         # Let DOS variable expansion print the short 8.3 style file name.
11830         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11831         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11832       done
11833       IFS=$lt_save_ifs
11834       # Convert to MSYS style.
11835       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11836       ;;
11837     cygwin*)
11838       # Convert to unix form, then to dos form, then back to unix form
11839       # but this time dos style (no spaces!) so that the unix form looks
11840       # like /cygdrive/c/PROGRA~1:/cygdr...
11841       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11842       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11843       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11844       ;;
11845     *)
11846       sys_lib_search_path_spec="$LIB"
11847       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11848         # It is most probably a Windows format PATH.
11849         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11850       else
11851         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11852       fi
11853       # FIXME: find the short name or the path components, as spaces are
11854       # common. (e.g. "Program Files" -> "PROGRA~1")
11855       ;;
11856     esac
11857
11858     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11859     postinstall_cmds='base_file=`basename \${file}`~
11860       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11861       dldir=$destdir/`dirname \$dlpath`~
11862       test -d \$dldir || mkdir -p \$dldir~
11863       $install_prog $dir/$dlname \$dldir/$dlname'
11864     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11865       dlpath=$dir/\$dldll~
11866        $RM \$dlpath'
11867     shlibpath_overrides_runpath=yes
11868     dynamic_linker='Win32 link.exe'
11869     ;;
11870
11871   *)
11872     # Assume MSVC wrapper
11873     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11874     dynamic_linker='Win32 ld.exe'
11875     ;;
11876   esac
11877   # FIXME: first we should search . and the directory the executable is in
11878   shlibpath_var=PATH
11879   ;;
11880
11881 darwin* | rhapsody*)
11882   dynamic_linker="$host_os dyld"
11883   version_type=darwin
11884   need_lib_prefix=no
11885   need_version=no
11886   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11887   soname_spec='${libname}${release}${major}$shared_ext'
11888   shlibpath_overrides_runpath=yes
11889   shlibpath_var=DYLD_LIBRARY_PATH
11890   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11891
11892   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11893   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11894   ;;
11895
11896 dgux*)
11897   version_type=linux # correct to gnu/linux during the next big refactor
11898   need_lib_prefix=no
11899   need_version=no
11900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11901   soname_spec='${libname}${release}${shared_ext}$major'
11902   shlibpath_var=LD_LIBRARY_PATH
11903   ;;
11904
11905 freebsd* | dragonfly*)
11906   # DragonFly does not have aout.  When/if they implement a new
11907   # versioning mechanism, adjust this.
11908   if test -x /usr/bin/objformat; then
11909     objformat=`/usr/bin/objformat`
11910   else
11911     case $host_os in
11912     freebsd[23].*) objformat=aout ;;
11913     *) objformat=elf ;;
11914     esac
11915   fi
11916   version_type=freebsd-$objformat
11917   case $version_type in
11918     freebsd-elf*)
11919       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11920       need_version=no
11921       need_lib_prefix=no
11922       ;;
11923     freebsd-*)
11924       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11925       need_version=yes
11926       ;;
11927   esac
11928   shlibpath_var=LD_LIBRARY_PATH
11929   case $host_os in
11930   freebsd2.*)
11931     shlibpath_overrides_runpath=yes
11932     ;;
11933   freebsd3.[01]* | freebsdelf3.[01]*)
11934     shlibpath_overrides_runpath=yes
11935     hardcode_into_libs=yes
11936     ;;
11937   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11938   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11939     shlibpath_overrides_runpath=no
11940     hardcode_into_libs=yes
11941     ;;
11942   *) # from 4.6 on, and DragonFly
11943     shlibpath_overrides_runpath=yes
11944     hardcode_into_libs=yes
11945     ;;
11946   esac
11947   ;;
11948
11949 gnu*)
11950   version_type=linux # correct to gnu/linux during the next big refactor
11951   need_lib_prefix=no
11952   need_version=no
11953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11954   soname_spec='${libname}${release}${shared_ext}$major'
11955   shlibpath_var=LD_LIBRARY_PATH
11956   shlibpath_overrides_runpath=no
11957   hardcode_into_libs=yes
11958   ;;
11959
11960 haiku*)
11961   version_type=linux # correct to gnu/linux during the next big refactor
11962   need_lib_prefix=no
11963   need_version=no
11964   dynamic_linker="$host_os runtime_loader"
11965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11966   soname_spec='${libname}${release}${shared_ext}$major'
11967   shlibpath_var=LIBRARY_PATH
11968   shlibpath_overrides_runpath=yes
11969   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11970   hardcode_into_libs=yes
11971   ;;
11972
11973 hpux9* | hpux10* | hpux11*)
11974   # Give a soname corresponding to the major version so that dld.sl refuses to
11975   # link against other versions.
11976   version_type=sunos
11977   need_lib_prefix=no
11978   need_version=no
11979   case $host_cpu in
11980   ia64*)
11981     shrext_cmds='.so'
11982     hardcode_into_libs=yes
11983     dynamic_linker="$host_os dld.so"
11984     shlibpath_var=LD_LIBRARY_PATH
11985     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11986     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11987     soname_spec='${libname}${release}${shared_ext}$major'
11988     if test "X$HPUX_IA64_MODE" = X32; then
11989       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11990     else
11991       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11992     fi
11993     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11994     ;;
11995   hppa*64*)
11996     shrext_cmds='.sl'
11997     hardcode_into_libs=yes
11998     dynamic_linker="$host_os dld.sl"
11999     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12000     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12001     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12002     soname_spec='${libname}${release}${shared_ext}$major'
12003     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12004     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12005     ;;
12006   *)
12007     shrext_cmds='.sl'
12008     dynamic_linker="$host_os dld.sl"
12009     shlibpath_var=SHLIB_PATH
12010     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12011     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12012     soname_spec='${libname}${release}${shared_ext}$major'
12013     ;;
12014   esac
12015   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12016   postinstall_cmds='chmod 555 $lib'
12017   # or fails outright, so override atomically:
12018   install_override_mode=555
12019   ;;
12020
12021 interix[3-9]*)
12022   version_type=linux # correct to gnu/linux during the next big refactor
12023   need_lib_prefix=no
12024   need_version=no
12025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12026   soname_spec='${libname}${release}${shared_ext}$major'
12027   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12028   shlibpath_var=LD_LIBRARY_PATH
12029   shlibpath_overrides_runpath=no
12030   hardcode_into_libs=yes
12031   ;;
12032
12033 irix5* | irix6* | nonstopux*)
12034   case $host_os in
12035     nonstopux*) version_type=nonstopux ;;
12036     *)
12037         if test "$lt_cv_prog_gnu_ld" = yes; then
12038                 version_type=linux # correct to gnu/linux during the next big refactor
12039         else
12040                 version_type=irix
12041         fi ;;
12042   esac
12043   need_lib_prefix=no
12044   need_version=no
12045   soname_spec='${libname}${release}${shared_ext}$major'
12046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12047   case $host_os in
12048   irix5* | nonstopux*)
12049     libsuff= shlibsuff=
12050     ;;
12051   *)
12052     case $LD in # libtool.m4 will add one of these switches to LD
12053     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12054       libsuff= shlibsuff= libmagic=32-bit;;
12055     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12056       libsuff=32 shlibsuff=N32 libmagic=N32;;
12057     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12058       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12059     *) libsuff= shlibsuff= libmagic=never-match;;
12060     esac
12061     ;;
12062   esac
12063   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12064   shlibpath_overrides_runpath=no
12065   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12066   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12067   hardcode_into_libs=yes
12068   ;;
12069
12070 # No shared lib support for Linux oldld, aout, or coff.
12071 linux*oldld* | linux*aout* | linux*coff*)
12072   dynamic_linker=no
12073   ;;
12074
12075 # This must be glibc/ELF.
12076 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12077   version_type=linux # correct to gnu/linux during the next big refactor
12078   need_lib_prefix=no
12079   need_version=no
12080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12081   soname_spec='${libname}${release}${shared_ext}$major'
12082   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12083   shlibpath_var=LD_LIBRARY_PATH
12084   shlibpath_overrides_runpath=no
12085
12086   # Some binutils ld are patched to set DT_RUNPATH
12087   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12088   $as_echo_n "(cached) " >&6
12089 else
12090   lt_cv_shlibpath_overrides_runpath=no
12091     save_LDFLAGS=$LDFLAGS
12092     save_libdir=$libdir
12093     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12094          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12095     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12096 /* end confdefs.h.  */
12097
12098 int
12099 main ()
12100 {
12101
12102   ;
12103   return 0;
12104 }
12105 _ACEOF
12106 if ac_fn_c_try_link "$LINENO"; then :
12107   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12108   lt_cv_shlibpath_overrides_runpath=yes
12109 fi
12110 fi
12111 rm -f core conftest.err conftest.$ac_objext \
12112     conftest$ac_exeext conftest.$ac_ext
12113     LDFLAGS=$save_LDFLAGS
12114     libdir=$save_libdir
12115
12116 fi
12117
12118   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12119
12120   # This implies no fast_install, which is unacceptable.
12121   # Some rework will be needed to allow for fast_install
12122   # before this can be enabled.
12123   hardcode_into_libs=yes
12124
12125   # Append ld.so.conf contents to the search path
12126   if test -f /etc/ld.so.conf; then
12127     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' ' '`
12128     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12129   fi
12130
12131   # We used to test for /lib/ld.so.1 and disable shared libraries on
12132   # powerpc, because MkLinux only supported shared libraries with the
12133   # GNU dynamic linker.  Since this was broken with cross compilers,
12134   # most powerpc-linux boxes support dynamic linking these days and
12135   # people can always --disable-shared, the test was removed, and we
12136   # assume the GNU/Linux dynamic linker is in use.
12137   dynamic_linker='GNU/Linux ld.so'
12138   ;;
12139
12140 netbsdelf*-gnu)
12141   version_type=linux
12142   need_lib_prefix=no
12143   need_version=no
12144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12145   soname_spec='${libname}${release}${shared_ext}$major'
12146   shlibpath_var=LD_LIBRARY_PATH
12147   shlibpath_overrides_runpath=no
12148   hardcode_into_libs=yes
12149   dynamic_linker='NetBSD ld.elf_so'
12150   ;;
12151
12152 netbsd*)
12153   version_type=sunos
12154   need_lib_prefix=no
12155   need_version=no
12156   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12157     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12158     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12159     dynamic_linker='NetBSD (a.out) ld.so'
12160   else
12161     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12162     soname_spec='${libname}${release}${shared_ext}$major'
12163     dynamic_linker='NetBSD ld.elf_so'
12164   fi
12165   shlibpath_var=LD_LIBRARY_PATH
12166   shlibpath_overrides_runpath=yes
12167   hardcode_into_libs=yes
12168   ;;
12169
12170 newsos6)
12171   version_type=linux # correct to gnu/linux during the next big refactor
12172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12173   shlibpath_var=LD_LIBRARY_PATH
12174   shlibpath_overrides_runpath=yes
12175   ;;
12176
12177 *nto* | *qnx*)
12178   version_type=qnx
12179   need_lib_prefix=no
12180   need_version=no
12181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12182   soname_spec='${libname}${release}${shared_ext}$major'
12183   shlibpath_var=LD_LIBRARY_PATH
12184   shlibpath_overrides_runpath=no
12185   hardcode_into_libs=yes
12186   dynamic_linker='ldqnx.so'
12187   ;;
12188
12189 openbsd*)
12190   version_type=sunos
12191   sys_lib_dlsearch_path_spec="/usr/lib"
12192   need_lib_prefix=no
12193   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12194   case $host_os in
12195     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12196     *)                          need_version=no  ;;
12197   esac
12198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12199   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12200   shlibpath_var=LD_LIBRARY_PATH
12201   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12202     case $host_os in
12203       openbsd2.[89] | openbsd2.[89].*)
12204         shlibpath_overrides_runpath=no
12205         ;;
12206       *)
12207         shlibpath_overrides_runpath=yes
12208         ;;
12209       esac
12210   else
12211     shlibpath_overrides_runpath=yes
12212   fi
12213   ;;
12214
12215 os2*)
12216   libname_spec='$name'
12217   shrext_cmds=".dll"
12218   need_lib_prefix=no
12219   library_names_spec='$libname${shared_ext} $libname.a'
12220   dynamic_linker='OS/2 ld.exe'
12221   shlibpath_var=LIBPATH
12222   ;;
12223
12224 osf3* | osf4* | osf5*)
12225   version_type=osf
12226   need_lib_prefix=no
12227   need_version=no
12228   soname_spec='${libname}${release}${shared_ext}$major'
12229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12230   shlibpath_var=LD_LIBRARY_PATH
12231   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12232   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12233   ;;
12234
12235 rdos*)
12236   dynamic_linker=no
12237   ;;
12238
12239 solaris*)
12240   version_type=linux # correct to gnu/linux during the next big refactor
12241   need_lib_prefix=no
12242   need_version=no
12243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12244   soname_spec='${libname}${release}${shared_ext}$major'
12245   shlibpath_var=LD_LIBRARY_PATH
12246   shlibpath_overrides_runpath=yes
12247   hardcode_into_libs=yes
12248   # ldd complains unless libraries are executable
12249   postinstall_cmds='chmod +x $lib'
12250   ;;
12251
12252 sunos4*)
12253   version_type=sunos
12254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12255   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12256   shlibpath_var=LD_LIBRARY_PATH
12257   shlibpath_overrides_runpath=yes
12258   if test "$with_gnu_ld" = yes; then
12259     need_lib_prefix=no
12260   fi
12261   need_version=yes
12262   ;;
12263
12264 sysv4 | sysv4.3*)
12265   version_type=linux # correct to gnu/linux during the next big refactor
12266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12267   soname_spec='${libname}${release}${shared_ext}$major'
12268   shlibpath_var=LD_LIBRARY_PATH
12269   case $host_vendor in
12270     sni)
12271       shlibpath_overrides_runpath=no
12272       need_lib_prefix=no
12273       runpath_var=LD_RUN_PATH
12274       ;;
12275     siemens)
12276       need_lib_prefix=no
12277       ;;
12278     motorola)
12279       need_lib_prefix=no
12280       need_version=no
12281       shlibpath_overrides_runpath=no
12282       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12283       ;;
12284   esac
12285   ;;
12286
12287 sysv4*MP*)
12288   if test -d /usr/nec ;then
12289     version_type=linux # correct to gnu/linux during the next big refactor
12290     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12291     soname_spec='$libname${shared_ext}.$major'
12292     shlibpath_var=LD_LIBRARY_PATH
12293   fi
12294   ;;
12295
12296 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12297   version_type=freebsd-elf
12298   need_lib_prefix=no
12299   need_version=no
12300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12301   soname_spec='${libname}${release}${shared_ext}$major'
12302   shlibpath_var=LD_LIBRARY_PATH
12303   shlibpath_overrides_runpath=yes
12304   hardcode_into_libs=yes
12305   if test "$with_gnu_ld" = yes; then
12306     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12307   else
12308     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12309     case $host_os in
12310       sco3.2v5*)
12311         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12312         ;;
12313     esac
12314   fi
12315   sys_lib_dlsearch_path_spec='/usr/lib'
12316   ;;
12317
12318 tpf*)
12319   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12320   version_type=linux # correct to gnu/linux during the next big refactor
12321   need_lib_prefix=no
12322   need_version=no
12323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12324   shlibpath_var=LD_LIBRARY_PATH
12325   shlibpath_overrides_runpath=no
12326   hardcode_into_libs=yes
12327   ;;
12328
12329 uts4*)
12330   version_type=linux # correct to gnu/linux during the next big refactor
12331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12332   soname_spec='${libname}${release}${shared_ext}$major'
12333   shlibpath_var=LD_LIBRARY_PATH
12334   ;;
12335
12336 *)
12337   dynamic_linker=no
12338   ;;
12339 esac
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12341 $as_echo "$dynamic_linker" >&6; }
12342 test "$dynamic_linker" = no && can_build_shared=no
12343
12344 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12345 if test "$GCC" = yes; then
12346   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12347 fi
12348
12349 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12350   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12351 fi
12352 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12353   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12354 fi
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12448 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12449 hardcode_action=
12450 if test -n "$hardcode_libdir_flag_spec" ||
12451    test -n "$runpath_var" ||
12452    test "X$hardcode_automatic" = "Xyes" ; then
12453
12454   # We can hardcode non-existent directories.
12455   if test "$hardcode_direct" != no &&
12456      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12457      # have to relink, otherwise we might link with an installed library
12458      # when we should be linking with a yet-to-be-installed one
12459      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12460      test "$hardcode_minus_L" != no; then
12461     # Linking always hardcodes the temporary library directory.
12462     hardcode_action=relink
12463   else
12464     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12465     hardcode_action=immediate
12466   fi
12467 else
12468   # We cannot hardcode anything, or else we can only hardcode existing
12469   # directories.
12470   hardcode_action=unsupported
12471 fi
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12473 $as_echo "$hardcode_action" >&6; }
12474
12475 if test "$hardcode_action" = relink ||
12476    test "$inherit_rpath" = yes; then
12477   # Fast installation is not supported
12478   enable_fast_install=no
12479 elif test "$shlibpath_overrides_runpath" = yes ||
12480      test "$enable_shared" = no; then
12481   # Fast installation is not necessary
12482   enable_fast_install=needless
12483 fi
12484
12485
12486
12487
12488
12489
12490   if test "x$enable_dlopen" != xyes; then
12491   enable_dlopen=unknown
12492   enable_dlopen_self=unknown
12493   enable_dlopen_self_static=unknown
12494 else
12495   lt_cv_dlopen=no
12496   lt_cv_dlopen_libs=
12497
12498   case $host_os in
12499   beos*)
12500     lt_cv_dlopen="load_add_on"
12501     lt_cv_dlopen_libs=
12502     lt_cv_dlopen_self=yes
12503     ;;
12504
12505   mingw* | pw32* | cegcc*)
12506     lt_cv_dlopen="LoadLibrary"
12507     lt_cv_dlopen_libs=
12508     ;;
12509
12510   cygwin*)
12511     lt_cv_dlopen="dlopen"
12512     lt_cv_dlopen_libs=
12513     ;;
12514
12515   darwin*)
12516   # if libdl is installed we need to link against it
12517     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12518 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12519 if ${ac_cv_lib_dl_dlopen+:} false; then :
12520   $as_echo_n "(cached) " >&6
12521 else
12522   ac_check_lib_save_LIBS=$LIBS
12523 LIBS="-ldl  $LIBS"
12524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12525 /* end confdefs.h.  */
12526
12527 /* Override any GCC internal prototype to avoid an error.
12528    Use char because int might match the return type of a GCC
12529    builtin and then its argument prototype would still apply.  */
12530 #ifdef __cplusplus
12531 extern "C"
12532 #endif
12533 char dlopen ();
12534 int
12535 main ()
12536 {
12537 return dlopen ();
12538   ;
12539   return 0;
12540 }
12541 _ACEOF
12542 if ac_fn_c_try_link "$LINENO"; then :
12543   ac_cv_lib_dl_dlopen=yes
12544 else
12545   ac_cv_lib_dl_dlopen=no
12546 fi
12547 rm -f core conftest.err conftest.$ac_objext \
12548     conftest$ac_exeext conftest.$ac_ext
12549 LIBS=$ac_check_lib_save_LIBS
12550 fi
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12552 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12553 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12554   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12555 else
12556
12557     lt_cv_dlopen="dyld"
12558     lt_cv_dlopen_libs=
12559     lt_cv_dlopen_self=yes
12560
12561 fi
12562
12563     ;;
12564
12565   *)
12566     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12567 if test "x$ac_cv_func_shl_load" = xyes; then :
12568   lt_cv_dlopen="shl_load"
12569 else
12570   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12571 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12572 if ${ac_cv_lib_dld_shl_load+:} false; then :
12573   $as_echo_n "(cached) " >&6
12574 else
12575   ac_check_lib_save_LIBS=$LIBS
12576 LIBS="-ldld  $LIBS"
12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12578 /* end confdefs.h.  */
12579
12580 /* Override any GCC internal prototype to avoid an error.
12581    Use char because int might match the return type of a GCC
12582    builtin and then its argument prototype would still apply.  */
12583 #ifdef __cplusplus
12584 extern "C"
12585 #endif
12586 char shl_load ();
12587 int
12588 main ()
12589 {
12590 return shl_load ();
12591   ;
12592   return 0;
12593 }
12594 _ACEOF
12595 if ac_fn_c_try_link "$LINENO"; then :
12596   ac_cv_lib_dld_shl_load=yes
12597 else
12598   ac_cv_lib_dld_shl_load=no
12599 fi
12600 rm -f core conftest.err conftest.$ac_objext \
12601     conftest$ac_exeext conftest.$ac_ext
12602 LIBS=$ac_check_lib_save_LIBS
12603 fi
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12605 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12606 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12607   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12608 else
12609   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12610 if test "x$ac_cv_func_dlopen" = xyes; then :
12611   lt_cv_dlopen="dlopen"
12612 else
12613   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12614 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12615 if ${ac_cv_lib_dl_dlopen+:} false; then :
12616   $as_echo_n "(cached) " >&6
12617 else
12618   ac_check_lib_save_LIBS=$LIBS
12619 LIBS="-ldl  $LIBS"
12620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621 /* end confdefs.h.  */
12622
12623 /* Override any GCC internal prototype to avoid an error.
12624    Use char because int might match the return type of a GCC
12625    builtin and then its argument prototype would still apply.  */
12626 #ifdef __cplusplus
12627 extern "C"
12628 #endif
12629 char dlopen ();
12630 int
12631 main ()
12632 {
12633 return dlopen ();
12634   ;
12635   return 0;
12636 }
12637 _ACEOF
12638 if ac_fn_c_try_link "$LINENO"; then :
12639   ac_cv_lib_dl_dlopen=yes
12640 else
12641   ac_cv_lib_dl_dlopen=no
12642 fi
12643 rm -f core conftest.err conftest.$ac_objext \
12644     conftest$ac_exeext conftest.$ac_ext
12645 LIBS=$ac_check_lib_save_LIBS
12646 fi
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12648 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12649 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12650   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12651 else
12652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12653 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12654 if ${ac_cv_lib_svld_dlopen+:} false; then :
12655   $as_echo_n "(cached) " >&6
12656 else
12657   ac_check_lib_save_LIBS=$LIBS
12658 LIBS="-lsvld  $LIBS"
12659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12660 /* end confdefs.h.  */
12661
12662 /* Override any GCC internal prototype to avoid an error.
12663    Use char because int might match the return type of a GCC
12664    builtin and then its argument prototype would still apply.  */
12665 #ifdef __cplusplus
12666 extern "C"
12667 #endif
12668 char dlopen ();
12669 int
12670 main ()
12671 {
12672 return dlopen ();
12673   ;
12674   return 0;
12675 }
12676 _ACEOF
12677 if ac_fn_c_try_link "$LINENO"; then :
12678   ac_cv_lib_svld_dlopen=yes
12679 else
12680   ac_cv_lib_svld_dlopen=no
12681 fi
12682 rm -f core conftest.err conftest.$ac_objext \
12683     conftest$ac_exeext conftest.$ac_ext
12684 LIBS=$ac_check_lib_save_LIBS
12685 fi
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12687 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12688 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12689   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12690 else
12691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12692 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12693 if ${ac_cv_lib_dld_dld_link+:} false; then :
12694   $as_echo_n "(cached) " >&6
12695 else
12696   ac_check_lib_save_LIBS=$LIBS
12697 LIBS="-ldld  $LIBS"
12698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12699 /* end confdefs.h.  */
12700
12701 /* Override any GCC internal prototype to avoid an error.
12702    Use char because int might match the return type of a GCC
12703    builtin and then its argument prototype would still apply.  */
12704 #ifdef __cplusplus
12705 extern "C"
12706 #endif
12707 char dld_link ();
12708 int
12709 main ()
12710 {
12711 return dld_link ();
12712   ;
12713   return 0;
12714 }
12715 _ACEOF
12716 if ac_fn_c_try_link "$LINENO"; then :
12717   ac_cv_lib_dld_dld_link=yes
12718 else
12719   ac_cv_lib_dld_dld_link=no
12720 fi
12721 rm -f core conftest.err conftest.$ac_objext \
12722     conftest$ac_exeext conftest.$ac_ext
12723 LIBS=$ac_check_lib_save_LIBS
12724 fi
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12726 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12727 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12728   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12729 fi
12730
12731
12732 fi
12733
12734
12735 fi
12736
12737
12738 fi
12739
12740
12741 fi
12742
12743
12744 fi
12745
12746     ;;
12747   esac
12748
12749   if test "x$lt_cv_dlopen" != xno; then
12750     enable_dlopen=yes
12751   else
12752     enable_dlopen=no
12753   fi
12754
12755   case $lt_cv_dlopen in
12756   dlopen)
12757     save_CPPFLAGS="$CPPFLAGS"
12758     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12759
12760     save_LDFLAGS="$LDFLAGS"
12761     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12762
12763     save_LIBS="$LIBS"
12764     LIBS="$lt_cv_dlopen_libs $LIBS"
12765
12766     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12767 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12768 if ${lt_cv_dlopen_self+:} false; then :
12769   $as_echo_n "(cached) " >&6
12770 else
12771           if test "$cross_compiling" = yes; then :
12772   lt_cv_dlopen_self=cross
12773 else
12774   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12775   lt_status=$lt_dlunknown
12776   cat > conftest.$ac_ext <<_LT_EOF
12777 #line $LINENO "configure"
12778 #include "confdefs.h"
12779
12780 #if HAVE_DLFCN_H
12781 #include <dlfcn.h>
12782 #endif
12783
12784 #include <stdio.h>
12785
12786 #ifdef RTLD_GLOBAL
12787 #  define LT_DLGLOBAL           RTLD_GLOBAL
12788 #else
12789 #  ifdef DL_GLOBAL
12790 #    define LT_DLGLOBAL         DL_GLOBAL
12791 #  else
12792 #    define LT_DLGLOBAL         0
12793 #  endif
12794 #endif
12795
12796 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12797    find out it does not work in some platform. */
12798 #ifndef LT_DLLAZY_OR_NOW
12799 #  ifdef RTLD_LAZY
12800 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12801 #  else
12802 #    ifdef DL_LAZY
12803 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12804 #    else
12805 #      ifdef RTLD_NOW
12806 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12807 #      else
12808 #        ifdef DL_NOW
12809 #          define LT_DLLAZY_OR_NOW      DL_NOW
12810 #        else
12811 #          define LT_DLLAZY_OR_NOW      0
12812 #        endif
12813 #      endif
12814 #    endif
12815 #  endif
12816 #endif
12817
12818 /* When -fvisbility=hidden is used, assume the code has been annotated
12819    correspondingly for the symbols needed.  */
12820 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12821 int fnord () __attribute__((visibility("default")));
12822 #endif
12823
12824 int fnord () { return 42; }
12825 int main ()
12826 {
12827   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12828   int status = $lt_dlunknown;
12829
12830   if (self)
12831     {
12832       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12833       else
12834         {
12835           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12836           else puts (dlerror ());
12837         }
12838       /* dlclose (self); */
12839     }
12840   else
12841     puts (dlerror ());
12842
12843   return status;
12844 }
12845 _LT_EOF
12846   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12847   (eval $ac_link) 2>&5
12848   ac_status=$?
12849   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12850   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12851     (./conftest; exit; ) >&5 2>/dev/null
12852     lt_status=$?
12853     case x$lt_status in
12854       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12855       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12856       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12857     esac
12858   else :
12859     # compilation failed
12860     lt_cv_dlopen_self=no
12861   fi
12862 fi
12863 rm -fr conftest*
12864
12865
12866 fi
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12868 $as_echo "$lt_cv_dlopen_self" >&6; }
12869
12870     if test "x$lt_cv_dlopen_self" = xyes; then
12871       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12872       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12873 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12874 if ${lt_cv_dlopen_self_static+:} false; then :
12875   $as_echo_n "(cached) " >&6
12876 else
12877           if test "$cross_compiling" = yes; then :
12878   lt_cv_dlopen_self_static=cross
12879 else
12880   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12881   lt_status=$lt_dlunknown
12882   cat > conftest.$ac_ext <<_LT_EOF
12883 #line $LINENO "configure"
12884 #include "confdefs.h"
12885
12886 #if HAVE_DLFCN_H
12887 #include <dlfcn.h>
12888 #endif
12889
12890 #include <stdio.h>
12891
12892 #ifdef RTLD_GLOBAL
12893 #  define LT_DLGLOBAL           RTLD_GLOBAL
12894 #else
12895 #  ifdef DL_GLOBAL
12896 #    define LT_DLGLOBAL         DL_GLOBAL
12897 #  else
12898 #    define LT_DLGLOBAL         0
12899 #  endif
12900 #endif
12901
12902 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12903    find out it does not work in some platform. */
12904 #ifndef LT_DLLAZY_OR_NOW
12905 #  ifdef RTLD_LAZY
12906 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12907 #  else
12908 #    ifdef DL_LAZY
12909 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12910 #    else
12911 #      ifdef RTLD_NOW
12912 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12913 #      else
12914 #        ifdef DL_NOW
12915 #          define LT_DLLAZY_OR_NOW      DL_NOW
12916 #        else
12917 #          define LT_DLLAZY_OR_NOW      0
12918 #        endif
12919 #      endif
12920 #    endif
12921 #  endif
12922 #endif
12923
12924 /* When -fvisbility=hidden is used, assume the code has been annotated
12925    correspondingly for the symbols needed.  */
12926 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12927 int fnord () __attribute__((visibility("default")));
12928 #endif
12929
12930 int fnord () { return 42; }
12931 int main ()
12932 {
12933   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12934   int status = $lt_dlunknown;
12935
12936   if (self)
12937     {
12938       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12939       else
12940         {
12941           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12942           else puts (dlerror ());
12943         }
12944       /* dlclose (self); */
12945     }
12946   else
12947     puts (dlerror ());
12948
12949   return status;
12950 }
12951 _LT_EOF
12952   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12953   (eval $ac_link) 2>&5
12954   ac_status=$?
12955   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12956   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12957     (./conftest; exit; ) >&5 2>/dev/null
12958     lt_status=$?
12959     case x$lt_status in
12960       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12961       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12962       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12963     esac
12964   else :
12965     # compilation failed
12966     lt_cv_dlopen_self_static=no
12967   fi
12968 fi
12969 rm -fr conftest*
12970
12971
12972 fi
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12974 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12975     fi
12976
12977     CPPFLAGS="$save_CPPFLAGS"
12978     LDFLAGS="$save_LDFLAGS"
12979     LIBS="$save_LIBS"
12980     ;;
12981   esac
12982
12983   case $lt_cv_dlopen_self in
12984   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12985   *) enable_dlopen_self=unknown ;;
12986   esac
12987
12988   case $lt_cv_dlopen_self_static in
12989   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12990   *) enable_dlopen_self_static=unknown ;;
12991   esac
12992 fi
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010 striplib=
13011 old_striplib=
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13013 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13014 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13015   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13016   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13018 $as_echo "yes" >&6; }
13019 else
13020 # FIXME - insert some real tests, host_os isn't really good enough
13021   case $host_os in
13022   darwin*)
13023     if test -n "$STRIP" ; then
13024       striplib="$STRIP -x"
13025       old_striplib="$STRIP -S"
13026       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13027 $as_echo "yes" >&6; }
13028     else
13029       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13030 $as_echo "no" >&6; }
13031     fi
13032     ;;
13033   *)
13034     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13035 $as_echo "no" >&6; }
13036     ;;
13037   esac
13038 fi
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051   # Report which library types will actually be built
13052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13053 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13055 $as_echo "$can_build_shared" >&6; }
13056
13057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13058 $as_echo_n "checking whether to build shared libraries... " >&6; }
13059   test "$can_build_shared" = "no" && enable_shared=no
13060
13061   # On AIX, shared libraries and static libraries use the same namespace, and
13062   # are all built from PIC.
13063   case $host_os in
13064   aix3*)
13065     test "$enable_shared" = yes && enable_static=no
13066     if test -n "$RANLIB"; then
13067       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13068       postinstall_cmds='$RANLIB $lib'
13069     fi
13070     ;;
13071
13072   aix[4-9]*)
13073     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13074       test "$enable_shared" = yes && enable_static=no
13075     fi
13076     ;;
13077   esac
13078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13079 $as_echo "$enable_shared" >&6; }
13080
13081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13082 $as_echo_n "checking whether to build static libraries... " >&6; }
13083   # Make sure either enable_shared or enable_static is yes.
13084   test "$enable_shared" = yes || enable_static=yes
13085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13086 $as_echo "$enable_static" >&6; }
13087
13088
13089
13090
13091 fi
13092 ac_ext=c
13093 ac_cpp='$CPP $CPPFLAGS'
13094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13097
13098 CC="$lt_save_CC"
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114         ac_config_commands="$ac_config_commands libtool"
13115
13116
13117
13118
13119 # Only expand once:
13120
13121
13122
13123 # Internationalization.
13124
13125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13126 $as_echo_n "checking whether NLS is requested... " >&6; }
13127     # Check whether --enable-nls was given.
13128 if test "${enable_nls+set}" = set; then :
13129   enableval=$enable_nls; USE_NLS=$enableval
13130 else
13131   USE_NLS=yes
13132 fi
13133
13134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13135 $as_echo "$USE_NLS" >&6; }
13136
13137
13138
13139
13140       GETTEXT_MACRO_VERSION=0.18
13141
13142
13143
13144
13145 # Prepare PATH_SEPARATOR.
13146 # The user is always right.
13147 if test "${PATH_SEPARATOR+set}" != set; then
13148   echo "#! /bin/sh" >conf$$.sh
13149   echo  "exit 0"   >>conf$$.sh
13150   chmod +x conf$$.sh
13151   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13152     PATH_SEPARATOR=';'
13153   else
13154     PATH_SEPARATOR=:
13155   fi
13156   rm -f conf$$.sh
13157 fi
13158
13159 # Find out how to test for executable files. Don't use a zero-byte file,
13160 # as systems may use methods other than mode bits to determine executability.
13161 cat >conf$$.file <<_ASEOF
13162 #! /bin/sh
13163 exit 0
13164 _ASEOF
13165 chmod +x conf$$.file
13166 if test -x conf$$.file >/dev/null 2>&1; then
13167   ac_executable_p="test -x"
13168 else
13169   ac_executable_p="test -f"
13170 fi
13171 rm -f conf$$.file
13172
13173 # Extract the first word of "msgfmt", so it can be a program name with args.
13174 set dummy msgfmt; ac_word=$2
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13176 $as_echo_n "checking for $ac_word... " >&6; }
13177 if ${ac_cv_path_MSGFMT+:} false; then :
13178   $as_echo_n "(cached) " >&6
13179 else
13180   case "$MSGFMT" in
13181   [\\/]* | ?:[\\/]*)
13182     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13183     ;;
13184   *)
13185     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13186     for ac_dir in $PATH; do
13187       IFS="$ac_save_IFS"
13188       test -z "$ac_dir" && ac_dir=.
13189       for ac_exec_ext in '' $ac_executable_extensions; do
13190         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13191           echo "$as_me: trying $ac_dir/$ac_word..." >&5
13192           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
13193      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13194             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13195             break 2
13196           fi
13197         fi
13198       done
13199     done
13200     IFS="$ac_save_IFS"
13201   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13202     ;;
13203 esac
13204 fi
13205 MSGFMT="$ac_cv_path_MSGFMT"
13206 if test "$MSGFMT" != ":"; then
13207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13208 $as_echo "$MSGFMT" >&6; }
13209 else
13210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13211 $as_echo "no" >&6; }
13212 fi
13213
13214   # Extract the first word of "gmsgfmt", so it can be a program name with args.
13215 set dummy gmsgfmt; ac_word=$2
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13217 $as_echo_n "checking for $ac_word... " >&6; }
13218 if ${ac_cv_path_GMSGFMT+:} false; then :
13219   $as_echo_n "(cached) " >&6
13220 else
13221   case $GMSGFMT in
13222   [\\/]* | ?:[\\/]*)
13223   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13224   ;;
13225   *)
13226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13227 for as_dir in $PATH
13228 do
13229   IFS=$as_save_IFS
13230   test -z "$as_dir" && as_dir=.
13231     for ac_exec_ext in '' $ac_executable_extensions; do
13232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13233     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13235     break 2
13236   fi
13237 done
13238   done
13239 IFS=$as_save_IFS
13240
13241   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13242   ;;
13243 esac
13244 fi
13245 GMSGFMT=$ac_cv_path_GMSGFMT
13246 if test -n "$GMSGFMT"; then
13247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13248 $as_echo "$GMSGFMT" >&6; }
13249 else
13250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13251 $as_echo "no" >&6; }
13252 fi
13253
13254
13255
13256     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13257     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
13258     *) MSGFMT_015=$MSGFMT ;;
13259   esac
13260
13261   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13262     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
13263     *) GMSGFMT_015=$GMSGFMT ;;
13264   esac
13265
13266
13267
13268 # Prepare PATH_SEPARATOR.
13269 # The user is always right.
13270 if test "${PATH_SEPARATOR+set}" != set; then
13271   echo "#! /bin/sh" >conf$$.sh
13272   echo  "exit 0"   >>conf$$.sh
13273   chmod +x conf$$.sh
13274   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13275     PATH_SEPARATOR=';'
13276   else
13277     PATH_SEPARATOR=:
13278   fi
13279   rm -f conf$$.sh
13280 fi
13281
13282 # Find out how to test for executable files. Don't use a zero-byte file,
13283 # as systems may use methods other than mode bits to determine executability.
13284 cat >conf$$.file <<_ASEOF
13285 #! /bin/sh
13286 exit 0
13287 _ASEOF
13288 chmod +x conf$$.file
13289 if test -x conf$$.file >/dev/null 2>&1; then
13290   ac_executable_p="test -x"
13291 else
13292   ac_executable_p="test -f"
13293 fi
13294 rm -f conf$$.file
13295
13296 # Extract the first word of "xgettext", so it can be a program name with args.
13297 set dummy xgettext; ac_word=$2
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13299 $as_echo_n "checking for $ac_word... " >&6; }
13300 if ${ac_cv_path_XGETTEXT+:} false; then :
13301   $as_echo_n "(cached) " >&6
13302 else
13303   case "$XGETTEXT" in
13304   [\\/]* | ?:[\\/]*)
13305     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13306     ;;
13307   *)
13308     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13309     for ac_dir in $PATH; do
13310       IFS="$ac_save_IFS"
13311       test -z "$ac_dir" && ac_dir=.
13312       for ac_exec_ext in '' $ac_executable_extensions; do
13313         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13314           echo "$as_me: trying $ac_dir/$ac_word..." >&5
13315           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
13316      (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
13317             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13318             break 2
13319           fi
13320         fi
13321       done
13322     done
13323     IFS="$ac_save_IFS"
13324   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13325     ;;
13326 esac
13327 fi
13328 XGETTEXT="$ac_cv_path_XGETTEXT"
13329 if test "$XGETTEXT" != ":"; then
13330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13331 $as_echo "$XGETTEXT" >&6; }
13332 else
13333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334 $as_echo "no" >&6; }
13335 fi
13336
13337     rm -f messages.po
13338
13339     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13340     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
13341     *) XGETTEXT_015=$XGETTEXT ;;
13342   esac
13343
13344
13345
13346 # Prepare PATH_SEPARATOR.
13347 # The user is always right.
13348 if test "${PATH_SEPARATOR+set}" != set; then
13349   echo "#! /bin/sh" >conf$$.sh
13350   echo  "exit 0"   >>conf$$.sh
13351   chmod +x conf$$.sh
13352   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13353     PATH_SEPARATOR=';'
13354   else
13355     PATH_SEPARATOR=:
13356   fi
13357   rm -f conf$$.sh
13358 fi
13359
13360 # Find out how to test for executable files. Don't use a zero-byte file,
13361 # as systems may use methods other than mode bits to determine executability.
13362 cat >conf$$.file <<_ASEOF
13363 #! /bin/sh
13364 exit 0
13365 _ASEOF
13366 chmod +x conf$$.file
13367 if test -x conf$$.file >/dev/null 2>&1; then
13368   ac_executable_p="test -x"
13369 else
13370   ac_executable_p="test -f"
13371 fi
13372 rm -f conf$$.file
13373
13374 # Extract the first word of "msgmerge", so it can be a program name with args.
13375 set dummy msgmerge; ac_word=$2
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13377 $as_echo_n "checking for $ac_word... " >&6; }
13378 if ${ac_cv_path_MSGMERGE+:} false; then :
13379   $as_echo_n "(cached) " >&6
13380 else
13381   case "$MSGMERGE" in
13382   [\\/]* | ?:[\\/]*)
13383     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13384     ;;
13385   *)
13386     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13387     for ac_dir in $PATH; do
13388       IFS="$ac_save_IFS"
13389       test -z "$ac_dir" && ac_dir=.
13390       for ac_exec_ext in '' $ac_executable_extensions; do
13391         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13392           echo "$as_me: trying $ac_dir/$ac_word..." >&5
13393           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
13394             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13395             break 2
13396           fi
13397         fi
13398       done
13399     done
13400     IFS="$ac_save_IFS"
13401   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13402     ;;
13403 esac
13404 fi
13405 MSGMERGE="$ac_cv_path_MSGMERGE"
13406 if test "$MSGMERGE" != ":"; then
13407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13408 $as_echo "$MSGMERGE" >&6; }
13409 else
13410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13411 $as_echo "no" >&6; }
13412 fi
13413
13414
13415         test -n "$localedir" || localedir='${datadir}/locale'
13416
13417
13418     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
13419
13420
13421   ac_config_commands="$ac_config_commands po-directories"
13422
13423
13424
13425       if test "X$prefix" = "XNONE"; then
13426     acl_final_prefix="$ac_default_prefix"
13427   else
13428     acl_final_prefix="$prefix"
13429   fi
13430   if test "X$exec_prefix" = "XNONE"; then
13431     acl_final_exec_prefix='${prefix}'
13432   else
13433     acl_final_exec_prefix="$exec_prefix"
13434   fi
13435   acl_save_prefix="$prefix"
13436   prefix="$acl_final_prefix"
13437   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13438   prefix="$acl_save_prefix"
13439
13440
13441 # Check whether --with-gnu-ld was given.
13442 if test "${with_gnu_ld+set}" = set; then :
13443   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13444 else
13445   with_gnu_ld=no
13446 fi
13447
13448 # Prepare PATH_SEPARATOR.
13449 # The user is always right.
13450 if test "${PATH_SEPARATOR+set}" != set; then
13451   echo "#! /bin/sh" >conf$$.sh
13452   echo  "exit 0"   >>conf$$.sh
13453   chmod +x conf$$.sh
13454   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13455     PATH_SEPARATOR=';'
13456   else
13457     PATH_SEPARATOR=:
13458   fi
13459   rm -f conf$$.sh
13460 fi
13461 ac_prog=ld
13462 if test "$GCC" = yes; then
13463   # Check if gcc -print-prog-name=ld gives a path.
13464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13465 $as_echo_n "checking for ld used by GCC... " >&6; }
13466   case $host in
13467   *-*-mingw*)
13468     # gcc leaves a trailing carriage return which upsets mingw
13469     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13470   *)
13471     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13472   esac
13473   case $ac_prog in
13474     # Accept absolute paths.
13475     [\\/]* | [A-Za-z]:[\\/]*)
13476       re_direlt='/[^/][^/]*/\.\./'
13477       # Canonicalize the path of ld
13478       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13479       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13480         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13481       done
13482       test -z "$LD" && LD="$ac_prog"
13483       ;;
13484   "")
13485     # If it fails, then pretend we aren't using GCC.
13486     ac_prog=ld
13487     ;;
13488   *)
13489     # If it is relative, then search for the first ld in PATH.
13490     with_gnu_ld=unknown
13491     ;;
13492   esac
13493 elif test "$with_gnu_ld" = yes; then
13494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13495 $as_echo_n "checking for GNU ld... " >&6; }
13496 else
13497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13498 $as_echo_n "checking for non-GNU ld... " >&6; }
13499 fi
13500 if ${acl_cv_path_LD+:} false; then :
13501   $as_echo_n "(cached) " >&6
13502 else
13503   if test -z "$LD"; then
13504   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13505   for ac_dir in $PATH; do
13506     test -z "$ac_dir" && ac_dir=.
13507     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13508       acl_cv_path_LD="$ac_dir/$ac_prog"
13509       # Check to see if the program is GNU ld.  I'd rather use --version,
13510       # but apparently some GNU ld's only accept -v.
13511       # Break only if it was the GNU/non-GNU ld that we prefer.
13512       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13513       *GNU* | *'with BFD'*)
13514         test "$with_gnu_ld" != no && break ;;
13515       *)
13516         test "$with_gnu_ld" != yes && break ;;
13517       esac
13518     fi
13519   done
13520   IFS="$ac_save_ifs"
13521 else
13522   acl_cv_path_LD="$LD" # Let the user override the test with a path.
13523 fi
13524 fi
13525
13526 LD="$acl_cv_path_LD"
13527 if test -n "$LD"; then
13528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13529 $as_echo "$LD" >&6; }
13530 else
13531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13532 $as_echo "no" >&6; }
13533 fi
13534 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13536 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13537 if ${acl_cv_prog_gnu_ld+:} false; then :
13538   $as_echo_n "(cached) " >&6
13539 else
13540   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13541 case `$LD -v 2>&1 </dev/null` in
13542 *GNU* | *'with BFD'*)
13543   acl_cv_prog_gnu_ld=yes ;;
13544 *)
13545   acl_cv_prog_gnu_ld=no ;;
13546 esac
13547 fi
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13549 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13550 with_gnu_ld=$acl_cv_prog_gnu_ld
13551
13552
13553
13554
13555                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13556 $as_echo_n "checking for shared library run path origin... " >&6; }
13557 if ${acl_cv_rpath+:} false; then :
13558   $as_echo_n "(cached) " >&6
13559 else
13560
13561     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13562     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13563     . ./conftest.sh
13564     rm -f ./conftest.sh
13565     acl_cv_rpath=done
13566
13567 fi
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13569 $as_echo "$acl_cv_rpath" >&6; }
13570   wl="$acl_cv_wl"
13571   acl_libext="$acl_cv_libext"
13572   acl_shlibext="$acl_cv_shlibext"
13573   acl_libname_spec="$acl_cv_libname_spec"
13574   acl_library_names_spec="$acl_cv_library_names_spec"
13575   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13576   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13577   acl_hardcode_direct="$acl_cv_hardcode_direct"
13578   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13579     # Check whether --enable-rpath was given.
13580 if test "${enable_rpath+set}" = set; then :
13581   enableval=$enable_rpath; :
13582 else
13583   enable_rpath=yes
13584 fi
13585
13586
13587
13588
13589   acl_libdirstem=lib
13590   acl_libdirstem2=
13591   case "$host_os" in
13592     solaris*)
13593                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
13594 $as_echo_n "checking for 64-bit host... " >&6; }
13595 if ${gl_cv_solaris_64bit+:} false; then :
13596   $as_echo_n "(cached) " >&6
13597 else
13598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13599 /* end confdefs.h.  */
13600
13601 #ifdef _LP64
13602 sixtyfour bits
13603 #endif
13604
13605 _ACEOF
13606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13607   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
13608   gl_cv_solaris_64bit=yes
13609 else
13610   gl_cv_solaris_64bit=no
13611 fi
13612 rm -f conftest*
13613
13614
13615 fi
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
13617 $as_echo "$gl_cv_solaris_64bit" >&6; }
13618       if test $gl_cv_solaris_64bit = yes; then
13619         acl_libdirstem=lib/64
13620         case "$host_cpu" in
13621           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
13622           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
13623         esac
13624       fi
13625       ;;
13626     *)
13627       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13628       if test -n "$searchpath"; then
13629         acl_save_IFS="${IFS=    }"; IFS=":"
13630         for searchdir in $searchpath; do
13631           if test -d "$searchdir"; then
13632             case "$searchdir" in
13633               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13634               */../ | */.. )
13635                 # Better ignore directories of this form. They are misleading.
13636                 ;;
13637               *) searchdir=`cd "$searchdir" && pwd`
13638                  case "$searchdir" in
13639                    */lib64 ) acl_libdirstem=lib64 ;;
13640                  esac ;;
13641             esac
13642           fi
13643         done
13644         IFS="$acl_save_IFS"
13645       fi
13646       ;;
13647   esac
13648   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661     use_additional=yes
13662
13663   acl_save_prefix="$prefix"
13664   prefix="$acl_final_prefix"
13665   acl_save_exec_prefix="$exec_prefix"
13666   exec_prefix="$acl_final_exec_prefix"
13667
13668     eval additional_includedir=\"$includedir\"
13669     eval additional_libdir=\"$libdir\"
13670
13671   exec_prefix="$acl_save_exec_prefix"
13672   prefix="$acl_save_prefix"
13673
13674
13675 # Check whether --with-libiconv-prefix was given.
13676 if test "${with_libiconv_prefix+set}" = set; then :
13677   withval=$with_libiconv_prefix;
13678     if test "X$withval" = "Xno"; then
13679       use_additional=no
13680     else
13681       if test "X$withval" = "X"; then
13682
13683   acl_save_prefix="$prefix"
13684   prefix="$acl_final_prefix"
13685   acl_save_exec_prefix="$exec_prefix"
13686   exec_prefix="$acl_final_exec_prefix"
13687
13688           eval additional_includedir=\"$includedir\"
13689           eval additional_libdir=\"$libdir\"
13690
13691   exec_prefix="$acl_save_exec_prefix"
13692   prefix="$acl_save_prefix"
13693
13694       else
13695         additional_includedir="$withval/include"
13696         additional_libdir="$withval/$acl_libdirstem"
13697         if test "$acl_libdirstem2" != "$acl_libdirstem" \
13698            && ! test -d "$withval/$acl_libdirstem"; then
13699           additional_libdir="$withval/$acl_libdirstem2"
13700         fi
13701       fi
13702     fi
13703
13704 fi
13705
13706       LIBICONV=
13707   LTLIBICONV=
13708   INCICONV=
13709   LIBICONV_PREFIX=
13710       HAVE_LIBICONV=
13711   rpathdirs=
13712   ltrpathdirs=
13713   names_already_handled=
13714   names_next_round='iconv '
13715   while test -n "$names_next_round"; do
13716     names_this_round="$names_next_round"
13717     names_next_round=
13718     for name in $names_this_round; do
13719       already_handled=
13720       for n in $names_already_handled; do
13721         if test "$n" = "$name"; then
13722           already_handled=yes
13723           break
13724         fi
13725       done
13726       if test -z "$already_handled"; then
13727         names_already_handled="$names_already_handled $name"
13728                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13729         eval value=\"\$HAVE_LIB$uppername\"
13730         if test -n "$value"; then
13731           if test "$value" = yes; then
13732             eval value=\"\$LIB$uppername\"
13733             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13734             eval value=\"\$LTLIB$uppername\"
13735             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13736           else
13737                                     :
13738           fi
13739         else
13740                               found_dir=
13741           found_la=
13742           found_so=
13743           found_a=
13744           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
13745           if test -n "$acl_shlibext"; then
13746             shrext=".$acl_shlibext"             # typically: shrext=.so
13747           else
13748             shrext=
13749           fi
13750           if test $use_additional = yes; then
13751             dir="$additional_libdir"
13752                                     if test -n "$acl_shlibext"; then
13753               if test -f "$dir/$libname$shrext"; then
13754                 found_dir="$dir"
13755                 found_so="$dir/$libname$shrext"
13756               else
13757                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13758                   ver=`(cd "$dir" && \
13759                         for f in "$libname$shrext".*; do echo "$f"; done \
13760                         | sed -e "s,^$libname$shrext\\\\.,," \
13761                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13762                         | sed 1q ) 2>/dev/null`
13763                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13764                     found_dir="$dir"
13765                     found_so="$dir/$libname$shrext.$ver"
13766                   fi
13767                 else
13768                   eval library_names=\"$acl_library_names_spec\"
13769                   for f in $library_names; do
13770                     if test -f "$dir/$f"; then
13771                       found_dir="$dir"
13772                       found_so="$dir/$f"
13773                       break
13774                     fi
13775                   done
13776                 fi
13777               fi
13778             fi
13779                         if test "X$found_dir" = "X"; then
13780               if test -f "$dir/$libname.$acl_libext"; then
13781                 found_dir="$dir"
13782                 found_a="$dir/$libname.$acl_libext"
13783               fi
13784             fi
13785             if test "X$found_dir" != "X"; then
13786               if test -f "$dir/$libname.la"; then
13787                 found_la="$dir/$libname.la"
13788               fi
13789             fi
13790           fi
13791           if test "X$found_dir" = "X"; then
13792             for x in $LDFLAGS $LTLIBICONV; do
13793
13794   acl_save_prefix="$prefix"
13795   prefix="$acl_final_prefix"
13796   acl_save_exec_prefix="$exec_prefix"
13797   exec_prefix="$acl_final_exec_prefix"
13798   eval x=\"$x\"
13799   exec_prefix="$acl_save_exec_prefix"
13800   prefix="$acl_save_prefix"
13801
13802               case "$x" in
13803                 -L*)
13804                   dir=`echo "X$x" | sed -e 's/^X-L//'`
13805                                     if test -n "$acl_shlibext"; then
13806                     if test -f "$dir/$libname$shrext"; then
13807                       found_dir="$dir"
13808                       found_so="$dir/$libname$shrext"
13809                     else
13810                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13811                         ver=`(cd "$dir" && \
13812                               for f in "$libname$shrext".*; do echo "$f"; done \
13813                               | sed -e "s,^$libname$shrext\\\\.,," \
13814                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13815                               | sed 1q ) 2>/dev/null`
13816                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13817                           found_dir="$dir"
13818                           found_so="$dir/$libname$shrext.$ver"
13819                         fi
13820                       else
13821                         eval library_names=\"$acl_library_names_spec\"
13822                         for f in $library_names; do
13823                           if test -f "$dir/$f"; then
13824                             found_dir="$dir"
13825                             found_so="$dir/$f"
13826                             break
13827                           fi
13828                         done
13829                       fi
13830                     fi
13831                   fi
13832                                     if test "X$found_dir" = "X"; then
13833                     if test -f "$dir/$libname.$acl_libext"; then
13834                       found_dir="$dir"
13835                       found_a="$dir/$libname.$acl_libext"
13836                     fi
13837                   fi
13838                   if test "X$found_dir" != "X"; then
13839                     if test -f "$dir/$libname.la"; then
13840                       found_la="$dir/$libname.la"
13841                     fi
13842                   fi
13843                   ;;
13844               esac
13845               if test "X$found_dir" != "X"; then
13846                 break
13847               fi
13848             done
13849           fi
13850           if test "X$found_dir" != "X"; then
13851                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13852             if test "X$found_so" != "X"; then
13853                                                         if test "$enable_rpath" = no \
13854                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13855                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13856                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13857               else
13858                                                                                 haveit=
13859                 for x in $ltrpathdirs; do
13860                   if test "X$x" = "X$found_dir"; then
13861                     haveit=yes
13862                     break
13863                   fi
13864                 done
13865                 if test -z "$haveit"; then
13866                   ltrpathdirs="$ltrpathdirs $found_dir"
13867                 fi
13868                                 if test "$acl_hardcode_direct" = yes; then
13869                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13870                 else
13871                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13872                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13873                                                             haveit=
13874                     for x in $rpathdirs; do
13875                       if test "X$x" = "X$found_dir"; then
13876                         haveit=yes
13877                         break
13878                       fi
13879                     done
13880                     if test -z "$haveit"; then
13881                       rpathdirs="$rpathdirs $found_dir"
13882                     fi
13883                   else
13884                                                                                 haveit=
13885                     for x in $LDFLAGS $LIBICONV; do
13886
13887   acl_save_prefix="$prefix"
13888   prefix="$acl_final_prefix"
13889   acl_save_exec_prefix="$exec_prefix"
13890   exec_prefix="$acl_final_exec_prefix"
13891   eval x=\"$x\"
13892   exec_prefix="$acl_save_exec_prefix"
13893   prefix="$acl_save_prefix"
13894
13895                       if test "X$x" = "X-L$found_dir"; then
13896                         haveit=yes
13897                         break
13898                       fi
13899                     done
13900                     if test -z "$haveit"; then
13901                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13902                     fi
13903                     if test "$acl_hardcode_minus_L" != no; then
13904                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13905                     else
13906                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13907                     fi
13908                   fi
13909                 fi
13910               fi
13911             else
13912               if test "X$found_a" != "X"; then
13913                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13914               else
13915                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13916               fi
13917             fi
13918                         additional_includedir=
13919             case "$found_dir" in
13920               */$acl_libdirstem | */$acl_libdirstem/)
13921                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13922                 if test "$name" = 'iconv'; then
13923                   LIBICONV_PREFIX="$basedir"
13924                 fi
13925                 additional_includedir="$basedir/include"
13926                 ;;
13927               */$acl_libdirstem2 | */$acl_libdirstem2/)
13928                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13929                 if test "$name" = 'iconv'; then
13930                   LIBICONV_PREFIX="$basedir"
13931                 fi
13932                 additional_includedir="$basedir/include"
13933                 ;;
13934             esac
13935             if test "X$additional_includedir" != "X"; then
13936                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
13937                 haveit=
13938                 if test "X$additional_includedir" = "X/usr/local/include"; then
13939                   if test -n "$GCC"; then
13940                     case $host_os in
13941                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13942                     esac
13943                   fi
13944                 fi
13945                 if test -z "$haveit"; then
13946                   for x in $CPPFLAGS $INCICONV; do
13947
13948   acl_save_prefix="$prefix"
13949   prefix="$acl_final_prefix"
13950   acl_save_exec_prefix="$exec_prefix"
13951   exec_prefix="$acl_final_exec_prefix"
13952   eval x=\"$x\"
13953   exec_prefix="$acl_save_exec_prefix"
13954   prefix="$acl_save_prefix"
13955
13956                     if test "X$x" = "X-I$additional_includedir"; then
13957                       haveit=yes
13958                       break
13959                     fi
13960                   done
13961                   if test -z "$haveit"; then
13962                     if test -d "$additional_includedir"; then
13963                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13964                     fi
13965                   fi
13966                 fi
13967               fi
13968             fi
13969                         if test -n "$found_la"; then
13970                                                         save_libdir="$libdir"
13971               case "$found_la" in
13972                 */* | *\\*) . "$found_la" ;;
13973                 *) . "./$found_la" ;;
13974               esac
13975               libdir="$save_libdir"
13976                             for dep in $dependency_libs; do
13977                 case "$dep" in
13978                   -L*)
13979                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13980                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13981                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13982                       haveit=
13983                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13984                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13985                         if test -n "$GCC"; then
13986                           case $host_os in
13987                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13988                           esac
13989                         fi
13990                       fi
13991                       if test -z "$haveit"; then
13992                         haveit=
13993                         for x in $LDFLAGS $LIBICONV; do
13994
13995   acl_save_prefix="$prefix"
13996   prefix="$acl_final_prefix"
13997   acl_save_exec_prefix="$exec_prefix"
13998   exec_prefix="$acl_final_exec_prefix"
13999   eval x=\"$x\"
14000   exec_prefix="$acl_save_exec_prefix"
14001   prefix="$acl_save_prefix"
14002
14003                           if test "X$x" = "X-L$additional_libdir"; then
14004                             haveit=yes
14005                             break
14006                           fi
14007                         done
14008                         if test -z "$haveit"; then
14009                           if test -d "$additional_libdir"; then
14010                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14011                           fi
14012                         fi
14013                         haveit=
14014                         for x in $LDFLAGS $LTLIBICONV; do
14015
14016   acl_save_prefix="$prefix"
14017   prefix="$acl_final_prefix"
14018   acl_save_exec_prefix="$exec_prefix"
14019   exec_prefix="$acl_final_exec_prefix"
14020   eval x=\"$x\"
14021   exec_prefix="$acl_save_exec_prefix"
14022   prefix="$acl_save_prefix"
14023
14024                           if test "X$x" = "X-L$additional_libdir"; then
14025                             haveit=yes
14026                             break
14027                           fi
14028                         done
14029                         if test -z "$haveit"; then
14030                           if test -d "$additional_libdir"; then
14031                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14032                           fi
14033                         fi
14034                       fi
14035                     fi
14036                     ;;
14037                   -R*)
14038                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14039                     if test "$enable_rpath" != no; then
14040                                                                   haveit=
14041                       for x in $rpathdirs; do
14042                         if test "X$x" = "X$dir"; then
14043                           haveit=yes
14044                           break
14045                         fi
14046                       done
14047                       if test -z "$haveit"; then
14048                         rpathdirs="$rpathdirs $dir"
14049                       fi
14050                                                                   haveit=
14051                       for x in $ltrpathdirs; do
14052                         if test "X$x" = "X$dir"; then
14053                           haveit=yes
14054                           break
14055                         fi
14056                       done
14057                       if test -z "$haveit"; then
14058                         ltrpathdirs="$ltrpathdirs $dir"
14059                       fi
14060                     fi
14061                     ;;
14062                   -l*)
14063                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14064                     ;;
14065                   *.la)
14066                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14067                     ;;
14068                   *)
14069                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14070                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14071                     ;;
14072                 esac
14073               done
14074             fi
14075           else
14076                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14077             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14078           fi
14079         fi
14080       fi
14081     done
14082   done
14083   if test "X$rpathdirs" != "X"; then
14084     if test -n "$acl_hardcode_libdir_separator"; then
14085                         alldirs=
14086       for found_dir in $rpathdirs; do
14087         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14088       done
14089             acl_save_libdir="$libdir"
14090       libdir="$alldirs"
14091       eval flag=\"$acl_hardcode_libdir_flag_spec\"
14092       libdir="$acl_save_libdir"
14093       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14094     else
14095             for found_dir in $rpathdirs; do
14096         acl_save_libdir="$libdir"
14097         libdir="$found_dir"
14098         eval flag=\"$acl_hardcode_libdir_flag_spec\"
14099         libdir="$acl_save_libdir"
14100         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14101       done
14102     fi
14103   fi
14104   if test "X$ltrpathdirs" != "X"; then
14105             for found_dir in $ltrpathdirs; do
14106       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14107     done
14108   fi
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14141 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14142 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
14143   $as_echo_n "(cached) " >&6
14144 else
14145   gt_save_LIBS="$LIBS"
14146      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14147      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14148 /* end confdefs.h.  */
14149 #include <CoreFoundation/CFPreferences.h>
14150 int
14151 main ()
14152 {
14153 CFPreferencesCopyAppValue(NULL, NULL)
14154   ;
14155   return 0;
14156 }
14157 _ACEOF
14158 if ac_fn_c_try_link "$LINENO"; then :
14159   gt_cv_func_CFPreferencesCopyAppValue=yes
14160 else
14161   gt_cv_func_CFPreferencesCopyAppValue=no
14162 fi
14163 rm -f core conftest.err conftest.$ac_objext \
14164     conftest$ac_exeext conftest.$ac_ext
14165      LIBS="$gt_save_LIBS"
14166 fi
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14168 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14169   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14170
14171 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14172
14173   fi
14174     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14175 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14176 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
14177   $as_echo_n "(cached) " >&6
14178 else
14179   gt_save_LIBS="$LIBS"
14180      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14181      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14182 /* end confdefs.h.  */
14183 #include <CoreFoundation/CFLocale.h>
14184 int
14185 main ()
14186 {
14187 CFLocaleCopyCurrent();
14188   ;
14189   return 0;
14190 }
14191 _ACEOF
14192 if ac_fn_c_try_link "$LINENO"; then :
14193   gt_cv_func_CFLocaleCopyCurrent=yes
14194 else
14195   gt_cv_func_CFLocaleCopyCurrent=no
14196 fi
14197 rm -f core conftest.err conftest.$ac_objext \
14198     conftest$ac_exeext conftest.$ac_ext
14199      LIBS="$gt_save_LIBS"
14200 fi
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14202 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14203   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14204
14205 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
14206
14207   fi
14208   INTL_MACOSX_LIBS=
14209   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14210     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14211   fi
14212
14213
14214
14215
14216
14217
14218   LIBINTL=
14219   LTLIBINTL=
14220   POSUB=
14221
14222     case " $gt_needs " in
14223     *" need-formatstring-macros "*) gt_api_version=3 ;;
14224     *" need-ngettext "*) gt_api_version=2 ;;
14225     *) gt_api_version=1 ;;
14226   esac
14227   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14228   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14229
14230     if test "$USE_NLS" = "yes"; then
14231     gt_use_preinstalled_gnugettext=no
14232
14233
14234         if test $gt_api_version -ge 3; then
14235           gt_revision_test_code='
14236 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14237 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14238 #endif
14239 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14240 '
14241         else
14242           gt_revision_test_code=
14243         fi
14244         if test $gt_api_version -ge 2; then
14245           gt_expression_test_code=' + * ngettext ("", "", 0)'
14246         else
14247           gt_expression_test_code=
14248         fi
14249
14250         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14251 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14252 if eval \${$gt_func_gnugettext_libc+:} false; then :
14253   $as_echo_n "(cached) " >&6
14254 else
14255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14256 /* end confdefs.h.  */
14257 #include <libintl.h>
14258 $gt_revision_test_code
14259 extern int _nl_msg_cat_cntr;
14260 extern int *_nl_domain_bindings;
14261 int
14262 main ()
14263 {
14264 bindtextdomain ("", "");
14265 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14266   ;
14267   return 0;
14268 }
14269 _ACEOF
14270 if ac_fn_c_try_link "$LINENO"; then :
14271   eval "$gt_func_gnugettext_libc=yes"
14272 else
14273   eval "$gt_func_gnugettext_libc=no"
14274 fi
14275 rm -f core conftest.err conftest.$ac_objext \
14276     conftest$ac_exeext conftest.$ac_ext
14277 fi
14278 eval ac_res=\$$gt_func_gnugettext_libc
14279                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14280 $as_echo "$ac_res" >&6; }
14281
14282         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14283
14284
14285
14286
14287
14288           am_save_CPPFLAGS="$CPPFLAGS"
14289
14290   for element in $INCICONV; do
14291     haveit=
14292     for x in $CPPFLAGS; do
14293
14294   acl_save_prefix="$prefix"
14295   prefix="$acl_final_prefix"
14296   acl_save_exec_prefix="$exec_prefix"
14297   exec_prefix="$acl_final_exec_prefix"
14298   eval x=\"$x\"
14299   exec_prefix="$acl_save_exec_prefix"
14300   prefix="$acl_save_prefix"
14301
14302       if test "X$x" = "X$element"; then
14303         haveit=yes
14304         break
14305       fi
14306     done
14307     if test -z "$haveit"; then
14308       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14309     fi
14310   done
14311
14312
14313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14314 $as_echo_n "checking for iconv... " >&6; }
14315 if ${am_cv_func_iconv+:} false; then :
14316   $as_echo_n "(cached) " >&6
14317 else
14318
14319     am_cv_func_iconv="no, consider installing GNU libiconv"
14320     am_cv_lib_iconv=no
14321     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322 /* end confdefs.h.  */
14323 #include <stdlib.h>
14324 #include <iconv.h>
14325 int
14326 main ()
14327 {
14328 iconv_t cd = iconv_open("","");
14329        iconv(cd,NULL,NULL,NULL,NULL);
14330        iconv_close(cd);
14331   ;
14332   return 0;
14333 }
14334 _ACEOF
14335 if ac_fn_c_try_link "$LINENO"; then :
14336   am_cv_func_iconv=yes
14337 fi
14338 rm -f core conftest.err conftest.$ac_objext \
14339     conftest$ac_exeext conftest.$ac_ext
14340     if test "$am_cv_func_iconv" != yes; then
14341       am_save_LIBS="$LIBS"
14342       LIBS="$LIBS $LIBICONV"
14343       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14344 /* end confdefs.h.  */
14345 #include <stdlib.h>
14346 #include <iconv.h>
14347 int
14348 main ()
14349 {
14350 iconv_t cd = iconv_open("","");
14351          iconv(cd,NULL,NULL,NULL,NULL);
14352          iconv_close(cd);
14353   ;
14354   return 0;
14355 }
14356 _ACEOF
14357 if ac_fn_c_try_link "$LINENO"; then :
14358   am_cv_lib_iconv=yes
14359         am_cv_func_iconv=yes
14360 fi
14361 rm -f core conftest.err conftest.$ac_objext \
14362     conftest$ac_exeext conftest.$ac_ext
14363       LIBS="$am_save_LIBS"
14364     fi
14365
14366 fi
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14368 $as_echo "$am_cv_func_iconv" >&6; }
14369   if test "$am_cv_func_iconv" = yes; then
14370     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14371 $as_echo_n "checking for working iconv... " >&6; }
14372 if ${am_cv_func_iconv_works+:} false; then :
14373   $as_echo_n "(cached) " >&6
14374 else
14375
14376             am_save_LIBS="$LIBS"
14377       if test $am_cv_lib_iconv = yes; then
14378         LIBS="$LIBS $LIBICONV"
14379       fi
14380       if test "$cross_compiling" = yes; then :
14381   case "$host_os" in
14382            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14383            *)            am_cv_func_iconv_works="guessing yes" ;;
14384          esac
14385 else
14386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14387 /* end confdefs.h.  */
14388
14389 #include <iconv.h>
14390 #include <string.h>
14391 int main ()
14392 {
14393   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
14394      returns.  */
14395   {
14396     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14397     if (cd_utf8_to_88591 != (iconv_t)(-1))
14398       {
14399         static const char input[] = "\342\202\254"; /* EURO SIGN */
14400         char buf[10];
14401         const char *inptr = input;
14402         size_t inbytesleft = strlen (input);
14403         char *outptr = buf;
14404         size_t outbytesleft = sizeof (buf);
14405         size_t res = iconv (cd_utf8_to_88591,
14406                             (char **) &inptr, &inbytesleft,
14407                             &outptr, &outbytesleft);
14408         if (res == 0)
14409           return 1;
14410       }
14411   }
14412   /* Test against Solaris 10 bug: Failures are not distinguishable from
14413      successful returns.  */
14414   {
14415     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14416     if (cd_ascii_to_88591 != (iconv_t)(-1))
14417       {
14418         static const char input[] = "\263";
14419         char buf[10];
14420         const char *inptr = input;
14421         size_t inbytesleft = strlen (input);
14422         char *outptr = buf;
14423         size_t outbytesleft = sizeof (buf);
14424         size_t res = iconv (cd_ascii_to_88591,
14425                             (char **) &inptr, &inbytesleft,
14426                             &outptr, &outbytesleft);
14427         if (res == 0)
14428           return 1;
14429       }
14430   }
14431 #if 0 /* This bug could be worked around by the caller.  */
14432   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
14433   {
14434     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14435     if (cd_88591_to_utf8 != (iconv_t)(-1))
14436       {
14437         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14438         char buf[50];
14439         const char *inptr = input;
14440         size_t inbytesleft = strlen (input);
14441         char *outptr = buf;
14442         size_t outbytesleft = sizeof (buf);
14443         size_t res = iconv (cd_88591_to_utf8,
14444                             (char **) &inptr, &inbytesleft,
14445                             &outptr, &outbytesleft);
14446         if ((int)res > 0)
14447           return 1;
14448       }
14449   }
14450 #endif
14451   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14452      provided.  */
14453   if (/* Try standardized names.  */
14454       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
14455       /* Try IRIX, OSF/1 names.  */
14456       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
14457       /* Try AIX names.  */
14458       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
14459       /* Try HP-UX names.  */
14460       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
14461     return 1;
14462   return 0;
14463 }
14464 _ACEOF
14465 if ac_fn_c_try_run "$LINENO"; then :
14466   am_cv_func_iconv_works=yes
14467 else
14468   am_cv_func_iconv_works=no
14469 fi
14470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14471   conftest.$ac_objext conftest.beam conftest.$ac_ext
14472 fi
14473
14474       LIBS="$am_save_LIBS"
14475
14476 fi
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14478 $as_echo "$am_cv_func_iconv_works" >&6; }
14479     case "$am_cv_func_iconv_works" in
14480       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14481       *)   am_func_iconv=yes ;;
14482     esac
14483   else
14484     am_func_iconv=no am_cv_lib_iconv=no
14485   fi
14486   if test "$am_func_iconv" = yes; then
14487
14488 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14489
14490   fi
14491   if test "$am_cv_lib_iconv" = yes; then
14492     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14493 $as_echo_n "checking how to link with libiconv... " >&6; }
14494     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14495 $as_echo "$LIBICONV" >&6; }
14496   else
14497             CPPFLAGS="$am_save_CPPFLAGS"
14498     LIBICONV=
14499     LTLIBICONV=
14500   fi
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512     use_additional=yes
14513
14514   acl_save_prefix="$prefix"
14515   prefix="$acl_final_prefix"
14516   acl_save_exec_prefix="$exec_prefix"
14517   exec_prefix="$acl_final_exec_prefix"
14518
14519     eval additional_includedir=\"$includedir\"
14520     eval additional_libdir=\"$libdir\"
14521
14522   exec_prefix="$acl_save_exec_prefix"
14523   prefix="$acl_save_prefix"
14524
14525
14526 # Check whether --with-libintl-prefix was given.
14527 if test "${with_libintl_prefix+set}" = set; then :
14528   withval=$with_libintl_prefix;
14529     if test "X$withval" = "Xno"; then
14530       use_additional=no
14531     else
14532       if test "X$withval" = "X"; then
14533
14534   acl_save_prefix="$prefix"
14535   prefix="$acl_final_prefix"
14536   acl_save_exec_prefix="$exec_prefix"
14537   exec_prefix="$acl_final_exec_prefix"
14538
14539           eval additional_includedir=\"$includedir\"
14540           eval additional_libdir=\"$libdir\"
14541
14542   exec_prefix="$acl_save_exec_prefix"
14543   prefix="$acl_save_prefix"
14544
14545       else
14546         additional_includedir="$withval/include"
14547         additional_libdir="$withval/$acl_libdirstem"
14548         if test "$acl_libdirstem2" != "$acl_libdirstem" \
14549            && ! test -d "$withval/$acl_libdirstem"; then
14550           additional_libdir="$withval/$acl_libdirstem2"
14551         fi
14552       fi
14553     fi
14554
14555 fi
14556
14557       LIBINTL=
14558   LTLIBINTL=
14559   INCINTL=
14560   LIBINTL_PREFIX=
14561       HAVE_LIBINTL=
14562   rpathdirs=
14563   ltrpathdirs=
14564   names_already_handled=
14565   names_next_round='intl '
14566   while test -n "$names_next_round"; do
14567     names_this_round="$names_next_round"
14568     names_next_round=
14569     for name in $names_this_round; do
14570       already_handled=
14571       for n in $names_already_handled; do
14572         if test "$n" = "$name"; then
14573           already_handled=yes
14574           break
14575         fi
14576       done
14577       if test -z "$already_handled"; then
14578         names_already_handled="$names_already_handled $name"
14579                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14580         eval value=\"\$HAVE_LIB$uppername\"
14581         if test -n "$value"; then
14582           if test "$value" = yes; then
14583             eval value=\"\$LIB$uppername\"
14584             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14585             eval value=\"\$LTLIB$uppername\"
14586             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14587           else
14588                                     :
14589           fi
14590         else
14591                               found_dir=
14592           found_la=
14593           found_so=
14594           found_a=
14595           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
14596           if test -n "$acl_shlibext"; then
14597             shrext=".$acl_shlibext"             # typically: shrext=.so
14598           else
14599             shrext=
14600           fi
14601           if test $use_additional = yes; then
14602             dir="$additional_libdir"
14603                                     if test -n "$acl_shlibext"; then
14604               if test -f "$dir/$libname$shrext"; then
14605                 found_dir="$dir"
14606                 found_so="$dir/$libname$shrext"
14607               else
14608                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14609                   ver=`(cd "$dir" && \
14610                         for f in "$libname$shrext".*; do echo "$f"; done \
14611                         | sed -e "s,^$libname$shrext\\\\.,," \
14612                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14613                         | sed 1q ) 2>/dev/null`
14614                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14615                     found_dir="$dir"
14616                     found_so="$dir/$libname$shrext.$ver"
14617                   fi
14618                 else
14619                   eval library_names=\"$acl_library_names_spec\"
14620                   for f in $library_names; do
14621                     if test -f "$dir/$f"; then
14622                       found_dir="$dir"
14623                       found_so="$dir/$f"
14624                       break
14625                     fi
14626                   done
14627                 fi
14628               fi
14629             fi
14630                         if test "X$found_dir" = "X"; then
14631               if test -f "$dir/$libname.$acl_libext"; then
14632                 found_dir="$dir"
14633                 found_a="$dir/$libname.$acl_libext"
14634               fi
14635             fi
14636             if test "X$found_dir" != "X"; then
14637               if test -f "$dir/$libname.la"; then
14638                 found_la="$dir/$libname.la"
14639               fi
14640             fi
14641           fi
14642           if test "X$found_dir" = "X"; then
14643             for x in $LDFLAGS $LTLIBINTL; do
14644
14645   acl_save_prefix="$prefix"
14646   prefix="$acl_final_prefix"
14647   acl_save_exec_prefix="$exec_prefix"
14648   exec_prefix="$acl_final_exec_prefix"
14649   eval x=\"$x\"
14650   exec_prefix="$acl_save_exec_prefix"
14651   prefix="$acl_save_prefix"
14652
14653               case "$x" in
14654                 -L*)
14655                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14656                                     if test -n "$acl_shlibext"; then
14657                     if test -f "$dir/$libname$shrext"; then
14658                       found_dir="$dir"
14659                       found_so="$dir/$libname$shrext"
14660                     else
14661                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14662                         ver=`(cd "$dir" && \
14663                               for f in "$libname$shrext".*; do echo "$f"; done \
14664                               | sed -e "s,^$libname$shrext\\\\.,," \
14665                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14666                               | sed 1q ) 2>/dev/null`
14667                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14668                           found_dir="$dir"
14669                           found_so="$dir/$libname$shrext.$ver"
14670                         fi
14671                       else
14672                         eval library_names=\"$acl_library_names_spec\"
14673                         for f in $library_names; do
14674                           if test -f "$dir/$f"; then
14675                             found_dir="$dir"
14676                             found_so="$dir/$f"
14677                             break
14678                           fi
14679                         done
14680                       fi
14681                     fi
14682                   fi
14683                                     if test "X$found_dir" = "X"; then
14684                     if test -f "$dir/$libname.$acl_libext"; then
14685                       found_dir="$dir"
14686                       found_a="$dir/$libname.$acl_libext"
14687                     fi
14688                   fi
14689                   if test "X$found_dir" != "X"; then
14690                     if test -f "$dir/$libname.la"; then
14691                       found_la="$dir/$libname.la"
14692                     fi
14693                   fi
14694                   ;;
14695               esac
14696               if test "X$found_dir" != "X"; then
14697                 break
14698               fi
14699             done
14700           fi
14701           if test "X$found_dir" != "X"; then
14702                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14703             if test "X$found_so" != "X"; then
14704                                                         if test "$enable_rpath" = no \
14705                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14706                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14707                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14708               else
14709                                                                                 haveit=
14710                 for x in $ltrpathdirs; do
14711                   if test "X$x" = "X$found_dir"; then
14712                     haveit=yes
14713                     break
14714                   fi
14715                 done
14716                 if test -z "$haveit"; then
14717                   ltrpathdirs="$ltrpathdirs $found_dir"
14718                 fi
14719                                 if test "$acl_hardcode_direct" = yes; then
14720                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14721                 else
14722                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14723                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14724                                                             haveit=
14725                     for x in $rpathdirs; do
14726                       if test "X$x" = "X$found_dir"; then
14727                         haveit=yes
14728                         break
14729                       fi
14730                     done
14731                     if test -z "$haveit"; then
14732                       rpathdirs="$rpathdirs $found_dir"
14733                     fi
14734                   else
14735                                                                                 haveit=
14736                     for x in $LDFLAGS $LIBINTL; do
14737
14738   acl_save_prefix="$prefix"
14739   prefix="$acl_final_prefix"
14740   acl_save_exec_prefix="$exec_prefix"
14741   exec_prefix="$acl_final_exec_prefix"
14742   eval x=\"$x\"
14743   exec_prefix="$acl_save_exec_prefix"
14744   prefix="$acl_save_prefix"
14745
14746                       if test "X$x" = "X-L$found_dir"; then
14747                         haveit=yes
14748                         break
14749                       fi
14750                     done
14751                     if test -z "$haveit"; then
14752                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14753                     fi
14754                     if test "$acl_hardcode_minus_L" != no; then
14755                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14756                     else
14757                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14758                     fi
14759                   fi
14760                 fi
14761               fi
14762             else
14763               if test "X$found_a" != "X"; then
14764                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14765               else
14766                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14767               fi
14768             fi
14769                         additional_includedir=
14770             case "$found_dir" in
14771               */$acl_libdirstem | */$acl_libdirstem/)
14772                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14773                 if test "$name" = 'intl'; then
14774                   LIBINTL_PREFIX="$basedir"
14775                 fi
14776                 additional_includedir="$basedir/include"
14777                 ;;
14778               */$acl_libdirstem2 | */$acl_libdirstem2/)
14779                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14780                 if test "$name" = 'intl'; then
14781                   LIBINTL_PREFIX="$basedir"
14782                 fi
14783                 additional_includedir="$basedir/include"
14784                 ;;
14785             esac
14786             if test "X$additional_includedir" != "X"; then
14787                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14788                 haveit=
14789                 if test "X$additional_includedir" = "X/usr/local/include"; then
14790                   if test -n "$GCC"; then
14791                     case $host_os in
14792                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14793                     esac
14794                   fi
14795                 fi
14796                 if test -z "$haveit"; then
14797                   for x in $CPPFLAGS $INCINTL; do
14798
14799   acl_save_prefix="$prefix"
14800   prefix="$acl_final_prefix"
14801   acl_save_exec_prefix="$exec_prefix"
14802   exec_prefix="$acl_final_exec_prefix"
14803   eval x=\"$x\"
14804   exec_prefix="$acl_save_exec_prefix"
14805   prefix="$acl_save_prefix"
14806
14807                     if test "X$x" = "X-I$additional_includedir"; then
14808                       haveit=yes
14809                       break
14810                     fi
14811                   done
14812                   if test -z "$haveit"; then
14813                     if test -d "$additional_includedir"; then
14814                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14815                     fi
14816                   fi
14817                 fi
14818               fi
14819             fi
14820                         if test -n "$found_la"; then
14821                                                         save_libdir="$libdir"
14822               case "$found_la" in
14823                 */* | *\\*) . "$found_la" ;;
14824                 *) . "./$found_la" ;;
14825               esac
14826               libdir="$save_libdir"
14827                             for dep in $dependency_libs; do
14828                 case "$dep" in
14829                   -L*)
14830                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14831                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14832                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14833                       haveit=
14834                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14835                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14836                         if test -n "$GCC"; then
14837                           case $host_os in
14838                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14839                           esac
14840                         fi
14841                       fi
14842                       if test -z "$haveit"; then
14843                         haveit=
14844                         for x in $LDFLAGS $LIBINTL; do
14845
14846   acl_save_prefix="$prefix"
14847   prefix="$acl_final_prefix"
14848   acl_save_exec_prefix="$exec_prefix"
14849   exec_prefix="$acl_final_exec_prefix"
14850   eval x=\"$x\"
14851   exec_prefix="$acl_save_exec_prefix"
14852   prefix="$acl_save_prefix"
14853
14854                           if test "X$x" = "X-L$additional_libdir"; then
14855                             haveit=yes
14856                             break
14857                           fi
14858                         done
14859                         if test -z "$haveit"; then
14860                           if test -d "$additional_libdir"; then
14861                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14862                           fi
14863                         fi
14864                         haveit=
14865                         for x in $LDFLAGS $LTLIBINTL; do
14866
14867   acl_save_prefix="$prefix"
14868   prefix="$acl_final_prefix"
14869   acl_save_exec_prefix="$exec_prefix"
14870   exec_prefix="$acl_final_exec_prefix"
14871   eval x=\"$x\"
14872   exec_prefix="$acl_save_exec_prefix"
14873   prefix="$acl_save_prefix"
14874
14875                           if test "X$x" = "X-L$additional_libdir"; then
14876                             haveit=yes
14877                             break
14878                           fi
14879                         done
14880                         if test -z "$haveit"; then
14881                           if test -d "$additional_libdir"; then
14882                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14883                           fi
14884                         fi
14885                       fi
14886                     fi
14887                     ;;
14888                   -R*)
14889                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14890                     if test "$enable_rpath" != no; then
14891                                                                   haveit=
14892                       for x in $rpathdirs; do
14893                         if test "X$x" = "X$dir"; then
14894                           haveit=yes
14895                           break
14896                         fi
14897                       done
14898                       if test -z "$haveit"; then
14899                         rpathdirs="$rpathdirs $dir"
14900                       fi
14901                                                                   haveit=
14902                       for x in $ltrpathdirs; do
14903                         if test "X$x" = "X$dir"; then
14904                           haveit=yes
14905                           break
14906                         fi
14907                       done
14908                       if test -z "$haveit"; then
14909                         ltrpathdirs="$ltrpathdirs $dir"
14910                       fi
14911                     fi
14912                     ;;
14913                   -l*)
14914                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14915                     ;;
14916                   *.la)
14917                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14918                     ;;
14919                   *)
14920                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14921                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14922                     ;;
14923                 esac
14924               done
14925             fi
14926           else
14927                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14928             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14929           fi
14930         fi
14931       fi
14932     done
14933   done
14934   if test "X$rpathdirs" != "X"; then
14935     if test -n "$acl_hardcode_libdir_separator"; then
14936                         alldirs=
14937       for found_dir in $rpathdirs; do
14938         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14939       done
14940             acl_save_libdir="$libdir"
14941       libdir="$alldirs"
14942       eval flag=\"$acl_hardcode_libdir_flag_spec\"
14943       libdir="$acl_save_libdir"
14944       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14945     else
14946             for found_dir in $rpathdirs; do
14947         acl_save_libdir="$libdir"
14948         libdir="$found_dir"
14949         eval flag=\"$acl_hardcode_libdir_flag_spec\"
14950         libdir="$acl_save_libdir"
14951         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14952       done
14953     fi
14954   fi
14955   if test "X$ltrpathdirs" != "X"; then
14956             for found_dir in $ltrpathdirs; do
14957       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14958     done
14959   fi
14960
14961
14962
14963
14964
14965
14966           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14967 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14968 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14969   $as_echo_n "(cached) " >&6
14970 else
14971   gt_save_CPPFLAGS="$CPPFLAGS"
14972             CPPFLAGS="$CPPFLAGS $INCINTL"
14973             gt_save_LIBS="$LIBS"
14974             LIBS="$LIBS $LIBINTL"
14975                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976 /* end confdefs.h.  */
14977 #include <libintl.h>
14978 $gt_revision_test_code
14979 extern int _nl_msg_cat_cntr;
14980 extern
14981 #ifdef __cplusplus
14982 "C"
14983 #endif
14984 const char *_nl_expand_alias (const char *);
14985 int
14986 main ()
14987 {
14988 bindtextdomain ("", "");
14989 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14990   ;
14991   return 0;
14992 }
14993 _ACEOF
14994 if ac_fn_c_try_link "$LINENO"; then :
14995   eval "$gt_func_gnugettext_libintl=yes"
14996 else
14997   eval "$gt_func_gnugettext_libintl=no"
14998 fi
14999 rm -f core conftest.err conftest.$ac_objext \
15000     conftest$ac_exeext conftest.$ac_ext
15001                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15002               LIBS="$LIBS $LIBICONV"
15003               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15004 /* end confdefs.h.  */
15005 #include <libintl.h>
15006 $gt_revision_test_code
15007 extern int _nl_msg_cat_cntr;
15008 extern
15009 #ifdef __cplusplus
15010 "C"
15011 #endif
15012 const char *_nl_expand_alias (const char *);
15013 int
15014 main ()
15015 {
15016 bindtextdomain ("", "");
15017 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15018   ;
15019   return 0;
15020 }
15021 _ACEOF
15022 if ac_fn_c_try_link "$LINENO"; then :
15023   LIBINTL="$LIBINTL $LIBICONV"
15024                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15025                 eval "$gt_func_gnugettext_libintl=yes"
15026
15027 fi
15028 rm -f core conftest.err conftest.$ac_objext \
15029     conftest$ac_exeext conftest.$ac_ext
15030             fi
15031             CPPFLAGS="$gt_save_CPPFLAGS"
15032             LIBS="$gt_save_LIBS"
15033 fi
15034 eval ac_res=\$$gt_func_gnugettext_libintl
15035                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15036 $as_echo "$ac_res" >&6; }
15037         fi
15038
15039                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15040            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15041                 && test "$PACKAGE" != gettext-runtime \
15042                 && test "$PACKAGE" != gettext-tools; }; then
15043           gt_use_preinstalled_gnugettext=yes
15044         else
15045                     LIBINTL=
15046           LTLIBINTL=
15047           INCINTL=
15048         fi
15049
15050
15051
15052     if test -n "$INTL_MACOSX_LIBS"; then
15053       if test "$gt_use_preinstalled_gnugettext" = "yes" \
15054          || test "$nls_cv_use_gnu_gettext" = "yes"; then
15055                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15056         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15057       fi
15058     fi
15059
15060     if test "$gt_use_preinstalled_gnugettext" = "yes" \
15061        || test "$nls_cv_use_gnu_gettext" = "yes"; then
15062
15063 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15064
15065     else
15066       USE_NLS=no
15067     fi
15068   fi
15069
15070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15071 $as_echo_n "checking whether to use NLS... " >&6; }
15072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15073 $as_echo "$USE_NLS" >&6; }
15074   if test "$USE_NLS" = "yes"; then
15075     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15076 $as_echo_n "checking where the gettext function comes from... " >&6; }
15077     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15078       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15079         gt_source="external libintl"
15080       else
15081         gt_source="libc"
15082       fi
15083     else
15084       gt_source="included intl directory"
15085     fi
15086     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15087 $as_echo "$gt_source" >&6; }
15088   fi
15089
15090   if test "$USE_NLS" = "yes"; then
15091
15092     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15093       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15094         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15095 $as_echo_n "checking how to link with libintl... " >&6; }
15096         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15097 $as_echo "$LIBINTL" >&6; }
15098
15099   for element in $INCINTL; do
15100     haveit=
15101     for x in $CPPFLAGS; do
15102
15103   acl_save_prefix="$prefix"
15104   prefix="$acl_final_prefix"
15105   acl_save_exec_prefix="$exec_prefix"
15106   exec_prefix="$acl_final_exec_prefix"
15107   eval x=\"$x\"
15108   exec_prefix="$acl_save_exec_prefix"
15109   prefix="$acl_save_prefix"
15110
15111       if test "X$x" = "X$element"; then
15112         haveit=yes
15113         break
15114       fi
15115     done
15116     if test -z "$haveit"; then
15117       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15118     fi
15119   done
15120
15121       fi
15122
15123
15124 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15125
15126
15127 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15128
15129     fi
15130
15131         POSUB=po
15132   fi
15133
15134
15135
15136     INTLLIBS="$LIBINTL"
15137
15138
15139
15140
15141
15142
15143
15144
15145 # ANONYMOUS
15146 # Check whether --enable-anonymous was given.
15147 if test "${enable_anonymous+set}" = set; then :
15148   enableval=$enable_anonymous; anonymous=$enableval
15149 fi
15150
15151 if test "$anonymous" != "no" ; then
15152         anonymous=yes
15153
15154 $as_echo "#define USE_ANONYMOUS 1" >>confdefs.h
15155
15156 fi
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ANONYMOUS should be used" >&5
15158 $as_echo_n "checking if ANONYMOUS should be used... " >&6; }
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $anonymous" >&5
15160 $as_echo "$anonymous" >&6; }
15161  if test x$anonymous = xyes; then
15162   ANONYMOUS_TRUE=
15163   ANONYMOUS_FALSE='#'
15164 else
15165   ANONYMOUS_TRUE='#'
15166   ANONYMOUS_FALSE=
15167 fi
15168
15169
15170 # EXTERNAL
15171 # Check whether --enable-external was given.
15172 if test "${enable_external+set}" = set; then :
15173   enableval=$enable_external; external=$enableval
15174 fi
15175
15176 if test "$external" != "no" ; then
15177         external=yes
15178
15179 $as_echo "#define USE_EXTERNAL 1" >>confdefs.h
15180
15181 fi
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EXTERNAL should be used" >&5
15183 $as_echo_n "checking if EXTERNAL should be used... " >&6; }
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $external" >&5
15185 $as_echo "$external" >&6; }
15186  if test x$external = xyes; then
15187   EXTERNAL_TRUE=
15188   EXTERNAL_FALSE='#'
15189 else
15190   EXTERNAL_TRUE='#'
15191   EXTERNAL_FALSE=
15192 fi
15193
15194
15195 # PLAIN
15196 # Check whether --enable-plain was given.
15197 if test "${enable_plain+set}" = set; then :
15198   enableval=$enable_plain; plain=$enableval
15199 fi
15200
15201 if test "$plain" != "no" ; then
15202         plain=yes
15203
15204 $as_echo "#define USE_PLAIN 1" >>confdefs.h
15205
15206 fi
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PLAIN should be used" >&5
15208 $as_echo_n "checking if PLAIN should be used... " >&6; }
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plain" >&5
15210 $as_echo "$plain" >&6; }
15211  if test x$plain = xyes; then
15212   PLAIN_TRUE=
15213   PLAIN_FALSE='#'
15214 else
15215   PLAIN_TRUE='#'
15216   PLAIN_FALSE=
15217 fi
15218
15219
15220 # LOGIN
15221 # Check whether --enable-login was given.
15222 if test "${enable_login+set}" = set; then :
15223   enableval=$enable_login; login=$enableval
15224 fi
15225
15226 if test "$login" != "no" ; then
15227         login=yes
15228
15229 $as_echo "#define USE_LOGIN 1" >>confdefs.h
15230
15231 fi
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LOGIN should be used" >&5
15233 $as_echo_n "checking if LOGIN should be used... " >&6; }
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $login" >&5
15235 $as_echo "$login" >&6; }
15236  if test x$login = xyes; then
15237   LOGIN_TRUE=
15238   LOGIN_FALSE='#'
15239 else
15240   LOGIN_TRUE='#'
15241   LOGIN_FALSE=
15242 fi
15243
15244
15245 # SECURID
15246 # Check whether --enable-securid was given.
15247 if test "${enable_securid+set}" = set; then :
15248   enableval=$enable_securid; securid=$enableval
15249 fi
15250
15251 if test "$securid" != "no" ; then
15252         securid=yes
15253
15254 $as_echo "#define USE_SECURID 1" >>confdefs.h
15255
15256 fi
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SECURID should be used" >&5
15258 $as_echo_n "checking if SECURID should be used... " >&6; }
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $securid" >&5
15260 $as_echo "$securid" >&6; }
15261  if test x$securid = xyes; then
15262   SECURID_TRUE=
15263   SECURID_FALSE='#'
15264 else
15265   SECURID_TRUE='#'
15266   SECURID_FALSE=
15267 fi
15268
15269
15270 # NTLM
15271 # Check whether --enable-ntlm was given.
15272 if test "${enable_ntlm+set}" = set; then :
15273   enableval=$enable_ntlm; ntlm=$enableval
15274 fi
15275
15276 if test "$ntlm" != "no"; then
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290     use_additional=yes
15291
15292   acl_save_prefix="$prefix"
15293   prefix="$acl_final_prefix"
15294   acl_save_exec_prefix="$exec_prefix"
15295   exec_prefix="$acl_final_exec_prefix"
15296
15297     eval additional_includedir=\"$includedir\"
15298     eval additional_libdir=\"$libdir\"
15299
15300   exec_prefix="$acl_save_exec_prefix"
15301   prefix="$acl_save_prefix"
15302
15303
15304 # Check whether --with-libntlm-prefix was given.
15305 if test "${with_libntlm_prefix+set}" = set; then :
15306   withval=$with_libntlm_prefix;
15307     if test "X$withval" = "Xno"; then
15308       use_additional=no
15309     else
15310       if test "X$withval" = "X"; then
15311
15312   acl_save_prefix="$prefix"
15313   prefix="$acl_final_prefix"
15314   acl_save_exec_prefix="$exec_prefix"
15315   exec_prefix="$acl_final_exec_prefix"
15316
15317           eval additional_includedir=\"$includedir\"
15318           eval additional_libdir=\"$libdir\"
15319
15320   exec_prefix="$acl_save_exec_prefix"
15321   prefix="$acl_save_prefix"
15322
15323       else
15324         additional_includedir="$withval/include"
15325         additional_libdir="$withval/$acl_libdirstem"
15326         if test "$acl_libdirstem2" != "$acl_libdirstem" \
15327            && ! test -d "$withval/$acl_libdirstem"; then
15328           additional_libdir="$withval/$acl_libdirstem2"
15329         fi
15330       fi
15331     fi
15332
15333 fi
15334
15335       LIBNTLM=
15336   LTLIBNTLM=
15337   INCNTLM=
15338   LIBNTLM_PREFIX=
15339       HAVE_LIBNTLM=
15340   rpathdirs=
15341   ltrpathdirs=
15342   names_already_handled=
15343   names_next_round='ntlm '
15344   while test -n "$names_next_round"; do
15345     names_this_round="$names_next_round"
15346     names_next_round=
15347     for name in $names_this_round; do
15348       already_handled=
15349       for n in $names_already_handled; do
15350         if test "$n" = "$name"; then
15351           already_handled=yes
15352           break
15353         fi
15354       done
15355       if test -z "$already_handled"; then
15356         names_already_handled="$names_already_handled $name"
15357                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15358         eval value=\"\$HAVE_LIB$uppername\"
15359         if test -n "$value"; then
15360           if test "$value" = yes; then
15361             eval value=\"\$LIB$uppername\"
15362             test -z "$value" || LIBNTLM="${LIBNTLM}${LIBNTLM:+ }$value"
15363             eval value=\"\$LTLIB$uppername\"
15364             test -z "$value" || LTLIBNTLM="${LTLIBNTLM}${LTLIBNTLM:+ }$value"
15365           else
15366                                     :
15367           fi
15368         else
15369                               found_dir=
15370           found_la=
15371           found_so=
15372           found_a=
15373           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
15374           if test -n "$acl_shlibext"; then
15375             shrext=".$acl_shlibext"             # typically: shrext=.so
15376           else
15377             shrext=
15378           fi
15379           if test $use_additional = yes; then
15380             dir="$additional_libdir"
15381                                     if test -n "$acl_shlibext"; then
15382               if test -f "$dir/$libname$shrext"; then
15383                 found_dir="$dir"
15384                 found_so="$dir/$libname$shrext"
15385               else
15386                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15387                   ver=`(cd "$dir" && \
15388                         for f in "$libname$shrext".*; do echo "$f"; done \
15389                         | sed -e "s,^$libname$shrext\\\\.,," \
15390                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15391                         | sed 1q ) 2>/dev/null`
15392                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15393                     found_dir="$dir"
15394                     found_so="$dir/$libname$shrext.$ver"
15395                   fi
15396                 else
15397                   eval library_names=\"$acl_library_names_spec\"
15398                   for f in $library_names; do
15399                     if test -f "$dir/$f"; then
15400                       found_dir="$dir"
15401                       found_so="$dir/$f"
15402                       break
15403                     fi
15404                   done
15405                 fi
15406               fi
15407             fi
15408                         if test "X$found_dir" = "X"; then
15409               if test -f "$dir/$libname.$acl_libext"; then
15410                 found_dir="$dir"
15411                 found_a="$dir/$libname.$acl_libext"
15412               fi
15413             fi
15414             if test "X$found_dir" != "X"; then
15415               if test -f "$dir/$libname.la"; then
15416                 found_la="$dir/$libname.la"
15417               fi
15418             fi
15419           fi
15420           if test "X$found_dir" = "X"; then
15421             for x in $LDFLAGS $LTLIBNTLM; do
15422
15423   acl_save_prefix="$prefix"
15424   prefix="$acl_final_prefix"
15425   acl_save_exec_prefix="$exec_prefix"
15426   exec_prefix="$acl_final_exec_prefix"
15427   eval x=\"$x\"
15428   exec_prefix="$acl_save_exec_prefix"
15429   prefix="$acl_save_prefix"
15430
15431               case "$x" in
15432                 -L*)
15433                   dir=`echo "X$x" | sed -e 's/^X-L//'`
15434                                     if test -n "$acl_shlibext"; then
15435                     if test -f "$dir/$libname$shrext"; then
15436                       found_dir="$dir"
15437                       found_so="$dir/$libname$shrext"
15438                     else
15439                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15440                         ver=`(cd "$dir" && \
15441                               for f in "$libname$shrext".*; do echo "$f"; done \
15442                               | sed -e "s,^$libname$shrext\\\\.,," \
15443                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15444                               | sed 1q ) 2>/dev/null`
15445                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15446                           found_dir="$dir"
15447                           found_so="$dir/$libname$shrext.$ver"
15448                         fi
15449                       else
15450                         eval library_names=\"$acl_library_names_spec\"
15451                         for f in $library_names; do
15452                           if test -f "$dir/$f"; then
15453                             found_dir="$dir"
15454                             found_so="$dir/$f"
15455                             break
15456                           fi
15457                         done
15458                       fi
15459                     fi
15460                   fi
15461                                     if test "X$found_dir" = "X"; then
15462                     if test -f "$dir/$libname.$acl_libext"; then
15463                       found_dir="$dir"
15464                       found_a="$dir/$libname.$acl_libext"
15465                     fi
15466                   fi
15467                   if test "X$found_dir" != "X"; then
15468                     if test -f "$dir/$libname.la"; then
15469                       found_la="$dir/$libname.la"
15470                     fi
15471                   fi
15472                   ;;
15473               esac
15474               if test "X$found_dir" != "X"; then
15475                 break
15476               fi
15477             done
15478           fi
15479           if test "X$found_dir" != "X"; then
15480                         LTLIBNTLM="${LTLIBNTLM}${LTLIBNTLM:+ }-L$found_dir -l$name"
15481             if test "X$found_so" != "X"; then
15482                                                         if test "$enable_rpath" = no \
15483                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15484                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15485                                 LIBNTLM="${LIBNTLM}${LIBNTLM:+ }$found_so"
15486               else
15487                                                                                 haveit=
15488                 for x in $ltrpathdirs; do
15489                   if test "X$x" = "X$found_dir"; then
15490                     haveit=yes
15491                     break
15492                   fi
15493                 done
15494                 if test -z "$haveit"; then
15495                   ltrpathdirs="$ltrpathdirs $found_dir"
15496                 fi
15497                                 if test "$acl_hardcode_direct" = yes; then
15498                                                       LIBNTLM="${LIBNTLM}${LIBNTLM:+ }$found_so"
15499                 else
15500                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15501                                                             LIBNTLM="${LIBNTLM}${LIBNTLM:+ }$found_so"
15502                                                             haveit=
15503                     for x in $rpathdirs; do
15504                       if test "X$x" = "X$found_dir"; then
15505                         haveit=yes
15506                         break
15507                       fi
15508                     done
15509                     if test -z "$haveit"; then
15510                       rpathdirs="$rpathdirs $found_dir"
15511                     fi
15512                   else
15513                                                                                 haveit=
15514                     for x in $LDFLAGS $LIBNTLM; do
15515
15516   acl_save_prefix="$prefix"
15517   prefix="$acl_final_prefix"
15518   acl_save_exec_prefix="$exec_prefix"
15519   exec_prefix="$acl_final_exec_prefix"
15520   eval x=\"$x\"
15521   exec_prefix="$acl_save_exec_prefix"
15522   prefix="$acl_save_prefix"
15523
15524                       if test "X$x" = "X-L$found_dir"; then
15525                         haveit=yes
15526                         break
15527                       fi
15528                     done
15529                     if test -z "$haveit"; then
15530                       LIBNTLM="${LIBNTLM}${LIBNTLM:+ }-L$found_dir"
15531                     fi
15532                     if test "$acl_hardcode_minus_L" != no; then
15533                                                                                         LIBNTLM="${LIBNTLM}${LIBNTLM:+ }$found_so"
15534                     else
15535                                                                                                                                                                                 LIBNTLM="${LIBNTLM}${LIBNTLM:+ }-l$name"
15536                     fi
15537                   fi
15538                 fi
15539               fi
15540             else
15541               if test "X$found_a" != "X"; then
15542                                 LIBNTLM="${LIBNTLM}${LIBNTLM:+ }$found_a"
15543               else
15544                                                 LIBNTLM="${LIBNTLM}${LIBNTLM:+ }-L$found_dir -l$name"
15545               fi
15546             fi
15547                         additional_includedir=
15548             case "$found_dir" in
15549               */$acl_libdirstem | */$acl_libdirstem/)
15550                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15551                 if test "$name" = 'ntlm'; then
15552                   LIBNTLM_PREFIX="$basedir"
15553                 fi
15554                 additional_includedir="$basedir/include"
15555                 ;;
15556               */$acl_libdirstem2 | */$acl_libdirstem2/)
15557                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15558                 if test "$name" = 'ntlm'; then
15559                   LIBNTLM_PREFIX="$basedir"
15560                 fi
15561                 additional_includedir="$basedir/include"
15562                 ;;
15563             esac
15564             if test "X$additional_includedir" != "X"; then
15565                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15566                 haveit=
15567                 if test "X$additional_includedir" = "X/usr/local/include"; then
15568                   if test -n "$GCC"; then
15569                     case $host_os in
15570                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15571                     esac
15572                   fi
15573                 fi
15574                 if test -z "$haveit"; then
15575                   for x in $CPPFLAGS $INCNTLM; do
15576
15577   acl_save_prefix="$prefix"
15578   prefix="$acl_final_prefix"
15579   acl_save_exec_prefix="$exec_prefix"
15580   exec_prefix="$acl_final_exec_prefix"
15581   eval x=\"$x\"
15582   exec_prefix="$acl_save_exec_prefix"
15583   prefix="$acl_save_prefix"
15584
15585                     if test "X$x" = "X-I$additional_includedir"; then
15586                       haveit=yes
15587                       break
15588                     fi
15589                   done
15590                   if test -z "$haveit"; then
15591                     if test -d "$additional_includedir"; then
15592                                             INCNTLM="${INCNTLM}${INCNTLM:+ }-I$additional_includedir"
15593                     fi
15594                   fi
15595                 fi
15596               fi
15597             fi
15598                         if test -n "$found_la"; then
15599                                                         save_libdir="$libdir"
15600               case "$found_la" in
15601                 */* | *\\*) . "$found_la" ;;
15602                 *) . "./$found_la" ;;
15603               esac
15604               libdir="$save_libdir"
15605                             for dep in $dependency_libs; do
15606                 case "$dep" in
15607                   -L*)
15608                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15609                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15610                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15611                       haveit=
15612                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15613                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15614                         if test -n "$GCC"; then
15615                           case $host_os in
15616                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15617                           esac
15618                         fi
15619                       fi
15620                       if test -z "$haveit"; then
15621                         haveit=
15622                         for x in $LDFLAGS $LIBNTLM; do
15623
15624   acl_save_prefix="$prefix"
15625   prefix="$acl_final_prefix"
15626   acl_save_exec_prefix="$exec_prefix"
15627   exec_prefix="$acl_final_exec_prefix"
15628   eval x=\"$x\"
15629   exec_prefix="$acl_save_exec_prefix"
15630   prefix="$acl_save_prefix"
15631
15632                           if test "X$x" = "X-L$additional_libdir"; then
15633                             haveit=yes
15634                             break
15635                           fi
15636                         done
15637                         if test -z "$haveit"; then
15638                           if test -d "$additional_libdir"; then
15639                                                         LIBNTLM="${LIBNTLM}${LIBNTLM:+ }-L$additional_libdir"
15640                           fi
15641                         fi
15642                         haveit=
15643                         for x in $LDFLAGS $LTLIBNTLM; do
15644
15645   acl_save_prefix="$prefix"
15646   prefix="$acl_final_prefix"
15647   acl_save_exec_prefix="$exec_prefix"
15648   exec_prefix="$acl_final_exec_prefix"
15649   eval x=\"$x\"
15650   exec_prefix="$acl_save_exec_prefix"
15651   prefix="$acl_save_prefix"
15652
15653                           if test "X$x" = "X-L$additional_libdir"; then
15654                             haveit=yes
15655                             break
15656                           fi
15657                         done
15658                         if test -z "$haveit"; then
15659                           if test -d "$additional_libdir"; then
15660                                                         LTLIBNTLM="${LTLIBNTLM}${LTLIBNTLM:+ }-L$additional_libdir"
15661                           fi
15662                         fi
15663                       fi
15664                     fi
15665                     ;;
15666                   -R*)
15667                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15668                     if test "$enable_rpath" != no; then
15669                                                                   haveit=
15670                       for x in $rpathdirs; do
15671                         if test "X$x" = "X$dir"; then
15672                           haveit=yes
15673                           break
15674                         fi
15675                       done
15676                       if test -z "$haveit"; then
15677                         rpathdirs="$rpathdirs $dir"
15678                       fi
15679                                                                   haveit=
15680                       for x in $ltrpathdirs; do
15681                         if test "X$x" = "X$dir"; then
15682                           haveit=yes
15683                           break
15684                         fi
15685                       done
15686                       if test -z "$haveit"; then
15687                         ltrpathdirs="$ltrpathdirs $dir"
15688                       fi
15689                     fi
15690                     ;;
15691                   -l*)
15692                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15693                     ;;
15694                   *.la)
15695                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15696                     ;;
15697                   *)
15698                                         LIBNTLM="${LIBNTLM}${LIBNTLM:+ }$dep"
15699                     LTLIBNTLM="${LTLIBNTLM}${LTLIBNTLM:+ }$dep"
15700                     ;;
15701                 esac
15702               done
15703             fi
15704           else
15705                                                             LIBNTLM="${LIBNTLM}${LIBNTLM:+ }-l$name"
15706             LTLIBNTLM="${LTLIBNTLM}${LTLIBNTLM:+ }-l$name"
15707           fi
15708         fi
15709       fi
15710     done
15711   done
15712   if test "X$rpathdirs" != "X"; then
15713     if test -n "$acl_hardcode_libdir_separator"; then
15714                         alldirs=
15715       for found_dir in $rpathdirs; do
15716         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15717       done
15718             acl_save_libdir="$libdir"
15719       libdir="$alldirs"
15720       eval flag=\"$acl_hardcode_libdir_flag_spec\"
15721       libdir="$acl_save_libdir"
15722       LIBNTLM="${LIBNTLM}${LIBNTLM:+ }$flag"
15723     else
15724             for found_dir in $rpathdirs; do
15725         acl_save_libdir="$libdir"
15726         libdir="$found_dir"
15727         eval flag=\"$acl_hardcode_libdir_flag_spec\"
15728         libdir="$acl_save_libdir"
15729         LIBNTLM="${LIBNTLM}${LIBNTLM:+ }$flag"
15730       done
15731     fi
15732   fi
15733   if test "X$ltrpathdirs" != "X"; then
15734             for found_dir in $ltrpathdirs; do
15735       LTLIBNTLM="${LTLIBNTLM}${LTLIBNTLM:+ }-R$found_dir"
15736     done
15737   fi
15738
15739
15740
15741
15742
15743
15744
15745         ac_save_CPPFLAGS="$CPPFLAGS"
15746
15747   for element in $INCNTLM; do
15748     haveit=
15749     for x in $CPPFLAGS; do
15750
15751   acl_save_prefix="$prefix"
15752   prefix="$acl_final_prefix"
15753   acl_save_exec_prefix="$exec_prefix"
15754   exec_prefix="$acl_final_exec_prefix"
15755   eval x=\"$x\"
15756   exec_prefix="$acl_save_exec_prefix"
15757   prefix="$acl_save_prefix"
15758
15759       if test "X$x" = "X$element"; then
15760         haveit=yes
15761         break
15762       fi
15763     done
15764     if test -z "$haveit"; then
15765       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15766     fi
15767   done
15768
15769
15770   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libntlm" >&5
15771 $as_echo_n "checking for libntlm... " >&6; }
15772 if ${ac_cv_libntlm+:} false; then :
15773   $as_echo_n "(cached) " >&6
15774 else
15775
15776     ac_save_LIBS="$LIBS"
15777                                 case " $LIBNTLM" in
15778       *" -l"*) LIBS="$LIBS $LIBNTLM" ;;
15779       *)       LIBS="$LIBNTLM $LIBS" ;;
15780     esac
15781     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15782 /* end confdefs.h.  */
15783 #include <ntlm.h>
15784 int
15785 main ()
15786 {
15787 buildSmbNtlmAuthRequest_noatsplit (0, 0, 0);
15788   ;
15789   return 0;
15790 }
15791 _ACEOF
15792 if ac_fn_c_try_link "$LINENO"; then :
15793   ac_cv_libntlm=yes
15794 else
15795   ac_cv_libntlm='no'
15796 fi
15797 rm -f core conftest.err conftest.$ac_objext \
15798     conftest$ac_exeext conftest.$ac_ext
15799     LIBS="$ac_save_LIBS"
15800
15801 fi
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libntlm" >&5
15803 $as_echo "$ac_cv_libntlm" >&6; }
15804   if test "$ac_cv_libntlm" = yes; then
15805     HAVE_LIBNTLM=yes
15806
15807 $as_echo "#define HAVE_LIBNTLM 1" >>confdefs.h
15808
15809     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libntlm" >&5
15810 $as_echo_n "checking how to link with libntlm... " >&6; }
15811     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBNTLM" >&5
15812 $as_echo "$LIBNTLM" >&6; }
15813   else
15814     HAVE_LIBNTLM=no
15815             CPPFLAGS="$ac_save_CPPFLAGS"
15816     LIBNTLM=
15817     LTLIBNTLM=
15818     LIBNTLM_PREFIX=
15819   fi
15820
15821
15822
15823
15824
15825
15826
15827   if test "$ac_cv_libntlm" != yes; then
15828     ntlm=no
15829     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libntlm >= 0.3.5 not found, disabling NTLM." >&5
15830 $as_echo "$as_me: WARNING: Libntlm >= 0.3.5 not found, disabling NTLM." >&2;}
15831   else
15832     ntlm=yes
15833
15834 $as_echo "#define USE_NTLM 1" >>confdefs.h
15835
15836   fi
15837 fi
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if NTLM should be used" >&5
15839 $as_echo_n "checking if NTLM should be used... " >&6; }
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntlm" >&5
15841 $as_echo "$ntlm" >&6; }
15842  if test x$ntlm = xyes; then
15843   NTLM_TRUE=
15844   NTLM_FALSE='#'
15845 else
15846   NTLM_TRUE='#'
15847   NTLM_FALSE=
15848 fi
15849
15850
15851 # CRAM-MD5
15852 # Check whether --enable-cram-md5 was given.
15853 if test "${enable_cram_md5+set}" = set; then :
15854   enableval=$enable_cram_md5; cram_md5=$enableval
15855 fi
15856
15857 if test "$cram_md5" != "no" ; then
15858         cram_md5=yes
15859
15860 $as_echo "#define USE_CRAM_MD5 1" >>confdefs.h
15861
15862 fi
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CRAM-MD5 should be used" >&5
15864 $as_echo_n "checking if CRAM-MD5 should be used... " >&6; }
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cram_md5" >&5
15866 $as_echo "$cram_md5" >&6; }
15867  if test x$cram_md5 = xyes; then
15868   CRAM_MD5_TRUE=
15869   CRAM_MD5_FALSE='#'
15870 else
15871   CRAM_MD5_TRUE='#'
15872   CRAM_MD5_FALSE=
15873 fi
15874
15875
15876 # DIGEST-MD5
15877 # Check whether --enable-digest-md5 was given.
15878 if test "${enable_digest_md5+set}" = set; then :
15879   enableval=$enable_digest_md5; digest_md5=$enableval
15880 fi
15881
15882 if test "$digest_md5" != "no" ; then
15883         digest_md5=yes
15884
15885 $as_echo "#define USE_DIGEST_MD5 1" >>confdefs.h
15886
15887 fi
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DIGEST-MD5 should be used" >&5
15889 $as_echo_n "checking if DIGEST-MD5 should be used... " >&6; }
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $digest_md5" >&5
15891 $as_echo "$digest_md5" >&6; }
15892  if test x$digest_md5 = xyes; then
15893   DIGEST_MD5_TRUE=
15894   DIGEST_MD5_FALSE='#'
15895 else
15896   DIGEST_MD5_TRUE='#'
15897   DIGEST_MD5_FALSE=
15898 fi
15899
15900
15901 # SCRAM-SHA-1
15902 # Check whether --enable-scram-sha1 was given.
15903 if test "${enable_scram_sha1+set}" = set; then :
15904   enableval=$enable_scram_sha1; scram_sha1=$enableval
15905 fi
15906
15907 if test "$scram_sha1" != "no" ; then
15908   scram_sha1=yes
15909
15910 $as_echo "#define USE_SCRAM_SHA1 1" >>confdefs.h
15911
15912 fi
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SCRAM-SHA-1 should be used" >&5
15914 $as_echo_n "checking if SCRAM-SHA-1 should be used... " >&6; }
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $scram_sha1" >&5
15916 $as_echo "$scram_sha1" >&6; }
15917
15918  if test "$scram_sha1" != "no"; then
15919   SCRAM_TRUE=
15920   SCRAM_FALSE='#'
15921 else
15922   SCRAM_TRUE='#'
15923   SCRAM_FALSE=
15924 fi
15925
15926
15927 # SAML20
15928 # Check whether --enable-saml20 was given.
15929 if test "${enable_saml20+set}" = set; then :
15930   enableval=$enable_saml20; saml20=$enableval
15931 else
15932   saml20=yes
15933 fi
15934
15935 if test "$saml20" != "no" ; then
15936         saml20=yes
15937
15938 $as_echo "#define USE_SAML20 1" >>confdefs.h
15939
15940 fi
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SAML20 should be used" >&5
15942 $as_echo_n "checking if SAML20 should be used... " >&6; }
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $saml20" >&5
15944 $as_echo "$saml20" >&6; }
15945  if test x$saml20 = xyes; then
15946   SAML20_TRUE=
15947   SAML20_FALSE='#'
15948 else
15949   SAML20_TRUE='#'
15950   SAML20_FALSE=
15951 fi
15952
15953
15954 # OPENID20
15955 # Check whether --enable-openid20 was given.
15956 if test "${enable_openid20+set}" = set; then :
15957   enableval=$enable_openid20; openid20=$enableval
15958 else
15959   openid20=yes
15960 fi
15961
15962 if test "$openid20" != "no" ; then
15963         openid20=yes
15964
15965 $as_echo "#define USE_OPENID20 1" >>confdefs.h
15966
15967 fi
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OPENID20 should be used" >&5
15969 $as_echo_n "checking if OPENID20 should be used... " >&6; }
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openid20" >&5
15971 $as_echo "$openid20" >&6; }
15972  if test x$openid20 = xyes; then
15973   OPENID20_TRUE=
15974   OPENID20_FALSE='#'
15975 else
15976   OPENID20_TRUE='#'
15977   OPENID20_FALSE=
15978 fi
15979
15980
15981 # GS2, first part
15982 # Check whether --enable-gs2 was given.
15983 if test "${enable_gs2+set}" = set; then :
15984   enableval=$enable_gs2; gs2=$enableval
15985 fi
15986
15987 if test "$gs2" != "no" ; then
15988   gs2=yes
15989 fi
15990
15991 # GSSAPI, first part
15992 # Check whether --enable-gssapi was given.
15993 if test "${enable_gssapi+set}" = set; then :
15994   enableval=$enable_gssapi; gssapi=$enableval
15995 fi
15996
15997 if test "$gssapi" != "no" ; then
15998   gssapi=yes
15999 fi
16000
16001 # GSSAPI.
16002
16003 # Check whether --with-gssapi-impl was given.
16004 if test "${with_gssapi_impl+set}" = set; then :
16005   withval=$with_gssapi_impl; gssapi_impl=$withval
16006 else
16007   gssapi_impl=yes
16008 fi
16009
16010 if test "$gs2" = no && test "$gssapi" = no; then
16011   gssapi_impl=no
16012 else
16013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS implementation ($gssapi_impl)" >&5
16014 $as_echo "$as_me: checking for GSS implementation ($gssapi_impl)" >&6;}
16015 fi
16016
16017 if test "$gssapi_impl" = "gss"; then
16018   { $as_echo "$as_me:${as_lineno-$LINENO}: trying GSS" >&5
16019 $as_echo "$as_me: trying GSS" >&6;}
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033     use_additional=yes
16034
16035   acl_save_prefix="$prefix"
16036   prefix="$acl_final_prefix"
16037   acl_save_exec_prefix="$exec_prefix"
16038   exec_prefix="$acl_final_exec_prefix"
16039
16040     eval additional_includedir=\"$includedir\"
16041     eval additional_libdir=\"$libdir\"
16042
16043   exec_prefix="$acl_save_exec_prefix"
16044   prefix="$acl_save_prefix"
16045
16046
16047 # Check whether --with-libgss-prefix was given.
16048 if test "${with_libgss_prefix+set}" = set; then :
16049   withval=$with_libgss_prefix;
16050     if test "X$withval" = "Xno"; then
16051       use_additional=no
16052     else
16053       if test "X$withval" = "X"; then
16054
16055   acl_save_prefix="$prefix"
16056   prefix="$acl_final_prefix"
16057   acl_save_exec_prefix="$exec_prefix"
16058   exec_prefix="$acl_final_exec_prefix"
16059
16060           eval additional_includedir=\"$includedir\"
16061           eval additional_libdir=\"$libdir\"
16062
16063   exec_prefix="$acl_save_exec_prefix"
16064   prefix="$acl_save_prefix"
16065
16066       else
16067         additional_includedir="$withval/include"
16068         additional_libdir="$withval/$acl_libdirstem"
16069         if test "$acl_libdirstem2" != "$acl_libdirstem" \
16070            && ! test -d "$withval/$acl_libdirstem"; then
16071           additional_libdir="$withval/$acl_libdirstem2"
16072         fi
16073       fi
16074     fi
16075
16076 fi
16077
16078       LIBGSS=
16079   LTLIBGSS=
16080   INCGSS=
16081   LIBGSS_PREFIX=
16082       HAVE_LIBGSS=
16083   rpathdirs=
16084   ltrpathdirs=
16085   names_already_handled=
16086   names_next_round='gss '
16087   while test -n "$names_next_round"; do
16088     names_this_round="$names_next_round"
16089     names_next_round=
16090     for name in $names_this_round; do
16091       already_handled=
16092       for n in $names_already_handled; do
16093         if test "$n" = "$name"; then
16094           already_handled=yes
16095           break
16096         fi
16097       done
16098       if test -z "$already_handled"; then
16099         names_already_handled="$names_already_handled $name"
16100                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16101         eval value=\"\$HAVE_LIB$uppername\"
16102         if test -n "$value"; then
16103           if test "$value" = yes; then
16104             eval value=\"\$LIB$uppername\"
16105             test -z "$value" || LIBGSS="${LIBGSS}${LIBGSS:+ }$value"
16106             eval value=\"\$LTLIB$uppername\"
16107             test -z "$value" || LTLIBGSS="${LTLIBGSS}${LTLIBGSS:+ }$value"
16108           else
16109                                     :
16110           fi
16111         else
16112                               found_dir=
16113           found_la=
16114           found_so=
16115           found_a=
16116           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
16117           if test -n "$acl_shlibext"; then
16118             shrext=".$acl_shlibext"             # typically: shrext=.so
16119           else
16120             shrext=
16121           fi
16122           if test $use_additional = yes; then
16123             dir="$additional_libdir"
16124                                     if test -n "$acl_shlibext"; then
16125               if test -f "$dir/$libname$shrext"; then
16126                 found_dir="$dir"
16127                 found_so="$dir/$libname$shrext"
16128               else
16129                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16130                   ver=`(cd "$dir" && \
16131                         for f in "$libname$shrext".*; do echo "$f"; done \
16132                         | sed -e "s,^$libname$shrext\\\\.,," \
16133                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16134                         | sed 1q ) 2>/dev/null`
16135                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16136                     found_dir="$dir"
16137                     found_so="$dir/$libname$shrext.$ver"
16138                   fi
16139                 else
16140                   eval library_names=\"$acl_library_names_spec\"
16141                   for f in $library_names; do
16142                     if test -f "$dir/$f"; then
16143                       found_dir="$dir"
16144                       found_so="$dir/$f"
16145                       break
16146                     fi
16147                   done
16148                 fi
16149               fi
16150             fi
16151                         if test "X$found_dir" = "X"; then
16152               if test -f "$dir/$libname.$acl_libext"; then
16153                 found_dir="$dir"
16154                 found_a="$dir/$libname.$acl_libext"
16155               fi
16156             fi
16157             if test "X$found_dir" != "X"; then
16158               if test -f "$dir/$libname.la"; then
16159                 found_la="$dir/$libname.la"
16160               fi
16161             fi
16162           fi
16163           if test "X$found_dir" = "X"; then
16164             for x in $LDFLAGS $LTLIBGSS; do
16165
16166   acl_save_prefix="$prefix"
16167   prefix="$acl_final_prefix"
16168   acl_save_exec_prefix="$exec_prefix"
16169   exec_prefix="$acl_final_exec_prefix"
16170   eval x=\"$x\"
16171   exec_prefix="$acl_save_exec_prefix"
16172   prefix="$acl_save_prefix"
16173
16174               case "$x" in
16175                 -L*)
16176                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16177                                     if test -n "$acl_shlibext"; then
16178                     if test -f "$dir/$libname$shrext"; then
16179                       found_dir="$dir"
16180                       found_so="$dir/$libname$shrext"
16181                     else
16182                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16183                         ver=`(cd "$dir" && \
16184                               for f in "$libname$shrext".*; do echo "$f"; done \
16185                               | sed -e "s,^$libname$shrext\\\\.,," \
16186                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16187                               | sed 1q ) 2>/dev/null`
16188                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16189                           found_dir="$dir"
16190                           found_so="$dir/$libname$shrext.$ver"
16191                         fi
16192                       else
16193                         eval library_names=\"$acl_library_names_spec\"
16194                         for f in $library_names; do
16195                           if test -f "$dir/$f"; then
16196                             found_dir="$dir"
16197                             found_so="$dir/$f"
16198                             break
16199                           fi
16200                         done
16201                       fi
16202                     fi
16203                   fi
16204                                     if test "X$found_dir" = "X"; then
16205                     if test -f "$dir/$libname.$acl_libext"; then
16206                       found_dir="$dir"
16207                       found_a="$dir/$libname.$acl_libext"
16208                     fi
16209                   fi
16210                   if test "X$found_dir" != "X"; then
16211                     if test -f "$dir/$libname.la"; then
16212                       found_la="$dir/$libname.la"
16213                     fi
16214                   fi
16215                   ;;
16216               esac
16217               if test "X$found_dir" != "X"; then
16218                 break
16219               fi
16220             done
16221           fi
16222           if test "X$found_dir" != "X"; then
16223                         LTLIBGSS="${LTLIBGSS}${LTLIBGSS:+ }-L$found_dir -l$name"
16224             if test "X$found_so" != "X"; then
16225                                                         if test "$enable_rpath" = no \
16226                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16227                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16228                                 LIBGSS="${LIBGSS}${LIBGSS:+ }$found_so"
16229               else
16230                                                                                 haveit=
16231                 for x in $ltrpathdirs; do
16232                   if test "X$x" = "X$found_dir"; then
16233                     haveit=yes
16234                     break
16235                   fi
16236                 done
16237                 if test -z "$haveit"; then
16238                   ltrpathdirs="$ltrpathdirs $found_dir"
16239                 fi
16240                                 if test "$acl_hardcode_direct" = yes; then
16241                                                       LIBGSS="${LIBGSS}${LIBGSS:+ }$found_so"
16242                 else
16243                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16244                                                             LIBGSS="${LIBGSS}${LIBGSS:+ }$found_so"
16245                                                             haveit=
16246                     for x in $rpathdirs; do
16247                       if test "X$x" = "X$found_dir"; then
16248                         haveit=yes
16249                         break
16250                       fi
16251                     done
16252                     if test -z "$haveit"; then
16253                       rpathdirs="$rpathdirs $found_dir"
16254                     fi
16255                   else
16256                                                                                 haveit=
16257                     for x in $LDFLAGS $LIBGSS; do
16258
16259   acl_save_prefix="$prefix"
16260   prefix="$acl_final_prefix"
16261   acl_save_exec_prefix="$exec_prefix"
16262   exec_prefix="$acl_final_exec_prefix"
16263   eval x=\"$x\"
16264   exec_prefix="$acl_save_exec_prefix"
16265   prefix="$acl_save_prefix"
16266
16267                       if test "X$x" = "X-L$found_dir"; then
16268                         haveit=yes
16269                         break
16270                       fi
16271                     done
16272                     if test -z "$haveit"; then
16273                       LIBGSS="${LIBGSS}${LIBGSS:+ }-L$found_dir"
16274                     fi
16275                     if test "$acl_hardcode_minus_L" != no; then
16276                                                                                         LIBGSS="${LIBGSS}${LIBGSS:+ }$found_so"
16277                     else
16278                                                                                                                                                                                 LIBGSS="${LIBGSS}${LIBGSS:+ }-l$name"
16279                     fi
16280                   fi
16281                 fi
16282               fi
16283             else
16284               if test "X$found_a" != "X"; then
16285                                 LIBGSS="${LIBGSS}${LIBGSS:+ }$found_a"
16286               else
16287                                                 LIBGSS="${LIBGSS}${LIBGSS:+ }-L$found_dir -l$name"
16288               fi
16289             fi
16290                         additional_includedir=
16291             case "$found_dir" in
16292               */$acl_libdirstem | */$acl_libdirstem/)
16293                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16294                 if test "$name" = 'gss'; then
16295                   LIBGSS_PREFIX="$basedir"
16296                 fi
16297                 additional_includedir="$basedir/include"
16298                 ;;
16299               */$acl_libdirstem2 | */$acl_libdirstem2/)
16300                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16301                 if test "$name" = 'gss'; then
16302                   LIBGSS_PREFIX="$basedir"
16303                 fi
16304                 additional_includedir="$basedir/include"
16305                 ;;
16306             esac
16307             if test "X$additional_includedir" != "X"; then
16308                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16309                 haveit=
16310                 if test "X$additional_includedir" = "X/usr/local/include"; then
16311                   if test -n "$GCC"; then
16312                     case $host_os in
16313                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16314                     esac
16315                   fi
16316                 fi
16317                 if test -z "$haveit"; then
16318                   for x in $CPPFLAGS $INCGSS; do
16319
16320   acl_save_prefix="$prefix"
16321   prefix="$acl_final_prefix"
16322   acl_save_exec_prefix="$exec_prefix"
16323   exec_prefix="$acl_final_exec_prefix"
16324   eval x=\"$x\"
16325   exec_prefix="$acl_save_exec_prefix"
16326   prefix="$acl_save_prefix"
16327
16328                     if test "X$x" = "X-I$additional_includedir"; then
16329                       haveit=yes
16330                       break
16331                     fi
16332                   done
16333                   if test -z "$haveit"; then
16334                     if test -d "$additional_includedir"; then
16335                                             INCGSS="${INCGSS}${INCGSS:+ }-I$additional_includedir"
16336                     fi
16337                   fi
16338                 fi
16339               fi
16340             fi
16341                         if test -n "$found_la"; then
16342                                                         save_libdir="$libdir"
16343               case "$found_la" in
16344                 */* | *\\*) . "$found_la" ;;
16345                 *) . "./$found_la" ;;
16346               esac
16347               libdir="$save_libdir"
16348                             for dep in $dependency_libs; do
16349                 case "$dep" in
16350                   -L*)
16351                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16352                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16353                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16354                       haveit=
16355                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16356                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16357                         if test -n "$GCC"; then
16358                           case $host_os in
16359                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16360                           esac
16361                         fi
16362                       fi
16363                       if test -z "$haveit"; then
16364                         haveit=
16365                         for x in $LDFLAGS $LIBGSS; do
16366
16367   acl_save_prefix="$prefix"
16368   prefix="$acl_final_prefix"
16369   acl_save_exec_prefix="$exec_prefix"
16370   exec_prefix="$acl_final_exec_prefix"
16371   eval x=\"$x\"
16372   exec_prefix="$acl_save_exec_prefix"
16373   prefix="$acl_save_prefix"
16374
16375                           if test "X$x" = "X-L$additional_libdir"; then
16376                             haveit=yes
16377                             break
16378                           fi
16379                         done
16380                         if test -z "$haveit"; then
16381                           if test -d "$additional_libdir"; then
16382                                                         LIBGSS="${LIBGSS}${LIBGSS:+ }-L$additional_libdir"
16383                           fi
16384                         fi
16385                         haveit=
16386                         for x in $LDFLAGS $LTLIBGSS; do
16387
16388   acl_save_prefix="$prefix"
16389   prefix="$acl_final_prefix"
16390   acl_save_exec_prefix="$exec_prefix"
16391   exec_prefix="$acl_final_exec_prefix"
16392   eval x=\"$x\"
16393   exec_prefix="$acl_save_exec_prefix"
16394   prefix="$acl_save_prefix"
16395
16396                           if test "X$x" = "X-L$additional_libdir"; then
16397                             haveit=yes
16398                             break
16399                           fi
16400                         done
16401                         if test -z "$haveit"; then
16402                           if test -d "$additional_libdir"; then
16403                                                         LTLIBGSS="${LTLIBGSS}${LTLIBGSS:+ }-L$additional_libdir"
16404                           fi
16405                         fi
16406                       fi
16407                     fi
16408                     ;;
16409                   -R*)
16410                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16411                     if test "$enable_rpath" != no; then
16412                                                                   haveit=
16413                       for x in $rpathdirs; do
16414                         if test "X$x" = "X$dir"; then
16415                           haveit=yes
16416                           break
16417                         fi
16418                       done
16419                       if test -z "$haveit"; then
16420                         rpathdirs="$rpathdirs $dir"
16421                       fi
16422                                                                   haveit=
16423                       for x in $ltrpathdirs; do
16424                         if test "X$x" = "X$dir"; then
16425                           haveit=yes
16426                           break
16427                         fi
16428                       done
16429                       if test -z "$haveit"; then
16430                         ltrpathdirs="$ltrpathdirs $dir"
16431                       fi
16432                     fi
16433                     ;;
16434                   -l*)
16435                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16436                     ;;
16437                   *.la)
16438                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16439                     ;;
16440                   *)
16441                                         LIBGSS="${LIBGSS}${LIBGSS:+ }$dep"
16442                     LTLIBGSS="${LTLIBGSS}${LTLIBGSS:+ }$dep"
16443                     ;;
16444                 esac
16445               done
16446             fi
16447           else
16448                                                             LIBGSS="${LIBGSS}${LIBGSS:+ }-l$name"
16449             LTLIBGSS="${LTLIBGSS}${LTLIBGSS:+ }-l$name"
16450           fi
16451         fi
16452       fi
16453     done
16454   done
16455   if test "X$rpathdirs" != "X"; then
16456     if test -n "$acl_hardcode_libdir_separator"; then
16457                         alldirs=
16458       for found_dir in $rpathdirs; do
16459         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16460       done
16461             acl_save_libdir="$libdir"
16462       libdir="$alldirs"
16463       eval flag=\"$acl_hardcode_libdir_flag_spec\"
16464       libdir="$acl_save_libdir"
16465       LIBGSS="${LIBGSS}${LIBGSS:+ }$flag"
16466     else
16467             for found_dir in $rpathdirs; do
16468         acl_save_libdir="$libdir"
16469         libdir="$found_dir"
16470         eval flag=\"$acl_hardcode_libdir_flag_spec\"
16471         libdir="$acl_save_libdir"
16472         LIBGSS="${LIBGSS}${LIBGSS:+ }$flag"
16473       done
16474     fi
16475   fi
16476   if test "X$ltrpathdirs" != "X"; then
16477             for found_dir in $ltrpathdirs; do
16478       LTLIBGSS="${LTLIBGSS}${LTLIBGSS:+ }-R$found_dir"
16479     done
16480   fi
16481
16482
16483
16484
16485
16486
16487
16488         ac_save_CPPFLAGS="$CPPFLAGS"
16489
16490   for element in $INCGSS; do
16491     haveit=
16492     for x in $CPPFLAGS; do
16493
16494   acl_save_prefix="$prefix"
16495   prefix="$acl_final_prefix"
16496   acl_save_exec_prefix="$exec_prefix"
16497   exec_prefix="$acl_final_exec_prefix"
16498   eval x=\"$x\"
16499   exec_prefix="$acl_save_exec_prefix"
16500   prefix="$acl_save_prefix"
16501
16502       if test "X$x" = "X$element"; then
16503         haveit=yes
16504         break
16505       fi
16506     done
16507     if test -z "$haveit"; then
16508       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16509     fi
16510   done
16511
16512
16513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgss" >&5
16514 $as_echo_n "checking for libgss... " >&6; }
16515 if ${ac_cv_libgss+:} false; then :
16516   $as_echo_n "(cached) " >&6
16517 else
16518
16519     ac_save_LIBS="$LIBS"
16520                                 case " $LIBGSS" in
16521       *" -l"*) LIBS="$LIBS $LIBGSS" ;;
16522       *)       LIBS="$LIBGSS $LIBS" ;;
16523     esac
16524     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16525 /* end confdefs.h.  */
16526 #include <gss.h>
16527 int
16528 main ()
16529 {
16530
16531 #if GSS_VERSION_NUMBER < 0x010000
16532 too old version
16533 #else
16534 gss_check_version (0);
16535 #endif
16536
16537   ;
16538   return 0;
16539 }
16540 _ACEOF
16541 if ac_fn_c_try_link "$LINENO"; then :
16542   ac_cv_libgss=yes
16543 else
16544   ac_cv_libgss='no'
16545 fi
16546 rm -f core conftest.err conftest.$ac_objext \
16547     conftest$ac_exeext conftest.$ac_ext
16548     LIBS="$ac_save_LIBS"
16549
16550 fi
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgss" >&5
16552 $as_echo "$ac_cv_libgss" >&6; }
16553   if test "$ac_cv_libgss" = yes; then
16554     HAVE_LIBGSS=yes
16555
16556 $as_echo "#define HAVE_LIBGSS 1" >>confdefs.h
16557
16558     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgss" >&5
16559 $as_echo_n "checking how to link with libgss... " >&6; }
16560     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGSS" >&5
16561 $as_echo "$LIBGSS" >&6; }
16562   else
16563     HAVE_LIBGSS=no
16564             CPPFLAGS="$ac_save_CPPFLAGS"
16565     LIBGSS=
16566     LTLIBGSS=
16567     LIBGSS_PREFIX=
16568   fi
16569
16570
16571
16572
16573
16574
16575
16576   if test "$ac_cv_libgss" != yes; then
16577     gssapi_impl=no
16578     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNU GSS not found, disabling GSSAPI." >&5
16579 $as_echo "$as_me: WARNING: GNU GSS not found, disabling GSSAPI." >&2;}
16580   fi
16581 elif test "$gssapi_impl" = "kfw"; then
16582   { $as_echo "$as_me:${as_lineno-$LINENO}: trying MIT Kerberos for Windows GSS-API library" >&5
16583 $as_echo "$as_me: trying MIT Kerberos for Windows GSS-API library" >&6;}
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597     use_additional=yes
16598
16599   acl_save_prefix="$prefix"
16600   prefix="$acl_final_prefix"
16601   acl_save_exec_prefix="$exec_prefix"
16602   exec_prefix="$acl_final_exec_prefix"
16603
16604     eval additional_includedir=\"$includedir\"
16605     eval additional_libdir=\"$libdir\"
16606
16607   exec_prefix="$acl_save_exec_prefix"
16608   prefix="$acl_save_prefix"
16609
16610
16611 # Check whether --with-libgssapi32-prefix was given.
16612 if test "${with_libgssapi32_prefix+set}" = set; then :
16613   withval=$with_libgssapi32_prefix;
16614     if test "X$withval" = "Xno"; then
16615       use_additional=no
16616     else
16617       if test "X$withval" = "X"; then
16618
16619   acl_save_prefix="$prefix"
16620   prefix="$acl_final_prefix"
16621   acl_save_exec_prefix="$exec_prefix"
16622   exec_prefix="$acl_final_exec_prefix"
16623
16624           eval additional_includedir=\"$includedir\"
16625           eval additional_libdir=\"$libdir\"
16626
16627   exec_prefix="$acl_save_exec_prefix"
16628   prefix="$acl_save_prefix"
16629
16630       else
16631         additional_includedir="$withval/include"
16632         additional_libdir="$withval/$acl_libdirstem"
16633         if test "$acl_libdirstem2" != "$acl_libdirstem" \
16634            && ! test -d "$withval/$acl_libdirstem"; then
16635           additional_libdir="$withval/$acl_libdirstem2"
16636         fi
16637       fi
16638     fi
16639
16640 fi
16641
16642       LIBGSSAPI32=
16643   LTLIBGSSAPI32=
16644   INCGSSAPI32=
16645   LIBGSSAPI32_PREFIX=
16646       HAVE_LIBGSSAPI32=
16647   rpathdirs=
16648   ltrpathdirs=
16649   names_already_handled=
16650   names_next_round='gssapi32 '
16651   while test -n "$names_next_round"; do
16652     names_this_round="$names_next_round"
16653     names_next_round=
16654     for name in $names_this_round; do
16655       already_handled=
16656       for n in $names_already_handled; do
16657         if test "$n" = "$name"; then
16658           already_handled=yes
16659           break
16660         fi
16661       done
16662       if test -z "$already_handled"; then
16663         names_already_handled="$names_already_handled $name"
16664                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16665         eval value=\"\$HAVE_LIB$uppername\"
16666         if test -n "$value"; then
16667           if test "$value" = yes; then
16668             eval value=\"\$LIB$uppername\"
16669             test -z "$value" || LIBGSSAPI32="${LIBGSSAPI32}${LIBGSSAPI32:+ }$value"
16670             eval value=\"\$LTLIB$uppername\"
16671             test -z "$value" || LTLIBGSSAPI32="${LTLIBGSSAPI32}${LTLIBGSSAPI32:+ }$value"
16672           else
16673                                     :
16674           fi
16675         else
16676                               found_dir=
16677           found_la=
16678           found_so=
16679           found_a=
16680           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
16681           if test -n "$acl_shlibext"; then
16682             shrext=".$acl_shlibext"             # typically: shrext=.so
16683           else
16684             shrext=
16685           fi
16686           if test $use_additional = yes; then
16687             dir="$additional_libdir"
16688                                     if test -n "$acl_shlibext"; then
16689               if test -f "$dir/$libname$shrext"; then
16690                 found_dir="$dir"
16691                 found_so="$dir/$libname$shrext"
16692               else
16693                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16694                   ver=`(cd "$dir" && \
16695                         for f in "$libname$shrext".*; do echo "$f"; done \
16696                         | sed -e "s,^$libname$shrext\\\\.,," \
16697                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16698                         | sed 1q ) 2>/dev/null`
16699                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16700                     found_dir="$dir"
16701                     found_so="$dir/$libname$shrext.$ver"
16702                   fi
16703                 else
16704                   eval library_names=\"$acl_library_names_spec\"
16705                   for f in $library_names; do
16706                     if test -f "$dir/$f"; then
16707                       found_dir="$dir"
16708                       found_so="$dir/$f"
16709                       break
16710                     fi
16711                   done
16712                 fi
16713               fi
16714             fi
16715                         if test "X$found_dir" = "X"; then
16716               if test -f "$dir/$libname.$acl_libext"; then
16717                 found_dir="$dir"
16718                 found_a="$dir/$libname.$acl_libext"
16719               fi
16720             fi
16721             if test "X$found_dir" != "X"; then
16722               if test -f "$dir/$libname.la"; then
16723                 found_la="$dir/$libname.la"
16724               fi
16725             fi
16726           fi
16727           if test "X$found_dir" = "X"; then
16728             for x in $LDFLAGS $LTLIBGSSAPI32; do
16729
16730   acl_save_prefix="$prefix"
16731   prefix="$acl_final_prefix"
16732   acl_save_exec_prefix="$exec_prefix"
16733   exec_prefix="$acl_final_exec_prefix"
16734   eval x=\"$x\"
16735   exec_prefix="$acl_save_exec_prefix"
16736   prefix="$acl_save_prefix"
16737
16738               case "$x" in
16739                 -L*)
16740                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16741                                     if test -n "$acl_shlibext"; then
16742                     if test -f "$dir/$libname$shrext"; then
16743                       found_dir="$dir"
16744                       found_so="$dir/$libname$shrext"
16745                     else
16746                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16747                         ver=`(cd "$dir" && \
16748                               for f in "$libname$shrext".*; do echo "$f"; done \
16749                               | sed -e "s,^$libname$shrext\\\\.,," \
16750                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16751                               | sed 1q ) 2>/dev/null`
16752                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16753                           found_dir="$dir"
16754                           found_so="$dir/$libname$shrext.$ver"
16755                         fi
16756                       else
16757                         eval library_names=\"$acl_library_names_spec\"
16758                         for f in $library_names; do
16759                           if test -f "$dir/$f"; then
16760                             found_dir="$dir"
16761                             found_so="$dir/$f"
16762                             break
16763                           fi
16764                         done
16765                       fi
16766                     fi
16767                   fi
16768                                     if test "X$found_dir" = "X"; then
16769                     if test -f "$dir/$libname.$acl_libext"; then
16770                       found_dir="$dir"
16771                       found_a="$dir/$libname.$acl_libext"
16772                     fi
16773                   fi
16774                   if test "X$found_dir" != "X"; then
16775                     if test -f "$dir/$libname.la"; then
16776                       found_la="$dir/$libname.la"
16777                     fi
16778                   fi
16779                   ;;
16780               esac
16781               if test "X$found_dir" != "X"; then
16782                 break
16783               fi
16784             done
16785           fi
16786           if test "X$found_dir" != "X"; then
16787                         LTLIBGSSAPI32="${LTLIBGSSAPI32}${LTLIBGSSAPI32:+ }-L$found_dir -l$name"
16788             if test "X$found_so" != "X"; then
16789                                                         if test "$enable_rpath" = no \
16790                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16791                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16792                                 LIBGSSAPI32="${LIBGSSAPI32}${LIBGSSAPI32:+ }$found_so"
16793               else
16794                                                                                 haveit=
16795                 for x in $ltrpathdirs; do
16796                   if test "X$x" = "X$found_dir"; then
16797                     haveit=yes
16798                     break
16799                   fi
16800                 done
16801                 if test -z "$haveit"; then
16802                   ltrpathdirs="$ltrpathdirs $found_dir"
16803                 fi
16804                                 if test "$acl_hardcode_direct" = yes; then
16805                                                       LIBGSSAPI32="${LIBGSSAPI32}${LIBGSSAPI32:+ }$found_so"
16806                 else
16807                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16808                                                             LIBGSSAPI32="${LIBGSSAPI32}${LIBGSSAPI32:+ }$found_so"
16809                                                             haveit=
16810                     for x in $rpathdirs; do
16811                       if test "X$x" = "X$found_dir"; then
16812                         haveit=yes
16813                         break
16814                       fi
16815                     done
16816                     if test -z "$haveit"; then
16817                       rpathdirs="$rpathdirs $found_dir"
16818                     fi
16819                   else
16820                                                                                 haveit=
16821                     for x in $LDFLAGS $LIBGSSAPI32; do
16822
16823   acl_save_prefix="$prefix"
16824   prefix="$acl_final_prefix"
16825   acl_save_exec_prefix="$exec_prefix"
16826   exec_prefix="$acl_final_exec_prefix"
16827   eval x=\"$x\"
16828   exec_prefix="$acl_save_exec_prefix"
16829   prefix="$acl_save_prefix"
16830
16831                       if test "X$x" = "X-L$found_dir"; then
16832                         haveit=yes
16833                         break
16834                       fi
16835                     done
16836                     if test -z "$haveit"; then
16837                       LIBGSSAPI32="${LIBGSSAPI32}${LIBGSSAPI32:+ }-L$found_dir"
16838                     fi
16839                     if test "$acl_hardcode_minus_L" != no; then
16840                                                                                         LIBGSSAPI32="${LIBGSSAPI32}${LIBGSSAPI32:+ }$found_so"
16841                     else
16842                                                                                                                                                                                 LIBGSSAPI32="${LIBGSSAPI32}${LIBGSSAPI32:+ }-l$name"
16843                     fi
16844                   fi
16845                 fi
16846               fi
16847             else
16848               if test "X$found_a" != "X"; then
16849                                 LIBGSSAPI32="${LIBGSSAPI32}${LIBGSSAPI32:+ }$found_a"
16850               else
16851                                                 LIBGSSAPI32="${LIBGSSAPI32}${LIBGSSAPI32:+ }-L$found_dir -l$name"
16852               fi
16853             fi
16854                         additional_includedir=
16855             case "$found_dir" in
16856               */$acl_libdirstem | */$acl_libdirstem/)
16857                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16858                 if test "$name" = 'gssapi32'; then
16859                   LIBGSSAPI32_PREFIX="$basedir"
16860                 fi
16861                 additional_includedir="$basedir/include"
16862                 ;;
16863               */$acl_libdirstem2 | */$acl_libdirstem2/)
16864                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16865                 if test "$name" = 'gssapi32'; then
16866                   LIBGSSAPI32_PREFIX="$basedir"
16867                 fi
16868                 additional_includedir="$basedir/include"
16869                 ;;
16870             esac
16871             if test "X$additional_includedir" != "X"; then
16872                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16873                 haveit=
16874                 if test "X$additional_includedir" = "X/usr/local/include"; then
16875                   if test -n "$GCC"; then
16876                     case $host_os in
16877                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16878                     esac
16879                   fi
16880                 fi
16881                 if test -z "$haveit"; then
16882                   for x in $CPPFLAGS $INCGSSAPI32; do
16883
16884   acl_save_prefix="$prefix"
16885   prefix="$acl_final_prefix"
16886   acl_save_exec_prefix="$exec_prefix"
16887   exec_prefix="$acl_final_exec_prefix"
16888   eval x=\"$x\"
16889   exec_prefix="$acl_save_exec_prefix"
16890   prefix="$acl_save_prefix"
16891
16892                     if test "X$x" = "X-I$additional_includedir"; then
16893                       haveit=yes
16894                       break
16895                     fi
16896                   done
16897                   if test -z "$haveit"; then
16898                     if test -d "$additional_includedir"; then
16899                                             INCGSSAPI32="${INCGSSAPI32}${INCGSSAPI32:+ }-I$additional_includedir"
16900                     fi
16901                   fi
16902                 fi
16903               fi
16904             fi
16905                         if test -n "$found_la"; then
16906                                                         save_libdir="$libdir"
16907               case "$found_la" in
16908                 */* | *\\*) . "$found_la" ;;
16909                 *) . "./$found_la" ;;
16910               esac
16911               libdir="$save_libdir"
16912                             for dep in $dependency_libs; do
16913                 case "$dep" in
16914                   -L*)
16915                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16916                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16917                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16918                       haveit=
16919                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16920                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16921                         if test -n "$GCC"; then
16922                           case $host_os in
16923                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16924                           esac
16925                         fi
16926                       fi
16927                       if test -z "$haveit"; then
16928                         haveit=
16929                         for x in $LDFLAGS $LIBGSSAPI32; do
16930
16931   acl_save_prefix="$prefix"
16932   prefix="$acl_final_prefix"
16933   acl_save_exec_prefix="$exec_prefix"
16934   exec_prefix="$acl_final_exec_prefix"
16935   eval x=\"$x\"
16936   exec_prefix="$acl_save_exec_prefix"
16937   prefix="$acl_save_prefix"
16938
16939                           if test "X$x" = "X-L$additional_libdir"; then
16940                             haveit=yes
16941                             break
16942                           fi
16943                         done
16944                         if test -z "$haveit"; then
16945                           if test -d "$additional_libdir"; then
16946                                                         LIBGSSAPI32="${LIBGSSAPI32}${LIBGSSAPI32:+ }-L$additional_libdir"
16947                           fi
16948                         fi
16949                         haveit=
16950                         for x in $LDFLAGS $LTLIBGSSAPI32; do
16951
16952   acl_save_prefix="$prefix"
16953   prefix="$acl_final_prefix"
16954   acl_save_exec_prefix="$exec_prefix"
16955   exec_prefix="$acl_final_exec_prefix"
16956   eval x=\"$x\"
16957   exec_prefix="$acl_save_exec_prefix"
16958   prefix="$acl_save_prefix"
16959
16960                           if test "X$x" = "X-L$additional_libdir"; then
16961                             haveit=yes
16962                             break
16963                           fi
16964                         done
16965                         if test -z "$haveit"; then
16966                           if test -d "$additional_libdir"; then
16967                                                         LTLIBGSSAPI32="${LTLIBGSSAPI32}${LTLIBGSSAPI32:+ }-L$additional_libdir"
16968                           fi
16969                         fi
16970                       fi
16971                     fi
16972                     ;;
16973                   -R*)
16974                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16975                     if test "$enable_rpath" != no; then
16976                                                                   haveit=
16977                       for x in $rpathdirs; do
16978                         if test "X$x" = "X$dir"; then
16979                           haveit=yes
16980                           break
16981                         fi
16982                       done
16983                       if test -z "$haveit"; then
16984                         rpathdirs="$rpathdirs $dir"
16985                       fi
16986                                                                   haveit=
16987                       for x in $ltrpathdirs; do
16988                         if test "X$x" = "X$dir"; then
16989                           haveit=yes
16990                           break
16991                         fi
16992                       done
16993                       if test -z "$haveit"; then
16994                         ltrpathdirs="$ltrpathdirs $dir"
16995                       fi
16996                     fi
16997                     ;;
16998                   -l*)
16999                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17000                     ;;
17001                   *.la)
17002                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17003                     ;;
17004                   *)
17005                                         LIBGSSAPI32="${LIBGSSAPI32}${LIBGSSAPI32:+ }$dep"
17006                     LTLIBGSSAPI32="${LTLIBGSSAPI32}${LTLIBGSSAPI32:+ }$dep"
17007                     ;;
17008                 esac
17009               done
17010             fi
17011           else
17012                                                             LIBGSSAPI32="${LIBGSSAPI32}${LIBGSSAPI32:+ }-l$name"
17013             LTLIBGSSAPI32="${LTLIBGSSAPI32}${LTLIBGSSAPI32:+ }-l$name"
17014           fi
17015         fi
17016       fi
17017     done
17018   done
17019   if test "X$rpathdirs" != "X"; then
17020     if test -n "$acl_hardcode_libdir_separator"; then
17021                         alldirs=
17022       for found_dir in $rpathdirs; do
17023         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17024       done
17025             acl_save_libdir="$libdir"
17026       libdir="$alldirs"
17027       eval flag=\"$acl_hardcode_libdir_flag_spec\"
17028       libdir="$acl_save_libdir"
17029       LIBGSSAPI32="${LIBGSSAPI32}${LIBGSSAPI32:+ }$flag"
17030     else
17031             for found_dir in $rpathdirs; do
17032         acl_save_libdir="$libdir"
17033         libdir="$found_dir"
17034         eval flag=\"$acl_hardcode_libdir_flag_spec\"
17035         libdir="$acl_save_libdir"
17036         LIBGSSAPI32="${LIBGSSAPI32}${LIBGSSAPI32:+ }$flag"
17037       done
17038     fi
17039   fi
17040   if test "X$ltrpathdirs" != "X"; then
17041             for found_dir in $ltrpathdirs; do
17042       LTLIBGSSAPI32="${LTLIBGSSAPI32}${LTLIBGSSAPI32:+ }-R$found_dir"
17043     done
17044   fi
17045
17046
17047
17048
17049
17050
17051
17052         ac_save_CPPFLAGS="$CPPFLAGS"
17053
17054   for element in $INCGSSAPI32; do
17055     haveit=
17056     for x in $CPPFLAGS; do
17057
17058   acl_save_prefix="$prefix"
17059   prefix="$acl_final_prefix"
17060   acl_save_exec_prefix="$exec_prefix"
17061   exec_prefix="$acl_final_exec_prefix"
17062   eval x=\"$x\"
17063   exec_prefix="$acl_save_exec_prefix"
17064   prefix="$acl_save_prefix"
17065
17066       if test "X$x" = "X$element"; then
17067         haveit=yes
17068         break
17069       fi
17070     done
17071     if test -z "$haveit"; then
17072       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17073     fi
17074   done
17075
17076
17077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgssapi32" >&5
17078 $as_echo_n "checking for libgssapi32... " >&6; }
17079 if ${ac_cv_libgssapi32+:} false; then :
17080   $as_echo_n "(cached) " >&6
17081 else
17082
17083     ac_save_LIBS="$LIBS"
17084                                 case " $LIBGSSAPI32" in
17085       *" -l"*) LIBS="$LIBS $LIBGSSAPI32" ;;
17086       *)       LIBS="$LIBGSSAPI32 $LIBS" ;;
17087     esac
17088     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17089 /* end confdefs.h.  */
17090 #include <gssapi/gssapi.h>
17091 int
17092 main ()
17093 {
17094 gss_release_oid (NULL, NULL)
17095   ;
17096   return 0;
17097 }
17098 _ACEOF
17099 if ac_fn_c_try_link "$LINENO"; then :
17100   ac_cv_libgssapi32=yes
17101 else
17102   ac_cv_libgssapi32='no'
17103 fi
17104 rm -f core conftest.err conftest.$ac_objext \
17105     conftest$ac_exeext conftest.$ac_ext
17106     LIBS="$ac_save_LIBS"
17107
17108 fi
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgssapi32" >&5
17110 $as_echo "$ac_cv_libgssapi32" >&6; }
17111   if test "$ac_cv_libgssapi32" = yes; then
17112     HAVE_LIBGSSAPI32=yes
17113
17114 $as_echo "#define HAVE_LIBGSSAPI32 1" >>confdefs.h
17115
17116     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgssapi32" >&5
17117 $as_echo_n "checking how to link with libgssapi32... " >&6; }
17118     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGSSAPI32" >&5
17119 $as_echo "$LIBGSSAPI32" >&6; }
17120   else
17121     HAVE_LIBGSSAPI32=no
17122             CPPFLAGS="$ac_save_CPPFLAGS"
17123     LIBGSSAPI32=
17124     LTLIBGSSAPI32=
17125     LIBGSSAPI32_PREFIX=
17126   fi
17127
17128
17129
17130
17131
17132
17133
17134   if test "$ac_cv_libgssapi32" != yes; then
17135     gssapi_impl=no
17136     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MIT Kerberos for Windows not found, disabling GSSAPI." >&5
17137 $as_echo "$as_me: WARNING: MIT Kerberos for Windows not found, disabling GSSAPI." >&2;}
17138   fi
17139 elif test "$gssapi_impl" = "mit"; then
17140   { $as_echo "$as_me:${as_lineno-$LINENO}: trying MIT" >&5
17141 $as_echo "$as_me: trying MIT" >&6;}
17142   # Extract the first word of "krb5-config", so it can be a program name with args.
17143 set dummy krb5-config; ac_word=$2
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17145 $as_echo_n "checking for $ac_word... " >&6; }
17146 if ${ac_cv_path_KRB5_CONFIG+:} false; then :
17147   $as_echo_n "(cached) " >&6
17148 else
17149   case $KRB5_CONFIG in
17150   [\\/]* | ?:[\\/]*)
17151   ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
17152   ;;
17153   *)
17154   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17155 for as_dir in $PATH
17156 do
17157   IFS=$as_save_IFS
17158   test -z "$as_dir" && as_dir=.
17159     for ac_exec_ext in '' $ac_executable_extensions; do
17160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17161     ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17163     break 2
17164   fi
17165 done
17166   done
17167 IFS=$as_save_IFS
17168
17169   test -z "$ac_cv_path_KRB5_CONFIG" && ac_cv_path_KRB5_CONFIG="no"
17170   ;;
17171 esac
17172 fi
17173 KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
17174 if test -n "$KRB5_CONFIG"; then
17175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
17176 $as_echo "$KRB5_CONFIG" >&6; }
17177 else
17178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17179 $as_echo "no" >&6; }
17180 fi
17181
17182
17183   if test "$KRB5_CONFIG" != "no" ; then
17184     GSS_CFLAGS="`$KRB5_CONFIG --cflags`"
17185     GSS_LIBS="`$KRB5_CONFIG --libs gssapi`"
17186   else
17187     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MIT Kerberos krb5-config not found, disabling GSSAPI" >&5
17188 $as_echo "$as_me: WARNING: MIT Kerberos krb5-config not found, disabling GSSAPI" >&2;}
17189     gssapi_impl=no
17190   fi
17191 elif test "$gssapi_impl" = "heimdal"; then
17192   { $as_echo "$as_me:${as_lineno-$LINENO}: trying Heimdal" >&5
17193 $as_echo "$as_me: trying Heimdal" >&6;}
17194   # Extract the first word of "krb5-config", so it can be a program name with args.
17195 set dummy krb5-config; ac_word=$2
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17197 $as_echo_n "checking for $ac_word... " >&6; }
17198 if ${ac_cv_path_KRB5_CONFIG+:} false; then :
17199   $as_echo_n "(cached) " >&6
17200 else
17201   case $KRB5_CONFIG in
17202   [\\/]* | ?:[\\/]*)
17203   ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
17204   ;;
17205   *)
17206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17207 for as_dir in $PATH
17208 do
17209   IFS=$as_save_IFS
17210   test -z "$as_dir" && as_dir=.
17211     for ac_exec_ext in '' $ac_executable_extensions; do
17212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17213     ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17215     break 2
17216   fi
17217 done
17218   done
17219 IFS=$as_save_IFS
17220
17221   test -z "$ac_cv_path_KRB5_CONFIG" && ac_cv_path_KRB5_CONFIG="no"
17222   ;;
17223 esac
17224 fi
17225 KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
17226 if test -n "$KRB5_CONFIG"; then
17227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
17228 $as_echo "$KRB5_CONFIG" >&6; }
17229 else
17230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17231 $as_echo "no" >&6; }
17232 fi
17233
17234
17235   if test "$KRB5_CONFIG" != "no" ; then
17236     GSS_CFLAGS="`$KRB5_CONFIG --cflags`"
17237     GSS_LIBS="`$KRB5_CONFIG --libs gssapi`"
17238   else
17239     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Heimdal krb5-config not found, disabling GSSAPI" >&5
17240 $as_echo "$as_me: WARNING: Heimdal krb5-config not found, disabling GSSAPI" >&2;}
17241     gssapi_impl=no
17242   fi
17243 elif test "$gssapi_impl" != "no"; then
17244   { $as_echo "$as_me:${as_lineno-$LINENO}: auto-detecting GSS/MIT/Heimdal" >&5
17245 $as_echo "$as_me: auto-detecting GSS/MIT/Heimdal" >&6;}
17246   { $as_echo "$as_me:${as_lineno-$LINENO}: use --with-gssapi-impl=IMPL to hard code" >&5
17247 $as_echo "$as_me: use --with-gssapi-impl=IMPL to hard code" >&6;}
17248   { $as_echo "$as_me:${as_lineno-$LINENO}: where IMPL is \`gss', \`mit', or \`heimdal'" >&5
17249 $as_echo "$as_me: where IMPL is \`gss', \`mit', or \`heimdal'" >&6;}
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263     use_additional=yes
17264
17265   acl_save_prefix="$prefix"
17266   prefix="$acl_final_prefix"
17267   acl_save_exec_prefix="$exec_prefix"
17268   exec_prefix="$acl_final_exec_prefix"
17269
17270     eval additional_includedir=\"$includedir\"
17271     eval additional_libdir=\"$libdir\"
17272
17273   exec_prefix="$acl_save_exec_prefix"
17274   prefix="$acl_save_prefix"
17275
17276
17277 # Check whether --with-libgss-prefix was given.
17278 if test "${with_libgss_prefix+set}" = set; then :
17279   withval=$with_libgss_prefix;
17280     if test "X$withval" = "Xno"; then
17281       use_additional=no
17282     else
17283       if test "X$withval" = "X"; then
17284
17285   acl_save_prefix="$prefix"
17286   prefix="$acl_final_prefix"
17287   acl_save_exec_prefix="$exec_prefix"
17288   exec_prefix="$acl_final_exec_prefix"
17289
17290           eval additional_includedir=\"$includedir\"
17291           eval additional_libdir=\"$libdir\"
17292
17293   exec_prefix="$acl_save_exec_prefix"
17294   prefix="$acl_save_prefix"
17295
17296       else
17297         additional_includedir="$withval/include"
17298         additional_libdir="$withval/$acl_libdirstem"
17299         if test "$acl_libdirstem2" != "$acl_libdirstem" \
17300            && ! test -d "$withval/$acl_libdirstem"; then
17301           additional_libdir="$withval/$acl_libdirstem2"
17302         fi
17303       fi
17304     fi
17305
17306 fi
17307
17308       LIBGSS=
17309   LTLIBGSS=
17310   INCGSS=
17311   LIBGSS_PREFIX=
17312       HAVE_LIBGSS=
17313   rpathdirs=
17314   ltrpathdirs=
17315   names_already_handled=
17316   names_next_round='gss '
17317   while test -n "$names_next_round"; do
17318     names_this_round="$names_next_round"
17319     names_next_round=
17320     for name in $names_this_round; do
17321       already_handled=
17322       for n in $names_already_handled; do
17323         if test "$n" = "$name"; then
17324           already_handled=yes
17325           break
17326         fi
17327       done
17328       if test -z "$already_handled"; then
17329         names_already_handled="$names_already_handled $name"
17330                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17331         eval value=\"\$HAVE_LIB$uppername\"
17332         if test -n "$value"; then
17333           if test "$value" = yes; then
17334             eval value=\"\$LIB$uppername\"
17335             test -z "$value" || LIBGSS="${LIBGSS}${LIBGSS:+ }$value"
17336             eval value=\"\$LTLIB$uppername\"
17337             test -z "$value" || LTLIBGSS="${LTLIBGSS}${LTLIBGSS:+ }$value"
17338           else
17339                                     :
17340           fi
17341         else
17342                               found_dir=
17343           found_la=
17344           found_so=
17345           found_a=
17346           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
17347           if test -n "$acl_shlibext"; then
17348             shrext=".$acl_shlibext"             # typically: shrext=.so
17349           else
17350             shrext=
17351           fi
17352           if test $use_additional = yes; then
17353             dir="$additional_libdir"
17354                                     if test -n "$acl_shlibext"; then
17355               if test -f "$dir/$libname$shrext"; then
17356                 found_dir="$dir"
17357                 found_so="$dir/$libname$shrext"
17358               else
17359                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17360                   ver=`(cd "$dir" && \
17361                         for f in "$libname$shrext".*; do echo "$f"; done \
17362                         | sed -e "s,^$libname$shrext\\\\.,," \
17363                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17364                         | sed 1q ) 2>/dev/null`
17365                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17366                     found_dir="$dir"
17367                     found_so="$dir/$libname$shrext.$ver"
17368                   fi
17369                 else
17370                   eval library_names=\"$acl_library_names_spec\"
17371                   for f in $library_names; do
17372                     if test -f "$dir/$f"; then
17373                       found_dir="$dir"
17374                       found_so="$dir/$f"
17375                       break
17376                     fi
17377                   done
17378                 fi
17379               fi
17380             fi
17381                         if test "X$found_dir" = "X"; then
17382               if test -f "$dir/$libname.$acl_libext"; then
17383                 found_dir="$dir"
17384                 found_a="$dir/$libname.$acl_libext"
17385               fi
17386             fi
17387             if test "X$found_dir" != "X"; then
17388               if test -f "$dir/$libname.la"; then
17389                 found_la="$dir/$libname.la"
17390               fi
17391             fi
17392           fi
17393           if test "X$found_dir" = "X"; then
17394             for x in $LDFLAGS $LTLIBGSS; do
17395
17396   acl_save_prefix="$prefix"
17397   prefix="$acl_final_prefix"
17398   acl_save_exec_prefix="$exec_prefix"
17399   exec_prefix="$acl_final_exec_prefix"
17400   eval x=\"$x\"
17401   exec_prefix="$acl_save_exec_prefix"
17402   prefix="$acl_save_prefix"
17403
17404               case "$x" in
17405                 -L*)
17406                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17407                                     if test -n "$acl_shlibext"; then
17408                     if test -f "$dir/$libname$shrext"; then
17409                       found_dir="$dir"
17410                       found_so="$dir/$libname$shrext"
17411                     else
17412                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17413                         ver=`(cd "$dir" && \
17414                               for f in "$libname$shrext".*; do echo "$f"; done \
17415                               | sed -e "s,^$libname$shrext\\\\.,," \
17416                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17417                               | sed 1q ) 2>/dev/null`
17418                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17419                           found_dir="$dir"
17420                           found_so="$dir/$libname$shrext.$ver"
17421                         fi
17422                       else
17423                         eval library_names=\"$acl_library_names_spec\"
17424                         for f in $library_names; do
17425                           if test -f "$dir/$f"; then
17426                             found_dir="$dir"
17427                             found_so="$dir/$f"
17428                             break
17429                           fi
17430                         done
17431                       fi
17432                     fi
17433                   fi
17434                                     if test "X$found_dir" = "X"; then
17435                     if test -f "$dir/$libname.$acl_libext"; then
17436                       found_dir="$dir"
17437                       found_a="$dir/$libname.$acl_libext"
17438                     fi
17439                   fi
17440                   if test "X$found_dir" != "X"; then
17441                     if test -f "$dir/$libname.la"; then
17442                       found_la="$dir/$libname.la"
17443                     fi
17444                   fi
17445                   ;;
17446               esac
17447               if test "X$found_dir" != "X"; then
17448                 break
17449               fi
17450             done
17451           fi
17452           if test "X$found_dir" != "X"; then
17453                         LTLIBGSS="${LTLIBGSS}${LTLIBGSS:+ }-L$found_dir -l$name"
17454             if test "X$found_so" != "X"; then
17455                                                         if test "$enable_rpath" = no \
17456                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17457                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
17458                                 LIBGSS="${LIBGSS}${LIBGSS:+ }$found_so"
17459               else
17460                                                                                 haveit=
17461                 for x in $ltrpathdirs; do
17462                   if test "X$x" = "X$found_dir"; then
17463                     haveit=yes
17464                     break
17465                   fi
17466                 done
17467                 if test -z "$haveit"; then
17468                   ltrpathdirs="$ltrpathdirs $found_dir"
17469                 fi
17470                                 if test "$acl_hardcode_direct" = yes; then
17471                                                       LIBGSS="${LIBGSS}${LIBGSS:+ }$found_so"
17472                 else
17473                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17474                                                             LIBGSS="${LIBGSS}${LIBGSS:+ }$found_so"
17475                                                             haveit=
17476                     for x in $rpathdirs; do
17477                       if test "X$x" = "X$found_dir"; then
17478                         haveit=yes
17479                         break
17480                       fi
17481                     done
17482                     if test -z "$haveit"; then
17483                       rpathdirs="$rpathdirs $found_dir"
17484                     fi
17485                   else
17486                                                                                 haveit=
17487                     for x in $LDFLAGS $LIBGSS; do
17488
17489   acl_save_prefix="$prefix"
17490   prefix="$acl_final_prefix"
17491   acl_save_exec_prefix="$exec_prefix"
17492   exec_prefix="$acl_final_exec_prefix"
17493   eval x=\"$x\"
17494   exec_prefix="$acl_save_exec_prefix"
17495   prefix="$acl_save_prefix"
17496
17497                       if test "X$x" = "X-L$found_dir"; then
17498                         haveit=yes
17499                         break
17500                       fi
17501                     done
17502                     if test -z "$haveit"; then
17503                       LIBGSS="${LIBGSS}${LIBGSS:+ }-L$found_dir"
17504                     fi
17505                     if test "$acl_hardcode_minus_L" != no; then
17506                                                                                         LIBGSS="${LIBGSS}${LIBGSS:+ }$found_so"
17507                     else
17508                                                                                                                                                                                 LIBGSS="${LIBGSS}${LIBGSS:+ }-l$name"
17509                     fi
17510                   fi
17511                 fi
17512               fi
17513             else
17514               if test "X$found_a" != "X"; then
17515                                 LIBGSS="${LIBGSS}${LIBGSS:+ }$found_a"
17516               else
17517                                                 LIBGSS="${LIBGSS}${LIBGSS:+ }-L$found_dir -l$name"
17518               fi
17519             fi
17520                         additional_includedir=
17521             case "$found_dir" in
17522               */$acl_libdirstem | */$acl_libdirstem/)
17523                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17524                 if test "$name" = 'gss'; then
17525                   LIBGSS_PREFIX="$basedir"
17526                 fi
17527                 additional_includedir="$basedir/include"
17528                 ;;
17529               */$acl_libdirstem2 | */$acl_libdirstem2/)
17530                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17531                 if test "$name" = 'gss'; then
17532                   LIBGSS_PREFIX="$basedir"
17533                 fi
17534                 additional_includedir="$basedir/include"
17535                 ;;
17536             esac
17537             if test "X$additional_includedir" != "X"; then
17538                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17539                 haveit=
17540                 if test "X$additional_includedir" = "X/usr/local/include"; then
17541                   if test -n "$GCC"; then
17542                     case $host_os in
17543                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17544                     esac
17545                   fi
17546                 fi
17547                 if test -z "$haveit"; then
17548                   for x in $CPPFLAGS $INCGSS; do
17549
17550   acl_save_prefix="$prefix"
17551   prefix="$acl_final_prefix"
17552   acl_save_exec_prefix="$exec_prefix"
17553   exec_prefix="$acl_final_exec_prefix"
17554   eval x=\"$x\"
17555   exec_prefix="$acl_save_exec_prefix"
17556   prefix="$acl_save_prefix"
17557
17558                     if test "X$x" = "X-I$additional_includedir"; then
17559                       haveit=yes
17560                       break
17561                     fi
17562                   done
17563                   if test -z "$haveit"; then
17564                     if test -d "$additional_includedir"; then
17565                                             INCGSS="${INCGSS}${INCGSS:+ }-I$additional_includedir"
17566                     fi
17567                   fi
17568                 fi
17569               fi
17570             fi
17571                         if test -n "$found_la"; then
17572                                                         save_libdir="$libdir"
17573               case "$found_la" in
17574                 */* | *\\*) . "$found_la" ;;
17575                 *) . "./$found_la" ;;
17576               esac
17577               libdir="$save_libdir"
17578                             for dep in $dependency_libs; do
17579                 case "$dep" in
17580                   -L*)
17581                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17582                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
17583                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
17584                       haveit=
17585                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
17586                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
17587                         if test -n "$GCC"; then
17588                           case $host_os in
17589                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17590                           esac
17591                         fi
17592                       fi
17593                       if test -z "$haveit"; then
17594                         haveit=
17595                         for x in $LDFLAGS $LIBGSS; do
17596
17597   acl_save_prefix="$prefix"
17598   prefix="$acl_final_prefix"
17599   acl_save_exec_prefix="$exec_prefix"
17600   exec_prefix="$acl_final_exec_prefix"
17601   eval x=\"$x\"
17602   exec_prefix="$acl_save_exec_prefix"
17603   prefix="$acl_save_prefix"
17604
17605                           if test "X$x" = "X-L$additional_libdir"; then
17606                             haveit=yes
17607                             break
17608                           fi
17609                         done
17610                         if test -z "$haveit"; then
17611                           if test -d "$additional_libdir"; then
17612                                                         LIBGSS="${LIBGSS}${LIBGSS:+ }-L$additional_libdir"
17613                           fi
17614                         fi
17615                         haveit=
17616                         for x in $LDFLAGS $LTLIBGSS; do
17617
17618   acl_save_prefix="$prefix"
17619   prefix="$acl_final_prefix"
17620   acl_save_exec_prefix="$exec_prefix"
17621   exec_prefix="$acl_final_exec_prefix"
17622   eval x=\"$x\"
17623   exec_prefix="$acl_save_exec_prefix"
17624   prefix="$acl_save_prefix"
17625
17626                           if test "X$x" = "X-L$additional_libdir"; then
17627                             haveit=yes
17628                             break
17629                           fi
17630                         done
17631                         if test -z "$haveit"; then
17632                           if test -d "$additional_libdir"; then
17633                                                         LTLIBGSS="${LTLIBGSS}${LTLIBGSS:+ }-L$additional_libdir"
17634                           fi
17635                         fi
17636                       fi
17637                     fi
17638                     ;;
17639                   -R*)
17640                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17641                     if test "$enable_rpath" != no; then
17642                                                                   haveit=
17643                       for x in $rpathdirs; do
17644                         if test "X$x" = "X$dir"; then
17645                           haveit=yes
17646                           break
17647                         fi
17648                       done
17649                       if test -z "$haveit"; then
17650                         rpathdirs="$rpathdirs $dir"
17651                       fi
17652                                                                   haveit=
17653                       for x in $ltrpathdirs; do
17654                         if test "X$x" = "X$dir"; then
17655                           haveit=yes
17656                           break
17657                         fi
17658                       done
17659                       if test -z "$haveit"; then
17660                         ltrpathdirs="$ltrpathdirs $dir"
17661                       fi
17662                     fi
17663                     ;;
17664                   -l*)
17665                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17666                     ;;
17667                   *.la)
17668                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17669                     ;;
17670                   *)
17671                                         LIBGSS="${LIBGSS}${LIBGSS:+ }$dep"
17672                     LTLIBGSS="${LTLIBGSS}${LTLIBGSS:+ }$dep"
17673                     ;;
17674                 esac
17675               done
17676             fi
17677           else
17678                                                             LIBGSS="${LIBGSS}${LIBGSS:+ }-l$name"
17679             LTLIBGSS="${LTLIBGSS}${LTLIBGSS:+ }-l$name"
17680           fi
17681         fi
17682       fi
17683     done
17684   done
17685   if test "X$rpathdirs" != "X"; then
17686     if test -n "$acl_hardcode_libdir_separator"; then
17687                         alldirs=
17688       for found_dir in $rpathdirs; do
17689         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17690       done
17691             acl_save_libdir="$libdir"
17692       libdir="$alldirs"
17693       eval flag=\"$acl_hardcode_libdir_flag_spec\"
17694       libdir="$acl_save_libdir"
17695       LIBGSS="${LIBGSS}${LIBGSS:+ }$flag"
17696     else
17697             for found_dir in $rpathdirs; do
17698         acl_save_libdir="$libdir"
17699         libdir="$found_dir"
17700         eval flag=\"$acl_hardcode_libdir_flag_spec\"
17701         libdir="$acl_save_libdir"
17702         LIBGSS="${LIBGSS}${LIBGSS:+ }$flag"
17703       done
17704     fi
17705   fi
17706   if test "X$ltrpathdirs" != "X"; then
17707             for found_dir in $ltrpathdirs; do
17708       LTLIBGSS="${LTLIBGSS}${LTLIBGSS:+ }-R$found_dir"
17709     done
17710   fi
17711
17712
17713
17714
17715
17716
17717
17718         ac_save_CPPFLAGS="$CPPFLAGS"
17719
17720   for element in $INCGSS; do
17721     haveit=
17722     for x in $CPPFLAGS; do
17723
17724   acl_save_prefix="$prefix"
17725   prefix="$acl_final_prefix"
17726   acl_save_exec_prefix="$exec_prefix"
17727   exec_prefix="$acl_final_exec_prefix"
17728   eval x=\"$x\"
17729   exec_prefix="$acl_save_exec_prefix"
17730   prefix="$acl_save_prefix"
17731
17732       if test "X$x" = "X$element"; then
17733         haveit=yes
17734         break
17735       fi
17736     done
17737     if test -z "$haveit"; then
17738       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17739     fi
17740   done
17741
17742
17743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgss" >&5
17744 $as_echo_n "checking for libgss... " >&6; }
17745 if ${ac_cv_libgss+:} false; then :
17746   $as_echo_n "(cached) " >&6
17747 else
17748
17749     ac_save_LIBS="$LIBS"
17750                                 case " $LIBGSS" in
17751       *" -l"*) LIBS="$LIBS $LIBGSS" ;;
17752       *)       LIBS="$LIBGSS $LIBS" ;;
17753     esac
17754     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17755 /* end confdefs.h.  */
17756 #include <gss.h>
17757 int
17758 main ()
17759 {
17760
17761 #if GSS_VERSION_NUMBER < 0x010000
17762 too old version
17763 #else
17764 gss_check_version (0);
17765 #endif
17766
17767   ;
17768   return 0;
17769 }
17770 _ACEOF
17771 if ac_fn_c_try_link "$LINENO"; then :
17772   ac_cv_libgss=yes
17773 else
17774   ac_cv_libgss='no'
17775 fi
17776 rm -f core conftest.err conftest.$ac_objext \
17777     conftest$ac_exeext conftest.$ac_ext
17778     LIBS="$ac_save_LIBS"
17779
17780 fi
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgss" >&5
17782 $as_echo "$ac_cv_libgss" >&6; }
17783   if test "$ac_cv_libgss" = yes; then
17784     HAVE_LIBGSS=yes
17785
17786 $as_echo "#define HAVE_LIBGSS 1" >>confdefs.h
17787
17788     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgss" >&5
17789 $as_echo_n "checking how to link with libgss... " >&6; }
17790     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGSS" >&5
17791 $as_echo "$LIBGSS" >&6; }
17792   else
17793     HAVE_LIBGSS=no
17794             CPPFLAGS="$ac_save_CPPFLAGS"
17795     LIBGSS=
17796     LTLIBGSS=
17797     LIBGSS_PREFIX=
17798   fi
17799
17800
17801
17802
17803
17804
17805
17806   if test "$ac_cv_libgss" = yes; then
17807     gssapi_impl=gss
17808     { $as_echo "$as_me:${as_lineno-$LINENO}: GNU GSS found" >&5
17809 $as_echo "$as_me: GNU GSS found" >&6;}
17810   elif test "$cross_compiling" != "no"; then
17811     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cross-compiling, won't rely on MIT/Heimdal krb5-config" >&5
17812 $as_echo "$as_me: WARNING: Cross-compiling, won't rely on MIT/Heimdal krb5-config" >&2;}
17813     { $as_echo "$as_me:${as_lineno-$LINENO}: Use --with-gssapi-impl=mit or --with-gssapi-impl=heimdal." >&5
17814 $as_echo "$as_me: Use --with-gssapi-impl=mit or --with-gssapi-impl=heimdal." >&6;}
17815     gssapi_impl=no
17816   else
17817     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNU GSS not found (see http://www.gnu.org/software/gss/)..." >&5
17818 $as_echo "$as_me: WARNING: GNU GSS not found (see http://www.gnu.org/software/gss/)..." >&2;}
17819     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Auto-detecting MIT/Heimdal is unreliable, disabling GSSAPI" >&5
17820 $as_echo "$as_me: WARNING: Auto-detecting MIT/Heimdal is unreliable, disabling GSSAPI" >&2;}
17821     gssapi_impl=no
17822   fi
17823 fi
17824
17825
17826
17827
17828 # KERBEROS_V5
17829 # Check whether --enable-kerberos_v5 was given.
17830 if test "${enable_kerberos_v5+set}" = set; then :
17831   enableval=$enable_kerberos_v5; kerberos_v5=$enableval
17832 else
17833   kerberos_v5=no
17834 fi
17835
17836 if test "$kerberos_v5" != "no" ; then
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850     use_additional=yes
17851
17852   acl_save_prefix="$prefix"
17853   prefix="$acl_final_prefix"
17854   acl_save_exec_prefix="$exec_prefix"
17855   exec_prefix="$acl_final_exec_prefix"
17856
17857     eval additional_includedir=\"$includedir\"
17858     eval additional_libdir=\"$libdir\"
17859
17860   exec_prefix="$acl_save_exec_prefix"
17861   prefix="$acl_save_prefix"
17862
17863
17864 # Check whether --with-libshishi-prefix was given.
17865 if test "${with_libshishi_prefix+set}" = set; then :
17866   withval=$with_libshishi_prefix;
17867     if test "X$withval" = "Xno"; then
17868       use_additional=no
17869     else
17870       if test "X$withval" = "X"; then
17871
17872   acl_save_prefix="$prefix"
17873   prefix="$acl_final_prefix"
17874   acl_save_exec_prefix="$exec_prefix"
17875   exec_prefix="$acl_final_exec_prefix"
17876
17877           eval additional_includedir=\"$includedir\"
17878           eval additional_libdir=\"$libdir\"
17879
17880   exec_prefix="$acl_save_exec_prefix"
17881   prefix="$acl_save_prefix"
17882
17883       else
17884         additional_includedir="$withval/include"
17885         additional_libdir="$withval/$acl_libdirstem"
17886         if test "$acl_libdirstem2" != "$acl_libdirstem" \
17887            && ! test -d "$withval/$acl_libdirstem"; then
17888           additional_libdir="$withval/$acl_libdirstem2"
17889         fi
17890       fi
17891     fi
17892
17893 fi
17894
17895       LIBSHISHI=
17896   LTLIBSHISHI=
17897   INCSHISHI=
17898   LIBSHISHI_PREFIX=
17899       HAVE_LIBSHISHI=
17900   rpathdirs=
17901   ltrpathdirs=
17902   names_already_handled=
17903   names_next_round='shishi '
17904   while test -n "$names_next_round"; do
17905     names_this_round="$names_next_round"
17906     names_next_round=
17907     for name in $names_this_round; do
17908       already_handled=
17909       for n in $names_already_handled; do
17910         if test "$n" = "$name"; then
17911           already_handled=yes
17912           break
17913         fi
17914       done
17915       if test -z "$already_handled"; then
17916         names_already_handled="$names_already_handled $name"
17917                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17918         eval value=\"\$HAVE_LIB$uppername\"
17919         if test -n "$value"; then
17920           if test "$value" = yes; then
17921             eval value=\"\$LIB$uppername\"
17922             test -z "$value" || LIBSHISHI="${LIBSHISHI}${LIBSHISHI:+ }$value"
17923             eval value=\"\$LTLIB$uppername\"
17924             test -z "$value" || LTLIBSHISHI="${LTLIBSHISHI}${LTLIBSHISHI:+ }$value"
17925           else
17926                                     :
17927           fi
17928         else
17929                               found_dir=
17930           found_la=
17931           found_so=
17932           found_a=
17933           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
17934           if test -n "$acl_shlibext"; then
17935             shrext=".$acl_shlibext"             # typically: shrext=.so
17936           else
17937             shrext=
17938           fi
17939           if test $use_additional = yes; then
17940             dir="$additional_libdir"
17941                                     if test -n "$acl_shlibext"; then
17942               if test -f "$dir/$libname$shrext"; then
17943                 found_dir="$dir"
17944                 found_so="$dir/$libname$shrext"
17945               else
17946                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17947                   ver=`(cd "$dir" && \
17948                         for f in "$libname$shrext".*; do echo "$f"; done \
17949                         | sed -e "s,^$libname$shrext\\\\.,," \
17950                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17951                         | sed 1q ) 2>/dev/null`
17952                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17953                     found_dir="$dir"
17954                     found_so="$dir/$libname$shrext.$ver"
17955                   fi
17956                 else
17957                   eval library_names=\"$acl_library_names_spec\"
17958                   for f in $library_names; do
17959                     if test -f "$dir/$f"; then
17960                       found_dir="$dir"
17961                       found_so="$dir/$f"
17962                       break
17963                     fi
17964                   done
17965                 fi
17966               fi
17967             fi
17968                         if test "X$found_dir" = "X"; then
17969               if test -f "$dir/$libname.$acl_libext"; then
17970                 found_dir="$dir"
17971                 found_a="$dir/$libname.$acl_libext"
17972               fi
17973             fi
17974             if test "X$found_dir" != "X"; then
17975               if test -f "$dir/$libname.la"; then
17976                 found_la="$dir/$libname.la"
17977               fi
17978             fi
17979           fi
17980           if test "X$found_dir" = "X"; then
17981             for x in $LDFLAGS $LTLIBSHISHI; do
17982
17983   acl_save_prefix="$prefix"
17984   prefix="$acl_final_prefix"
17985   acl_save_exec_prefix="$exec_prefix"
17986   exec_prefix="$acl_final_exec_prefix"
17987   eval x=\"$x\"
17988   exec_prefix="$acl_save_exec_prefix"
17989   prefix="$acl_save_prefix"
17990
17991               case "$x" in
17992                 -L*)
17993                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17994                                     if test -n "$acl_shlibext"; then
17995                     if test -f "$dir/$libname$shrext"; then
17996                       found_dir="$dir"
17997                       found_so="$dir/$libname$shrext"
17998                     else
17999                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18000                         ver=`(cd "$dir" && \
18001                               for f in "$libname$shrext".*; do echo "$f"; done \
18002                               | sed -e "s,^$libname$shrext\\\\.,," \
18003                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18004                               | sed 1q ) 2>/dev/null`
18005                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18006                           found_dir="$dir"
18007                           found_so="$dir/$libname$shrext.$ver"
18008                         fi
18009                       else
18010                         eval library_names=\"$acl_library_names_spec\"
18011                         for f in $library_names; do
18012                           if test -f "$dir/$f"; then
18013                             found_dir="$dir"
18014                             found_so="$dir/$f"
18015                             break
18016                           fi
18017                         done
18018                       fi
18019                     fi
18020                   fi
18021                                     if test "X$found_dir" = "X"; then
18022                     if test -f "$dir/$libname.$acl_libext"; then
18023                       found_dir="$dir"
18024                       found_a="$dir/$libname.$acl_libext"
18025                     fi
18026                   fi
18027                   if test "X$found_dir" != "X"; then
18028                     if test -f "$dir/$libname.la"; then
18029                       found_la="$dir/$libname.la"
18030                     fi
18031                   fi
18032                   ;;
18033               esac
18034               if test "X$found_dir" != "X"; then
18035                 break
18036               fi
18037             done
18038           fi
18039           if test "X$found_dir" != "X"; then
18040                         LTLIBSHISHI="${LTLIBSHISHI}${LTLIBSHISHI:+ }-L$found_dir -l$name"
18041             if test "X$found_so" != "X"; then
18042                                                         if test "$enable_rpath" = no \
18043                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
18044                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
18045                                 LIBSHISHI="${LIBSHISHI}${LIBSHISHI:+ }$found_so"
18046               else
18047                                                                                 haveit=
18048                 for x in $ltrpathdirs; do
18049                   if test "X$x" = "X$found_dir"; then
18050                     haveit=yes
18051                     break
18052                   fi
18053                 done
18054                 if test -z "$haveit"; then
18055                   ltrpathdirs="$ltrpathdirs $found_dir"
18056                 fi
18057                                 if test "$acl_hardcode_direct" = yes; then
18058                                                       LIBSHISHI="${LIBSHISHI}${LIBSHISHI:+ }$found_so"
18059                 else
18060                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18061                                                             LIBSHISHI="${LIBSHISHI}${LIBSHISHI:+ }$found_so"
18062                                                             haveit=
18063                     for x in $rpathdirs; do
18064                       if test "X$x" = "X$found_dir"; then
18065                         haveit=yes
18066                         break
18067                       fi
18068                     done
18069                     if test -z "$haveit"; then
18070                       rpathdirs="$rpathdirs $found_dir"
18071                     fi
18072                   else
18073                                                                                 haveit=
18074                     for x in $LDFLAGS $LIBSHISHI; do
18075
18076   acl_save_prefix="$prefix"
18077   prefix="$acl_final_prefix"
18078   acl_save_exec_prefix="$exec_prefix"
18079   exec_prefix="$acl_final_exec_prefix"
18080   eval x=\"$x\"
18081   exec_prefix="$acl_save_exec_prefix"
18082   prefix="$acl_save_prefix"
18083
18084                       if test "X$x" = "X-L$found_dir"; then
18085                         haveit=yes
18086                         break
18087                       fi
18088                     done
18089                     if test -z "$haveit"; then
18090                       LIBSHISHI="${LIBSHISHI}${LIBSHISHI:+ }-L$found_dir"
18091                     fi
18092                     if test "$acl_hardcode_minus_L" != no; then
18093                                                                                         LIBSHISHI="${LIBSHISHI}${LIBSHISHI:+ }$found_so"
18094                     else
18095                                                                                                                                                                                 LIBSHISHI="${LIBSHISHI}${LIBSHISHI:+ }-l$name"
18096                     fi
18097                   fi
18098                 fi
18099               fi
18100             else
18101               if test "X$found_a" != "X"; then
18102                                 LIBSHISHI="${LIBSHISHI}${LIBSHISHI:+ }$found_a"
18103               else
18104                                                 LIBSHISHI="${LIBSHISHI}${LIBSHISHI:+ }-L$found_dir -l$name"
18105               fi
18106             fi
18107                         additional_includedir=
18108             case "$found_dir" in
18109               */$acl_libdirstem | */$acl_libdirstem/)
18110                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18111                 if test "$name" = 'shishi'; then
18112                   LIBSHISHI_PREFIX="$basedir"
18113                 fi
18114                 additional_includedir="$basedir/include"
18115                 ;;
18116               */$acl_libdirstem2 | */$acl_libdirstem2/)
18117                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18118                 if test "$name" = 'shishi'; then
18119                   LIBSHISHI_PREFIX="$basedir"
18120                 fi
18121                 additional_includedir="$basedir/include"
18122                 ;;
18123             esac
18124             if test "X$additional_includedir" != "X"; then
18125                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18126                 haveit=
18127                 if test "X$additional_includedir" = "X/usr/local/include"; then
18128                   if test -n "$GCC"; then
18129                     case $host_os in
18130                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18131                     esac
18132                   fi
18133                 fi
18134                 if test -z "$haveit"; then
18135                   for x in $CPPFLAGS $INCSHISHI; do
18136
18137   acl_save_prefix="$prefix"
18138   prefix="$acl_final_prefix"
18139   acl_save_exec_prefix="$exec_prefix"
18140   exec_prefix="$acl_final_exec_prefix"
18141   eval x=\"$x\"
18142   exec_prefix="$acl_save_exec_prefix"
18143   prefix="$acl_save_prefix"
18144
18145                     if test "X$x" = "X-I$additional_includedir"; then
18146                       haveit=yes
18147                       break
18148                     fi
18149                   done
18150                   if test -z "$haveit"; then
18151                     if test -d "$additional_includedir"; then
18152                                             INCSHISHI="${INCSHISHI}${INCSHISHI:+ }-I$additional_includedir"
18153                     fi
18154                   fi
18155                 fi
18156               fi
18157             fi
18158                         if test -n "$found_la"; then
18159                                                         save_libdir="$libdir"
18160               case "$found_la" in
18161                 */* | *\\*) . "$found_la" ;;
18162                 *) . "./$found_la" ;;
18163               esac
18164               libdir="$save_libdir"
18165                             for dep in $dependency_libs; do
18166                 case "$dep" in
18167                   -L*)
18168                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18169                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
18170                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
18171                       haveit=
18172                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
18173                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
18174                         if test -n "$GCC"; then
18175                           case $host_os in
18176                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18177                           esac
18178                         fi
18179                       fi
18180                       if test -z "$haveit"; then
18181                         haveit=
18182                         for x in $LDFLAGS $LIBSHISHI; do
18183
18184   acl_save_prefix="$prefix"
18185   prefix="$acl_final_prefix"
18186   acl_save_exec_prefix="$exec_prefix"
18187   exec_prefix="$acl_final_exec_prefix"
18188   eval x=\"$x\"
18189   exec_prefix="$acl_save_exec_prefix"
18190   prefix="$acl_save_prefix"
18191
18192                           if test "X$x" = "X-L$additional_libdir"; then
18193                             haveit=yes
18194                             break
18195                           fi
18196                         done
18197                         if test -z "$haveit"; then
18198                           if test -d "$additional_libdir"; then
18199                                                         LIBSHISHI="${LIBSHISHI}${LIBSHISHI:+ }-L$additional_libdir"
18200                           fi
18201                         fi
18202                         haveit=
18203                         for x in $LDFLAGS $LTLIBSHISHI; do
18204
18205   acl_save_prefix="$prefix"
18206   prefix="$acl_final_prefix"
18207   acl_save_exec_prefix="$exec_prefix"
18208   exec_prefix="$acl_final_exec_prefix"
18209   eval x=\"$x\"
18210   exec_prefix="$acl_save_exec_prefix"
18211   prefix="$acl_save_prefix"
18212
18213                           if test "X$x" = "X-L$additional_libdir"; then
18214                             haveit=yes
18215                             break
18216                           fi
18217                         done
18218                         if test -z "$haveit"; then
18219                           if test -d "$additional_libdir"; then
18220                                                         LTLIBSHISHI="${LTLIBSHISHI}${LTLIBSHISHI:+ }-L$additional_libdir"
18221                           fi
18222                         fi
18223                       fi
18224                     fi
18225                     ;;
18226                   -R*)
18227                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18228                     if test "$enable_rpath" != no; then
18229                                                                   haveit=
18230                       for x in $rpathdirs; do
18231                         if test "X$x" = "X$dir"; then
18232                           haveit=yes
18233                           break
18234                         fi
18235                       done
18236                       if test -z "$haveit"; then
18237                         rpathdirs="$rpathdirs $dir"
18238                       fi
18239                                                                   haveit=
18240                       for x in $ltrpathdirs; do
18241                         if test "X$x" = "X$dir"; then
18242                           haveit=yes
18243                           break
18244                         fi
18245                       done
18246                       if test -z "$haveit"; then
18247                         ltrpathdirs="$ltrpathdirs $dir"
18248                       fi
18249                     fi
18250                     ;;
18251                   -l*)
18252                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18253                     ;;
18254                   *.la)
18255                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18256                     ;;
18257                   *)
18258                                         LIBSHISHI="${LIBSHISHI}${LIBSHISHI:+ }$dep"
18259                     LTLIBSHISHI="${LTLIBSHISHI}${LTLIBSHISHI:+ }$dep"
18260                     ;;
18261                 esac
18262               done
18263             fi
18264           else
18265                                                             LIBSHISHI="${LIBSHISHI}${LIBSHISHI:+ }-l$name"
18266             LTLIBSHISHI="${LTLIBSHISHI}${LTLIBSHISHI:+ }-l$name"
18267           fi
18268         fi
18269       fi
18270     done
18271   done
18272   if test "X$rpathdirs" != "X"; then
18273     if test -n "$acl_hardcode_libdir_separator"; then
18274                         alldirs=
18275       for found_dir in $rpathdirs; do
18276         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18277       done
18278             acl_save_libdir="$libdir"
18279       libdir="$alldirs"
18280       eval flag=\"$acl_hardcode_libdir_flag_spec\"
18281       libdir="$acl_save_libdir"
18282       LIBSHISHI="${LIBSHISHI}${LIBSHISHI:+ }$flag"
18283     else
18284             for found_dir in $rpathdirs; do
18285         acl_save_libdir="$libdir"
18286         libdir="$found_dir"
18287         eval flag=\"$acl_hardcode_libdir_flag_spec\"
18288         libdir="$acl_save_libdir"
18289         LIBSHISHI="${LIBSHISHI}${LIBSHISHI:+ }$flag"
18290       done
18291     fi
18292   fi
18293   if test "X$ltrpathdirs" != "X"; then
18294             for found_dir in $ltrpathdirs; do
18295       LTLIBSHISHI="${LTLIBSHISHI}${LTLIBSHISHI:+ }-R$found_dir"
18296     done
18297   fi
18298
18299
18300
18301
18302
18303
18304
18305         ac_save_CPPFLAGS="$CPPFLAGS"
18306
18307   for element in $INCSHISHI; do
18308     haveit=
18309     for x in $CPPFLAGS; do
18310
18311   acl_save_prefix="$prefix"
18312   prefix="$acl_final_prefix"
18313   acl_save_exec_prefix="$exec_prefix"
18314   exec_prefix="$acl_final_exec_prefix"
18315   eval x=\"$x\"
18316   exec_prefix="$acl_save_exec_prefix"
18317   prefix="$acl_save_prefix"
18318
18319       if test "X$x" = "X$element"; then
18320         haveit=yes
18321         break
18322       fi
18323     done
18324     if test -z "$haveit"; then
18325       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18326     fi
18327   done
18328
18329
18330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libshishi" >&5
18331 $as_echo_n "checking for libshishi... " >&6; }
18332 if ${ac_cv_libshishi+:} false; then :
18333   $as_echo_n "(cached) " >&6
18334 else
18335
18336     ac_save_LIBS="$LIBS"
18337                                 case " $LIBSHISHI" in
18338       *" -l"*) LIBS="$LIBS $LIBSHISHI" ;;
18339       *)       LIBS="$LIBSHISHI $LIBS" ;;
18340     esac
18341     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18342 /* end confdefs.h.  */
18343 #include <shishi.h>
18344 int
18345 main ()
18346 {
18347 shishi ();
18348   ;
18349   return 0;
18350 }
18351 _ACEOF
18352 if ac_fn_c_try_link "$LINENO"; then :
18353   ac_cv_libshishi=yes
18354 else
18355   ac_cv_libshishi='no'
18356 fi
18357 rm -f core conftest.err conftest.$ac_objext \
18358     conftest$ac_exeext conftest.$ac_ext
18359     LIBS="$ac_save_LIBS"
18360
18361 fi
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libshishi" >&5
18363 $as_echo "$ac_cv_libshishi" >&6; }
18364   if test "$ac_cv_libshishi" = yes; then
18365     HAVE_LIBSHISHI=yes
18366
18367 $as_echo "#define HAVE_LIBSHISHI 1" >>confdefs.h
18368
18369     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libshishi" >&5
18370 $as_echo_n "checking how to link with libshishi... " >&6; }
18371     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBSHISHI" >&5
18372 $as_echo "$LIBSHISHI" >&6; }
18373   else
18374     HAVE_LIBSHISHI=no
18375             CPPFLAGS="$ac_save_CPPFLAGS"
18376     LIBSHISHI=
18377     LTLIBSHISHI=
18378     LIBSHISHI_PREFIX=
18379   fi
18380
18381
18382
18383
18384
18385
18386
18387   if test "$ac_cv_libshishi" != yes; then
18388     kerberos_v5=no
18389     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNU Shishi not found, disabling KERBEROS_V5" >&5
18390 $as_echo "$as_me: WARNING: GNU Shishi not found, disabling KERBEROS_V5" >&2;}
18391   else
18392     kerberos_v5=yes
18393
18394 $as_echo "#define USE_KERBEROS_V5 1" >>confdefs.h
18395
18396   fi
18397 fi
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if KERBEROS_V5 should be used" >&5
18399 $as_echo_n "checking if KERBEROS_V5 should be used... " >&6; }
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kerberos_v5" >&5
18401 $as_echo "$kerberos_v5" >&6; }
18402  if test x$kerberos_v5 = xyes; then
18403   KERBEROS_V5_TRUE=
18404   KERBEROS_V5_FALSE='#'
18405 else
18406   KERBEROS_V5_TRUE='#'
18407   KERBEROS_V5_FALSE=
18408 fi
18409
18410
18411 # Check for libidn
18412
18413 # Check whether --with-stringprep was given.
18414 if test "${with_stringprep+set}" = set; then :
18415   withval=$with_stringprep; stringprep=$withval
18416 else
18417   stringprep=yes
18418 fi
18419
18420 if test "$stringprep" != "no"; then
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434     use_additional=yes
18435
18436   acl_save_prefix="$prefix"
18437   prefix="$acl_final_prefix"
18438   acl_save_exec_prefix="$exec_prefix"
18439   exec_prefix="$acl_final_exec_prefix"
18440
18441     eval additional_includedir=\"$includedir\"
18442     eval additional_libdir=\"$libdir\"
18443
18444   exec_prefix="$acl_save_exec_prefix"
18445   prefix="$acl_save_prefix"
18446
18447
18448 # Check whether --with-libidn-prefix was given.
18449 if test "${with_libidn_prefix+set}" = set; then :
18450   withval=$with_libidn_prefix;
18451     if test "X$withval" = "Xno"; then
18452       use_additional=no
18453     else
18454       if test "X$withval" = "X"; then
18455
18456   acl_save_prefix="$prefix"
18457   prefix="$acl_final_prefix"
18458   acl_save_exec_prefix="$exec_prefix"
18459   exec_prefix="$acl_final_exec_prefix"
18460
18461           eval additional_includedir=\"$includedir\"
18462           eval additional_libdir=\"$libdir\"
18463
18464   exec_prefix="$acl_save_exec_prefix"
18465   prefix="$acl_save_prefix"
18466
18467       else
18468         additional_includedir="$withval/include"
18469         additional_libdir="$withval/$acl_libdirstem"
18470         if test "$acl_libdirstem2" != "$acl_libdirstem" \
18471            && ! test -d "$withval/$acl_libdirstem"; then
18472           additional_libdir="$withval/$acl_libdirstem2"
18473         fi
18474       fi
18475     fi
18476
18477 fi
18478
18479       LIBIDN=
18480   LTLIBIDN=
18481   INCIDN=
18482   LIBIDN_PREFIX=
18483       HAVE_LIBIDN=
18484   rpathdirs=
18485   ltrpathdirs=
18486   names_already_handled=
18487   names_next_round='idn '
18488   while test -n "$names_next_round"; do
18489     names_this_round="$names_next_round"
18490     names_next_round=
18491     for name in $names_this_round; do
18492       already_handled=
18493       for n in $names_already_handled; do
18494         if test "$n" = "$name"; then
18495           already_handled=yes
18496           break
18497         fi
18498       done
18499       if test -z "$already_handled"; then
18500         names_already_handled="$names_already_handled $name"
18501                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18502         eval value=\"\$HAVE_LIB$uppername\"
18503         if test -n "$value"; then
18504           if test "$value" = yes; then
18505             eval value=\"\$LIB$uppername\"
18506             test -z "$value" || LIBIDN="${LIBIDN}${LIBIDN:+ }$value"
18507             eval value=\"\$LTLIB$uppername\"
18508             test -z "$value" || LTLIBIDN="${LTLIBIDN}${LTLIBIDN:+ }$value"
18509           else
18510                                     :
18511           fi
18512         else
18513                               found_dir=
18514           found_la=
18515           found_so=
18516           found_a=
18517           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
18518           if test -n "$acl_shlibext"; then
18519             shrext=".$acl_shlibext"             # typically: shrext=.so
18520           else
18521             shrext=
18522           fi
18523           if test $use_additional = yes; then
18524             dir="$additional_libdir"
18525                                     if test -n "$acl_shlibext"; then
18526               if test -f "$dir/$libname$shrext"; then
18527                 found_dir="$dir"
18528                 found_so="$dir/$libname$shrext"
18529               else
18530                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18531                   ver=`(cd "$dir" && \
18532                         for f in "$libname$shrext".*; do echo "$f"; done \
18533                         | sed -e "s,^$libname$shrext\\\\.,," \
18534                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18535                         | sed 1q ) 2>/dev/null`
18536                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18537                     found_dir="$dir"
18538                     found_so="$dir/$libname$shrext.$ver"
18539                   fi
18540                 else
18541                   eval library_names=\"$acl_library_names_spec\"
18542                   for f in $library_names; do
18543                     if test -f "$dir/$f"; then
18544                       found_dir="$dir"
18545                       found_so="$dir/$f"
18546                       break
18547                     fi
18548                   done
18549                 fi
18550               fi
18551             fi
18552                         if test "X$found_dir" = "X"; then
18553               if test -f "$dir/$libname.$acl_libext"; then
18554                 found_dir="$dir"
18555                 found_a="$dir/$libname.$acl_libext"
18556               fi
18557             fi
18558             if test "X$found_dir" != "X"; then
18559               if test -f "$dir/$libname.la"; then
18560                 found_la="$dir/$libname.la"
18561               fi
18562             fi
18563           fi
18564           if test "X$found_dir" = "X"; then
18565             for x in $LDFLAGS $LTLIBIDN; do
18566
18567   acl_save_prefix="$prefix"
18568   prefix="$acl_final_prefix"
18569   acl_save_exec_prefix="$exec_prefix"
18570   exec_prefix="$acl_final_exec_prefix"
18571   eval x=\"$x\"
18572   exec_prefix="$acl_save_exec_prefix"
18573   prefix="$acl_save_prefix"
18574
18575               case "$x" in
18576                 -L*)
18577                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18578                                     if test -n "$acl_shlibext"; then
18579                     if test -f "$dir/$libname$shrext"; then
18580                       found_dir="$dir"
18581                       found_so="$dir/$libname$shrext"
18582                     else
18583                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18584                         ver=`(cd "$dir" && \
18585                               for f in "$libname$shrext".*; do echo "$f"; done \
18586                               | sed -e "s,^$libname$shrext\\\\.,," \
18587                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18588                               | sed 1q ) 2>/dev/null`
18589                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18590                           found_dir="$dir"
18591                           found_so="$dir/$libname$shrext.$ver"
18592                         fi
18593                       else
18594                         eval library_names=\"$acl_library_names_spec\"
18595                         for f in $library_names; do
18596                           if test -f "$dir/$f"; then
18597                             found_dir="$dir"
18598                             found_so="$dir/$f"
18599                             break
18600                           fi
18601                         done
18602                       fi
18603                     fi
18604                   fi
18605                                     if test "X$found_dir" = "X"; then
18606                     if test -f "$dir/$libname.$acl_libext"; then
18607                       found_dir="$dir"
18608                       found_a="$dir/$libname.$acl_libext"
18609                     fi
18610                   fi
18611                   if test "X$found_dir" != "X"; then
18612                     if test -f "$dir/$libname.la"; then
18613                       found_la="$dir/$libname.la"
18614                     fi
18615                   fi
18616                   ;;
18617               esac
18618               if test "X$found_dir" != "X"; then
18619                 break
18620               fi
18621             done
18622           fi
18623           if test "X$found_dir" != "X"; then
18624                         LTLIBIDN="${LTLIBIDN}${LTLIBIDN:+ }-L$found_dir -l$name"
18625             if test "X$found_so" != "X"; then
18626                                                         if test "$enable_rpath" = no \
18627                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
18628                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
18629                                 LIBIDN="${LIBIDN}${LIBIDN:+ }$found_so"
18630               else
18631                                                                                 haveit=
18632                 for x in $ltrpathdirs; do
18633                   if test "X$x" = "X$found_dir"; then
18634                     haveit=yes
18635                     break
18636                   fi
18637                 done
18638                 if test -z "$haveit"; then
18639                   ltrpathdirs="$ltrpathdirs $found_dir"
18640                 fi
18641                                 if test "$acl_hardcode_direct" = yes; then
18642                                                       LIBIDN="${LIBIDN}${LIBIDN:+ }$found_so"
18643                 else
18644                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18645                                                             LIBIDN="${LIBIDN}${LIBIDN:+ }$found_so"
18646                                                             haveit=
18647                     for x in $rpathdirs; do
18648                       if test "X$x" = "X$found_dir"; then
18649                         haveit=yes
18650                         break
18651                       fi
18652                     done
18653                     if test -z "$haveit"; then
18654                       rpathdirs="$rpathdirs $found_dir"
18655                     fi
18656                   else
18657                                                                                 haveit=
18658                     for x in $LDFLAGS $LIBIDN; do
18659
18660   acl_save_prefix="$prefix"
18661   prefix="$acl_final_prefix"
18662   acl_save_exec_prefix="$exec_prefix"
18663   exec_prefix="$acl_final_exec_prefix"
18664   eval x=\"$x\"
18665   exec_prefix="$acl_save_exec_prefix"
18666   prefix="$acl_save_prefix"
18667
18668                       if test "X$x" = "X-L$found_dir"; then
18669                         haveit=yes
18670                         break
18671                       fi
18672                     done
18673                     if test -z "$haveit"; then
18674                       LIBIDN="${LIBIDN}${LIBIDN:+ }-L$found_dir"
18675                     fi
18676                     if test "$acl_hardcode_minus_L" != no; then
18677                                                                                         LIBIDN="${LIBIDN}${LIBIDN:+ }$found_so"
18678                     else
18679                                                                                                                                                                                 LIBIDN="${LIBIDN}${LIBIDN:+ }-l$name"
18680                     fi
18681                   fi
18682                 fi
18683               fi
18684             else
18685               if test "X$found_a" != "X"; then
18686                                 LIBIDN="${LIBIDN}${LIBIDN:+ }$found_a"
18687               else
18688                                                 LIBIDN="${LIBIDN}${LIBIDN:+ }-L$found_dir -l$name"
18689               fi
18690             fi
18691                         additional_includedir=
18692             case "$found_dir" in
18693               */$acl_libdirstem | */$acl_libdirstem/)
18694                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18695                 if test "$name" = 'idn'; then
18696                   LIBIDN_PREFIX="$basedir"
18697                 fi
18698                 additional_includedir="$basedir/include"
18699                 ;;
18700               */$acl_libdirstem2 | */$acl_libdirstem2/)
18701                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18702                 if test "$name" = 'idn'; then
18703                   LIBIDN_PREFIX="$basedir"
18704                 fi
18705                 additional_includedir="$basedir/include"
18706                 ;;
18707             esac
18708             if test "X$additional_includedir" != "X"; then
18709                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18710                 haveit=
18711                 if test "X$additional_includedir" = "X/usr/local/include"; then
18712                   if test -n "$GCC"; then
18713                     case $host_os in
18714                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18715                     esac
18716                   fi
18717                 fi
18718                 if test -z "$haveit"; then
18719                   for x in $CPPFLAGS $INCIDN; do
18720
18721   acl_save_prefix="$prefix"
18722   prefix="$acl_final_prefix"
18723   acl_save_exec_prefix="$exec_prefix"
18724   exec_prefix="$acl_final_exec_prefix"
18725   eval x=\"$x\"
18726   exec_prefix="$acl_save_exec_prefix"
18727   prefix="$acl_save_prefix"
18728
18729                     if test "X$x" = "X-I$additional_includedir"; then
18730                       haveit=yes
18731                       break
18732                     fi
18733                   done
18734                   if test -z "$haveit"; then
18735                     if test -d "$additional_includedir"; then
18736                                             INCIDN="${INCIDN}${INCIDN:+ }-I$additional_includedir"
18737                     fi
18738                   fi
18739                 fi
18740               fi
18741             fi
18742                         if test -n "$found_la"; then
18743                                                         save_libdir="$libdir"
18744               case "$found_la" in
18745                 */* | *\\*) . "$found_la" ;;
18746                 *) . "./$found_la" ;;
18747               esac
18748               libdir="$save_libdir"
18749                             for dep in $dependency_libs; do
18750                 case "$dep" in
18751                   -L*)
18752                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18753                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
18754                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
18755                       haveit=
18756                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
18757                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
18758                         if test -n "$GCC"; then
18759                           case $host_os in
18760                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18761                           esac
18762                         fi
18763                       fi
18764                       if test -z "$haveit"; then
18765                         haveit=
18766                         for x in $LDFLAGS $LIBIDN; do
18767
18768   acl_save_prefix="$prefix"
18769   prefix="$acl_final_prefix"
18770   acl_save_exec_prefix="$exec_prefix"
18771   exec_prefix="$acl_final_exec_prefix"
18772   eval x=\"$x\"
18773   exec_prefix="$acl_save_exec_prefix"
18774   prefix="$acl_save_prefix"
18775
18776                           if test "X$x" = "X-L$additional_libdir"; then
18777                             haveit=yes
18778                             break
18779                           fi
18780                         done
18781                         if test -z "$haveit"; then
18782                           if test -d "$additional_libdir"; then
18783                                                         LIBIDN="${LIBIDN}${LIBIDN:+ }-L$additional_libdir"
18784                           fi
18785                         fi
18786                         haveit=
18787                         for x in $LDFLAGS $LTLIBIDN; do
18788
18789   acl_save_prefix="$prefix"
18790   prefix="$acl_final_prefix"
18791   acl_save_exec_prefix="$exec_prefix"
18792   exec_prefix="$acl_final_exec_prefix"
18793   eval x=\"$x\"
18794   exec_prefix="$acl_save_exec_prefix"
18795   prefix="$acl_save_prefix"
18796
18797                           if test "X$x" = "X-L$additional_libdir"; then
18798                             haveit=yes
18799                             break
18800                           fi
18801                         done
18802                         if test -z "$haveit"; then
18803                           if test -d "$additional_libdir"; then
18804                                                         LTLIBIDN="${LTLIBIDN}${LTLIBIDN:+ }-L$additional_libdir"
18805                           fi
18806                         fi
18807                       fi
18808                     fi
18809                     ;;
18810                   -R*)
18811                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18812                     if test "$enable_rpath" != no; then
18813                                                                   haveit=
18814                       for x in $rpathdirs; do
18815                         if test "X$x" = "X$dir"; then
18816                           haveit=yes
18817                           break
18818                         fi
18819                       done
18820                       if test -z "$haveit"; then
18821                         rpathdirs="$rpathdirs $dir"
18822                       fi
18823                                                                   haveit=
18824                       for x in $ltrpathdirs; do
18825                         if test "X$x" = "X$dir"; then
18826                           haveit=yes
18827                           break
18828                         fi
18829                       done
18830                       if test -z "$haveit"; then
18831                         ltrpathdirs="$ltrpathdirs $dir"
18832                       fi
18833                     fi
18834                     ;;
18835                   -l*)
18836                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18837                     ;;
18838                   *.la)
18839                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18840                     ;;
18841                   *)
18842                                         LIBIDN="${LIBIDN}${LIBIDN:+ }$dep"
18843                     LTLIBIDN="${LTLIBIDN}${LTLIBIDN:+ }$dep"
18844                     ;;
18845                 esac
18846               done
18847             fi
18848           else
18849                                                             LIBIDN="${LIBIDN}${LIBIDN:+ }-l$name"
18850             LTLIBIDN="${LTLIBIDN}${LTLIBIDN:+ }-l$name"
18851           fi
18852         fi
18853       fi
18854     done
18855   done
18856   if test "X$rpathdirs" != "X"; then
18857     if test -n "$acl_hardcode_libdir_separator"; then
18858                         alldirs=
18859       for found_dir in $rpathdirs; do
18860         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18861       done
18862             acl_save_libdir="$libdir"
18863       libdir="$alldirs"
18864       eval flag=\"$acl_hardcode_libdir_flag_spec\"
18865       libdir="$acl_save_libdir"
18866       LIBIDN="${LIBIDN}${LIBIDN:+ }$flag"
18867     else
18868             for found_dir in $rpathdirs; do
18869         acl_save_libdir="$libdir"
18870         libdir="$found_dir"
18871         eval flag=\"$acl_hardcode_libdir_flag_spec\"
18872         libdir="$acl_save_libdir"
18873         LIBIDN="${LIBIDN}${LIBIDN:+ }$flag"
18874       done
18875     fi
18876   fi
18877   if test "X$ltrpathdirs" != "X"; then
18878             for found_dir in $ltrpathdirs; do
18879       LTLIBIDN="${LTLIBIDN}${LTLIBIDN:+ }-R$found_dir"
18880     done
18881   fi
18882
18883
18884
18885
18886
18887
18888
18889         ac_save_CPPFLAGS="$CPPFLAGS"
18890
18891   for element in $INCIDN; do
18892     haveit=
18893     for x in $CPPFLAGS; do
18894
18895   acl_save_prefix="$prefix"
18896   prefix="$acl_final_prefix"
18897   acl_save_exec_prefix="$exec_prefix"
18898   exec_prefix="$acl_final_exec_prefix"
18899   eval x=\"$x\"
18900   exec_prefix="$acl_save_exec_prefix"
18901   prefix="$acl_save_prefix"
18902
18903       if test "X$x" = "X$element"; then
18904         haveit=yes
18905         break
18906       fi
18907     done
18908     if test -z "$haveit"; then
18909       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18910     fi
18911   done
18912
18913
18914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn" >&5
18915 $as_echo_n "checking for libidn... " >&6; }
18916 if ${ac_cv_libidn+:} false; then :
18917   $as_echo_n "(cached) " >&6
18918 else
18919
18920     ac_save_LIBS="$LIBS"
18921                                 case " $LIBIDN" in
18922       *" -l"*) LIBS="$LIBS $LIBIDN" ;;
18923       *)       LIBS="$LIBIDN $LIBS" ;;
18924     esac
18925     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18926 /* end confdefs.h.  */
18927 #include <stringprep.h>
18928 int
18929 main ()
18930 {
18931 stringprep_check_version (0);
18932   ;
18933   return 0;
18934 }
18935 _ACEOF
18936 if ac_fn_c_try_link "$LINENO"; then :
18937   ac_cv_libidn=yes
18938 else
18939   ac_cv_libidn='no'
18940 fi
18941 rm -f core conftest.err conftest.$ac_objext \
18942     conftest$ac_exeext conftest.$ac_ext
18943     LIBS="$ac_save_LIBS"
18944
18945 fi
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libidn" >&5
18947 $as_echo "$ac_cv_libidn" >&6; }
18948   if test "$ac_cv_libidn" = yes; then
18949     HAVE_LIBIDN=yes
18950
18951 $as_echo "#define HAVE_LIBIDN 1" >>confdefs.h
18952
18953     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libidn" >&5
18954 $as_echo_n "checking how to link with libidn... " >&6; }
18955     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIDN" >&5
18956 $as_echo "$LIBIDN" >&6; }
18957   else
18958     HAVE_LIBIDN=no
18959             CPPFLAGS="$ac_save_CPPFLAGS"
18960     LIBIDN=
18961     LTLIBIDN=
18962     LIBIDN_PREFIX=
18963   fi
18964
18965
18966
18967
18968
18969
18970
18971   if test "$ac_cv_libidn" != yes; then
18972     stringprep=no
18973     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNU Libidn not found.  Stringprep disabled." >&5
18974 $as_echo "$as_me: WARNING: GNU Libidn not found.  Stringprep disabled." >&2;}
18975   else
18976     stringprep=yes
18977     save_LIBS="$LIBS"
18978     LIBS="$LIBS $LIBIDN"
18979     for ac_func in pr29_8z
18980 do :
18981   ac_fn_c_check_func "$LINENO" "pr29_8z" "ac_cv_func_pr29_8z"
18982 if test "x$ac_cv_func_pr29_8z" = xyes; then :
18983   cat >>confdefs.h <<_ACEOF
18984 #define HAVE_PR29_8Z 1
18985 _ACEOF
18986
18987 fi
18988 done
18989
18990     for ac_header in pr29.h
18991 do :
18992   ac_fn_c_check_header_mongrel "$LINENO" "pr29.h" "ac_cv_header_pr29_h" "$ac_includes_default"
18993 if test "x$ac_cv_header_pr29_h" = xyes; then :
18994   cat >>confdefs.h <<_ACEOF
18995 #define HAVE_PR29_H 1
18996 _ACEOF
18997
18998 fi
18999
19000 done
19001
19002     LIBS="$save_LIBS"
19003   fi
19004 fi
19005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if non-ASCII support via Libidn should be built" >&5
19006 $as_echo_n "checking if non-ASCII support via Libidn should be built... " >&6; }
19007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stringprep" >&5
19008 $as_echo "$stringprep" >&6; }
19009
19010 # Allow disabling of client or server.
19011 # Check whether --enable-client was given.
19012 if test "${enable_client+set}" = set; then :
19013   enableval=$enable_client; client=$enableval
19014 fi
19015
19016 # Check whether --enable-server was given.
19017 if test "${enable_server+set}" = set; then :
19018   enableval=$enable_server; server=$enableval
19019 fi
19020
19021 if test "$client" != "no"; then
19022
19023 $as_echo "#define USE_CLIENT 1" >>confdefs.h
19024
19025   client=yes
19026 fi
19027 if test "$server" != "no"; then
19028
19029 $as_echo "#define USE_SERVER 1" >>confdefs.h
19030
19031   server=yes
19032 fi
19033 if test "$server" = "no" && test "$client" = "no"; then
19034   as_fn_error $? "Disabling both client and server mode is meaningless" "$LINENO" 5
19035 fi
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if client code should be built" >&5
19037 $as_echo_n "checking if client code should be built... " >&6; }
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $client" >&5
19039 $as_echo "$client" >&6; }
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if server code should be built" >&5
19041 $as_echo_n "checking if server code should be built... " >&6; }
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $server" >&5
19043 $as_echo "$server" >&6; }
19044  if test x$client = xyes; then
19045   CLIENT_TRUE=
19046   CLIENT_FALSE='#'
19047 else
19048   CLIENT_TRUE='#'
19049   CLIENT_FALSE=
19050 fi
19051
19052  if test x$server = xyes; then
19053   SERVER_TRUE=
19054   SERVER_FALSE='#'
19055 else
19056   SERVER_TRUE='#'
19057   SERVER_FALSE=
19058 fi
19059
19060
19061 # Allow disabling of obsolete stuff.
19062 # Check whether --enable-obsolete was given.
19063 if test "${enable_obsolete+set}" = set; then :
19064   enableval=$enable_obsolete; obsolete=$enableval
19065 fi
19066
19067 if test "$obsolete" = "no"; then
19068
19069 $as_echo "#define GSASL_NO_OBSOLETE 1" >>confdefs.h
19070
19071 else
19072   obsolete=yes
19073 fi
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if backwards compatibility code should be present" >&5
19075 $as_echo_n "checking if backwards compatibility code should be present... " >&6; }
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $obsolete" >&5
19077 $as_echo "$obsolete" >&6; }
19078  if test "$obsolete" = "yes"; then
19079   OBSOLETE_TRUE=
19080   OBSOLETE_FALSE='#'
19081 else
19082   OBSOLETE_TRUE='#'
19083   OBSOLETE_FALSE=
19084 fi
19085
19086
19087 # For gnulib stuff in gl/ which may modify gssapi_impl, see gl/m4/gss-extra.m4.
19088
19089
19090
19091
19092
19093           LIBC_FATAL_STDERR_=1
19094   export LIBC_FATAL_STDERR_
19095
19096 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19097 if test "x$ac_cv_type_size_t" = xyes; then :
19098
19099 else
19100
19101 cat >>confdefs.h <<_ACEOF
19102 #define size_t unsigned int
19103 _ACEOF
19104
19105 fi
19106
19107 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19108 # for constant arguments.  Useless!
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19110 $as_echo_n "checking for working alloca.h... " >&6; }
19111 if ${ac_cv_working_alloca_h+:} false; then :
19112   $as_echo_n "(cached) " >&6
19113 else
19114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19115 /* end confdefs.h.  */
19116 #include <alloca.h>
19117 int
19118 main ()
19119 {
19120 char *p = (char *) alloca (2 * sizeof (int));
19121                           if (p) return 0;
19122   ;
19123   return 0;
19124 }
19125 _ACEOF
19126 if ac_fn_c_try_link "$LINENO"; then :
19127   ac_cv_working_alloca_h=yes
19128 else
19129   ac_cv_working_alloca_h=no
19130 fi
19131 rm -f core conftest.err conftest.$ac_objext \
19132     conftest$ac_exeext conftest.$ac_ext
19133 fi
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19135 $as_echo "$ac_cv_working_alloca_h" >&6; }
19136 if test $ac_cv_working_alloca_h = yes; then
19137
19138 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19139
19140 fi
19141
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19143 $as_echo_n "checking for alloca... " >&6; }
19144 if ${ac_cv_func_alloca_works+:} false; then :
19145   $as_echo_n "(cached) " >&6
19146 else
19147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19148 /* end confdefs.h.  */
19149 #ifdef __GNUC__
19150 # define alloca __builtin_alloca
19151 #else
19152 # ifdef _MSC_VER
19153 #  include <malloc.h>
19154 #  define alloca _alloca
19155 # else
19156 #  ifdef HAVE_ALLOCA_H
19157 #   include <alloca.h>
19158 #  else
19159 #   ifdef _AIX
19160  #pragma alloca
19161 #   else
19162 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19163 void *alloca (size_t);
19164 #    endif
19165 #   endif
19166 #  endif
19167 # endif
19168 #endif
19169
19170 int
19171 main ()
19172 {
19173 char *p = (char *) alloca (1);
19174                                     if (p) return 0;
19175   ;
19176   return 0;
19177 }
19178 _ACEOF
19179 if ac_fn_c_try_link "$LINENO"; then :
19180   ac_cv_func_alloca_works=yes
19181 else
19182   ac_cv_func_alloca_works=no
19183 fi
19184 rm -f core conftest.err conftest.$ac_objext \
19185     conftest$ac_exeext conftest.$ac_ext
19186 fi
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19188 $as_echo "$ac_cv_func_alloca_works" >&6; }
19189
19190 if test $ac_cv_func_alloca_works = yes; then
19191
19192 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19193
19194 else
19195   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19196 # that cause trouble.  Some versions do not even contain alloca or
19197 # contain a buggy version.  If you still want to use their alloca,
19198 # use ar to extract alloca.o from them instead of compiling alloca.c.
19199
19200
19201
19202
19203
19204 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19205
19206 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19207
19208
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
19210 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
19211 if ${ac_cv_os_cray+:} false; then :
19212   $as_echo_n "(cached) " >&6
19213 else
19214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19215 /* end confdefs.h.  */
19216 #if defined CRAY && ! defined CRAY2
19217 webecray
19218 #else
19219 wenotbecray
19220 #endif
19221
19222 _ACEOF
19223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19224   $EGREP "webecray" >/dev/null 2>&1; then :
19225   ac_cv_os_cray=yes
19226 else
19227   ac_cv_os_cray=no
19228 fi
19229 rm -f conftest*
19230
19231 fi
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19233 $as_echo "$ac_cv_os_cray" >&6; }
19234 if test $ac_cv_os_cray = yes; then
19235   for ac_func in _getb67 GETB67 getb67; do
19236     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19237 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19238 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19239
19240 cat >>confdefs.h <<_ACEOF
19241 #define CRAY_STACKSEG_END $ac_func
19242 _ACEOF
19243
19244     break
19245 fi
19246
19247   done
19248 fi
19249
19250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19251 $as_echo_n "checking stack direction for C alloca... " >&6; }
19252 if ${ac_cv_c_stack_direction+:} false; then :
19253   $as_echo_n "(cached) " >&6
19254 else
19255   if test "$cross_compiling" = yes; then :
19256   ac_cv_c_stack_direction=0
19257 else
19258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19259 /* end confdefs.h.  */
19260 $ac_includes_default
19261 int
19262 find_stack_direction (int *addr, int depth)
19263 {
19264   int dir, dummy = 0;
19265   if (! addr)
19266     addr = &dummy;
19267   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19268   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19269   return dir + dummy;
19270 }
19271
19272 int
19273 main (int argc, char **argv)
19274 {
19275   return find_stack_direction (0, argc + !argv + 20) < 0;
19276 }
19277 _ACEOF
19278 if ac_fn_c_try_run "$LINENO"; then :
19279   ac_cv_c_stack_direction=1
19280 else
19281   ac_cv_c_stack_direction=-1
19282 fi
19283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19284   conftest.$ac_objext conftest.beam conftest.$ac_ext
19285 fi
19286
19287 fi
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19289 $as_echo "$ac_cv_c_stack_direction" >&6; }
19290 cat >>confdefs.h <<_ACEOF
19291 #define STACK_DIRECTION $ac_cv_c_stack_direction
19292 _ACEOF
19293
19294
19295 fi
19296
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19298 $as_echo_n "checking for inline... " >&6; }
19299 if ${ac_cv_c_inline+:} false; then :
19300   $as_echo_n "(cached) " >&6
19301 else
19302   ac_cv_c_inline=no
19303 for ac_kw in inline __inline__ __inline; do
19304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19305 /* end confdefs.h.  */
19306 #ifndef __cplusplus
19307 typedef int foo_t;
19308 static $ac_kw foo_t static_foo () {return 0; }
19309 $ac_kw foo_t foo () {return 0; }
19310 #endif
19311
19312 _ACEOF
19313 if ac_fn_c_try_compile "$LINENO"; then :
19314   ac_cv_c_inline=$ac_kw
19315 fi
19316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19317   test "$ac_cv_c_inline" != no && break
19318 done
19319
19320 fi
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19322 $as_echo "$ac_cv_c_inline" >&6; }
19323
19324 case $ac_cv_c_inline in
19325   inline | yes) ;;
19326   *)
19327     case $ac_cv_c_inline in
19328       no) ac_val=;;
19329       *) ac_val=$ac_cv_c_inline;;
19330     esac
19331     cat >>confdefs.h <<_ACEOF
19332 #ifndef __cplusplus
19333 #define inline $ac_val
19334 #endif
19335 _ACEOF
19336     ;;
19337 esac
19338
19339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19340 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19341 if ${ac_cv_c_restrict+:} false; then :
19342   $as_echo_n "(cached) " >&6
19343 else
19344   ac_cv_c_restrict=no
19345    # The order here caters to the fact that C++ does not require restrict.
19346    for ac_kw in __restrict __restrict__ _Restrict restrict; do
19347      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19348 /* end confdefs.h.  */
19349 typedef int * int_ptr;
19350         int foo (int_ptr $ac_kw ip) {
19351         return ip[0];
19352        }
19353 int
19354 main ()
19355 {
19356 int s[1];
19357         int * $ac_kw t = s;
19358         t[0] = 0;
19359         return foo(t)
19360   ;
19361   return 0;
19362 }
19363 _ACEOF
19364 if ac_fn_c_try_compile "$LINENO"; then :
19365   ac_cv_c_restrict=$ac_kw
19366 fi
19367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19368      test "$ac_cv_c_restrict" != no && break
19369    done
19370
19371 fi
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19373 $as_echo "$ac_cv_c_restrict" >&6; }
19374
19375  case $ac_cv_c_restrict in
19376    restrict) ;;
19377    no) $as_echo "#define restrict /**/" >>confdefs.h
19378  ;;
19379    *)  cat >>confdefs.h <<_ACEOF
19380 #define restrict $ac_cv_c_restrict
19381 _ACEOF
19382  ;;
19383  esac
19384
19385
19386    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
19387 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
19388 if ${ac_cv_c_bigendian+:} false; then :
19389   $as_echo_n "(cached) " >&6
19390 else
19391   ac_cv_c_bigendian=unknown
19392     # See if we're dealing with a universal compiler.
19393     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19394 /* end confdefs.h.  */
19395 #ifndef __APPLE_CC__
19396                not a universal capable compiler
19397              #endif
19398              typedef int dummy;
19399
19400 _ACEOF
19401 if ac_fn_c_try_compile "$LINENO"; then :
19402
19403         # Check for potential -arch flags.  It is not universal unless
19404         # there are at least two -arch flags with different values.
19405         ac_arch=
19406         ac_prev=
19407         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
19408          if test -n "$ac_prev"; then
19409            case $ac_word in
19410              i?86 | x86_64 | ppc | ppc64)
19411                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
19412                  ac_arch=$ac_word
19413                else
19414                  ac_cv_c_bigendian=universal
19415                  break
19416                fi
19417                ;;
19418            esac
19419            ac_prev=
19420          elif test "x$ac_word" = "x-arch"; then
19421            ac_prev=arch
19422          fi
19423        done
19424 fi
19425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19426     if test $ac_cv_c_bigendian = unknown; then
19427       # See if sys/param.h defines the BYTE_ORDER macro.
19428       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19429 /* end confdefs.h.  */
19430 #include <sys/types.h>
19431              #include <sys/param.h>
19432
19433 int
19434 main ()
19435 {
19436 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
19437                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
19438                      && LITTLE_ENDIAN)
19439               bogus endian macros
19440              #endif
19441
19442   ;
19443   return 0;
19444 }
19445 _ACEOF
19446 if ac_fn_c_try_compile "$LINENO"; then :
19447   # It does; now see whether it defined to BIG_ENDIAN or not.
19448          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19449 /* end confdefs.h.  */
19450 #include <sys/types.h>
19451                 #include <sys/param.h>
19452
19453 int
19454 main ()
19455 {
19456 #if BYTE_ORDER != BIG_ENDIAN
19457                  not big endian
19458                 #endif
19459
19460   ;
19461   return 0;
19462 }
19463 _ACEOF
19464 if ac_fn_c_try_compile "$LINENO"; then :
19465   ac_cv_c_bigendian=yes
19466 else
19467   ac_cv_c_bigendian=no
19468 fi
19469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19470 fi
19471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19472     fi
19473     if test $ac_cv_c_bigendian = unknown; then
19474       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
19475       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19476 /* end confdefs.h.  */
19477 #include <limits.h>
19478
19479 int
19480 main ()
19481 {
19482 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
19483               bogus endian macros
19484              #endif
19485
19486   ;
19487   return 0;
19488 }
19489 _ACEOF
19490 if ac_fn_c_try_compile "$LINENO"; then :
19491   # It does; now see whether it defined to _BIG_ENDIAN or not.
19492          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19493 /* end confdefs.h.  */
19494 #include <limits.h>
19495
19496 int
19497 main ()
19498 {
19499 #ifndef _BIG_ENDIAN
19500                  not big endian
19501                 #endif
19502
19503   ;
19504   return 0;
19505 }
19506 _ACEOF
19507 if ac_fn_c_try_compile "$LINENO"; then :
19508   ac_cv_c_bigendian=yes
19509 else
19510   ac_cv_c_bigendian=no
19511 fi
19512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19513 fi
19514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19515     fi
19516     if test $ac_cv_c_bigendian = unknown; then
19517       # Compile a test program.
19518       if test "$cross_compiling" = yes; then :
19519   # Try to guess by grepping values from an object file.
19520          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19521 /* end confdefs.h.  */
19522 short int ascii_mm[] =
19523                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19524                 short int ascii_ii[] =
19525                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19526                 int use_ascii (int i) {
19527                   return ascii_mm[i] + ascii_ii[i];
19528                 }
19529                 short int ebcdic_ii[] =
19530                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19531                 short int ebcdic_mm[] =
19532                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19533                 int use_ebcdic (int i) {
19534                   return ebcdic_mm[i] + ebcdic_ii[i];
19535                 }
19536                 extern int foo;
19537
19538 int
19539 main ()
19540 {
19541 return use_ascii (foo) == use_ebcdic (foo);
19542   ;
19543   return 0;
19544 }
19545 _ACEOF
19546 if ac_fn_c_try_compile "$LINENO"; then :
19547   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
19548               ac_cv_c_bigendian=yes
19549             fi
19550             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19551               if test "$ac_cv_c_bigendian" = unknown; then
19552                 ac_cv_c_bigendian=no
19553               else
19554                 # finding both strings is unlikely to happen, but who knows?
19555                 ac_cv_c_bigendian=unknown
19556               fi
19557             fi
19558 fi
19559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19560 else
19561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19562 /* end confdefs.h.  */
19563 $ac_includes_default
19564 int
19565 main ()
19566 {
19567
19568              /* Are we little or big endian?  From Harbison&Steele.  */
19569              union
19570              {
19571                long int l;
19572                char c[sizeof (long int)];
19573              } u;
19574              u.l = 1;
19575              return u.c[sizeof (long int) - 1] == 1;
19576
19577   ;
19578   return 0;
19579 }
19580 _ACEOF
19581 if ac_fn_c_try_run "$LINENO"; then :
19582   ac_cv_c_bigendian=no
19583 else
19584   ac_cv_c_bigendian=yes
19585 fi
19586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19587   conftest.$ac_objext conftest.beam conftest.$ac_ext
19588 fi
19589
19590     fi
19591 fi
19592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
19593 $as_echo "$ac_cv_c_bigendian" >&6; }
19594  case $ac_cv_c_bigendian in #(
19595    yes)
19596      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
19597 ;; #(
19598    no)
19599       ;; #(
19600    universal)
19601
19602 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
19603
19604      ;; #(
19605    *)
19606      as_fn_error $? "unknown endianness
19607  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
19608  esac
19609
19610
19611
19612
19613   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
19614 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
19615 if ${gl_cv_have_include_next+:} false; then :
19616   $as_echo_n "(cached) " >&6
19617 else
19618   rm -rf conftestd1a conftestd1b conftestd2
19619      mkdir conftestd1a conftestd1b conftestd2
19620                                                   cat <<EOF > conftestd1a/conftest.h
19621 #define DEFINED_IN_CONFTESTD1
19622 #include_next <conftest.h>
19623 #ifdef DEFINED_IN_CONFTESTD2
19624 int foo;
19625 #else
19626 #error "include_next doesn't work"
19627 #endif
19628 EOF
19629      cat <<EOF > conftestd1b/conftest.h
19630 #define DEFINED_IN_CONFTESTD1
19631 #include <stdio.h>
19632 #include_next <conftest.h>
19633 #ifdef DEFINED_IN_CONFTESTD2
19634 int foo;
19635 #else
19636 #error "include_next doesn't work"
19637 #endif
19638 EOF
19639      cat <<EOF > conftestd2/conftest.h
19640 #ifndef DEFINED_IN_CONFTESTD1
19641 #error "include_next test doesn't work"
19642 #endif
19643 #define DEFINED_IN_CONFTESTD2
19644 EOF
19645      gl_save_CPPFLAGS="$CPPFLAGS"
19646      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
19647      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19648 /* end confdefs.h.  */
19649 #include <conftest.h>
19650 _ACEOF
19651 if ac_fn_c_try_compile "$LINENO"; then :
19652   gl_cv_have_include_next=yes
19653 else
19654   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
19655         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19656 /* end confdefs.h.  */
19657 #include <conftest.h>
19658 _ACEOF
19659 if ac_fn_c_try_compile "$LINENO"; then :
19660   gl_cv_have_include_next=buggy
19661 else
19662   gl_cv_have_include_next=no
19663 fi
19664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19665
19666 fi
19667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19668      CPPFLAGS="$gl_save_CPPFLAGS"
19669      rm -rf conftestd1a conftestd1b conftestd2
19670
19671 fi
19672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
19673 $as_echo "$gl_cv_have_include_next" >&6; }
19674   PRAGMA_SYSTEM_HEADER=
19675   if test $gl_cv_have_include_next = yes; then
19676     INCLUDE_NEXT=include_next
19677     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
19678     if test -n "$GCC"; then
19679       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
19680     fi
19681   else
19682     if test $gl_cv_have_include_next = buggy; then
19683       INCLUDE_NEXT=include
19684       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
19685     else
19686       INCLUDE_NEXT=include
19687       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
19688     fi
19689   fi
19690
19691
19692
19693   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
19694 $as_echo_n "checking whether system header files limit the line length... " >&6; }
19695 if ${gl_cv_pragma_columns+:} false; then :
19696   $as_echo_n "(cached) " >&6
19697 else
19698        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19699 /* end confdefs.h.  */
19700
19701 #ifdef __TANDEM
19702 choke me
19703 #endif
19704
19705 _ACEOF
19706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19707   $EGREP "choke me" >/dev/null 2>&1; then :
19708   gl_cv_pragma_columns=yes
19709 else
19710   gl_cv_pragma_columns=no
19711 fi
19712 rm -f conftest*
19713
19714
19715 fi
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
19717 $as_echo "$gl_cv_pragma_columns" >&6; }
19718   if test $gl_cv_pragma_columns = yes; then
19719     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
19720   else
19721     PRAGMA_COLUMNS=
19722   fi
19723
19724
19725
19726
19727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
19728 $as_echo_n "checking for complete errno.h... " >&6; }
19729 if ${gl_cv_header_errno_h_complete+:} false; then :
19730   $as_echo_n "(cached) " >&6
19731 else
19732
19733     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19734 /* end confdefs.h.  */
19735
19736 #include <errno.h>
19737 #if !defined ENOMSG
19738 booboo
19739 #endif
19740 #if !defined EIDRM
19741 booboo
19742 #endif
19743 #if !defined ENOLINK
19744 booboo
19745 #endif
19746 #if !defined EPROTO
19747 booboo
19748 #endif
19749 #if !defined EMULTIHOP
19750 booboo
19751 #endif
19752 #if !defined EBADMSG
19753 booboo
19754 #endif
19755 #if !defined EOVERFLOW
19756 booboo
19757 #endif
19758 #if !defined ENOTSUP
19759 booboo
19760 #endif
19761 #if !defined ENETRESET
19762 booboo
19763 #endif
19764 #if !defined ECONNABORTED
19765 booboo
19766 #endif
19767 #if !defined ESTALE
19768 booboo
19769 #endif
19770 #if !defined EDQUOT
19771 booboo
19772 #endif
19773 #if !defined ECANCELED
19774 booboo
19775 #endif
19776
19777 _ACEOF
19778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19779   $EGREP "booboo" >/dev/null 2>&1; then :
19780   gl_cv_header_errno_h_complete=no
19781 else
19782   gl_cv_header_errno_h_complete=yes
19783 fi
19784 rm -f conftest*
19785
19786
19787 fi
19788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
19789 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
19790   if test $gl_cv_header_errno_h_complete = yes; then
19791     ERRNO_H=''
19792   else
19793
19794
19795
19796
19797
19798
19799
19800
19801      if test $gl_cv_have_include_next = yes; then
19802        gl_cv_next_errno_h='<'errno.h'>'
19803      else
19804        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
19805 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
19806 if ${gl_cv_next_errno_h+:} false; then :
19807   $as_echo_n "(cached) " >&6
19808 else
19809
19810                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19811 /* end confdefs.h.  */
19812 #include <errno.h>
19813
19814 _ACEOF
19815                                                                                                                         case "$host_os" in
19816                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
19817                  *)    gl_absname_cpp="$ac_cpp" ;;
19818                esac
19819
19820                case "$host_os" in
19821                  mingw*)
19822                                                                                                                                      gl_dirsep_regex='[/\\]'
19823                    ;;
19824                  *)
19825                    gl_dirsep_regex='\/'
19826                    ;;
19827                esac
19828                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19829
19830                gl_header_literal_regex=`echo 'errno.h' \
19831                                         | sed -e "$gl_make_literal_regex_sed"`
19832                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19833                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19834                    s|^/[^/]|//&|
19835                    p
19836                    q
19837                  }'
19838                                                             gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19839                       sed -n "$gl_absolute_header_sed"`'"'
19840
19841
19842 fi
19843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
19844 $as_echo "$gl_cv_next_errno_h" >&6; }
19845      fi
19846      NEXT_ERRNO_H=$gl_cv_next_errno_h
19847
19848      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19849        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19850        gl_next_as_first_directive='<'errno.h'>'
19851      else
19852        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19853        gl_next_as_first_directive=$gl_cv_next_errno_h
19854      fi
19855      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
19856
19857
19858
19859
19860     ERRNO_H='errno.h'
19861   fi
19862
19863    if test -n "$ERRNO_H"; then
19864   GL_GENERATE_ERRNO_H_TRUE=
19865   GL_GENERATE_ERRNO_H_FALSE='#'
19866 else
19867   GL_GENERATE_ERRNO_H_TRUE='#'
19868   GL_GENERATE_ERRNO_H_FALSE=
19869 fi
19870
19871
19872   if test -n "$ERRNO_H"; then
19873     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
19874 $as_echo_n "checking for EMULTIHOP value... " >&6; }
19875 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
19876   $as_echo_n "(cached) " >&6
19877 else
19878
19879       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19880 /* end confdefs.h.  */
19881
19882 #include <errno.h>
19883 #ifdef EMULTIHOP
19884 yes
19885 #endif
19886
19887 _ACEOF
19888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19889   $EGREP "yes" >/dev/null 2>&1; then :
19890   gl_cv_header_errno_h_EMULTIHOP=yes
19891 else
19892   gl_cv_header_errno_h_EMULTIHOP=no
19893 fi
19894 rm -f conftest*
19895
19896       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
19897         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19898 /* end confdefs.h.  */
19899
19900 #define _XOPEN_SOURCE_EXTENDED 1
19901 #include <errno.h>
19902 #ifdef EMULTIHOP
19903 yes
19904 #endif
19905
19906 _ACEOF
19907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19908   $EGREP "yes" >/dev/null 2>&1; then :
19909   gl_cv_header_errno_h_EMULTIHOP=hidden
19910 fi
19911 rm -f conftest*
19912
19913         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
19914                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
19915 #define _XOPEN_SOURCE_EXTENDED 1
19916 #include <errno.h>
19917 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
19918 #include <stdio.h>
19919 #include <stdlib.h>
19920 "; then :
19921
19922 fi
19923
19924         fi
19925       fi
19926
19927 fi
19928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
19929 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
19930     case $gl_cv_header_errno_h_EMULTIHOP in
19931       yes | no)
19932         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
19933         ;;
19934       *)
19935         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
19936         ;;
19937     esac
19938
19939
19940   fi
19941
19942
19943   if test -n "$ERRNO_H"; then
19944     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
19945 $as_echo_n "checking for ENOLINK value... " >&6; }
19946 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
19947   $as_echo_n "(cached) " >&6
19948 else
19949
19950       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19951 /* end confdefs.h.  */
19952
19953 #include <errno.h>
19954 #ifdef ENOLINK
19955 yes
19956 #endif
19957
19958 _ACEOF
19959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19960   $EGREP "yes" >/dev/null 2>&1; then :
19961   gl_cv_header_errno_h_ENOLINK=yes
19962 else
19963   gl_cv_header_errno_h_ENOLINK=no
19964 fi
19965 rm -f conftest*
19966
19967       if test $gl_cv_header_errno_h_ENOLINK = no; then
19968         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19969 /* end confdefs.h.  */
19970
19971 #define _XOPEN_SOURCE_EXTENDED 1
19972 #include <errno.h>
19973 #ifdef ENOLINK
19974 yes
19975 #endif
19976
19977 _ACEOF
19978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19979   $EGREP "yes" >/dev/null 2>&1; then :
19980   gl_cv_header_errno_h_ENOLINK=hidden
19981 fi
19982 rm -f conftest*
19983
19984         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
19985                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
19986 #define _XOPEN_SOURCE_EXTENDED 1
19987 #include <errno.h>
19988 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
19989 #include <stdio.h>
19990 #include <stdlib.h>
19991 "; then :
19992
19993 fi
19994
19995         fi
19996       fi
19997
19998 fi
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
20000 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
20001     case $gl_cv_header_errno_h_ENOLINK in
20002       yes | no)
20003         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
20004         ;;
20005       *)
20006         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
20007         ;;
20008     esac
20009
20010
20011   fi
20012
20013
20014   if test -n "$ERRNO_H"; then
20015     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
20016 $as_echo_n "checking for EOVERFLOW value... " >&6; }
20017 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
20018   $as_echo_n "(cached) " >&6
20019 else
20020
20021       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20022 /* end confdefs.h.  */
20023
20024 #include <errno.h>
20025 #ifdef EOVERFLOW
20026 yes
20027 #endif
20028
20029 _ACEOF
20030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20031   $EGREP "yes" >/dev/null 2>&1; then :
20032   gl_cv_header_errno_h_EOVERFLOW=yes
20033 else
20034   gl_cv_header_errno_h_EOVERFLOW=no
20035 fi
20036 rm -f conftest*
20037
20038       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
20039         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20040 /* end confdefs.h.  */
20041
20042 #define _XOPEN_SOURCE_EXTENDED 1
20043 #include <errno.h>
20044 #ifdef EOVERFLOW
20045 yes
20046 #endif
20047
20048 _ACEOF
20049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20050   $EGREP "yes" >/dev/null 2>&1; then :
20051   gl_cv_header_errno_h_EOVERFLOW=hidden
20052 fi
20053 rm -f conftest*
20054
20055         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
20056                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
20057 #define _XOPEN_SOURCE_EXTENDED 1
20058 #include <errno.h>
20059 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
20060 #include <stdio.h>
20061 #include <stdlib.h>
20062 "; then :
20063
20064 fi
20065
20066         fi
20067       fi
20068
20069 fi
20070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
20071 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
20072     case $gl_cv_header_errno_h_EOVERFLOW in
20073       yes | no)
20074         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
20075         ;;
20076       *)
20077         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
20078         ;;
20079     esac
20080
20081
20082   fi
20083
20084
20085
20086   GNULIB_DPRINTF=0;
20087   GNULIB_FCLOSE=0;
20088   GNULIB_FDOPEN=0;
20089   GNULIB_FFLUSH=0;
20090   GNULIB_FGETC=0;
20091   GNULIB_FGETS=0;
20092   GNULIB_FOPEN=0;
20093   GNULIB_FPRINTF=0;
20094   GNULIB_FPRINTF_POSIX=0;
20095   GNULIB_FPURGE=0;
20096   GNULIB_FPUTC=0;
20097   GNULIB_FPUTS=0;
20098   GNULIB_FREAD=0;
20099   GNULIB_FREOPEN=0;
20100   GNULIB_FSCANF=0;
20101   GNULIB_FSEEK=0;
20102   GNULIB_FSEEKO=0;
20103   GNULIB_FTELL=0;
20104   GNULIB_FTELLO=0;
20105   GNULIB_FWRITE=0;
20106   GNULIB_GETC=0;
20107   GNULIB_GETCHAR=0;
20108   GNULIB_GETDELIM=0;
20109   GNULIB_GETLINE=0;
20110   GNULIB_OBSTACK_PRINTF=0;
20111   GNULIB_OBSTACK_PRINTF_POSIX=0;
20112   GNULIB_PCLOSE=0;
20113   GNULIB_PERROR=0;
20114   GNULIB_POPEN=0;
20115   GNULIB_PRINTF=0;
20116   GNULIB_PRINTF_POSIX=0;
20117   GNULIB_PUTC=0;
20118   GNULIB_PUTCHAR=0;
20119   GNULIB_PUTS=0;
20120   GNULIB_REMOVE=0;
20121   GNULIB_RENAME=0;
20122   GNULIB_RENAMEAT=0;
20123   GNULIB_SCANF=0;
20124   GNULIB_SNPRINTF=0;
20125   GNULIB_SPRINTF_POSIX=0;
20126   GNULIB_STDIO_H_NONBLOCKING=0;
20127   GNULIB_STDIO_H_SIGPIPE=0;
20128   GNULIB_TMPFILE=0;
20129   GNULIB_VASPRINTF=0;
20130   GNULIB_VFSCANF=0;
20131   GNULIB_VSCANF=0;
20132   GNULIB_VDPRINTF=0;
20133   GNULIB_VFPRINTF=0;
20134   GNULIB_VFPRINTF_POSIX=0;
20135   GNULIB_VPRINTF=0;
20136   GNULIB_VPRINTF_POSIX=0;
20137   GNULIB_VSNPRINTF=0;
20138   GNULIB_VSPRINTF_POSIX=0;
20139     HAVE_DECL_FPURGE=1;
20140   HAVE_DECL_FSEEKO=1;
20141   HAVE_DECL_FTELLO=1;
20142   HAVE_DECL_GETDELIM=1;
20143   HAVE_DECL_GETLINE=1;
20144   HAVE_DECL_OBSTACK_PRINTF=1;
20145   HAVE_DECL_SNPRINTF=1;
20146   HAVE_DECL_VSNPRINTF=1;
20147   HAVE_DPRINTF=1;
20148   HAVE_FSEEKO=1;
20149   HAVE_FTELLO=1;
20150   HAVE_PCLOSE=1;
20151   HAVE_POPEN=1;
20152   HAVE_RENAMEAT=1;
20153   HAVE_VASPRINTF=1;
20154   HAVE_VDPRINTF=1;
20155   REPLACE_DPRINTF=0;
20156   REPLACE_FCLOSE=0;
20157   REPLACE_FDOPEN=0;
20158   REPLACE_FFLUSH=0;
20159   REPLACE_FOPEN=0;
20160   REPLACE_FPRINTF=0;
20161   REPLACE_FPURGE=0;
20162   REPLACE_FREOPEN=0;
20163   REPLACE_FSEEK=0;
20164   REPLACE_FSEEKO=0;
20165   REPLACE_FTELL=0;
20166   REPLACE_FTELLO=0;
20167   REPLACE_GETDELIM=0;
20168   REPLACE_GETLINE=0;
20169   REPLACE_OBSTACK_PRINTF=0;
20170   REPLACE_PERROR=0;
20171   REPLACE_POPEN=0;
20172   REPLACE_PRINTF=0;
20173   REPLACE_REMOVE=0;
20174   REPLACE_RENAME=0;
20175   REPLACE_RENAMEAT=0;
20176   REPLACE_SNPRINTF=0;
20177   REPLACE_SPRINTF=0;
20178   REPLACE_STDIO_READ_FUNCS=0;
20179   REPLACE_STDIO_WRITE_FUNCS=0;
20180   REPLACE_TMPFILE=0;
20181   REPLACE_VASPRINTF=0;
20182   REPLACE_VDPRINTF=0;
20183   REPLACE_VFPRINTF=0;
20184   REPLACE_VPRINTF=0;
20185   REPLACE_VSNPRINTF=0;
20186   REPLACE_VSPRINTF=0;
20187
20188 ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
20189 if test "x$ac_cv_have_decl_getdelim" = xyes; then :
20190   ac_have_decl=1
20191 else
20192   ac_have_decl=0
20193 fi
20194
20195 cat >>confdefs.h <<_ACEOF
20196 #define HAVE_DECL_GETDELIM $ac_have_decl
20197 _ACEOF
20198
20199
20200
20201
20202   for ac_func in $ac_func_list
20203 do :
20204   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20205 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20206 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20207   cat >>confdefs.h <<_ACEOF
20208 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20209 _ACEOF
20210
20211 fi
20212 done
20213
20214
20215
20216 ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
20217 if test "x$ac_cv_have_decl_getline" = xyes; then :
20218   ac_have_decl=1
20219 else
20220   ac_have_decl=0
20221 fi
20222
20223 cat >>confdefs.h <<_ACEOF
20224 #define HAVE_DECL_GETLINE $ac_have_decl
20225 _ACEOF
20226
20227
20228
20229
20230   for ac_header in $ac_header_list
20231 do :
20232   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20233 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20234 "
20235 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20236   cat >>confdefs.h <<_ACEOF
20237 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20238 _ACEOF
20239
20240 fi
20241
20242 done
20243
20244
20245
20246
20247
20248
20249   GNULIB_FFSL=0;
20250   GNULIB_FFSLL=0;
20251   GNULIB_MEMCHR=0;
20252   GNULIB_MEMMEM=0;
20253   GNULIB_MEMPCPY=0;
20254   GNULIB_MEMRCHR=0;
20255   GNULIB_RAWMEMCHR=0;
20256   GNULIB_STPCPY=0;
20257   GNULIB_STPNCPY=0;
20258   GNULIB_STRCHRNUL=0;
20259   GNULIB_STRDUP=0;
20260   GNULIB_STRNCAT=0;
20261   GNULIB_STRNDUP=0;
20262   GNULIB_STRNLEN=0;
20263   GNULIB_STRPBRK=0;
20264   GNULIB_STRSEP=0;
20265   GNULIB_STRSTR=0;
20266   GNULIB_STRCASESTR=0;
20267   GNULIB_STRTOK_R=0;
20268   GNULIB_MBSLEN=0;
20269   GNULIB_MBSNLEN=0;
20270   GNULIB_MBSCHR=0;
20271   GNULIB_MBSRCHR=0;
20272   GNULIB_MBSSTR=0;
20273   GNULIB_MBSCASECMP=0;
20274   GNULIB_MBSNCASECMP=0;
20275   GNULIB_MBSPCASECMP=0;
20276   GNULIB_MBSCASESTR=0;
20277   GNULIB_MBSCSPN=0;
20278   GNULIB_MBSPBRK=0;
20279   GNULIB_MBSSPN=0;
20280   GNULIB_MBSSEP=0;
20281   GNULIB_MBSTOK_R=0;
20282   GNULIB_STRERROR=0;
20283   GNULIB_STRERROR_R=0;
20284   GNULIB_STRSIGNAL=0;
20285   GNULIB_STRVERSCMP=0;
20286   HAVE_MBSLEN=0;
20287     HAVE_FFSL=1;
20288   HAVE_FFSLL=1;
20289   HAVE_MEMCHR=1;
20290   HAVE_DECL_MEMMEM=1;
20291   HAVE_MEMPCPY=1;
20292   HAVE_DECL_MEMRCHR=1;
20293   HAVE_RAWMEMCHR=1;
20294   HAVE_STPCPY=1;
20295   HAVE_STPNCPY=1;
20296   HAVE_STRCHRNUL=1;
20297   HAVE_DECL_STRDUP=1;
20298   HAVE_DECL_STRNDUP=1;
20299   HAVE_DECL_STRNLEN=1;
20300   HAVE_STRPBRK=1;
20301   HAVE_STRSEP=1;
20302   HAVE_STRCASESTR=1;
20303   HAVE_DECL_STRTOK_R=1;
20304   HAVE_DECL_STRERROR_R=1;
20305   HAVE_DECL_STRSIGNAL=1;
20306   HAVE_STRVERSCMP=1;
20307   REPLACE_MEMCHR=0;
20308   REPLACE_MEMMEM=0;
20309   REPLACE_STPNCPY=0;
20310   REPLACE_STRDUP=0;
20311   REPLACE_STRSTR=0;
20312   REPLACE_STRCASESTR=0;
20313   REPLACE_STRCHRNUL=0;
20314   REPLACE_STRERROR=0;
20315   REPLACE_STRERROR_R=0;
20316   REPLACE_STRNCAT=0;
20317   REPLACE_STRNDUP=0;
20318   REPLACE_STRNLEN=0;
20319   REPLACE_STRSIGNAL=0;
20320   REPLACE_STRTOK_R=0;
20321   UNDEFINE_STRTOK_R=0;
20322
20323
20324
20325
20326
20327   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
20328   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
20329   # irrelevant for anonymous mappings.
20330   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
20331 if test "x$ac_cv_func_mmap" = xyes; then :
20332   gl_have_mmap=yes
20333 else
20334   gl_have_mmap=no
20335 fi
20336
20337
20338   # Try to allow MAP_ANONYMOUS.
20339   gl_have_mmap_anonymous=no
20340   if test $gl_have_mmap = yes; then
20341     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
20342 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
20343     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20344 /* end confdefs.h.  */
20345
20346 #include <sys/mman.h>
20347 #ifdef MAP_ANONYMOUS
20348     I cant identify this map
20349 #endif
20350
20351 _ACEOF
20352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20353   $EGREP "I cant identify this map" >/dev/null 2>&1; then :
20354   gl_have_mmap_anonymous=yes
20355 fi
20356 rm -f conftest*
20357
20358     if test $gl_have_mmap_anonymous != yes; then
20359       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20360 /* end confdefs.h.  */
20361
20362 #include <sys/mman.h>
20363 #ifdef MAP_ANON
20364     I cant identify this map
20365 #endif
20366
20367 _ACEOF
20368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20369   $EGREP "I cant identify this map" >/dev/null 2>&1; then :
20370
20371 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
20372
20373          gl_have_mmap_anonymous=yes
20374 fi
20375 rm -f conftest*
20376
20377     fi
20378     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
20379 $as_echo "$gl_have_mmap_anonymous" >&6; }
20380     if test $gl_have_mmap_anonymous = yes; then
20381
20382 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
20383
20384     fi
20385   fi
20386
20387
20388
20389
20390
20391
20392   if test $HAVE_MEMCHR = 1; then
20393     # Detect platform-specific bugs in some versions of glibc:
20394     # memchr should not dereference anything with length 0
20395     #   http://bugzilla.redhat.com/499689
20396     # memchr should not dereference overestimated length after a match
20397     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
20398     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
20399     # Assume that memchr works on platforms that lack mprotect.
20400     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
20401 $as_echo_n "checking whether memchr works... " >&6; }
20402 if ${gl_cv_func_memchr_works+:} false; then :
20403   $as_echo_n "(cached) " >&6
20404 else
20405   if test "$cross_compiling" = yes; then :
20406          gl_cv_func_memchr_works="guessing no"
20407 else
20408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20409 /* end confdefs.h.  */
20410
20411 #include <string.h>
20412 #if HAVE_SYS_MMAN_H
20413 # include <fcntl.h>
20414 # include <unistd.h>
20415 # include <sys/types.h>
20416 # include <sys/mman.h>
20417 # ifndef MAP_FILE
20418 #  define MAP_FILE 0
20419 # endif
20420 #endif
20421
20422 int
20423 main ()
20424 {
20425
20426   int result = 0;
20427   char *fence = NULL;
20428 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
20429 # if HAVE_MAP_ANONYMOUS
20430   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
20431   const int fd = -1;
20432 # else /* !HAVE_MAP_ANONYMOUS */
20433   const int flags = MAP_FILE | MAP_PRIVATE;
20434   int fd = open ("/dev/zero", O_RDONLY, 0666);
20435   if (fd >= 0)
20436 # endif
20437     {
20438       int pagesize = getpagesize ();
20439       char *two_pages =
20440         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
20441                        flags, fd, 0);
20442       if (two_pages != (char *)(-1)
20443           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
20444         fence = two_pages + pagesize;
20445     }
20446 #endif
20447   if (fence)
20448     {
20449       if (memchr (fence, 0, 0))
20450         result |= 1;
20451       strcpy (fence - 9, "12345678");
20452       if (memchr (fence - 9, 0, 79) != fence - 1)
20453         result |= 2;
20454       if (memchr (fence - 1, 0, 3) != fence - 1)
20455         result |= 4;
20456     }
20457   return result;
20458
20459   ;
20460   return 0;
20461 }
20462 _ACEOF
20463 if ac_fn_c_try_run "$LINENO"; then :
20464   gl_cv_func_memchr_works=yes
20465 else
20466   gl_cv_func_memchr_works=no
20467 fi
20468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20469   conftest.$ac_objext conftest.beam conftest.$ac_ext
20470 fi
20471
20472 fi
20473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
20474 $as_echo "$gl_cv_func_memchr_works" >&6; }
20475     if test "$gl_cv_func_memchr_works" != yes; then
20476       REPLACE_MEMCHR=1
20477     fi
20478   fi
20479
20480 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
20481 if test "x$ac_cv_have_decl_memmem" = xyes; then :
20482   ac_have_decl=1
20483 else
20484   ac_have_decl=0
20485 fi
20486
20487 cat >>confdefs.h <<_ACEOF
20488 #define HAVE_DECL_MEMMEM $ac_have_decl
20489 _ACEOF
20490
20491
20492
20493
20494
20495   for ac_func in memmem
20496 do :
20497   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
20498 if test "x$ac_cv_func_memmem" = xyes; then :
20499   cat >>confdefs.h <<_ACEOF
20500 #define HAVE_MEMMEM 1
20501 _ACEOF
20502
20503 fi
20504 done
20505
20506   if test $ac_cv_func_memmem = yes; then
20507     HAVE_MEMMEM=1
20508   else
20509     HAVE_MEMMEM=0
20510   fi
20511
20512   if test $ac_cv_have_decl_memmem = no; then
20513     HAVE_DECL_MEMMEM=0
20514   else
20515             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
20516 $as_echo_n "checking whether memmem works... " >&6; }
20517 if ${gl_cv_func_memmem_works_always+:} false; then :
20518   $as_echo_n "(cached) " >&6
20519 else
20520   if test "$cross_compiling" = yes; then :
20521                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20522 /* end confdefs.h.  */
20523
20524 #ifdef __GNU_LIBRARY__
20525  #include <features.h>
20526  #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
20527                           || __GLIBC_MINOR__ > 12)) \
20528       || (__GLIBC__ > 2)) \
20529      || defined __UCLIBC__
20530   Lucky user
20531  #endif
20532 #elif defined __CYGWIN__
20533  #include <cygwin/version.h>
20534  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
20535   Lucky user
20536  #endif
20537 #else
20538   Lucky user
20539 #endif
20540
20541 _ACEOF
20542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20543   $EGREP "Lucky user" >/dev/null 2>&1; then :
20544   gl_cv_func_memmem_works_always="guessing yes"
20545 else
20546   gl_cv_func_memmem_works_always="guessing no"
20547 fi
20548 rm -f conftest*
20549
20550
20551 else
20552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20553 /* end confdefs.h.  */
20554
20555 #include <string.h> /* for memmem */
20556 #define P "_EF_BF_BD"
20557 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
20558 #define NEEDLE P P P P P
20559
20560 int
20561 main ()
20562 {
20563
20564     int result = 0;
20565     if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
20566       result |= 1;
20567     /* Check for empty needle behavior.  */
20568     {
20569       const char *haystack = "AAA";
20570       if (memmem (haystack, 3, NULL, 0) != haystack)
20571         result |= 2;
20572     }
20573     return result;
20574
20575   ;
20576   return 0;
20577 }
20578 _ACEOF
20579 if ac_fn_c_try_run "$LINENO"; then :
20580   gl_cv_func_memmem_works_always=yes
20581 else
20582   gl_cv_func_memmem_works_always=no
20583 fi
20584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20585   conftest.$ac_objext conftest.beam conftest.$ac_ext
20586 fi
20587
20588
20589 fi
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
20591 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
20592     case "$gl_cv_func_memmem_works_always" in
20593       *yes) ;;
20594       *)
20595         REPLACE_MEMMEM=1
20596         ;;
20597     esac
20598   fi
20599   :
20600
20601
20602
20603
20604
20605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
20606 $as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
20607 if ${gl_cv_minmax_in_limits_h+:} false; then :
20608   $as_echo_n "(cached) " >&6
20609 else
20610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20611 /* end confdefs.h.  */
20612 #include <limits.h>
20613             int x = MIN (42, 17);
20614 int
20615 main ()
20616 {
20617
20618   ;
20619   return 0;
20620 }
20621 _ACEOF
20622 if ac_fn_c_try_compile "$LINENO"; then :
20623   gl_cv_minmax_in_limits_h=yes
20624 else
20625   gl_cv_minmax_in_limits_h=no
20626 fi
20627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20628 fi
20629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
20630 $as_echo "$gl_cv_minmax_in_limits_h" >&6; }
20631   if test $gl_cv_minmax_in_limits_h = yes; then
20632
20633 $as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
20634
20635   fi
20636
20637
20638
20639
20640
20641
20642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
20643 $as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
20644 if ${gl_cv_minmax_in_sys_param_h+:} false; then :
20645   $as_echo_n "(cached) " >&6
20646 else
20647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20648 /* end confdefs.h.  */
20649 #include <sys/param.h>
20650             int x = MIN (42, 17);
20651 int
20652 main ()
20653 {
20654
20655   ;
20656   return 0;
20657 }
20658 _ACEOF
20659 if ac_fn_c_try_compile "$LINENO"; then :
20660   gl_cv_minmax_in_sys_param_h=yes
20661 else
20662   gl_cv_minmax_in_sys_param_h=no
20663 fi
20664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20665 fi
20666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
20667 $as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
20668   if test $gl_cv_minmax_in_sys_param_h = yes; then
20669
20670 $as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
20671
20672   fi
20673
20674
20675
20676
20677
20678     gl_cv_c_multiarch=no
20679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20680 /* end confdefs.h.  */
20681 #ifndef __APPLE_CC__
20682          not a universal capable compiler
20683         #endif
20684         typedef int dummy;
20685
20686 _ACEOF
20687 if ac_fn_c_try_compile "$LINENO"; then :
20688
20689                arch=
20690      prev=
20691      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
20692        if test -n "$prev"; then
20693          case $word in
20694            i?86 | x86_64 | ppc | ppc64)
20695              if test -z "$arch" || test "$arch" = "$word"; then
20696                arch="$word"
20697              else
20698                gl_cv_c_multiarch=yes
20699              fi
20700              ;;
20701          esac
20702          prev=
20703        else
20704          if test "x$word" = "x-arch"; then
20705            prev=arch
20706          fi
20707        fi
20708      done
20709
20710 fi
20711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20712   if test $gl_cv_c_multiarch = yes; then
20713     APPLE_UNIVERSAL_BUILD=1
20714   else
20715     APPLE_UNIVERSAL_BUILD=0
20716   fi
20717
20718
20719
20720   GNULIB__EXIT=0;
20721   GNULIB_ATOLL=0;
20722   GNULIB_CALLOC_POSIX=0;
20723   GNULIB_CANONICALIZE_FILE_NAME=0;
20724   GNULIB_GETLOADAVG=0;
20725   GNULIB_GETSUBOPT=0;
20726   GNULIB_GRANTPT=0;
20727   GNULIB_MALLOC_POSIX=0;
20728   GNULIB_MBTOWC=0;
20729   GNULIB_MKDTEMP=0;
20730   GNULIB_MKOSTEMP=0;
20731   GNULIB_MKOSTEMPS=0;
20732   GNULIB_MKSTEMP=0;
20733   GNULIB_MKSTEMPS=0;
20734   GNULIB_POSIX_OPENPT=0;
20735   GNULIB_PTSNAME=0;
20736   GNULIB_PTSNAME_R=0;
20737   GNULIB_PUTENV=0;
20738   GNULIB_RANDOM=0;
20739   GNULIB_RANDOM_R=0;
20740   GNULIB_REALLOC_POSIX=0;
20741   GNULIB_REALPATH=0;
20742   GNULIB_RPMATCH=0;
20743   GNULIB_SETENV=0;
20744   GNULIB_STRTOD=0;
20745   GNULIB_STRTOLL=0;
20746   GNULIB_STRTOULL=0;
20747   GNULIB_SYSTEM_POSIX=0;
20748   GNULIB_UNLOCKPT=0;
20749   GNULIB_UNSETENV=0;
20750   GNULIB_WCTOMB=0;
20751     HAVE__EXIT=1;
20752   HAVE_ATOLL=1;
20753   HAVE_CANONICALIZE_FILE_NAME=1;
20754   HAVE_DECL_GETLOADAVG=1;
20755   HAVE_GETSUBOPT=1;
20756   HAVE_GRANTPT=1;
20757   HAVE_MKDTEMP=1;
20758   HAVE_MKOSTEMP=1;
20759   HAVE_MKOSTEMPS=1;
20760   HAVE_MKSTEMP=1;
20761   HAVE_MKSTEMPS=1;
20762   HAVE_POSIX_OPENPT=1;
20763   HAVE_PTSNAME=1;
20764   HAVE_PTSNAME_R=1;
20765   HAVE_RANDOM=1;
20766   HAVE_RANDOM_H=1;
20767   HAVE_RANDOM_R=1;
20768   HAVE_REALPATH=1;
20769   HAVE_RPMATCH=1;
20770   HAVE_SETENV=1;
20771   HAVE_DECL_SETENV=1;
20772   HAVE_STRTOD=1;
20773   HAVE_STRTOLL=1;
20774   HAVE_STRTOULL=1;
20775   HAVE_STRUCT_RANDOM_DATA=1;
20776   HAVE_SYS_LOADAVG_H=0;
20777   HAVE_UNLOCKPT=1;
20778   HAVE_DECL_UNSETENV=1;
20779   REPLACE_CALLOC=0;
20780   REPLACE_CANONICALIZE_FILE_NAME=0;
20781   REPLACE_MALLOC=0;
20782   REPLACE_MBTOWC=0;
20783   REPLACE_MKSTEMP=0;
20784   REPLACE_PTSNAME_R=0;
20785   REPLACE_PUTENV=0;
20786   REPLACE_RANDOM_R=0;
20787   REPLACE_REALLOC=0;
20788   REPLACE_REALPATH=0;
20789   REPLACE_SETENV=0;
20790   REPLACE_STRTOD=0;
20791   REPLACE_UNSETENV=0;
20792   REPLACE_WCTOMB=0;
20793
20794
20795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
20796 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
20797 if ${gl_cv_func_malloc_posix+:} false; then :
20798   $as_echo_n "(cached) " >&6
20799 else
20800
20801                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20802 /* end confdefs.h.  */
20803
20804 int
20805 main ()
20806 {
20807 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
20808              choke me
20809              #endif
20810
20811   ;
20812   return 0;
20813 }
20814 _ACEOF
20815 if ac_fn_c_try_compile "$LINENO"; then :
20816   gl_cv_func_malloc_posix=yes
20817 else
20818   gl_cv_func_malloc_posix=no
20819 fi
20820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20821
20822 fi
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
20824 $as_echo "$gl_cv_func_malloc_posix" >&6; }
20825
20826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20827 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20828 if ${ac_cv_header_stdbool_h+:} false; then :
20829   $as_echo_n "(cached) " >&6
20830 else
20831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20832 /* end confdefs.h.  */
20833
20834              #include <stdbool.h>
20835              #ifndef bool
20836               "error: bool is not defined"
20837              #endif
20838              #ifndef false
20839               "error: false is not defined"
20840              #endif
20841              #if false
20842               "error: false is not 0"
20843              #endif
20844              #ifndef true
20845               "error: true is not defined"
20846              #endif
20847              #if true != 1
20848               "error: true is not 1"
20849              #endif
20850              #ifndef __bool_true_false_are_defined
20851               "error: __bool_true_false_are_defined is not defined"
20852              #endif
20853
20854              struct s { _Bool s: 1; _Bool t; } s;
20855
20856              char a[true == 1 ? 1 : -1];
20857              char b[false == 0 ? 1 : -1];
20858              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20859              char d[(bool) 0.5 == true ? 1 : -1];
20860              /* See body of main program for 'e'.  */
20861              char f[(_Bool) 0.0 == false ? 1 : -1];
20862              char g[true];
20863              char h[sizeof (_Bool)];
20864              char i[sizeof s.t];
20865              enum { j = false, k = true, l = false * true, m = true * 256 };
20866              /* The following fails for
20867                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20868              _Bool n[m];
20869              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20870              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20871              /* Catch a bug in an HP-UX C compiler.  See
20872                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20873                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20874               */
20875              _Bool q = true;
20876              _Bool *pq = &q;
20877
20878 int
20879 main ()
20880 {
20881
20882              bool e = &s;
20883              *pq |= q;
20884              *pq |= ! q;
20885              /* Refer to every declared value, to avoid compiler optimizations.  */
20886              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20887                      + !m + !n + !o + !p + !q + !pq);
20888
20889   ;
20890   return 0;
20891 }
20892 _ACEOF
20893 if ac_fn_c_try_compile "$LINENO"; then :
20894   ac_cv_header_stdbool_h=yes
20895 else
20896   ac_cv_header_stdbool_h=no
20897 fi
20898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20899 fi
20900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
20901 $as_echo "$ac_cv_header_stdbool_h" >&6; }
20902    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20903 if test "x$ac_cv_type__Bool" = xyes; then :
20904
20905 cat >>confdefs.h <<_ACEOF
20906 #define HAVE__BOOL 1
20907 _ACEOF
20908
20909
20910 fi
20911
20912
20913
20914     REPLACE_NULL=0;
20915   HAVE_WCHAR_T=1;
20916
20917
20918   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
20919 $as_echo_n "checking for wchar_t... " >&6; }
20920 if ${gt_cv_c_wchar_t+:} false; then :
20921   $as_echo_n "(cached) " >&6
20922 else
20923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20924 /* end confdefs.h.  */
20925 #include <stddef.h>
20926        wchar_t foo = (wchar_t)'\0';
20927 int
20928 main ()
20929 {
20930
20931   ;
20932   return 0;
20933 }
20934 _ACEOF
20935 if ac_fn_c_try_compile "$LINENO"; then :
20936   gt_cv_c_wchar_t=yes
20937 else
20938   gt_cv_c_wchar_t=no
20939 fi
20940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20941 fi
20942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
20943 $as_echo "$gt_cv_c_wchar_t" >&6; }
20944   if test $gt_cv_c_wchar_t = yes; then
20945
20946 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
20947
20948   fi
20949
20950
20951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
20952 $as_echo_n "checking for long long int... " >&6; }
20953 if ${ac_cv_type_long_long_int+:} false; then :
20954   $as_echo_n "(cached) " >&6
20955 else
20956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20957 /* end confdefs.h.  */
20958
20959   /* For now, do not test the preprocessor; as of 2007 there are too many
20960          implementations with broken preprocessors.  Perhaps this can
20961          be revisited in 2012.  In the meantime, code should not expect
20962          #if to work with literals wider than 32 bits.  */
20963       /* Test literals.  */
20964       long long int ll = 9223372036854775807ll;
20965       long long int nll = -9223372036854775807LL;
20966       unsigned long long int ull = 18446744073709551615ULL;
20967       /* Test constant expressions.   */
20968       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
20969                      ? 1 : -1)];
20970       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
20971                      ? 1 : -1)];
20972       int i = 63;
20973 int
20974 main ()
20975 {
20976 /* Test availability of runtime routines for shift and division.  */
20977       long long int llmax = 9223372036854775807ll;
20978       unsigned long long int ullmax = 18446744073709551615ull;
20979       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
20980               | (llmax / ll) | (llmax % ll)
20981               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
20982               | (ullmax / ull) | (ullmax % ull));
20983   ;
20984   return 0;
20985 }
20986
20987 _ACEOF
20988 if ac_fn_c_try_link "$LINENO"; then :
20989                           if test "$cross_compiling" = yes; then :
20990   ac_cv_type_long_long_int=yes
20991 else
20992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20993 /* end confdefs.h.  */
20994 #include <limits.h>
20995                #ifndef LLONG_MAX
20996                # define HALF \
20997                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
20998                # define LLONG_MAX (HALF - 1 + HALF)
20999                #endif
21000 int
21001 main ()
21002 {
21003 long long int n = 1;
21004                int i;
21005                for (i = 0; ; i++)
21006                  {
21007                    long long int m = n << i;
21008                    if (m >> i != n)
21009                      return 1;
21010                    if (LLONG_MAX / 2 < m)
21011                      break;
21012                  }
21013                return 0;
21014   ;
21015   return 0;
21016 }
21017 _ACEOF
21018 if ac_fn_c_try_run "$LINENO"; then :
21019   ac_cv_type_long_long_int=yes
21020 else
21021   ac_cv_type_long_long_int=no
21022 fi
21023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21024   conftest.$ac_objext conftest.beam conftest.$ac_ext
21025 fi
21026
21027 else
21028   ac_cv_type_long_long_int=no
21029 fi
21030 rm -f core conftest.err conftest.$ac_objext \
21031     conftest$ac_exeext conftest.$ac_ext
21032 fi
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
21034 $as_echo "$ac_cv_type_long_long_int" >&6; }
21035   if test $ac_cv_type_long_long_int = yes; then
21036
21037 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
21038
21039   fi
21040
21041
21042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
21043 $as_echo_n "checking for unsigned long long int... " >&6; }
21044 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
21045   $as_echo_n "(cached) " >&6
21046 else
21047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21048 /* end confdefs.h.  */
21049
21050   /* For now, do not test the preprocessor; as of 2007 there are too many
21051          implementations with broken preprocessors.  Perhaps this can
21052          be revisited in 2012.  In the meantime, code should not expect
21053          #if to work with literals wider than 32 bits.  */
21054       /* Test literals.  */
21055       long long int ll = 9223372036854775807ll;
21056       long long int nll = -9223372036854775807LL;
21057       unsigned long long int ull = 18446744073709551615ULL;
21058       /* Test constant expressions.   */
21059       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
21060                      ? 1 : -1)];
21061       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
21062                      ? 1 : -1)];
21063       int i = 63;
21064 int
21065 main ()
21066 {
21067 /* Test availability of runtime routines for shift and division.  */
21068       long long int llmax = 9223372036854775807ll;
21069       unsigned long long int ullmax = 18446744073709551615ull;
21070       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
21071               | (llmax / ll) | (llmax % ll)
21072               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
21073               | (ullmax / ull) | (ullmax % ull));
21074   ;
21075   return 0;
21076 }
21077
21078 _ACEOF
21079 if ac_fn_c_try_link "$LINENO"; then :
21080   ac_cv_type_unsigned_long_long_int=yes
21081 else
21082   ac_cv_type_unsigned_long_long_int=no
21083 fi
21084 rm -f core conftest.err conftest.$ac_objext \
21085     conftest$ac_exeext conftest.$ac_ext
21086 fi
21087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
21088 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
21089   if test $ac_cv_type_unsigned_long_long_int = yes; then
21090
21091 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
21092
21093   fi
21094
21095
21096
21097
21098
21099
21100
21101
21102   if test $ac_cv_type_long_long_int = yes; then
21103     HAVE_LONG_LONG_INT=1
21104   else
21105     HAVE_LONG_LONG_INT=0
21106   fi
21107
21108
21109   if test $ac_cv_type_unsigned_long_long_int = yes; then
21110     HAVE_UNSIGNED_LONG_LONG_INT=1
21111   else
21112     HAVE_UNSIGNED_LONG_LONG_INT=0
21113   fi
21114
21115
21116
21117   if test $ac_cv_header_wchar_h = yes; then
21118     HAVE_WCHAR_H=1
21119   else
21120     HAVE_WCHAR_H=0
21121   fi
21122
21123
21124       if test $ac_cv_header_inttypes_h = yes; then
21125     HAVE_INTTYPES_H=1
21126   else
21127     HAVE_INTTYPES_H=0
21128   fi
21129
21130
21131       if test $ac_cv_header_sys_types_h = yes; then
21132     HAVE_SYS_TYPES_H=1
21133   else
21134     HAVE_SYS_TYPES_H=0
21135   fi
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145
21146
21147      if test $gl_cv_have_include_next = yes; then
21148        gl_cv_next_stdint_h='<'stdint.h'>'
21149      else
21150        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
21151 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
21152 if ${gl_cv_next_stdint_h+:} false; then :
21153   $as_echo_n "(cached) " >&6
21154 else
21155
21156              if test $ac_cv_header_stdint_h = yes; then
21157
21158
21159                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21160 /* end confdefs.h.  */
21161 #include <stdint.h>
21162
21163 _ACEOF
21164                                                                                                                         case "$host_os" in
21165                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
21166                  *)    gl_absname_cpp="$ac_cpp" ;;
21167                esac
21168
21169                case "$host_os" in
21170                  mingw*)
21171                                                                                                                                      gl_dirsep_regex='[/\\]'
21172                    ;;
21173                  *)
21174                    gl_dirsep_regex='\/'
21175                    ;;
21176                esac
21177                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21178
21179                gl_header_literal_regex=`echo 'stdint.h' \
21180                                         | sed -e "$gl_make_literal_regex_sed"`
21181                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21182                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21183                    s|^/[^/]|//&|
21184                    p
21185                    q
21186                  }'
21187                                                             gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21188                       sed -n "$gl_absolute_header_sed"`'"'
21189           else
21190                gl_cv_next_stdint_h='<'stdint.h'>'
21191              fi
21192
21193
21194 fi
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
21196 $as_echo "$gl_cv_next_stdint_h" >&6; }
21197      fi
21198      NEXT_STDINT_H=$gl_cv_next_stdint_h
21199
21200      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21201        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21202        gl_next_as_first_directive='<'stdint.h'>'
21203      else
21204        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21205        gl_next_as_first_directive=$gl_cv_next_stdint_h
21206      fi
21207      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
21208
21209
21210
21211
21212   if test $ac_cv_header_stdint_h = yes; then
21213     HAVE_STDINT_H=1
21214   else
21215     HAVE_STDINT_H=0
21216   fi
21217
21218
21219     if test $ac_cv_header_stdint_h = yes; then
21220     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
21221 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
21222 if ${gl_cv_header_working_stdint_h+:} false; then :
21223   $as_echo_n "(cached) " >&6
21224 else
21225   gl_cv_header_working_stdint_h=no
21226        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21227 /* end confdefs.h.  */
21228
21229
21230 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21231 #include <stdint.h>
21232 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
21233 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
21234 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
21235 #endif
21236
21237
21238   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21239      included before <wchar.h>.  */
21240   #include <stddef.h>
21241   #include <signal.h>
21242   #if HAVE_WCHAR_H
21243   # include <stdio.h>
21244   # include <time.h>
21245   # include <wchar.h>
21246   #endif
21247
21248
21249 #ifdef INT8_MAX
21250 int8_t a1 = INT8_MAX;
21251 int8_t a1min = INT8_MIN;
21252 #endif
21253 #ifdef INT16_MAX
21254 int16_t a2 = INT16_MAX;
21255 int16_t a2min = INT16_MIN;
21256 #endif
21257 #ifdef INT32_MAX
21258 int32_t a3 = INT32_MAX;
21259 int32_t a3min = INT32_MIN;
21260 #endif
21261 #ifdef INT64_MAX
21262 int64_t a4 = INT64_MAX;
21263 int64_t a4min = INT64_MIN;
21264 #endif
21265 #ifdef UINT8_MAX
21266 uint8_t b1 = UINT8_MAX;
21267 #else
21268 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
21269 #endif
21270 #ifdef UINT16_MAX
21271 uint16_t b2 = UINT16_MAX;
21272 #endif
21273 #ifdef UINT32_MAX
21274 uint32_t b3 = UINT32_MAX;
21275 #endif
21276 #ifdef UINT64_MAX
21277 uint64_t b4 = UINT64_MAX;
21278 #endif
21279 int_least8_t c1 = INT8_C (0x7f);
21280 int_least8_t c1max = INT_LEAST8_MAX;
21281 int_least8_t c1min = INT_LEAST8_MIN;
21282 int_least16_t c2 = INT16_C (0x7fff);
21283 int_least16_t c2max = INT_LEAST16_MAX;
21284 int_least16_t c2min = INT_LEAST16_MIN;
21285 int_least32_t c3 = INT32_C (0x7fffffff);
21286 int_least32_t c3max = INT_LEAST32_MAX;
21287 int_least32_t c3min = INT_LEAST32_MIN;
21288 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
21289 int_least64_t c4max = INT_LEAST64_MAX;
21290 int_least64_t c4min = INT_LEAST64_MIN;
21291 uint_least8_t d1 = UINT8_C (0xff);
21292 uint_least8_t d1max = UINT_LEAST8_MAX;
21293 uint_least16_t d2 = UINT16_C (0xffff);
21294 uint_least16_t d2max = UINT_LEAST16_MAX;
21295 uint_least32_t d3 = UINT32_C (0xffffffff);
21296 uint_least32_t d3max = UINT_LEAST32_MAX;
21297 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
21298 uint_least64_t d4max = UINT_LEAST64_MAX;
21299 int_fast8_t e1 = INT_FAST8_MAX;
21300 int_fast8_t e1min = INT_FAST8_MIN;
21301 int_fast16_t e2 = INT_FAST16_MAX;
21302 int_fast16_t e2min = INT_FAST16_MIN;
21303 int_fast32_t e3 = INT_FAST32_MAX;
21304 int_fast32_t e3min = INT_FAST32_MIN;
21305 int_fast64_t e4 = INT_FAST64_MAX;
21306 int_fast64_t e4min = INT_FAST64_MIN;
21307 uint_fast8_t f1 = UINT_FAST8_MAX;
21308 uint_fast16_t f2 = UINT_FAST16_MAX;
21309 uint_fast32_t f3 = UINT_FAST32_MAX;
21310 uint_fast64_t f4 = UINT_FAST64_MAX;
21311 #ifdef INTPTR_MAX
21312 intptr_t g = INTPTR_MAX;
21313 intptr_t gmin = INTPTR_MIN;
21314 #endif
21315 #ifdef UINTPTR_MAX
21316 uintptr_t h = UINTPTR_MAX;
21317 #endif
21318 intmax_t i = INTMAX_MAX;
21319 uintmax_t j = UINTMAX_MAX;
21320
21321 #include <limits.h> /* for CHAR_BIT */
21322 #define TYPE_MINIMUM(t) \
21323   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
21324 #define TYPE_MAXIMUM(t) \
21325   ((t) ((t) 0 < (t) -1 \
21326         ? (t) -1 \
21327         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
21328 struct s {
21329   int check_PTRDIFF:
21330       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
21331       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
21332       ? 1 : -1;
21333   /* Detect bug in FreeBSD 6.0 / ia64.  */
21334   int check_SIG_ATOMIC:
21335       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
21336       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
21337       ? 1 : -1;
21338   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
21339   int check_WCHAR:
21340       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
21341       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
21342       ? 1 : -1;
21343   /* Detect bug in mingw.  */
21344   int check_WINT:
21345       WINT_MIN == TYPE_MINIMUM (wint_t)
21346       && WINT_MAX == TYPE_MAXIMUM (wint_t)
21347       ? 1 : -1;
21348
21349   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
21350   int check_UINT8_C:
21351         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
21352   int check_UINT16_C:
21353         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
21354
21355   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
21356 #ifdef UINT8_MAX
21357   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
21358 #endif
21359 #ifdef UINT16_MAX
21360   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
21361 #endif
21362 #ifdef UINT32_MAX
21363   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
21364 #endif
21365 #ifdef UINT64_MAX
21366   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
21367 #endif
21368   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
21369   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
21370   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
21371   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
21372   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
21373   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
21374   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
21375   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
21376   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
21377   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
21378   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
21379 };
21380
21381 int
21382 main ()
21383 {
21384
21385   ;
21386   return 0;
21387 }
21388 _ACEOF
21389 if ac_fn_c_try_compile "$LINENO"; then :
21390                                                     if test "$cross_compiling" = yes; then :
21391                  gl_cv_header_working_stdint_h=yes
21392
21393 else
21394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21395 /* end confdefs.h.  */
21396
21397
21398 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21399 #include <stdint.h>
21400
21401
21402   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21403      included before <wchar.h>.  */
21404   #include <stddef.h>
21405   #include <signal.h>
21406   #if HAVE_WCHAR_H
21407   # include <stdio.h>
21408   # include <time.h>
21409   # include <wchar.h>
21410   #endif
21411
21412
21413 #include <stdio.h>
21414 #include <string.h>
21415 #define MVAL(macro) MVAL1(macro)
21416 #define MVAL1(expression) #expression
21417 static const char *macro_values[] =
21418   {
21419 #ifdef INT8_MAX
21420     MVAL (INT8_MAX),
21421 #endif
21422 #ifdef INT16_MAX
21423     MVAL (INT16_MAX),
21424 #endif
21425 #ifdef INT32_MAX
21426     MVAL (INT32_MAX),
21427 #endif
21428 #ifdef INT64_MAX
21429     MVAL (INT64_MAX),
21430 #endif
21431 #ifdef UINT8_MAX
21432     MVAL (UINT8_MAX),
21433 #endif
21434 #ifdef UINT16_MAX
21435     MVAL (UINT16_MAX),
21436 #endif
21437 #ifdef UINT32_MAX
21438     MVAL (UINT32_MAX),
21439 #endif
21440 #ifdef UINT64_MAX
21441     MVAL (UINT64_MAX),
21442 #endif
21443     NULL
21444   };
21445
21446 int
21447 main ()
21448 {
21449
21450   const char **mv;
21451   for (mv = macro_values; *mv != NULL; mv++)
21452     {
21453       const char *value = *mv;
21454       /* Test whether it looks like a cast expression.  */
21455       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
21456           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
21457           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
21458           || strncmp (value, "((int)"/*)*/, 6) == 0
21459           || strncmp (value, "((signed short)"/*)*/, 15) == 0
21460           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
21461         return mv - macro_values + 1;
21462     }
21463   return 0;
21464
21465   ;
21466   return 0;
21467 }
21468 _ACEOF
21469 if ac_fn_c_try_run "$LINENO"; then :
21470   gl_cv_header_working_stdint_h=yes
21471 fi
21472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21473   conftest.$ac_objext conftest.beam conftest.$ac_ext
21474 fi
21475
21476
21477 fi
21478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21479
21480 fi
21481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
21482 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
21483   fi
21484   if test "$gl_cv_header_working_stdint_h" = yes; then
21485     STDINT_H=
21486   else
21487             for ac_header in sys/inttypes.h sys/bitypes.h
21488 do :
21489   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21490 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21491 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21492   cat >>confdefs.h <<_ACEOF
21493 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21494 _ACEOF
21495
21496 fi
21497
21498 done
21499
21500     if test $ac_cv_header_sys_inttypes_h = yes; then
21501       HAVE_SYS_INTTYPES_H=1
21502     else
21503       HAVE_SYS_INTTYPES_H=0
21504     fi
21505
21506     if test $ac_cv_header_sys_bitypes_h = yes; then
21507       HAVE_SYS_BITYPES_H=1
21508     else
21509       HAVE_SYS_BITYPES_H=0
21510     fi
21511
21512
21513
21514
21515   if test $APPLE_UNIVERSAL_BUILD = 0; then
21516
21517
21518   for gltype in ptrdiff_t size_t ; do
21519     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
21520 $as_echo_n "checking for bit size of $gltype... " >&6; }
21521 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
21522   $as_echo_n "(cached) " >&6
21523 else
21524   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
21525   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21526      included before <wchar.h>.  */
21527   #include <stddef.h>
21528   #include <signal.h>
21529   #if HAVE_WCHAR_H
21530   # include <stdio.h>
21531   # include <time.h>
21532   # include <wchar.h>
21533   #endif
21534
21535 #include <limits.h>"; then :
21536
21537 else
21538   result=unknown
21539 fi
21540
21541        eval gl_cv_bitsizeof_${gltype}=\$result
21542
21543 fi
21544 eval ac_res=\$gl_cv_bitsizeof_${gltype}
21545                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21546 $as_echo "$ac_res" >&6; }
21547     eval result=\$gl_cv_bitsizeof_${gltype}
21548     if test $result = unknown; then
21549                                                 result=0
21550     fi
21551     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21552     cat >>confdefs.h <<_ACEOF
21553 #define BITSIZEOF_${GLTYPE} $result
21554 _ACEOF
21555
21556     eval BITSIZEOF_${GLTYPE}=\$result
21557   done
21558
21559
21560   fi
21561
21562
21563   for gltype in sig_atomic_t wchar_t wint_t ; do
21564     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
21565 $as_echo_n "checking for bit size of $gltype... " >&6; }
21566 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
21567   $as_echo_n "(cached) " >&6
21568 else
21569   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
21570   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21571      included before <wchar.h>.  */
21572   #include <stddef.h>
21573   #include <signal.h>
21574   #if HAVE_WCHAR_H
21575   # include <stdio.h>
21576   # include <time.h>
21577   # include <wchar.h>
21578   #endif
21579
21580 #include <limits.h>"; then :
21581
21582 else
21583   result=unknown
21584 fi
21585
21586        eval gl_cv_bitsizeof_${gltype}=\$result
21587
21588 fi
21589 eval ac_res=\$gl_cv_bitsizeof_${gltype}
21590                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21591 $as_echo "$ac_res" >&6; }
21592     eval result=\$gl_cv_bitsizeof_${gltype}
21593     if test $result = unknown; then
21594                                                 result=0
21595     fi
21596     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21597     cat >>confdefs.h <<_ACEOF
21598 #define BITSIZEOF_${GLTYPE} $result
21599 _ACEOF
21600
21601     eval BITSIZEOF_${GLTYPE}=\$result
21602   done
21603
21604
21605
21606
21607   for gltype in sig_atomic_t wchar_t wint_t ; do
21608     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
21609 $as_echo_n "checking whether $gltype is signed... " >&6; }
21610 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
21611   $as_echo_n "(cached) " >&6
21612 else
21613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21614 /* end confdefs.h.  */
21615
21616   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21617      included before <wchar.h>.  */
21618   #include <stddef.h>
21619   #include <signal.h>
21620   #if HAVE_WCHAR_H
21621   # include <stdio.h>
21622   # include <time.h>
21623   # include <wchar.h>
21624   #endif
21625
21626             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
21627 int
21628 main ()
21629 {
21630
21631   ;
21632   return 0;
21633 }
21634 _ACEOF
21635 if ac_fn_c_try_compile "$LINENO"; then :
21636   result=yes
21637 else
21638   result=no
21639 fi
21640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21641        eval gl_cv_type_${gltype}_signed=\$result
21642
21643 fi
21644 eval ac_res=\$gl_cv_type_${gltype}_signed
21645                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21646 $as_echo "$ac_res" >&6; }
21647     eval result=\$gl_cv_type_${gltype}_signed
21648     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21649     if test "$result" = yes; then
21650       cat >>confdefs.h <<_ACEOF
21651 #define HAVE_SIGNED_${GLTYPE} 1
21652 _ACEOF
21653
21654       eval HAVE_SIGNED_${GLTYPE}=1
21655     else
21656       eval HAVE_SIGNED_${GLTYPE}=0
21657     fi
21658   done
21659
21660
21661   gl_cv_type_ptrdiff_t_signed=yes
21662   gl_cv_type_size_t_signed=no
21663   if test $APPLE_UNIVERSAL_BUILD = 0; then
21664
21665
21666   for gltype in ptrdiff_t size_t ; do
21667     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
21668 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
21669 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
21670   $as_echo_n "(cached) " >&6
21671 else
21672   eval gl_cv_type_${gltype}_suffix=no
21673        eval result=\$gl_cv_type_${gltype}_signed
21674        if test "$result" = yes; then
21675          glsufu=
21676        else
21677          glsufu=u
21678        fi
21679        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
21680          case $glsuf in
21681            '')  gltype1='int';;
21682            l)   gltype1='long int';;
21683            ll)  gltype1='long long int';;
21684            i64) gltype1='__int64';;
21685            u)   gltype1='unsigned int';;
21686            ul)  gltype1='unsigned long int';;
21687            ull) gltype1='unsigned long long int';;
21688            ui64)gltype1='unsigned __int64';;
21689          esac
21690          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21691 /* end confdefs.h.  */
21692
21693   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21694      included before <wchar.h>.  */
21695   #include <stddef.h>
21696   #include <signal.h>
21697   #if HAVE_WCHAR_H
21698   # include <stdio.h>
21699   # include <time.h>
21700   # include <wchar.h>
21701   #endif
21702
21703               extern $gltype foo;
21704               extern $gltype1 foo;
21705 int
21706 main ()
21707 {
21708
21709   ;
21710   return 0;
21711 }
21712 _ACEOF
21713 if ac_fn_c_try_compile "$LINENO"; then :
21714   eval gl_cv_type_${gltype}_suffix=\$glsuf
21715 fi
21716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21717          eval result=\$gl_cv_type_${gltype}_suffix
21718          test "$result" != no && break
21719        done
21720 fi
21721 eval ac_res=\$gl_cv_type_${gltype}_suffix
21722                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21723 $as_echo "$ac_res" >&6; }
21724     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21725     eval result=\$gl_cv_type_${gltype}_suffix
21726     test "$result" = no && result=
21727     eval ${GLTYPE}_SUFFIX=\$result
21728     cat >>confdefs.h <<_ACEOF
21729 #define ${GLTYPE}_SUFFIX $result
21730 _ACEOF
21731
21732   done
21733
21734
21735   fi
21736
21737
21738   for gltype in sig_atomic_t wchar_t wint_t ; do
21739     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
21740 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
21741 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
21742   $as_echo_n "(cached) " >&6
21743 else
21744   eval gl_cv_type_${gltype}_suffix=no
21745        eval result=\$gl_cv_type_${gltype}_signed
21746        if test "$result" = yes; then
21747          glsufu=
21748        else
21749          glsufu=u
21750        fi
21751        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
21752          case $glsuf in
21753            '')  gltype1='int';;
21754            l)   gltype1='long int';;
21755            ll)  gltype1='long long int';;
21756            i64) gltype1='__int64';;
21757            u)   gltype1='unsigned int';;
21758            ul)  gltype1='unsigned long int';;
21759            ull) gltype1='unsigned long long int';;
21760            ui64)gltype1='unsigned __int64';;
21761          esac
21762          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21763 /* end confdefs.h.  */
21764
21765   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21766      included before <wchar.h>.  */
21767   #include <stddef.h>
21768   #include <signal.h>
21769   #if HAVE_WCHAR_H
21770   # include <stdio.h>
21771   # include <time.h>
21772   # include <wchar.h>
21773   #endif
21774
21775               extern $gltype foo;
21776               extern $gltype1 foo;
21777 int
21778 main ()
21779 {
21780
21781   ;
21782   return 0;
21783 }
21784 _ACEOF
21785 if ac_fn_c_try_compile "$LINENO"; then :
21786   eval gl_cv_type_${gltype}_suffix=\$glsuf
21787 fi
21788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21789          eval result=\$gl_cv_type_${gltype}_suffix
21790          test "$result" != no && break
21791        done
21792 fi
21793 eval ac_res=\$gl_cv_type_${gltype}_suffix
21794                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21795 $as_echo "$ac_res" >&6; }
21796     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21797     eval result=\$gl_cv_type_${gltype}_suffix
21798     test "$result" = no && result=
21799     eval ${GLTYPE}_SUFFIX=\$result
21800     cat >>confdefs.h <<_ACEOF
21801 #define ${GLTYPE}_SUFFIX $result
21802 _ACEOF
21803
21804   done
21805
21806
21807
21808           if test $BITSIZEOF_WINT_T -lt 32; then
21809     BITSIZEOF_WINT_T=32
21810   fi
21811
21812     STDINT_H=stdint.h
21813   fi
21814
21815    if test -n "$STDINT_H"; then
21816   GL_GENERATE_STDINT_H_TRUE=
21817   GL_GENERATE_STDINT_H_FALSE='#'
21818 else
21819   GL_GENERATE_STDINT_H_TRUE='#'
21820   GL_GENERATE_STDINT_H_FALSE=
21821 fi
21822
21823
21824
21825
21826
21827
21828
21829
21830
21831
21832
21833
21834
21835      if test $gl_cv_have_include_next = yes; then
21836        gl_cv_next_string_h='<'string.h'>'
21837      else
21838        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
21839 $as_echo_n "checking absolute name of <string.h>... " >&6; }
21840 if ${gl_cv_next_string_h+:} false; then :
21841   $as_echo_n "(cached) " >&6
21842 else
21843
21844                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21845 /* end confdefs.h.  */
21846 #include <string.h>
21847
21848 _ACEOF
21849                                                                                                                         case "$host_os" in
21850                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
21851                  *)    gl_absname_cpp="$ac_cpp" ;;
21852                esac
21853
21854                case "$host_os" in
21855                  mingw*)
21856                                                                                                                                      gl_dirsep_regex='[/\\]'
21857                    ;;
21858                  *)
21859                    gl_dirsep_regex='\/'
21860                    ;;
21861                esac
21862                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21863
21864                gl_header_literal_regex=`echo 'string.h' \
21865                                         | sed -e "$gl_make_literal_regex_sed"`
21866                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21867                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21868                    s|^/[^/]|//&|
21869                    p
21870                    q
21871                  }'
21872                                                             gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21873                       sed -n "$gl_absolute_header_sed"`'"'
21874
21875
21876 fi
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
21878 $as_echo "$gl_cv_next_string_h" >&6; }
21879      fi
21880      NEXT_STRING_H=$gl_cv_next_string_h
21881
21882      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21883        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21884        gl_next_as_first_directive='<'string.h'>'
21885      else
21886        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21887        gl_next_as_first_directive=$gl_cv_next_string_h
21888      fi
21889      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
21890
21891
21892
21893
21894
21895
21896     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
21897     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21898     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21899 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21900 if eval \${$as_gl_Symbol+:} false; then :
21901   $as_echo_n "(cached) " >&6
21902 else
21903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21904 /* end confdefs.h.  */
21905 #include <string.h>
21906
21907 int
21908 main ()
21909 {
21910 #undef $gl_func
21911   (void) $gl_func;
21912   ;
21913   return 0;
21914 }
21915 _ACEOF
21916 if ac_fn_c_try_compile "$LINENO"; then :
21917   eval "$as_gl_Symbol=yes"
21918 else
21919   eval "$as_gl_Symbol=no"
21920 fi
21921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21922 fi
21923 eval ac_res=\$$as_gl_Symbol
21924                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21925 $as_echo "$ac_res" >&6; }
21926     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
21927   cat >>confdefs.h <<_ACEOF
21928 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21929 _ACEOF
21930
21931                      eval ac_cv_have_decl_$gl_func=yes
21932 fi
21933       done
21934
21935
21936 ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
21937 if test "x$ac_cv_have_decl_strndup" = xyes; then :
21938   ac_have_decl=1
21939 else
21940   ac_have_decl=0
21941 fi
21942
21943 cat >>confdefs.h <<_ACEOF
21944 #define HAVE_DECL_STRNDUP $ac_have_decl
21945 _ACEOF
21946
21947
21948
21949 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
21950 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
21951   ac_have_decl=1
21952 else
21953   ac_have_decl=0
21954 fi
21955
21956 cat >>confdefs.h <<_ACEOF
21957 #define HAVE_DECL_STRNLEN $ac_have_decl
21958 _ACEOF
21959
21960
21961
21962 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21963 if test "x$ac_cv_type_pid_t" = xyes; then :
21964
21965 else
21966
21967 cat >>confdefs.h <<_ACEOF
21968 #define pid_t int
21969 _ACEOF
21970
21971 fi
21972
21973 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21974 if test "x$ac_cv_type_mode_t" = xyes; then :
21975
21976 else
21977
21978 cat >>confdefs.h <<_ACEOF
21979 #define mode_t int
21980 _ACEOF
21981
21982 fi
21983
21984
21985
21986     WINDOWS_64_BIT_OFF_T=0
21987
21988
21989
21990
21991   GNULIB_CHDIR=0;
21992   GNULIB_CHOWN=0;
21993   GNULIB_CLOSE=0;
21994   GNULIB_DUP=0;
21995   GNULIB_DUP2=0;
21996   GNULIB_DUP3=0;
21997   GNULIB_ENVIRON=0;
21998   GNULIB_EUIDACCESS=0;
21999   GNULIB_FACCESSAT=0;
22000   GNULIB_FCHDIR=0;
22001   GNULIB_FCHOWNAT=0;
22002   GNULIB_FDATASYNC=0;
22003   GNULIB_FSYNC=0;
22004   GNULIB_FTRUNCATE=0;
22005   GNULIB_GETCWD=0;
22006   GNULIB_GETDOMAINNAME=0;
22007   GNULIB_GETDTABLESIZE=0;
22008   GNULIB_GETGROUPS=0;
22009   GNULIB_GETHOSTNAME=0;
22010   GNULIB_GETLOGIN=0;
22011   GNULIB_GETLOGIN_R=0;
22012   GNULIB_GETPAGESIZE=0;
22013   GNULIB_GETUSERSHELL=0;
22014   GNULIB_GROUP_MEMBER=0;
22015   GNULIB_ISATTY=0;
22016   GNULIB_LCHOWN=0;
22017   GNULIB_LINK=0;
22018   GNULIB_LINKAT=0;
22019   GNULIB_LSEEK=0;
22020   GNULIB_PIPE=0;
22021   GNULIB_PIPE2=0;
22022   GNULIB_PREAD=0;
22023   GNULIB_PWRITE=0;
22024   GNULIB_READ=0;
22025   GNULIB_READLINK=0;
22026   GNULIB_READLINKAT=0;
22027   GNULIB_RMDIR=0;
22028   GNULIB_SETHOSTNAME=0;
22029   GNULIB_SLEEP=0;
22030   GNULIB_SYMLINK=0;
22031   GNULIB_SYMLINKAT=0;
22032   GNULIB_TTYNAME_R=0;
22033   GNULIB_UNISTD_H_NONBLOCKING=0;
22034   GNULIB_UNISTD_H_SIGPIPE=0;
22035   GNULIB_UNLINK=0;
22036   GNULIB_UNLINKAT=0;
22037   GNULIB_USLEEP=0;
22038   GNULIB_WRITE=0;
22039     HAVE_CHOWN=1;
22040   HAVE_DUP2=1;
22041   HAVE_DUP3=1;
22042   HAVE_EUIDACCESS=1;
22043   HAVE_FACCESSAT=1;
22044   HAVE_FCHDIR=1;
22045   HAVE_FCHOWNAT=1;
22046   HAVE_FDATASYNC=1;
22047   HAVE_FSYNC=1;
22048   HAVE_FTRUNCATE=1;
22049   HAVE_GETDTABLESIZE=1;
22050   HAVE_GETGROUPS=1;
22051   HAVE_GETHOSTNAME=1;
22052   HAVE_GETLOGIN=1;
22053   HAVE_GETPAGESIZE=1;
22054   HAVE_GROUP_MEMBER=1;
22055   HAVE_LCHOWN=1;
22056   HAVE_LINK=1;
22057   HAVE_LINKAT=1;
22058   HAVE_PIPE=1;
22059   HAVE_PIPE2=1;
22060   HAVE_PREAD=1;
22061   HAVE_PWRITE=1;
22062   HAVE_READLINK=1;
22063   HAVE_READLINKAT=1;
22064   HAVE_SETHOSTNAME=1;
22065   HAVE_SLEEP=1;
22066   HAVE_SYMLINK=1;
22067   HAVE_SYMLINKAT=1;
22068   HAVE_UNLINKAT=1;
22069   HAVE_USLEEP=1;
22070   HAVE_DECL_ENVIRON=1;
22071   HAVE_DECL_FCHDIR=1;
22072   HAVE_DECL_FDATASYNC=1;
22073   HAVE_DECL_GETDOMAINNAME=1;
22074   HAVE_DECL_GETLOGIN_R=1;
22075   HAVE_DECL_GETPAGESIZE=1;
22076   HAVE_DECL_GETUSERSHELL=1;
22077   HAVE_DECL_SETHOSTNAME=1;
22078   HAVE_DECL_TTYNAME_R=1;
22079   HAVE_OS_H=0;
22080   HAVE_SYS_PARAM_H=0;
22081   REPLACE_CHOWN=0;
22082   REPLACE_CLOSE=0;
22083   REPLACE_DUP=0;
22084   REPLACE_DUP2=0;
22085   REPLACE_FCHOWNAT=0;
22086   REPLACE_FTRUNCATE=0;
22087   REPLACE_GETCWD=0;
22088   REPLACE_GETDOMAINNAME=0;
22089   REPLACE_GETLOGIN_R=0;
22090   REPLACE_GETGROUPS=0;
22091   REPLACE_GETPAGESIZE=0;
22092   REPLACE_ISATTY=0;
22093   REPLACE_LCHOWN=0;
22094   REPLACE_LINK=0;
22095   REPLACE_LINKAT=0;
22096   REPLACE_LSEEK=0;
22097   REPLACE_PREAD=0;
22098   REPLACE_PWRITE=0;
22099   REPLACE_READ=0;
22100   REPLACE_READLINK=0;
22101   REPLACE_RMDIR=0;
22102   REPLACE_SLEEP=0;
22103   REPLACE_SYMLINK=0;
22104   REPLACE_TTYNAME_R=0;
22105   REPLACE_UNLINK=0;
22106   REPLACE_UNLINKAT=0;
22107   REPLACE_USLEEP=0;
22108   REPLACE_WRITE=0;
22109   UNISTD_H_HAVE_WINSOCK2_H=0;
22110   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
22111
22112
22113
22114
22115
22116
22117
22118   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
22119 $as_echo_n "checking for wint_t... " >&6; }
22120 if ${gt_cv_c_wint_t+:} false; then :
22121   $as_echo_n "(cached) " >&6
22122 else
22123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22124 /* end confdefs.h.  */
22125
22126 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22127    <wchar.h>.
22128    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
22129    before <wchar.h>.  */
22130 #include <stddef.h>
22131 #include <stdio.h>
22132 #include <time.h>
22133 #include <wchar.h>
22134        wint_t foo = (wchar_t)'\0';
22135 int
22136 main ()
22137 {
22138
22139   ;
22140   return 0;
22141 }
22142 _ACEOF
22143 if ac_fn_c_try_compile "$LINENO"; then :
22144   gt_cv_c_wint_t=yes
22145 else
22146   gt_cv_c_wint_t=no
22147 fi
22148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22149 fi
22150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
22151 $as_echo "$gt_cv_c_wint_t" >&6; }
22152   if test $gt_cv_c_wint_t = yes; then
22153
22154 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
22155
22156   fi
22157
22158
22159
22160
22161
22162   if test $ac_cv_header_features_h = yes; then
22163     HAVE_FEATURES_H=1
22164   else
22165     HAVE_FEATURES_H=0
22166   fi
22167
22168
22169
22170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
22171 $as_echo_n "checking for inttypes.h... " >&6; }
22172 if ${gl_cv_header_inttypes_h+:} false; then :
22173   $as_echo_n "(cached) " >&6
22174 else
22175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22176 /* end confdefs.h.  */
22177 #include <sys/types.h>
22178 #include <inttypes.h>
22179 int
22180 main ()
22181 {
22182 uintmax_t i = (uintmax_t) -1; return !i;
22183   ;
22184   return 0;
22185 }
22186 _ACEOF
22187 if ac_fn_c_try_compile "$LINENO"; then :
22188   gl_cv_header_inttypes_h=yes
22189 else
22190   gl_cv_header_inttypes_h=no
22191 fi
22192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22193 fi
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
22195 $as_echo "$gl_cv_header_inttypes_h" >&6; }
22196   if test $gl_cv_header_inttypes_h = yes; then
22197
22198 cat >>confdefs.h <<_ACEOF
22199 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
22200 _ACEOF
22201
22202   fi
22203
22204
22205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
22206 $as_echo_n "checking for stdint.h... " >&6; }
22207 if ${gl_cv_header_stdint_h+:} false; then :
22208   $as_echo_n "(cached) " >&6
22209 else
22210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22211 /* end confdefs.h.  */
22212 #include <sys/types.h>
22213 #include <stdint.h>
22214 int
22215 main ()
22216 {
22217 uintmax_t i = (uintmax_t) -1; return !i;
22218   ;
22219   return 0;
22220 }
22221 _ACEOF
22222 if ac_fn_c_try_compile "$LINENO"; then :
22223   gl_cv_header_stdint_h=yes
22224 else
22225   gl_cv_header_stdint_h=no
22226 fi
22227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22228 fi
22229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
22230 $as_echo "$gl_cv_header_stdint_h" >&6; }
22231   if test $gl_cv_header_stdint_h = yes; then
22232
22233 cat >>confdefs.h <<_ACEOF
22234 #define HAVE_STDINT_H_WITH_UINTMAX 1
22235 _ACEOF
22236
22237   fi
22238
22239
22240
22241
22242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
22243 $as_echo_n "checking for intmax_t... " >&6; }
22244 if ${gt_cv_c_intmax_t+:} false; then :
22245   $as_echo_n "(cached) " >&6
22246 else
22247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22248 /* end confdefs.h.  */
22249
22250 #include <stddef.h>
22251 #include <stdlib.h>
22252 #if HAVE_STDINT_H_WITH_UINTMAX
22253 #include <stdint.h>
22254 #endif
22255 #if HAVE_INTTYPES_H_WITH_UINTMAX
22256 #include <inttypes.h>
22257 #endif
22258
22259 int
22260 main ()
22261 {
22262 intmax_t x = -1; return !x;
22263   ;
22264   return 0;
22265 }
22266 _ACEOF
22267 if ac_fn_c_try_compile "$LINENO"; then :
22268   gt_cv_c_intmax_t=yes
22269 else
22270   gt_cv_c_intmax_t=no
22271 fi
22272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22273 fi
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
22275 $as_echo "$gt_cv_c_intmax_t" >&6; }
22276   if test $gt_cv_c_intmax_t = yes; then
22277
22278 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22279
22280   else
22281
22282     test $ac_cv_type_long_long_int = yes \
22283       && ac_type='long long' \
22284       || ac_type='long'
22285
22286 cat >>confdefs.h <<_ACEOF
22287 #define intmax_t $ac_type
22288 _ACEOF
22289
22290   fi
22291
22292
22293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
22294 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
22295 if ${gl_cv_cc_double_expbit0+:} false; then :
22296   $as_echo_n "(cached) " >&6
22297 else
22298
22299       if test "$cross_compiling" = yes; then :
22300
22301                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22302 /* end confdefs.h.  */
22303
22304 #if defined arm || defined __arm || defined __arm__
22305   mixed_endianness
22306 #endif
22307
22308 _ACEOF
22309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22310   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
22311   gl_cv_cc_double_expbit0="unknown"
22312 else
22313
22314                                                          :
22315 if ${ac_cv_c_bigendian+:} false; then :
22316   $as_echo_n "(cached) " >&6
22317 else
22318   ac_cv_c_bigendian=unknown
22319     # See if we're dealing with a universal compiler.
22320     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22321 /* end confdefs.h.  */
22322 #ifndef __APPLE_CC__
22323                not a universal capable compiler
22324              #endif
22325              typedef int dummy;
22326
22327 _ACEOF
22328 if ac_fn_c_try_compile "$LINENO"; then :
22329
22330         # Check for potential -arch flags.  It is not universal unless
22331         # there are at least two -arch flags with different values.
22332         ac_arch=
22333         ac_prev=
22334         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22335          if test -n "$ac_prev"; then
22336            case $ac_word in
22337              i?86 | x86_64 | ppc | ppc64)
22338                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22339                  ac_arch=$ac_word
22340                else
22341                  ac_cv_c_bigendian=universal
22342                  break
22343                fi
22344                ;;
22345            esac
22346            ac_prev=
22347          elif test "x$ac_word" = "x-arch"; then
22348            ac_prev=arch
22349          fi
22350        done
22351 fi
22352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22353     if test $ac_cv_c_bigendian = unknown; then
22354       # See if sys/param.h defines the BYTE_ORDER macro.
22355       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22356 /* end confdefs.h.  */
22357 #include <sys/types.h>
22358              #include <sys/param.h>
22359
22360 int
22361 main ()
22362 {
22363 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22364                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22365                      && LITTLE_ENDIAN)
22366               bogus endian macros
22367              #endif
22368
22369   ;
22370   return 0;
22371 }
22372 _ACEOF
22373 if ac_fn_c_try_compile "$LINENO"; then :
22374   # It does; now see whether it defined to BIG_ENDIAN or not.
22375          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22376 /* end confdefs.h.  */
22377 #include <sys/types.h>
22378                 #include <sys/param.h>
22379
22380 int
22381 main ()
22382 {
22383 #if BYTE_ORDER != BIG_ENDIAN
22384                  not big endian
22385                 #endif
22386
22387   ;
22388   return 0;
22389 }
22390 _ACEOF
22391 if ac_fn_c_try_compile "$LINENO"; then :
22392   ac_cv_c_bigendian=yes
22393 else
22394   ac_cv_c_bigendian=no
22395 fi
22396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22397 fi
22398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22399     fi
22400     if test $ac_cv_c_bigendian = unknown; then
22401       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22402       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22403 /* end confdefs.h.  */
22404 #include <limits.h>
22405
22406 int
22407 main ()
22408 {
22409 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22410               bogus endian macros
22411              #endif
22412
22413   ;
22414   return 0;
22415 }
22416 _ACEOF
22417 if ac_fn_c_try_compile "$LINENO"; then :
22418   # It does; now see whether it defined to _BIG_ENDIAN or not.
22419          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22420 /* end confdefs.h.  */
22421 #include <limits.h>
22422
22423 int
22424 main ()
22425 {
22426 #ifndef _BIG_ENDIAN
22427                  not big endian
22428                 #endif
22429
22430   ;
22431   return 0;
22432 }
22433 _ACEOF
22434 if ac_fn_c_try_compile "$LINENO"; then :
22435   ac_cv_c_bigendian=yes
22436 else
22437   ac_cv_c_bigendian=no
22438 fi
22439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22440 fi
22441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22442     fi
22443     if test $ac_cv_c_bigendian = unknown; then
22444       # Compile a test program.
22445       if test "$cross_compiling" = yes; then :
22446   # Try to guess by grepping values from an object file.
22447          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22448 /* end confdefs.h.  */
22449 short int ascii_mm[] =
22450                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22451                 short int ascii_ii[] =
22452                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22453                 int use_ascii (int i) {
22454                   return ascii_mm[i] + ascii_ii[i];
22455                 }
22456                 short int ebcdic_ii[] =
22457                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22458                 short int ebcdic_mm[] =
22459                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22460                 int use_ebcdic (int i) {
22461                   return ebcdic_mm[i] + ebcdic_ii[i];
22462                 }
22463                 extern int foo;
22464
22465 int
22466 main ()
22467 {
22468 return use_ascii (foo) == use_ebcdic (foo);
22469   ;
22470   return 0;
22471 }
22472 _ACEOF
22473 if ac_fn_c_try_compile "$LINENO"; then :
22474   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22475               ac_cv_c_bigendian=yes
22476             fi
22477             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22478               if test "$ac_cv_c_bigendian" = unknown; then
22479                 ac_cv_c_bigendian=no
22480               else
22481                 # finding both strings is unlikely to happen, but who knows?
22482                 ac_cv_c_bigendian=unknown
22483               fi
22484             fi
22485 fi
22486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22487 else
22488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22489 /* end confdefs.h.  */
22490 $ac_includes_default
22491 int
22492 main ()
22493 {
22494
22495              /* Are we little or big endian?  From Harbison&Steele.  */
22496              union
22497              {
22498                long int l;
22499                char c[sizeof (long int)];
22500              } u;
22501              u.l = 1;
22502              return u.c[sizeof (long int) - 1] == 1;
22503
22504   ;
22505   return 0;
22506 }
22507 _ACEOF
22508 if ac_fn_c_try_run "$LINENO"; then :
22509   ac_cv_c_bigendian=no
22510 else
22511   ac_cv_c_bigendian=yes
22512 fi
22513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22514   conftest.$ac_objext conftest.beam conftest.$ac_ext
22515 fi
22516
22517     fi
22518 fi
22519 :
22520  case $ac_cv_c_bigendian in #(
22521    yes)
22522      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
22523    no)
22524      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
22525    universal)
22526
22527 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22528
22529      ;; #(
22530    *)
22531      gl_cv_cc_double_expbit0="unknown" ;;
22532  esac
22533
22534
22535 fi
22536 rm -f conftest*
22537
22538
22539 else
22540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22541 /* end confdefs.h.  */
22542
22543 #include <float.h>
22544 #include <stddef.h>
22545 #include <stdio.h>
22546 #include <string.h>
22547 #define NWORDS \
22548   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
22549 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
22550 static unsigned int ored_words[NWORDS];
22551 static unsigned int anded_words[NWORDS];
22552 static void add_to_ored_words (double x)
22553 {
22554   memory_double m;
22555   size_t i;
22556   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
22557   memset (&m, 0, sizeof (memory_double));
22558   m.value = x;
22559   for (i = 0; i < NWORDS; i++)
22560     {
22561       ored_words[i] |= m.word[i];
22562       anded_words[i] &= m.word[i];
22563     }
22564 }
22565 int main ()
22566 {
22567   size_t j;
22568   FILE *fp = fopen ("conftest.out", "w");
22569   if (fp == NULL)
22570     return 1;
22571   for (j = 0; j < NWORDS; j++)
22572     anded_words[j] = ~ (unsigned int) 0;
22573   add_to_ored_words (0.25);
22574   add_to_ored_words (0.5);
22575   add_to_ored_words (1.0);
22576   add_to_ored_words (2.0);
22577   add_to_ored_words (4.0);
22578   /* Remove bits that are common (e.g. if representation of the first mantissa
22579      bit is explicit).  */
22580   for (j = 0; j < NWORDS; j++)
22581     ored_words[j] &= ~anded_words[j];
22582   /* Now find the nonzero word.  */
22583   for (j = 0; j < NWORDS; j++)
22584     if (ored_words[j] != 0)
22585       break;
22586   if (j < NWORDS)
22587     {
22588       size_t i;
22589       for (i = j + 1; i < NWORDS; i++)
22590         if (ored_words[i] != 0)
22591           {
22592             fprintf (fp, "unknown");
22593             return (fclose (fp) != 0);
22594           }
22595       for (i = 0; ; i++)
22596         if ((ored_words[j] >> i) & 1)
22597           {
22598             fprintf (fp, "word %d bit %d", (int) j, (int) i);
22599             return (fclose (fp) != 0);
22600           }
22601     }
22602   fprintf (fp, "unknown");
22603   return (fclose (fp) != 0);
22604 }
22605
22606 _ACEOF
22607 if ac_fn_c_try_run "$LINENO"; then :
22608   gl_cv_cc_double_expbit0=`cat conftest.out`
22609 else
22610   gl_cv_cc_double_expbit0="unknown"
22611 fi
22612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22613   conftest.$ac_objext conftest.beam conftest.$ac_ext
22614 fi
22615
22616       rm -f conftest.out
22617
22618 fi
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
22620 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
22621   case "$gl_cv_cc_double_expbit0" in
22622     word*bit*)
22623       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
22624       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
22625
22626 cat >>confdefs.h <<_ACEOF
22627 #define DBL_EXPBIT0_WORD $word
22628 _ACEOF
22629
22630
22631 cat >>confdefs.h <<_ACEOF
22632 #define DBL_EXPBIT0_BIT $bit
22633 _ACEOF
22634
22635       ;;
22636   esac
22637
22638
22639
22640
22641
22642
22643
22644
22645
22646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
22647 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
22648 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
22649   $as_echo_n "(cached) " >&6
22650 else
22651
22652       if test "$cross_compiling" = yes; then :
22653
22654          case "$host_os" in
22655                                  # Guess yes on glibc systems.
22656            *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
22657                                  # Guess yes on FreeBSD >= 5.
22658            freebsd[1-4]*)        gl_cv_func_snprintf_retval_c99="guessing no";;
22659            freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
22660                                  # Guess yes on MacOS X >= 10.3.
22661            darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
22662            darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
22663                                  # Guess yes on OpenBSD >= 3.9.
22664            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
22665                                  gl_cv_func_snprintf_retval_c99="guessing no";;
22666            openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
22667                                  # Guess yes on Solaris >= 2.10.
22668            solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
22669            solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
22670                                  # Guess yes on AIX >= 4.
22671            aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
22672            aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
22673                                  # Guess yes on NetBSD >= 3.
22674            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
22675                                  gl_cv_func_snprintf_retval_c99="guessing no";;
22676            netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
22677                                  # Guess yes on BeOS.
22678            beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
22679                                  # If we don't know, assume the worst.
22680            *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
22681          esac
22682
22683 else
22684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22685 /* end confdefs.h.  */
22686
22687 #include <stdio.h>
22688 #include <string.h>
22689 #if HAVE_SNPRINTF
22690 # define my_snprintf snprintf
22691 #else
22692 # include <stdarg.h>
22693 static int my_snprintf (char *buf, int size, const char *format, ...)
22694 {
22695   va_list args;
22696   int ret;
22697   va_start (args, format);
22698   ret = vsnprintf (buf, size, format, args);
22699   va_end (args);
22700   return ret;
22701 }
22702 #endif
22703 static char buf[100];
22704 int main ()
22705 {
22706   strcpy (buf, "ABCDEF");
22707   if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
22708     return 1;
22709   if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
22710     return 2;
22711   if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
22712     return 3;
22713   return 0;
22714 }
22715 _ACEOF
22716 if ac_fn_c_try_run "$LINENO"; then :
22717   gl_cv_func_snprintf_retval_c99=yes
22718 else
22719   gl_cv_func_snprintf_retval_c99=no
22720 fi
22721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22722   conftest.$ac_objext conftest.beam conftest.$ac_ext
22723 fi
22724
22725
22726 fi
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
22728 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
22729
22730
22731
22732
22733
22734
22735
22736   for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
22737 do :
22738   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22739 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22740 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22741   cat >>confdefs.h <<_ACEOF
22742 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22743 _ACEOF
22744
22745 fi
22746 done
22747
22748       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
22749 "
22750 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
22751   ac_have_decl=1
22752 else
22753   ac_have_decl=0
22754 fi
22755
22756 cat >>confdefs.h <<_ACEOF
22757 #define HAVE_DECL__SNPRINTF $ac_have_decl
22758 _ACEOF
22759
22760
22761
22762   case "$gl_cv_func_snprintf_retval_c99" in
22763     *yes)
22764
22765 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
22766
22767       ;;
22768   esac
22769
22770
22771   XGETTEXT_EXTRA_OPTIONS=
22772
22773
22774   GNULIB_BTOWC=0;
22775   GNULIB_WCTOB=0;
22776   GNULIB_MBSINIT=0;
22777   GNULIB_MBRTOWC=0;
22778   GNULIB_MBRLEN=0;
22779   GNULIB_MBSRTOWCS=0;
22780   GNULIB_MBSNRTOWCS=0;
22781   GNULIB_WCRTOMB=0;
22782   GNULIB_WCSRTOMBS=0;
22783   GNULIB_WCSNRTOMBS=0;
22784   GNULIB_WCWIDTH=0;
22785   GNULIB_WMEMCHR=0;
22786   GNULIB_WMEMCMP=0;
22787   GNULIB_WMEMCPY=0;
22788   GNULIB_WMEMMOVE=0;
22789   GNULIB_WMEMSET=0;
22790   GNULIB_WCSLEN=0;
22791   GNULIB_WCSNLEN=0;
22792   GNULIB_WCSCPY=0;
22793   GNULIB_WCPCPY=0;
22794   GNULIB_WCSNCPY=0;
22795   GNULIB_WCPNCPY=0;
22796   GNULIB_WCSCAT=0;
22797   GNULIB_WCSNCAT=0;
22798   GNULIB_WCSCMP=0;
22799   GNULIB_WCSNCMP=0;
22800   GNULIB_WCSCASECMP=0;
22801   GNULIB_WCSNCASECMP=0;
22802   GNULIB_WCSCOLL=0;
22803   GNULIB_WCSXFRM=0;
22804   GNULIB_WCSDUP=0;
22805   GNULIB_WCSCHR=0;
22806   GNULIB_WCSRCHR=0;
22807   GNULIB_WCSCSPN=0;
22808   GNULIB_WCSSPN=0;
22809   GNULIB_WCSPBRK=0;
22810   GNULIB_WCSSTR=0;
22811   GNULIB_WCSTOK=0;
22812   GNULIB_WCSWIDTH=0;
22813     HAVE_BTOWC=1;
22814   HAVE_MBSINIT=1;
22815   HAVE_MBRTOWC=1;
22816   HAVE_MBRLEN=1;
22817   HAVE_MBSRTOWCS=1;
22818   HAVE_MBSNRTOWCS=1;
22819   HAVE_WCRTOMB=1;
22820   HAVE_WCSRTOMBS=1;
22821   HAVE_WCSNRTOMBS=1;
22822   HAVE_WMEMCHR=1;
22823   HAVE_WMEMCMP=1;
22824   HAVE_WMEMCPY=1;
22825   HAVE_WMEMMOVE=1;
22826   HAVE_WMEMSET=1;
22827   HAVE_WCSLEN=1;
22828   HAVE_WCSNLEN=1;
22829   HAVE_WCSCPY=1;
22830   HAVE_WCPCPY=1;
22831   HAVE_WCSNCPY=1;
22832   HAVE_WCPNCPY=1;
22833   HAVE_WCSCAT=1;
22834   HAVE_WCSNCAT=1;
22835   HAVE_WCSCMP=1;
22836   HAVE_WCSNCMP=1;
22837   HAVE_WCSCASECMP=1;
22838   HAVE_WCSNCASECMP=1;
22839   HAVE_WCSCOLL=1;
22840   HAVE_WCSXFRM=1;
22841   HAVE_WCSDUP=1;
22842   HAVE_WCSCHR=1;
22843   HAVE_WCSRCHR=1;
22844   HAVE_WCSCSPN=1;
22845   HAVE_WCSSPN=1;
22846   HAVE_WCSPBRK=1;
22847   HAVE_WCSSTR=1;
22848   HAVE_WCSTOK=1;
22849   HAVE_WCSWIDTH=1;
22850   HAVE_DECL_WCTOB=1;
22851   HAVE_DECL_WCWIDTH=1;
22852   REPLACE_MBSTATE_T=0;
22853   REPLACE_BTOWC=0;
22854   REPLACE_WCTOB=0;
22855   REPLACE_MBSINIT=0;
22856   REPLACE_MBRTOWC=0;
22857   REPLACE_MBRLEN=0;
22858   REPLACE_MBSRTOWCS=0;
22859   REPLACE_MBSNRTOWCS=0;
22860   REPLACE_WCRTOMB=0;
22861   REPLACE_WCSRTOMBS=0;
22862   REPLACE_WCSNRTOMBS=0;
22863   REPLACE_WCWIDTH=0;
22864   REPLACE_WCSWIDTH=0;
22865
22866
22867             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
22868 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
22869 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
22870   $as_echo_n "(cached) " >&6
22871 else
22872   gl_cv_header_wchar_h_correct_inline=yes
22873      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22874 /* end confdefs.h.  */
22875
22876        #define wcstod renamed_wcstod
22877 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22878    <wchar.h>.
22879    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22880    included before <wchar.h>.  */
22881 #include <stddef.h>
22882 #include <stdio.h>
22883 #include <time.h>
22884 #include <wchar.h>
22885 extern int zero (void);
22886 int main () { return zero(); }
22887
22888 _ACEOF
22889      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22890   (eval $ac_compile) 2>&5
22891   ac_status=$?
22892   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22893   test $ac_status = 0; }; then
22894        mv conftest.$ac_objext conftest1.$ac_objext
22895        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22896 /* end confdefs.h.  */
22897
22898          #define wcstod renamed_wcstod
22899 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22900    <wchar.h>.
22901    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22902    included before <wchar.h>.  */
22903 #include <stddef.h>
22904 #include <stdio.h>
22905 #include <time.h>
22906 #include <wchar.h>
22907 int zero (void) { return 0; }
22908
22909 _ACEOF
22910        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22911   (eval $ac_compile) 2>&5
22912   ac_status=$?
22913   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22914   test $ac_status = 0; }; then
22915          mv conftest.$ac_objext conftest2.$ac_objext
22916          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
22917            :
22918          else
22919            gl_cv_header_wchar_h_correct_inline=no
22920          fi
22921        fi
22922      fi
22923      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
22924
22925 fi
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
22927 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
22928   if test $gl_cv_header_wchar_h_correct_inline = no; then
22929     as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
22930 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
22931 C99 mode. You have four options:
22932   - Add the flag -fgnu89-inline to CC and reconfigure, or
22933   - Fix your include files, using parts of
22934     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
22935   - Use a gcc version older than 4.3, or
22936   - Don't use the flags -std=c99 or -std=gnu99.
22937 Configuration aborted." "$LINENO" 5
22938   fi
22939
22940
22941
22942
22943
22944   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
22945     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
22946
22947 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
22948
22949   else
22950     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
22951   fi
22952
22953
22954
22955
22956
22957   GNULIB_IMAXABS=0;
22958   GNULIB_IMAXDIV=0;
22959   GNULIB_STRTOIMAX=0;
22960   GNULIB_STRTOUMAX=0;
22961     HAVE_DECL_IMAXABS=1;
22962   HAVE_DECL_IMAXDIV=1;
22963   HAVE_DECL_STRTOIMAX=1;
22964   HAVE_DECL_STRTOUMAX=1;
22965   REPLACE_STRTOIMAX=0;
22966   INT32_MAX_LT_INTMAX_MAX=1;
22967   INT64_MAX_EQ_LONG_MAX='defined _LP64';
22968   PRI_MACROS_BROKEN=0;
22969   PRIPTR_PREFIX=__PRIPTR_PREFIX;
22970   UINT32_MAX_LT_UINTMAX_MAX=1;
22971   UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
22972
22973
22974
22975
22976
22977
22978
22979
22980
22981
22982
22983
22984
22985
22986
22987      if test $gl_cv_have_include_next = yes; then
22988        gl_cv_next_inttypes_h='<'inttypes.h'>'
22989      else
22990        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
22991 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
22992 if ${gl_cv_next_inttypes_h+:} false; then :
22993   $as_echo_n "(cached) " >&6
22994 else
22995
22996              if test $ac_cv_header_inttypes_h = yes; then
22997
22998
22999                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23000 /* end confdefs.h.  */
23001 #include <inttypes.h>
23002
23003 _ACEOF
23004                                                                                                                         case "$host_os" in
23005                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
23006                  *)    gl_absname_cpp="$ac_cpp" ;;
23007                esac
23008
23009                case "$host_os" in
23010                  mingw*)
23011                                                                                                                                      gl_dirsep_regex='[/\\]'
23012                    ;;
23013                  *)
23014                    gl_dirsep_regex='\/'
23015                    ;;
23016                esac
23017                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23018
23019                gl_header_literal_regex=`echo 'inttypes.h' \
23020                                         | sed -e "$gl_make_literal_regex_sed"`
23021                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23022                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23023                    s|^/[^/]|//&|
23024                    p
23025                    q
23026                  }'
23027                                                             gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23028                       sed -n "$gl_absolute_header_sed"`'"'
23029           else
23030                gl_cv_next_inttypes_h='<'inttypes.h'>'
23031              fi
23032
23033
23034 fi
23035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
23036 $as_echo "$gl_cv_next_inttypes_h" >&6; }
23037      fi
23038      NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
23039
23040      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23041        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23042        gl_next_as_first_directive='<'inttypes.h'>'
23043      else
23044        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23045        gl_next_as_first_directive=$gl_cv_next_inttypes_h
23046      fi
23047      NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
23048
23049
23050
23051
23052
23053
23054
23055
23056     for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
23057     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23058     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23059 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23060 if eval \${$as_gl_Symbol+:} false; then :
23061   $as_echo_n "(cached) " >&6
23062 else
23063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23064 /* end confdefs.h.  */
23065 #include <inttypes.h>
23066
23067 int
23068 main ()
23069 {
23070 #undef $gl_func
23071   (void) $gl_func;
23072   ;
23073   return 0;
23074 }
23075 _ACEOF
23076 if ac_fn_c_try_compile "$LINENO"; then :
23077   eval "$as_gl_Symbol=yes"
23078 else
23079   eval "$as_gl_Symbol=no"
23080 fi
23081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23082 fi
23083 eval ac_res=\$$as_gl_Symbol
23084                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23085 $as_echo "$ac_res" >&6; }
23086     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23087   cat >>confdefs.h <<_ACEOF
23088 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23089 _ACEOF
23090
23091                      eval ac_cv_have_decl_$gl_func=yes
23092 fi
23093       done
23094
23095
23096
23097   for ac_header in inttypes.h
23098 do :
23099   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23100 if test "x$ac_cv_header_inttypes_h" = xyes; then :
23101   cat >>confdefs.h <<_ACEOF
23102 #define HAVE_INTTYPES_H 1
23103 _ACEOF
23104
23105 fi
23106
23107 done
23108
23109   if test $ac_cv_header_inttypes_h = yes; then
23110     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
23111 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
23112 if ${gt_cv_inttypes_pri_broken+:} false; then :
23113   $as_echo_n "(cached) " >&6
23114 else
23115
23116         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23117 /* end confdefs.h.  */
23118 #include <inttypes.h>
23119 #ifdef PRId32
23120 char *p = PRId32;
23121 #endif
23122
23123 int
23124 main ()
23125 {
23126
23127   ;
23128   return 0;
23129 }
23130 _ACEOF
23131 if ac_fn_c_try_compile "$LINENO"; then :
23132   gt_cv_inttypes_pri_broken=no
23133 else
23134   gt_cv_inttypes_pri_broken=yes
23135 fi
23136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23137
23138 fi
23139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
23140 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
23141   fi
23142   if test "$gt_cv_inttypes_pri_broken" = yes; then
23143
23144 cat >>confdefs.h <<_ACEOF
23145 #define PRI_MACROS_BROKEN 1
23146 _ACEOF
23147
23148     PRI_MACROS_BROKEN=1
23149   else
23150     PRI_MACROS_BROKEN=0
23151   fi
23152
23153
23154 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
23155 if test "x$ac_cv_have_decl_alarm" = xyes; then :
23156   ac_have_decl=1
23157 else
23158   ac_have_decl=0
23159 fi
23160
23161 cat >>confdefs.h <<_ACEOF
23162 #define HAVE_DECL_ALARM $ac_have_decl
23163 _ACEOF
23164
23165
23166    if true; then
23167   GL_COND_LIBTOOL_TRUE=
23168   GL_COND_LIBTOOL_FALSE='#'
23169 else
23170   GL_COND_LIBTOOL_TRUE='#'
23171   GL_COND_LIBTOOL_FALSE=
23172 fi
23173
23174   gl_cond_libtool=true
23175   gl_m4_base='gl/m4'
23176
23177
23178
23179
23180
23181
23182
23183
23184
23185   gl_source_base='gl'
23186
23187
23188   if test $ac_cv_func_alloca_works = no; then
23189     :
23190   fi
23191
23192   # Define an additional variable used in the Makefile substitution.
23193   if test $ac_cv_working_alloca_h = yes; then
23194     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
23195 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
23196 if ${gl_cv_rpl_alloca+:} false; then :
23197   $as_echo_n "(cached) " >&6
23198 else
23199
23200       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23201 /* end confdefs.h.  */
23202
23203 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
23204         Need own alloca
23205 #endif
23206
23207 _ACEOF
23208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23209   $EGREP "Need own alloca" >/dev/null 2>&1; then :
23210   gl_cv_rpl_alloca=yes
23211 else
23212   gl_cv_rpl_alloca=no
23213 fi
23214 rm -f conftest*
23215
23216
23217 fi
23218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
23219 $as_echo "$gl_cv_rpl_alloca" >&6; }
23220     if test $gl_cv_rpl_alloca = yes; then
23221
23222 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
23223
23224       ALLOCA_H=alloca.h
23225     else
23226                   ALLOCA_H=
23227     fi
23228   else
23229     ALLOCA_H=alloca.h
23230   fi
23231
23232    if test -n "$ALLOCA_H"; then
23233   GL_GENERATE_ALLOCA_H_TRUE=
23234   GL_GENERATE_ALLOCA_H_FALSE='#'
23235 else
23236   GL_GENERATE_ALLOCA_H_TRUE='#'
23237   GL_GENERATE_ALLOCA_H_FALSE=
23238 fi
23239
23240
23241
23242
23243
23244
23245
23246
23247
23248
23249 # Check whether --with-libgcrypt was given.
23250 if test "${with_libgcrypt+set}" = set; then :
23251   withval=$with_libgcrypt; libgcrypt=$withval
23252 else
23253   libgcrypt=yes
23254 fi
23255
23256   if test "$libgcrypt" != no; then
23257
23258
23259
23260
23261
23262
23263
23264
23265
23266
23267
23268
23269
23270     use_additional=yes
23271
23272   acl_save_prefix="$prefix"
23273   prefix="$acl_final_prefix"
23274   acl_save_exec_prefix="$exec_prefix"
23275   exec_prefix="$acl_final_exec_prefix"
23276
23277     eval additional_includedir=\"$includedir\"
23278     eval additional_libdir=\"$libdir\"
23279
23280   exec_prefix="$acl_save_exec_prefix"
23281   prefix="$acl_save_prefix"
23282
23283
23284 # Check whether --with-libgcrypt-prefix was given.
23285 if test "${with_libgcrypt_prefix+set}" = set; then :
23286   withval=$with_libgcrypt_prefix;
23287     if test "X$withval" = "Xno"; then
23288       use_additional=no
23289     else
23290       if test "X$withval" = "X"; then
23291
23292   acl_save_prefix="$prefix"
23293   prefix="$acl_final_prefix"
23294   acl_save_exec_prefix="$exec_prefix"
23295   exec_prefix="$acl_final_exec_prefix"
23296
23297           eval additional_includedir=\"$includedir\"
23298           eval additional_libdir=\"$libdir\"
23299
23300   exec_prefix="$acl_save_exec_prefix"
23301   prefix="$acl_save_prefix"
23302
23303       else
23304         additional_includedir="$withval/include"
23305         additional_libdir="$withval/$acl_libdirstem"
23306         if test "$acl_libdirstem2" != "$acl_libdirstem" \
23307            && ! test -d "$withval/$acl_libdirstem"; then
23308           additional_libdir="$withval/$acl_libdirstem2"
23309         fi
23310       fi
23311     fi
23312
23313 fi
23314
23315       LIBGCRYPT=
23316   LTLIBGCRYPT=
23317   INCGCRYPT=
23318   LIBGCRYPT_PREFIX=
23319       HAVE_LIBGCRYPT=
23320   rpathdirs=
23321   ltrpathdirs=
23322   names_already_handled=
23323   names_next_round='gcrypt gpg-error'
23324   while test -n "$names_next_round"; do
23325     names_this_round="$names_next_round"
23326     names_next_round=
23327     for name in $names_this_round; do
23328       already_handled=
23329       for n in $names_already_handled; do
23330         if test "$n" = "$name"; then
23331           already_handled=yes
23332           break
23333         fi
23334       done
23335       if test -z "$already_handled"; then
23336         names_already_handled="$names_already_handled $name"
23337                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23338         eval value=\"\$HAVE_LIB$uppername\"
23339         if test -n "$value"; then
23340           if test "$value" = yes; then
23341             eval value=\"\$LIB$uppername\"
23342             test -z "$value" || LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$value"
23343             eval value=\"\$LTLIB$uppername\"
23344             test -z "$value" || LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }$value"
23345           else
23346                                     :
23347           fi
23348         else
23349                               found_dir=
23350           found_la=
23351           found_so=
23352           found_a=
23353           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
23354           if test -n "$acl_shlibext"; then
23355             shrext=".$acl_shlibext"             # typically: shrext=.so
23356           else
23357             shrext=
23358           fi
23359           if test $use_additional = yes; then
23360             dir="$additional_libdir"
23361                                     if test -n "$acl_shlibext"; then
23362               if test -f "$dir/$libname$shrext"; then
23363                 found_dir="$dir"
23364                 found_so="$dir/$libname$shrext"
23365               else
23366                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
23367                   ver=`(cd "$dir" && \
23368                         for f in "$libname$shrext".*; do echo "$f"; done \
23369                         | sed -e "s,^$libname$shrext\\\\.,," \
23370                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
23371                         | sed 1q ) 2>/dev/null`
23372                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
23373                     found_dir="$dir"
23374                     found_so="$dir/$libname$shrext.$ver"
23375                   fi
23376                 else
23377                   eval library_names=\"$acl_library_names_spec\"
23378                   for f in $library_names; do
23379                     if test -f "$dir/$f"; then
23380                       found_dir="$dir"
23381                       found_so="$dir/$f"
23382                       break
23383                     fi
23384                   done
23385                 fi
23386               fi
23387             fi
23388                         if test "X$found_dir" = "X"; then
23389               if test -f "$dir/$libname.$acl_libext"; then
23390                 found_dir="$dir"
23391                 found_a="$dir/$libname.$acl_libext"
23392               fi
23393             fi
23394             if test "X$found_dir" != "X"; then
23395               if test -f "$dir/$libname.la"; then
23396                 found_la="$dir/$libname.la"
23397               fi
23398             fi
23399           fi
23400           if test "X$found_dir" = "X"; then
23401             for x in $LDFLAGS $LTLIBGCRYPT; do
23402
23403   acl_save_prefix="$prefix"
23404   prefix="$acl_final_prefix"
23405   acl_save_exec_prefix="$exec_prefix"
23406   exec_prefix="$acl_final_exec_prefix"
23407   eval x=\"$x\"
23408   exec_prefix="$acl_save_exec_prefix"
23409   prefix="$acl_save_prefix"
23410
23411               case "$x" in
23412                 -L*)
23413                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23414                                     if test -n "$acl_shlibext"; then
23415                     if test -f "$dir/$libname$shrext"; then
23416                       found_dir="$dir"
23417                       found_so="$dir/$libname$shrext"
23418                     else
23419                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
23420                         ver=`(cd "$dir" && \
23421                               for f in "$libname$shrext".*; do echo "$f"; done \
23422                               | sed -e "s,^$libname$shrext\\\\.,," \
23423                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
23424                               | sed 1q ) 2>/dev/null`
23425                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
23426                           found_dir="$dir"
23427                           found_so="$dir/$libname$shrext.$ver"
23428                         fi
23429                       else
23430                         eval library_names=\"$acl_library_names_spec\"
23431                         for f in $library_names; do
23432                           if test -f "$dir/$f"; then
23433                             found_dir="$dir"
23434                             found_so="$dir/$f"
23435                             break
23436                           fi
23437                         done
23438                       fi
23439                     fi
23440                   fi
23441                                     if test "X$found_dir" = "X"; then
23442                     if test -f "$dir/$libname.$acl_libext"; then
23443                       found_dir="$dir"
23444                       found_a="$dir/$libname.$acl_libext"
23445                     fi
23446                   fi
23447                   if test "X$found_dir" != "X"; then
23448                     if test -f "$dir/$libname.la"; then
23449                       found_la="$dir/$libname.la"
23450                     fi
23451                   fi
23452                   ;;
23453               esac
23454               if test "X$found_dir" != "X"; then
23455                 break
23456               fi
23457             done
23458           fi
23459           if test "X$found_dir" != "X"; then
23460                         LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-L$found_dir -l$name"
23461             if test "X$found_so" != "X"; then
23462                                                         if test "$enable_rpath" = no \
23463                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
23464                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
23465                                 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
23466               else
23467                                                                                 haveit=
23468                 for x in $ltrpathdirs; do
23469                   if test "X$x" = "X$found_dir"; then
23470                     haveit=yes
23471                     break
23472                   fi
23473                 done
23474                 if test -z "$haveit"; then
23475                   ltrpathdirs="$ltrpathdirs $found_dir"
23476                 fi
23477                                 if test "$acl_hardcode_direct" = yes; then
23478                                                       LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
23479                 else
23480                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
23481                                                             LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
23482                                                             haveit=
23483                     for x in $rpathdirs; do
23484                       if test "X$x" = "X$found_dir"; then
23485                         haveit=yes
23486                         break
23487                       fi
23488                     done
23489                     if test -z "$haveit"; then
23490                       rpathdirs="$rpathdirs $found_dir"
23491                     fi
23492                   else
23493                                                                                 haveit=
23494                     for x in $LDFLAGS $LIBGCRYPT; do
23495
23496   acl_save_prefix="$prefix"
23497   prefix="$acl_final_prefix"
23498   acl_save_exec_prefix="$exec_prefix"
23499   exec_prefix="$acl_final_exec_prefix"
23500   eval x=\"$x\"
23501   exec_prefix="$acl_save_exec_prefix"
23502   prefix="$acl_save_prefix"
23503
23504                       if test "X$x" = "X-L$found_dir"; then
23505                         haveit=yes
23506                         break
23507                       fi
23508                     done
23509                     if test -z "$haveit"; then
23510                       LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$found_dir"
23511                     fi
23512                     if test "$acl_hardcode_minus_L" != no; then
23513                                                                                         LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
23514                     else
23515                                                                                                                                                                                 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-l$name"
23516                     fi
23517                   fi
23518                 fi
23519               fi
23520             else
23521               if test "X$found_a" != "X"; then
23522                                 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_a"
23523               else
23524                                                 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$found_dir -l$name"
23525               fi
23526             fi
23527                         additional_includedir=
23528             case "$found_dir" in
23529               */$acl_libdirstem | */$acl_libdirstem/)
23530                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
23531                 if test "$name" = 'gcrypt'; then
23532                   LIBGCRYPT_PREFIX="$basedir"
23533                 fi
23534                 additional_includedir="$basedir/include"
23535                 ;;
23536               */$acl_libdirstem2 | */$acl_libdirstem2/)
23537                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
23538                 if test "$name" = 'gcrypt'; then
23539                   LIBGCRYPT_PREFIX="$basedir"
23540                 fi
23541                 additional_includedir="$basedir/include"
23542                 ;;
23543             esac
23544             if test "X$additional_includedir" != "X"; then
23545                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23546                 haveit=
23547                 if test "X$additional_includedir" = "X/usr/local/include"; then
23548                   if test -n "$GCC"; then
23549                     case $host_os in
23550                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23551                     esac
23552                   fi
23553                 fi
23554                 if test -z "$haveit"; then
23555                   for x in $CPPFLAGS $INCGCRYPT; do
23556
23557   acl_save_prefix="$prefix"
23558   prefix="$acl_final_prefix"
23559   acl_save_exec_prefix="$exec_prefix"
23560   exec_prefix="$acl_final_exec_prefix"
23561   eval x=\"$x\"
23562   exec_prefix="$acl_save_exec_prefix"
23563   prefix="$acl_save_prefix"
23564
23565                     if test "X$x" = "X-I$additional_includedir"; then
23566                       haveit=yes
23567                       break
23568                     fi
23569                   done
23570                   if test -z "$haveit"; then
23571                     if test -d "$additional_includedir"; then
23572                                             INCGCRYPT="${INCGCRYPT}${INCGCRYPT:+ }-I$additional_includedir"
23573                     fi
23574                   fi
23575                 fi
23576               fi
23577             fi
23578                         if test -n "$found_la"; then
23579                                                         save_libdir="$libdir"
23580               case "$found_la" in
23581                 */* | *\\*) . "$found_la" ;;
23582                 *) . "./$found_la" ;;
23583               esac
23584               libdir="$save_libdir"
23585                             for dep in $dependency_libs; do
23586                 case "$dep" in
23587                   -L*)
23588                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23589                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
23590                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
23591                       haveit=
23592                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
23593                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
23594                         if test -n "$GCC"; then
23595                           case $host_os in
23596                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23597                           esac
23598                         fi
23599                       fi
23600                       if test -z "$haveit"; then
23601                         haveit=
23602                         for x in $LDFLAGS $LIBGCRYPT; do
23603
23604   acl_save_prefix="$prefix"
23605   prefix="$acl_final_prefix"
23606   acl_save_exec_prefix="$exec_prefix"
23607   exec_prefix="$acl_final_exec_prefix"
23608   eval x=\"$x\"
23609   exec_prefix="$acl_save_exec_prefix"
23610   prefix="$acl_save_prefix"
23611
23612                           if test "X$x" = "X-L$additional_libdir"; then
23613                             haveit=yes
23614                             break
23615                           fi
23616                         done
23617                         if test -z "$haveit"; then
23618                           if test -d "$additional_libdir"; then
23619                                                         LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$additional_libdir"
23620                           fi
23621                         fi
23622                         haveit=
23623                         for x in $LDFLAGS $LTLIBGCRYPT; do
23624
23625   acl_save_prefix="$prefix"
23626   prefix="$acl_final_prefix"
23627   acl_save_exec_prefix="$exec_prefix"
23628   exec_prefix="$acl_final_exec_prefix"
23629   eval x=\"$x\"
23630   exec_prefix="$acl_save_exec_prefix"
23631   prefix="$acl_save_prefix"
23632
23633                           if test "X$x" = "X-L$additional_libdir"; then
23634                             haveit=yes
23635                             break
23636                           fi
23637                         done
23638                         if test -z "$haveit"; then
23639                           if test -d "$additional_libdir"; then
23640                                                         LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-L$additional_libdir"
23641                           fi
23642                         fi
23643                       fi
23644                     fi
23645                     ;;
23646                   -R*)
23647                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23648                     if test "$enable_rpath" != no; then
23649                                                                   haveit=
23650                       for x in $rpathdirs; do
23651                         if test "X$x" = "X$dir"; then
23652                           haveit=yes
23653                           break
23654                         fi
23655                       done
23656                       if test -z "$haveit"; then
23657                         rpathdirs="$rpathdirs $dir"
23658                       fi
23659                                                                   haveit=
23660                       for x in $ltrpathdirs; do
23661                         if test "X$x" = "X$dir"; then
23662                           haveit=yes
23663                           break
23664                         fi
23665                       done
23666                       if test -z "$haveit"; then
23667                         ltrpathdirs="$ltrpathdirs $dir"
23668                       fi
23669                     fi
23670                     ;;
23671                   -l*)
23672                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23673                     ;;
23674                   *.la)
23675                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23676                     ;;
23677                   *)
23678                                         LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$dep"
23679                     LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }$dep"
23680                     ;;
23681                 esac
23682               done
23683             fi
23684           else
23685                                                             LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-l$name"
23686             LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-l$name"
23687           fi
23688         fi
23689       fi
23690     done
23691   done
23692   if test "X$rpathdirs" != "X"; then
23693     if test -n "$acl_hardcode_libdir_separator"; then
23694                         alldirs=
23695       for found_dir in $rpathdirs; do
23696         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
23697       done
23698             acl_save_libdir="$libdir"
23699       libdir="$alldirs"
23700       eval flag=\"$acl_hardcode_libdir_flag_spec\"
23701       libdir="$acl_save_libdir"
23702       LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$flag"
23703     else
23704             for found_dir in $rpathdirs; do
23705         acl_save_libdir="$libdir"
23706         libdir="$found_dir"
23707         eval flag=\"$acl_hardcode_libdir_flag_spec\"
23708         libdir="$acl_save_libdir"
23709         LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$flag"
23710       done
23711     fi
23712   fi
23713   if test "X$ltrpathdirs" != "X"; then
23714             for found_dir in $ltrpathdirs; do
23715       LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-R$found_dir"
23716     done
23717   fi
23718
23719
23720
23721
23722
23723
23724
23725         ac_save_CPPFLAGS="$CPPFLAGS"
23726
23727   for element in $INCGCRYPT; do
23728     haveit=
23729     for x in $CPPFLAGS; do
23730
23731   acl_save_prefix="$prefix"
23732   prefix="$acl_final_prefix"
23733   acl_save_exec_prefix="$exec_prefix"
23734   exec_prefix="$acl_final_exec_prefix"
23735   eval x=\"$x\"
23736   exec_prefix="$acl_save_exec_prefix"
23737   prefix="$acl_save_prefix"
23738
23739       if test "X$x" = "X$element"; then
23740         haveit=yes
23741         break
23742       fi
23743     done
23744     if test -z "$haveit"; then
23745       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23746     fi
23747   done
23748
23749
23750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcrypt" >&5
23751 $as_echo_n "checking for libgcrypt... " >&6; }
23752 if ${ac_cv_libgcrypt+:} false; then :
23753   $as_echo_n "(cached) " >&6
23754 else
23755
23756     ac_save_LIBS="$LIBS"
23757                                 case " $LIBGCRYPT" in
23758       *" -l"*) LIBS="$LIBS $LIBGCRYPT" ;;
23759       *)       LIBS="$LIBGCRYPT $LIBS" ;;
23760     esac
23761     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23762 /* end confdefs.h.  */
23763
23764 #include <gcrypt.h>
23765 /* GCRY_MODULE_ID_USER was added in 1.4.4 and gc-libgcrypt.c
23766    will fail on startup if we don't have 1.4.4 or later, so
23767    test for it early. */
23768 #if !defined GCRY_MODULE_ID_USER
23769 error too old libgcrypt
23770 #endif
23771
23772 int
23773 main ()
23774 {
23775
23776   ;
23777   return 0;
23778 }
23779 _ACEOF
23780 if ac_fn_c_try_link "$LINENO"; then :
23781   ac_cv_libgcrypt=yes
23782 else
23783   ac_cv_libgcrypt='no'
23784 fi
23785 rm -f core conftest.err conftest.$ac_objext \
23786     conftest$ac_exeext conftest.$ac_ext
23787     LIBS="$ac_save_LIBS"
23788
23789 fi
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgcrypt" >&5
23791 $as_echo "$ac_cv_libgcrypt" >&6; }
23792   if test "$ac_cv_libgcrypt" = yes; then
23793     HAVE_LIBGCRYPT=yes
23794
23795 $as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
23796
23797     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgcrypt" >&5
23798 $as_echo_n "checking how to link with libgcrypt... " >&6; }
23799     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT" >&5
23800 $as_echo "$LIBGCRYPT" >&6; }
23801   else
23802     HAVE_LIBGCRYPT=no
23803             CPPFLAGS="$ac_save_CPPFLAGS"
23804     LIBGCRYPT=
23805     LTLIBGCRYPT=
23806     LIBGCRYPT_PREFIX=
23807   fi
23808
23809
23810
23811
23812
23813
23814
23815   fi
23816
23817 if test "$ac_cv_libgcrypt" = yes; then
23818
23819
23820
23821
23822
23823
23824
23825
23826   gl_LIBOBJS="$gl_LIBOBJS gc-libgcrypt.$ac_objext"
23827
23828 else
23829
23830
23831
23832
23833
23834
23835
23836
23837   gl_LIBOBJS="$gl_LIBOBJS gc-gnulib.$ac_objext"
23838
23839 fi
23840 if test $gl_cond_libtool = false; then
23841   gl_ltlibdeps="$gl_ltlibdeps $LTLIBGCRYPT"
23842   gl_libdeps="$gl_libdeps $LIBGCRYPT"
23843 fi
23844
23845
23846   if test "$ac_cv_libgcrypt" != yes; then
23847
23848
23849
23850   :
23851
23852
23853
23854
23855   fi
23856
23857
23858
23859 cat >>confdefs.h <<_ACEOF
23860 #define GNULIB_GC_HMAC_MD5 1
23861 _ACEOF
23862
23863
23864
23865
23866   if test "$ac_cv_libgcrypt" != yes; then
23867
23868
23869
23870   :
23871
23872
23873
23874
23875   fi
23876
23877
23878
23879 cat >>confdefs.h <<_ACEOF
23880 #define GNULIB_GC_HMAC_SHA1 1
23881 _ACEOF
23882
23883
23884
23885
23886   if test "$ac_cv_libgcrypt" != yes; then
23887
23888
23889
23890   :
23891
23892   fi
23893
23894
23895
23896 cat >>confdefs.h <<_ACEOF
23897 #define GNULIB_GC_MD5 1
23898 _ACEOF
23899
23900
23901
23902   # Devices with randomness.
23903   # FIXME: Are these the best defaults?
23904
23905
23906   case "$host_os" in
23907     *openbsd* | *mirbsd*)
23908       NAME_OF_RANDOM_DEVICE="/dev/srandom"
23909       NAME_OF_PSEUDO_RANDOM_DEVICE="/dev/prandom"
23910       NAME_OF_NONCE_DEVICE="/dev/urandom"
23911       ;;
23912
23913     *netbsd*)
23914       NAME_OF_RANDOM_DEVICE="/dev/srandom"
23915       NAME_OF_PSEUDO_RANDOM_DEVICE="/dev/urandom"
23916       NAME_OF_NONCE_DEVICE="/dev/urandom"
23917       ;;
23918
23919     *solaris* | *irix* | *dec-osf* )
23920       NAME_OF_RANDOM_DEVICE="/dev/random"
23921       NAME_OF_PSEUDO_RANDOM_DEVICE="/dev/random"
23922       NAME_OF_NONCE_DEVICE="/dev/random"
23923       ;;
23924
23925     *)
23926       NAME_OF_RANDOM_DEVICE="/dev/random"
23927       NAME_OF_PSEUDO_RANDOM_DEVICE="/dev/urandom"
23928       NAME_OF_NONCE_DEVICE="/dev/urandom"
23929       ;;
23930   esac
23931
23932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking device with (strong) random data..." >&5
23933 $as_echo_n "checking device with (strong) random data...... " >&6; }
23934   # Check whether --enable-random-device was given.
23935 if test "${enable_random_device+set}" = set; then :
23936   enableval=$enable_random_device; NAME_OF_RANDOM_DEVICE=$enableval
23937 fi
23938
23939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAME_OF_RANDOM_DEVICE" >&5
23940 $as_echo "$NAME_OF_RANDOM_DEVICE" >&6; }
23941
23942   { $as_echo "$as_me:${as_lineno-$LINENO}: checking device with pseudo random data..." >&5
23943 $as_echo_n "checking device with pseudo random data...... " >&6; }
23944   # Check whether --enable-pseudo-random-device was given.
23945 if test "${enable_pseudo_random_device+set}" = set; then :
23946   enableval=$enable_pseudo_random_device; NAME_OF_PSEUDO_RANDOM_DEVICE=$enableval
23947 fi
23948
23949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAME_OF_PSEUDO_RANDOM_DEVICE" >&5
23950 $as_echo "$NAME_OF_PSEUDO_RANDOM_DEVICE" >&6; }
23951
23952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking device with unpredictable data for nonces..." >&5
23953 $as_echo_n "checking device with unpredictable data for nonces...... " >&6; }
23954   # Check whether --enable-nonce-device was given.
23955 if test "${enable_nonce_device+set}" = set; then :
23956   enableval=$enable_nonce_device; NAME_OF_NONCE_DEVICE=$enableval
23957 fi
23958
23959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAME_OF_NONCE_DEVICE" >&5
23960 $as_echo "$NAME_OF_NONCE_DEVICE" >&6; }
23961
23962   if test "$cross_compiling" != yes; then
23963     if test "$NAME_OF_RANDOM_DEVICE" != "no"; then
23964       as_ac_File=`$as_echo "ac_cv_file_$NAME_OF_RANDOM_DEVICE" | $as_tr_sh`
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $NAME_OF_RANDOM_DEVICE" >&5
23966 $as_echo_n "checking for $NAME_OF_RANDOM_DEVICE... " >&6; }
23967 if eval \${$as_ac_File+:} false; then :
23968   $as_echo_n "(cached) " >&6
23969 else
23970   test "$cross_compiling" = yes &&
23971   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23972 if test -r "$NAME_OF_RANDOM_DEVICE"; then
23973   eval "$as_ac_File=yes"
23974 else
23975   eval "$as_ac_File=no"
23976 fi
23977 fi
23978 eval ac_res=\$$as_ac_File
23979                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23980 $as_echo "$ac_res" >&6; }
23981 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
23982
23983 else
23984   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Device '$NAME_OF_RANDOM_DEVICE' does not exist, consider to use --enable-random-device" >&5
23985 $as_echo "$as_me: WARNING: Device '$NAME_OF_RANDOM_DEVICE' does not exist, consider to use --enable-random-device" >&2;}
23986 fi
23987
23988     fi
23989     if test "$NAME_OF_PSEUDO_RANDOM_DEVICE" != "no"; then
23990       as_ac_File=`$as_echo "ac_cv_file_$NAME_OF_PSEUDO_RANDOM_DEVICE" | $as_tr_sh`
23991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $NAME_OF_PSEUDO_RANDOM_DEVICE" >&5
23992 $as_echo_n "checking for $NAME_OF_PSEUDO_RANDOM_DEVICE... " >&6; }
23993 if eval \${$as_ac_File+:} false; then :
23994   $as_echo_n "(cached) " >&6
23995 else
23996   test "$cross_compiling" = yes &&
23997   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23998 if test -r "$NAME_OF_PSEUDO_RANDOM_DEVICE"; then
23999   eval "$as_ac_File=yes"
24000 else
24001   eval "$as_ac_File=no"
24002 fi
24003 fi
24004 eval ac_res=\$$as_ac_File
24005                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24006 $as_echo "$ac_res" >&6; }
24007 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
24008
24009 else
24010   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Device '$NAME_OF_PSEUDO_RANDOM_DEVICE' does not exist, consider to use --enable-pseudo-random-device" >&5
24011 $as_echo "$as_me: WARNING: Device '$NAME_OF_PSEUDO_RANDOM_DEVICE' does not exist, consider to use --enable-pseudo-random-device" >&2;}
24012 fi
24013
24014     fi
24015     if test "$NAME_OF_NONCE_DEVICE" != "no"; then
24016       as_ac_File=`$as_echo "ac_cv_file_$NAME_OF_NONCE_DEVICE" | $as_tr_sh`
24017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $NAME_OF_NONCE_DEVICE" >&5
24018 $as_echo_n "checking for $NAME_OF_NONCE_DEVICE... " >&6; }
24019 if eval \${$as_ac_File+:} false; then :
24020   $as_echo_n "(cached) " >&6
24021 else
24022   test "$cross_compiling" = yes &&
24023   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
24024 if test -r "$NAME_OF_NONCE_DEVICE"; then
24025   eval "$as_ac_File=yes"
24026 else
24027   eval "$as_ac_File=no"
24028 fi
24029 fi
24030 eval ac_res=\$$as_ac_File
24031                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24032 $as_echo "$ac_res" >&6; }
24033 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
24034
24035 else
24036   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Device '$NAME_OF_NONCE_DEVICE' does not exist, consider to use --enable-nonce-device" >&5
24037 $as_echo "$as_me: WARNING: Device '$NAME_OF_NONCE_DEVICE' does not exist, consider to use --enable-nonce-device" >&2;}
24038 fi
24039
24040     fi
24041   else
24042     { $as_echo "$as_me:${as_lineno-$LINENO}: Cross compiling, assuming random devices exists on the target host..." >&5
24043 $as_echo "$as_me: Cross compiling, assuming random devices exists on the target host..." >&6;}
24044   fi
24045
24046   # FIXME?: Open+read 42 bytes+close twice and compare data.  Should differ.
24047
24048
24049 cat >>confdefs.h <<_ACEOF
24050 #define NAME_OF_RANDOM_DEVICE "$NAME_OF_RANDOM_DEVICE"
24051 _ACEOF
24052
24053
24054 cat >>confdefs.h <<_ACEOF
24055 #define NAME_OF_PSEUDO_RANDOM_DEVICE "$NAME_OF_PSEUDO_RANDOM_DEVICE"
24056 _ACEOF
24057
24058
24059 cat >>confdefs.h <<_ACEOF
24060 #define NAME_OF_NONCE_DEVICE "$NAME_OF_NONCE_DEVICE"
24061 _ACEOF
24062
24063
24064
24065
24066 cat >>confdefs.h <<_ACEOF
24067 #define GNULIB_GC_RANDOM 1
24068 _ACEOF
24069
24070
24071
24072
24073
24074
24075
24076 cat >>confdefs.h <<_ACEOF
24077 #define GNULIB_GC_SHA1 1
24078 _ACEOF
24079
24080
24081
24082
24083
24084   :
24085
24086
24087
24088
24089   :
24090
24091
24092
24093
24094
24095   FLOAT_H=
24096   REPLACE_FLOAT_LDBL=0
24097   case "$host_os" in
24098     aix* | beos* | openbsd* | mirbsd* | irix*)
24099       FLOAT_H=float.h
24100       ;;
24101     freebsd*)
24102       case "$host_cpu" in
24103         i[34567]86 )
24104           FLOAT_H=float.h
24105           ;;
24106         x86_64 )
24107           # On x86_64 systems, the C compiler may still be generating
24108           # 32-bit code.
24109           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24110 /* end confdefs.h.  */
24111 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
24112              yes
24113              #endif
24114 _ACEOF
24115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24116   $EGREP "yes" >/dev/null 2>&1; then :
24117
24118 else
24119   FLOAT_H=float.h
24120 fi
24121 rm -f conftest*
24122
24123           ;;
24124       esac
24125       ;;
24126     linux*)
24127       case "$host_cpu" in
24128         powerpc*)
24129           FLOAT_H=float.h
24130           ;;
24131       esac
24132       ;;
24133   esac
24134   case "$host_os" in
24135     aix* | freebsd* | linux*)
24136       if test -n "$FLOAT_H"; then
24137         REPLACE_FLOAT_LDBL=1
24138       fi
24139       ;;
24140   esac
24141
24142     REPLACE_ITOLD=0
24143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
24144 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
24145 if ${gl_cv_func_itold_works+:} false; then :
24146   $as_echo_n "(cached) " >&6
24147 else
24148
24149       if test "$cross_compiling" = yes; then :
24150   case "$host" in
24151            sparc*-*-linux*)
24152              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24153 /* end confdefs.h.  */
24154 #if defined __LP64__ || defined __arch64__
24155                 yes
24156                 #endif
24157 _ACEOF
24158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24159   $EGREP "yes" >/dev/null 2>&1; then :
24160   gl_cv_func_itold_works="guessing no"
24161 else
24162   gl_cv_func_itold_works="guessing yes"
24163 fi
24164 rm -f conftest*
24165
24166              ;;
24167            *) gl_cv_func_itold_works="guessing yes" ;;
24168          esac
24169
24170 else
24171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24172 /* end confdefs.h.  */
24173
24174 int i = -1;
24175 volatile long double ld;
24176 int main ()
24177 {
24178   ld += i * 1.0L;
24179   if (ld > 0)
24180     return 1;
24181   return 0;
24182 }
24183 _ACEOF
24184 if ac_fn_c_try_run "$LINENO"; then :
24185   gl_cv_func_itold_works=yes
24186 else
24187   gl_cv_func_itold_works=no
24188 fi
24189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24190   conftest.$ac_objext conftest.beam conftest.$ac_ext
24191 fi
24192
24193
24194 fi
24195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
24196 $as_echo "$gl_cv_func_itold_works" >&6; }
24197   case "$gl_cv_func_itold_works" in
24198     *no)
24199       REPLACE_ITOLD=1
24200                   FLOAT_H=float.h
24201       ;;
24202   esac
24203
24204   if test -n "$FLOAT_H"; then
24205
24206
24207
24208
24209
24210
24211
24212
24213      if test $gl_cv_have_include_next = yes; then
24214        gl_cv_next_float_h='<'float.h'>'
24215      else
24216        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
24217 $as_echo_n "checking absolute name of <float.h>... " >&6; }
24218 if ${gl_cv_next_float_h+:} false; then :
24219   $as_echo_n "(cached) " >&6
24220 else
24221
24222                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24223 /* end confdefs.h.  */
24224 #include <float.h>
24225
24226 _ACEOF
24227                                                                                                                         case "$host_os" in
24228                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
24229                  *)    gl_absname_cpp="$ac_cpp" ;;
24230                esac
24231
24232                case "$host_os" in
24233                  mingw*)
24234                                                                                                                                      gl_dirsep_regex='[/\\]'
24235                    ;;
24236                  *)
24237                    gl_dirsep_regex='\/'
24238                    ;;
24239                esac
24240                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24241
24242                gl_header_literal_regex=`echo 'float.h' \
24243                                         | sed -e "$gl_make_literal_regex_sed"`
24244                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24245                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24246                    s|^/[^/]|//&|
24247                    p
24248                    q
24249                  }'
24250                                                             gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24251                       sed -n "$gl_absolute_header_sed"`'"'
24252
24253
24254 fi
24255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
24256 $as_echo "$gl_cv_next_float_h" >&6; }
24257      fi
24258      NEXT_FLOAT_H=$gl_cv_next_float_h
24259
24260      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24261        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24262        gl_next_as_first_directive='<'float.h'>'
24263      else
24264        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24265        gl_next_as_first_directive=$gl_cv_next_float_h
24266      fi
24267      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
24268
24269
24270
24271
24272   fi
24273
24274    if test -n "$FLOAT_H"; then
24275   GL_GENERATE_FLOAT_H_TRUE=
24276   GL_GENERATE_FLOAT_H_FALSE='#'
24277 else
24278   GL_GENERATE_FLOAT_H_TRUE='#'
24279   GL_GENERATE_FLOAT_H_FALSE=
24280 fi
24281
24282
24283
24284 if test $REPLACE_FLOAT_LDBL = 1; then
24285
24286
24287
24288
24289
24290
24291
24292
24293   gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
24294
24295 fi
24296 if test $REPLACE_ITOLD = 1; then
24297
24298
24299
24300
24301
24302
24303
24304
24305   gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
24306
24307 fi
24308
24309
24310
24311
24312
24313
24314
24315
24316   if test $ac_cv_func_getdelim = yes; then
24317     HAVE_GETDELIM=1
24318         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
24319 $as_echo_n "checking for working getdelim function... " >&6; }
24320 if ${gl_cv_func_working_getdelim+:} false; then :
24321   $as_echo_n "(cached) " >&6
24322 else
24323   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
24324     if test "$cross_compiling" = yes; then :
24325         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24326 /* end confdefs.h.  */
24327
24328 #include <features.h>
24329 #ifdef __GNU_LIBRARY__
24330  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
24331   Lucky GNU user
24332  #endif
24333 #endif
24334
24335 _ACEOF
24336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24337   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
24338   gl_cv_func_working_getdelim="guessing yes"
24339 else
24340   gl_cv_func_working_getdelim="guessing no"
24341 fi
24342 rm -f conftest*
24343
24344
24345 else
24346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24347 /* end confdefs.h.  */
24348
24349 #    include <stdio.h>
24350 #    include <stdlib.h>
24351 #    include <string.h>
24352     int main ()
24353     {
24354       FILE *in = fopen ("./conftest.data", "r");
24355       if (!in)
24356         return 1;
24357       {
24358         /* Test result for a NULL buffer and a zero size.
24359            Based on a test program from Karl Heuer.  */
24360         char *line = NULL;
24361         size_t siz = 0;
24362         int len = getdelim (&line, &siz, '\n', in);
24363         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
24364           return 2;
24365       }
24366       {
24367         /* Test result for a NULL buffer and a non-zero size.
24368            This crashes on FreeBSD 8.0.  */
24369         char *line = NULL;
24370         size_t siz = (size_t)(~0) / 4;
24371         if (getdelim (&line, &siz, '\n', in) == -1)
24372           return 3;
24373       }
24374       return 0;
24375     }
24376
24377 _ACEOF
24378 if ac_fn_c_try_run "$LINENO"; then :
24379   gl_cv_func_working_getdelim=yes
24380 else
24381   gl_cv_func_working_getdelim=no
24382 fi
24383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24384   conftest.$ac_objext conftest.beam conftest.$ac_ext
24385 fi
24386
24387 fi
24388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
24389 $as_echo "$gl_cv_func_working_getdelim" >&6; }
24390     case "$gl_cv_func_working_getdelim" in
24391       *no)
24392         REPLACE_GETDELIM=1
24393         ;;
24394     esac
24395   else
24396     HAVE_GETDELIM=0
24397   fi
24398
24399   if test $ac_cv_have_decl_getdelim = no; then
24400     HAVE_DECL_GETDELIM=0
24401   fi
24402
24403 if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
24404
24405
24406
24407
24408
24409
24410
24411
24412   gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
24413
24414
24415   for ac_func in flockfile funlockfile
24416 do :
24417   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24418 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24419 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24420   cat >>confdefs.h <<_ACEOF
24421 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24422 _ACEOF
24423
24424 fi
24425 done
24426
24427   ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
24428 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
24429   ac_have_decl=1
24430 else
24431   ac_have_decl=0
24432 fi
24433
24434 cat >>confdefs.h <<_ACEOF
24435 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
24436 _ACEOF
24437
24438
24439 fi
24440
24441
24442
24443
24444
24445           GNULIB_GETDELIM=1
24446
24447
24448
24449
24450
24451 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
24452
24453
24454
24455
24456
24457
24458
24459
24460
24461
24462   gl_getline_needs_run_time_check=no
24463   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
24464 if test "x$ac_cv_func_getline" = xyes; then :
24465                    gl_getline_needs_run_time_check=yes
24466 else
24467   am_cv_func_working_getline=no
24468 fi
24469
24470   if test $gl_getline_needs_run_time_check = yes; then
24471     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
24472 $as_echo_n "checking for working getline function... " >&6; }
24473 if ${am_cv_func_working_getline+:} false; then :
24474   $as_echo_n "(cached) " >&6
24475 else
24476   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
24477     if test "$cross_compiling" = yes; then :
24478         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24479 /* end confdefs.h.  */
24480
24481 #include <features.h>
24482 #ifdef __GNU_LIBRARY__
24483  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
24484   Lucky GNU user
24485  #endif
24486 #endif
24487
24488 _ACEOF
24489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24490   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
24491   am_cv_func_working_getline="guessing yes"
24492 else
24493   am_cv_func_working_getline="guessing no"
24494 fi
24495 rm -f conftest*
24496
24497
24498 else
24499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24500 /* end confdefs.h.  */
24501
24502 #    include <stdio.h>
24503 #    include <stdlib.h>
24504 #    include <string.h>
24505     int main ()
24506     {
24507       FILE *in = fopen ("./conftest.data", "r");
24508       if (!in)
24509         return 1;
24510       {
24511         /* Test result for a NULL buffer and a zero size.
24512            Based on a test program from Karl Heuer.  */
24513         char *line = NULL;
24514         size_t siz = 0;
24515         int len = getline (&line, &siz, in);
24516         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
24517           return 2;
24518       }
24519       {
24520         /* Test result for a NULL buffer and a non-zero size.
24521            This crashes on FreeBSD 8.0.  */
24522         char *line = NULL;
24523         size_t siz = (size_t)(~0) / 4;
24524         if (getline (&line, &siz, in) == -1)
24525           return 3;
24526       }
24527       return 0;
24528     }
24529
24530 _ACEOF
24531 if ac_fn_c_try_run "$LINENO"; then :
24532   am_cv_func_working_getline=yes
24533 else
24534   am_cv_func_working_getline=no
24535 fi
24536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24537   conftest.$ac_objext conftest.beam conftest.$ac_ext
24538 fi
24539
24540 fi
24541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
24542 $as_echo "$am_cv_func_working_getline" >&6; }
24543   fi
24544
24545   if test $ac_cv_have_decl_getline = no; then
24546     HAVE_DECL_GETLINE=0
24547   fi
24548
24549   case "$am_cv_func_working_getline" in
24550     *no)
24551                         REPLACE_GETLINE=1
24552       ;;
24553   esac
24554
24555 if test $REPLACE_GETLINE = 1; then
24556
24557
24558
24559
24560
24561
24562
24563
24564   gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
24565
24566
24567   :
24568
24569 fi
24570
24571
24572
24573
24574
24575           GNULIB_GETLINE=1
24576
24577
24578
24579
24580
24581 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
24582
24583
24584
24585
24586
24587
24588 # Autoconf 2.61a.99 and earlier don't support linking a file only
24589 # in VPATH builds.  But since GNUmakefile is for maintainer use
24590 # only, it does not matter if we skip the link with older autoconf.
24591 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
24592 # builds, so use a shell variable to bypass this.
24593 GNUmakefile=GNUmakefile
24594 ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
24595
24596
24597   # Test for GSS-API library features.
24598   # XXX this assumes GNU SASL specific configure.ac ordering and variables.
24599   if test "$gssapi_impl" != "no"; then
24600     save_CPPFLAGS="$CPPFLAGS"
24601     save_LIBS="$LIBS"
24602     CPPFLAGS="$CPPFLAGS $GSS_CFLAGS"
24603     LIBS="$LIBS $LIBGSS $GSS_LIBS"
24604     for ac_func in gss_encapsulate_token
24605 do :
24606   ac_fn_c_check_func "$LINENO" "gss_encapsulate_token" "ac_cv_func_gss_encapsulate_token"
24607 if test "x$ac_cv_func_gss_encapsulate_token" = xyes; then :
24608   cat >>confdefs.h <<_ACEOF
24609 #define HAVE_GSS_ENCAPSULATE_TOKEN 1
24610 _ACEOF
24611
24612 fi
24613 done
24614
24615     for ac_func in gss_decapsulate_token
24616 do :
24617   ac_fn_c_check_func "$LINENO" "gss_decapsulate_token" "ac_cv_func_gss_decapsulate_token"
24618 if test "x$ac_cv_func_gss_decapsulate_token" = xyes; then :
24619   cat >>confdefs.h <<_ACEOF
24620 #define HAVE_GSS_DECAPSULATE_TOKEN 1
24621 _ACEOF
24622
24623 fi
24624 done
24625
24626     for ac_func in gss_oid_equal
24627 do :
24628   ac_fn_c_check_func "$LINENO" "gss_oid_equal" "ac_cv_func_gss_oid_equal"
24629 if test "x$ac_cv_func_gss_oid_equal" = xyes; then :
24630   cat >>confdefs.h <<_ACEOF
24631 #define HAVE_GSS_OID_EQUAL 1
24632 _ACEOF
24633
24634 fi
24635 done
24636
24637     for ac_func in gss_inquire_mech_for_saslname
24638 do :
24639   ac_fn_c_check_func "$LINENO" "gss_inquire_mech_for_saslname" "ac_cv_func_gss_inquire_mech_for_saslname"
24640 if test "x$ac_cv_func_gss_inquire_mech_for_saslname" = xyes; then :
24641   cat >>confdefs.h <<_ACEOF
24642 #define HAVE_GSS_INQUIRE_MECH_FOR_SASLNAME 1
24643 _ACEOF
24644
24645 fi
24646 done
24647
24648     for ac_func in GSS_C_NT_HOSTBASED_SERVICE
24649 do :
24650   ac_fn_c_check_func "$LINENO" "GSS_C_NT_HOSTBASED_SERVICE" "ac_cv_func_GSS_C_NT_HOSTBASED_SERVICE"
24651 if test "x$ac_cv_func_GSS_C_NT_HOSTBASED_SERVICE" = xyes; then :
24652   cat >>confdefs.h <<_ACEOF
24653 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1
24654 _ACEOF
24655
24656 fi
24657 done
24658
24659     if test "$gssapi_impl" != "gss"; then
24660       for ac_header in gssapi.h gssapi/gssapi.h
24661 do :
24662   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24663 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24664 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24665   cat >>confdefs.h <<_ACEOF
24666 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24667 _ACEOF
24668
24669 fi
24670
24671 done
24672
24673       if test "$ac_cv_header_gssapi_h$ac_cv_header_gssapi_gssapi_h" = "nono"; then
24674         gssapi_impl=no
24675         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gssapi.h or gssapi/gssapi.h, disabling GSSAPI" >&5
24676 $as_echo "$as_me: WARNING: Cannot find gssapi.h or gssapi/gssapi.h, disabling GSSAPI" >&2;}
24677       fi
24678     fi
24679     CPPFLAGS="$save_CPPFLAGS"
24680     LIBS="$save_LIBS"
24681   fi
24682   if test "$gssapi_impl" != "no"; then
24683
24684
24685
24686
24687
24688
24689
24690
24691   gl_LIBOBJS="$gl_LIBOBJS gss-extra.$ac_objext"
24692
24693   fi
24694
24695
24696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc/ld supports -Wl,--output-def" >&5
24697 $as_echo_n "checking if gcc/ld supports -Wl,--output-def... " >&6; }
24698 if ${gl_cv_ld_output_def+:} false; then :
24699   $as_echo_n "(cached) " >&6
24700 else
24701   if test "$enable_shared" = no; then
24702        gl_cv_ld_output_def="not needed, shared libraries are disabled"
24703      else
24704        gl_ldflags_save=$LDFLAGS
24705        LDFLAGS="-Wl,--output-def,conftest.def"
24706        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24707 /* end confdefs.h.  */
24708
24709 int
24710 main ()
24711 {
24712
24713   ;
24714   return 0;
24715 }
24716 _ACEOF
24717 if ac_fn_c_try_link "$LINENO"; then :
24718   gl_cv_ld_output_def=yes
24719 else
24720   gl_cv_ld_output_def=no
24721 fi
24722 rm -f core conftest.err conftest.$ac_objext \
24723     conftest$ac_exeext conftest.$ac_ext
24724        rm -f conftest.def
24725        LDFLAGS="$gl_ldflags_save"
24726      fi
24727 fi
24728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_output_def" >&5
24729 $as_echo "$gl_cv_ld_output_def" >&6; }
24730    if test "x$gl_cv_ld_output_def" = "xyes"; then
24731   HAVE_LD_OUTPUT_DEF_TRUE=
24732   HAVE_LD_OUTPUT_DEF_FALSE='#'
24733 else
24734   HAVE_LD_OUTPUT_DEF_TRUE='#'
24735   HAVE_LD_OUTPUT_DEF_FALSE=
24736 fi
24737
24738
24739
24740   # Check whether --enable-ld-version-script was given.
24741 if test "${enable_ld_version_script+set}" = set; then :
24742   enableval=$enable_ld_version_script; have_ld_version_script=$enableval
24743 fi
24744
24745   if test -z "$have_ld_version_script"; then
24746     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
24747 $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
24748     save_LDFLAGS="$LDFLAGS"
24749     LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
24750     cat > conftest.map <<EOF
24751 foo
24752 EOF
24753     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24754 /* end confdefs.h.  */
24755
24756 int
24757 main ()
24758 {
24759
24760   ;
24761   return 0;
24762 }
24763 _ACEOF
24764 if ac_fn_c_try_link "$LINENO"; then :
24765   accepts_syntax_errors=yes
24766 else
24767   accepts_syntax_errors=no
24768 fi
24769 rm -f core conftest.err conftest.$ac_objext \
24770     conftest$ac_exeext conftest.$ac_ext
24771     if test "$accepts_syntax_errors" = no; then
24772       cat > conftest.map <<EOF
24773 VERS_1 {
24774         global: sym;
24775 };
24776
24777 VERS_2 {
24778         global: sym;
24779 } VERS_1;
24780 EOF
24781       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24782 /* end confdefs.h.  */
24783
24784 int
24785 main ()
24786 {
24787
24788   ;
24789   return 0;
24790 }
24791 _ACEOF
24792 if ac_fn_c_try_link "$LINENO"; then :
24793   have_ld_version_script=yes
24794 else
24795   have_ld_version_script=no
24796 fi
24797 rm -f core conftest.err conftest.$ac_objext \
24798     conftest$ac_exeext conftest.$ac_ext
24799     else
24800       have_ld_version_script=no
24801     fi
24802     rm -f conftest.map
24803     LDFLAGS="$save_LDFLAGS"
24804     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
24805 $as_echo "$have_ld_version_script" >&6; }
24806   fi
24807    if test "$have_ld_version_script" = "yes"; then
24808   HAVE_LD_VERSION_SCRIPT_TRUE=
24809   HAVE_LD_VERSION_SCRIPT_FALSE='#'
24810 else
24811   HAVE_LD_VERSION_SCRIPT_TRUE='#'
24812   HAVE_LD_VERSION_SCRIPT_FALSE=
24813 fi
24814
24815
24816
24817
24818   CFLAG_VISIBILITY=
24819   HAVE_VISIBILITY=0
24820   if test -n "$GCC"; then
24821                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
24822 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
24823     if ${gl_cv_cc_vis_werror+:} false; then :
24824   $as_echo_n "(cached) " >&6
24825 else
24826
24827       gl_save_CFLAGS="$CFLAGS"
24828       CFLAGS="$CFLAGS -Werror"
24829       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24830 /* end confdefs.h.  */
24831
24832 int
24833 main ()
24834 {
24835
24836   ;
24837   return 0;
24838 }
24839 _ACEOF
24840 if ac_fn_c_try_compile "$LINENO"; then :
24841   gl_cv_cc_vis_werror=yes
24842 else
24843   gl_cv_cc_vis_werror=no
24844 fi
24845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24846       CFLAGS="$gl_save_CFLAGS"
24847 fi
24848
24849     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
24850 $as_echo "$gl_cv_cc_vis_werror" >&6; }
24851         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
24852 $as_echo_n "checking for simple visibility declarations... " >&6; }
24853     if ${gl_cv_cc_visibility+:} false; then :
24854   $as_echo_n "(cached) " >&6
24855 else
24856
24857       gl_save_CFLAGS="$CFLAGS"
24858       CFLAGS="$CFLAGS -fvisibility=hidden"
24859                                     if test $gl_cv_cc_vis_werror = yes; then
24860         CFLAGS="$CFLAGS -Werror"
24861       fi
24862       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24863 /* end confdefs.h.  */
24864 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
24865          extern __attribute__((__visibility__("default"))) int exportedvar;
24866          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
24867          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
24868          void dummyfunc (void) {}
24869 int
24870 main ()
24871 {
24872
24873   ;
24874   return 0;
24875 }
24876 _ACEOF
24877 if ac_fn_c_try_compile "$LINENO"; then :
24878   gl_cv_cc_visibility=yes
24879 else
24880   gl_cv_cc_visibility=no
24881 fi
24882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24883       CFLAGS="$gl_save_CFLAGS"
24884 fi
24885
24886     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
24887 $as_echo "$gl_cv_cc_visibility" >&6; }
24888     if test $gl_cv_cc_visibility = yes; then
24889       CFLAG_VISIBILITY="-fvisibility=hidden"
24890       HAVE_VISIBILITY=1
24891     fi
24892   fi
24893
24894
24895
24896 cat >>confdefs.h <<_ACEOF
24897 #define HAVE_VISIBILITY $HAVE_VISIBILITY
24898 _ACEOF
24899
24900
24901
24902
24903 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
24904
24905
24906
24907
24908
24909
24910
24911
24912   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
24913
24914
24915   for ac_header in bp-sym.h
24916 do :
24917   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
24918 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
24919   cat >>confdefs.h <<_ACEOF
24920 #define HAVE_BP_SYM_H 1
24921 _ACEOF
24922
24923 fi
24924
24925 done
24926
24927
24928 fi
24929
24930
24931
24932
24933
24934           GNULIB_MEMCHR=1
24935
24936
24937
24938
24939
24940 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
24941
24942
24943
24944
24945
24946   if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
24947     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
24948 $as_echo_n "checking whether memmem works in linear time... " >&6; }
24949 if ${gl_cv_func_memmem_works_fast+:} false; then :
24950   $as_echo_n "(cached) " >&6
24951 else
24952   if test "$cross_compiling" = yes; then :
24953                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24954 /* end confdefs.h.  */
24955
24956 #include <features.h>
24957 #ifdef __GNU_LIBRARY__
24958  #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
24959      && !defined __UCLIBC__
24960   Lucky user
24961  #endif
24962 #endif
24963 #ifdef __CYGWIN__
24964  #include <cygwin/version.h>
24965  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
24966   Lucky user
24967  #endif
24968 #endif
24969
24970 _ACEOF
24971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24972   $EGREP "Lucky user" >/dev/null 2>&1; then :
24973   gl_cv_func_memmem_works_fast="guessing yes"
24974 else
24975   gl_cv_func_memmem_works_fast="guessing no"
24976 fi
24977 rm -f conftest*
24978
24979
24980 else
24981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24982 /* end confdefs.h.  */
24983
24984 #include <signal.h> /* for signal */
24985 #include <string.h> /* for memmem */
24986 #include <stdlib.h> /* for malloc */
24987 #include <unistd.h> /* for alarm */
24988 static void quit (int sig) { exit (sig + 128); }
24989
24990 int
24991 main ()
24992 {
24993
24994     int result = 0;
24995     size_t m = 1000000;
24996     char *haystack = (char *) malloc (2 * m + 1);
24997     char *needle = (char *) malloc (m + 1);
24998     /* Failure to compile this test due to missing alarm is okay,
24999        since all such platforms (mingw) also lack memmem.  */
25000     signal (SIGALRM, quit);
25001     alarm (5);
25002     /* Check for quadratic performance.  */
25003     if (haystack && needle)
25004       {
25005         memset (haystack, 'A', 2 * m);
25006         haystack[2 * m] = 'B';
25007         memset (needle, 'A', m);
25008         needle[m] = 'B';
25009         if (!memmem (haystack, 2 * m + 1, needle, m + 1))
25010           result |= 1;
25011       }
25012     return result;
25013
25014   ;
25015   return 0;
25016 }
25017 _ACEOF
25018 if ac_fn_c_try_run "$LINENO"; then :
25019   gl_cv_func_memmem_works_fast=yes
25020 else
25021   gl_cv_func_memmem_works_fast=no
25022 fi
25023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25024   conftest.$ac_objext conftest.beam conftest.$ac_ext
25025 fi
25026
25027
25028 fi
25029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
25030 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
25031     case "$gl_cv_func_memmem_works_fast" in
25032       *yes) ;;
25033       *)
25034         REPLACE_MEMMEM=1
25035         ;;
25036     esac
25037   fi
25038
25039 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
25040
25041
25042
25043
25044
25045
25046
25047
25048   gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
25049
25050 fi
25051
25052
25053
25054
25055   for ac_func in memmem
25056 do :
25057   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
25058 if test "x$ac_cv_func_memmem" = xyes; then :
25059   cat >>confdefs.h <<_ACEOF
25060 #define HAVE_MEMMEM 1
25061 _ACEOF
25062
25063 fi
25064 done
25065
25066   if test $ac_cv_func_memmem = yes; then
25067     HAVE_MEMMEM=1
25068   else
25069     HAVE_MEMMEM=0
25070   fi
25071
25072   if test $ac_cv_have_decl_memmem = no; then
25073     HAVE_DECL_MEMMEM=0
25074   else
25075             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
25076 $as_echo_n "checking whether memmem works... " >&6; }
25077 if ${gl_cv_func_memmem_works_always+:} false; then :
25078   $as_echo_n "(cached) " >&6
25079 else
25080   if test "$cross_compiling" = yes; then :
25081                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25082 /* end confdefs.h.  */
25083
25084 #ifdef __GNU_LIBRARY__
25085  #include <features.h>
25086  #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
25087                           || __GLIBC_MINOR__ > 12)) \
25088       || (__GLIBC__ > 2)) \
25089      || defined __UCLIBC__
25090   Lucky user
25091  #endif
25092 #elif defined __CYGWIN__
25093  #include <cygwin/version.h>
25094  #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
25095   Lucky user
25096  #endif
25097 #else
25098   Lucky user
25099 #endif
25100
25101 _ACEOF
25102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25103   $EGREP "Lucky user" >/dev/null 2>&1; then :
25104   gl_cv_func_memmem_works_always="guessing yes"
25105 else
25106   gl_cv_func_memmem_works_always="guessing no"
25107 fi
25108 rm -f conftest*
25109
25110
25111 else
25112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25113 /* end confdefs.h.  */
25114
25115 #include <string.h> /* for memmem */
25116 #define P "_EF_BF_BD"
25117 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
25118 #define NEEDLE P P P P P
25119
25120 int
25121 main ()
25122 {
25123
25124     int result = 0;
25125     if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
25126       result |= 1;
25127     /* Check for empty needle behavior.  */
25128     {
25129       const char *haystack = "AAA";
25130       if (memmem (haystack, 3, NULL, 0) != haystack)
25131         result |= 2;
25132     }
25133     return result;
25134
25135   ;
25136   return 0;
25137 }
25138 _ACEOF
25139 if ac_fn_c_try_run "$LINENO"; then :
25140   gl_cv_func_memmem_works_always=yes
25141 else
25142   gl_cv_func_memmem_works_always=no
25143 fi
25144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25145   conftest.$ac_objext conftest.beam conftest.$ac_ext
25146 fi
25147
25148
25149 fi
25150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
25151 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
25152     case "$gl_cv_func_memmem_works_always" in
25153       *yes) ;;
25154       *)
25155         REPLACE_MEMMEM=1
25156         ;;
25157     esac
25158   fi
25159   :
25160
25161 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
25162
25163
25164
25165
25166
25167
25168
25169
25170   gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
25171
25172 fi
25173
25174
25175
25176
25177
25178           GNULIB_MEMMEM=1
25179
25180
25181
25182
25183
25184 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
25185
25186
25187
25188
25189
25190
25191
25192
25193
25194
25195
25196
25197
25198   if test $gl_cv_func_malloc_posix = yes; then
25199
25200 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
25201
25202   else
25203     REPLACE_REALLOC=1
25204   fi
25205
25206 if test $REPLACE_REALLOC = 1; then
25207
25208
25209
25210
25211
25212
25213
25214
25215   gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
25216
25217 fi
25218
25219
25220
25221
25222
25223           GNULIB_REALLOC_POSIX=1
25224
25225
25226
25227
25228
25229 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
25230
25231
25232
25233
25234   for ac_header in stdint.h
25235 do :
25236   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
25237 if test "x$ac_cv_header_stdint_h" = xyes; then :
25238   cat >>confdefs.h <<_ACEOF
25239 #define HAVE_STDINT_H 1
25240 _ACEOF
25241
25242 fi
25243
25244 done
25245
25246     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
25247 $as_echo_n "checking for SIZE_MAX... " >&6; }
25248 if ${gl_cv_size_max+:} false; then :
25249   $as_echo_n "(cached) " >&6
25250 else
25251
25252     gl_cv_size_max=
25253     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25254 /* end confdefs.h.  */
25255
25256 #include <limits.h>
25257 #if HAVE_STDINT_H
25258 #include <stdint.h>
25259 #endif
25260 #ifdef SIZE_MAX
25261 Found it
25262 #endif
25263
25264 _ACEOF
25265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25266   $EGREP "Found it" >/dev/null 2>&1; then :
25267   gl_cv_size_max=yes
25268 fi
25269 rm -f conftest*
25270
25271     if test -z "$gl_cv_size_max"; then
25272                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
25273 #include <limits.h>"; then :
25274
25275 else
25276   size_t_bits_minus_1=
25277 fi
25278
25279       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
25280
25281 else
25282   fits_in_uint=
25283 fi
25284
25285       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
25286         if test $fits_in_uint = 1; then
25287                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25288 /* end confdefs.h.  */
25289 #include <stddef.h>
25290             extern size_t foo;
25291             extern unsigned long foo;
25292
25293 int
25294 main ()
25295 {
25296
25297   ;
25298   return 0;
25299 }
25300 _ACEOF
25301 if ac_fn_c_try_compile "$LINENO"; then :
25302   fits_in_uint=0
25303 fi
25304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25305         fi
25306                                 if test $fits_in_uint = 1; then
25307           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
25308         else
25309           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
25310         fi
25311       else
25312                 gl_cv_size_max='((size_t)~(size_t)0)'
25313       fi
25314     fi
25315
25316 fi
25317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
25318 $as_echo "$gl_cv_size_max" >&6; }
25319   if test "$gl_cv_size_max" != yes; then
25320
25321 cat >>confdefs.h <<_ACEOF
25322 #define SIZE_MAX $gl_cv_size_max
25323 _ACEOF
25324
25325   fi
25326
25327
25328
25329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
25330 $as_echo_n "checking for ssize_t... " >&6; }
25331 if ${gt_cv_ssize_t+:} false; then :
25332   $as_echo_n "(cached) " >&6
25333 else
25334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25335 /* end confdefs.h.  */
25336 #include <sys/types.h>
25337 int
25338 main ()
25339 {
25340 int x = sizeof (ssize_t *) + sizeof (ssize_t);
25341             return !x;
25342   ;
25343   return 0;
25344 }
25345 _ACEOF
25346 if ac_fn_c_try_compile "$LINENO"; then :
25347   gt_cv_ssize_t=yes
25348 else
25349   gt_cv_ssize_t=no
25350 fi
25351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25352 fi
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
25354 $as_echo "$gt_cv_ssize_t" >&6; }
25355   if test $gt_cv_ssize_t = no; then
25356
25357 $as_echo "#define ssize_t int" >>confdefs.h
25358
25359   fi
25360
25361
25362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
25363 $as_echo_n "checking for working stdalign.h... " >&6; }
25364 if ${gl_cv_header_working_stdalign_h+:} false; then :
25365   $as_echo_n "(cached) " >&6
25366 else
25367   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25368 /* end confdefs.h.  */
25369 #include <stdalign.h>
25370             #include <stddef.h>
25371
25372             /* Test that alignof yields a result consistent with offsetof.
25373                This catches GCC bug 52023
25374                <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>.  */
25375             #ifdef __cplusplus
25376                template <class t> struct alignof_helper { char a; t b; };
25377             # define ao(type) offsetof (alignof_helper<type>, b)
25378             #else
25379             # define ao(type) offsetof (struct { char a; type b; }, b)
25380             #endif
25381             char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
25382             char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
25383             char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
25384
25385             /* Test _Alignas only on platforms where gnulib can help.  */
25386             #if \
25387                 (__GNUC__ || __IBMC__ || __IBMCPP__ \
25388                  || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
25389               int alignas (8) alignas_int = 1;
25390               char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
25391             #endif
25392
25393 int
25394 main ()
25395 {
25396
25397   ;
25398   return 0;
25399 }
25400 _ACEOF
25401 if ac_fn_c_try_compile "$LINENO"; then :
25402   gl_cv_header_working_stdalign_h=yes
25403 else
25404   gl_cv_header_working_stdalign_h=no
25405 fi
25406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25407 fi
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
25409 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
25410
25411   if test $gl_cv_header_working_stdalign_h = yes; then
25412     STDALIGN_H=''
25413   else
25414     STDALIGN_H='stdalign.h'
25415   fi
25416
25417
25418    if test -n "$STDALIGN_H"; then
25419   GL_GENERATE_STDALIGN_H_TRUE=
25420   GL_GENERATE_STDALIGN_H_FALSE='#'
25421 else
25422   GL_GENERATE_STDALIGN_H_TRUE='#'
25423   GL_GENERATE_STDALIGN_H_FALSE=
25424 fi
25425
25426
25427
25428
25429
25430   # Define two additional variables used in the Makefile substitution.
25431
25432   if test "$ac_cv_header_stdbool_h" = yes; then
25433     STDBOOL_H=''
25434   else
25435     STDBOOL_H='stdbool.h'
25436   fi
25437
25438    if test -n "$STDBOOL_H"; then
25439   GL_GENERATE_STDBOOL_H_TRUE=
25440   GL_GENERATE_STDBOOL_H_FALSE='#'
25441 else
25442   GL_GENERATE_STDBOOL_H_TRUE='#'
25443   GL_GENERATE_STDBOOL_H_FALSE=
25444 fi
25445
25446
25447   if test "$ac_cv_type__Bool" = yes; then
25448     HAVE__BOOL=1
25449   else
25450     HAVE__BOOL=0
25451   fi
25452
25453
25454
25455
25456
25457   STDDEF_H=
25458   if test $gt_cv_c_wchar_t = no; then
25459     HAVE_WCHAR_T=0
25460     STDDEF_H=stddef.h
25461   fi
25462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
25463 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
25464 if ${gl_cv_decl_null_works+:} false; then :
25465   $as_echo_n "(cached) " >&6
25466 else
25467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25468 /* end confdefs.h.  */
25469 #include <stddef.h>
25470       int test[2 * (sizeof NULL == sizeof (void *)) -1];
25471
25472 int
25473 main ()
25474 {
25475
25476   ;
25477   return 0;
25478 }
25479 _ACEOF
25480 if ac_fn_c_try_compile "$LINENO"; then :
25481   gl_cv_decl_null_works=yes
25482 else
25483   gl_cv_decl_null_works=no
25484 fi
25485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25486 fi
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
25488 $as_echo "$gl_cv_decl_null_works" >&6; }
25489   if test $gl_cv_decl_null_works = no; then
25490     REPLACE_NULL=1
25491     STDDEF_H=stddef.h
25492   fi
25493
25494    if test -n "$STDDEF_H"; then
25495   GL_GENERATE_STDDEF_H_TRUE=
25496   GL_GENERATE_STDDEF_H_FALSE='#'
25497 else
25498   GL_GENERATE_STDDEF_H_TRUE='#'
25499   GL_GENERATE_STDDEF_H_FALSE=
25500 fi
25501
25502   if test -n "$STDDEF_H"; then
25503
25504
25505
25506
25507
25508
25509
25510
25511      if test $gl_cv_have_include_next = yes; then
25512        gl_cv_next_stddef_h='<'stddef.h'>'
25513      else
25514        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
25515 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
25516 if ${gl_cv_next_stddef_h+:} false; then :
25517   $as_echo_n "(cached) " >&6
25518 else
25519
25520                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25521 /* end confdefs.h.  */
25522 #include <stddef.h>
25523
25524 _ACEOF
25525                                                                                                                         case "$host_os" in
25526                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
25527                  *)    gl_absname_cpp="$ac_cpp" ;;
25528                esac
25529
25530                case "$host_os" in
25531                  mingw*)
25532                                                                                                                                      gl_dirsep_regex='[/\\]'
25533                    ;;
25534                  *)
25535                    gl_dirsep_regex='\/'
25536                    ;;
25537                esac
25538                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25539
25540                gl_header_literal_regex=`echo 'stddef.h' \
25541                                         | sed -e "$gl_make_literal_regex_sed"`
25542                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25543                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25544                    s|^/[^/]|//&|
25545                    p
25546                    q
25547                  }'
25548                                                             gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25549                       sed -n "$gl_absolute_header_sed"`'"'
25550
25551
25552 fi
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
25554 $as_echo "$gl_cv_next_stddef_h" >&6; }
25555      fi
25556      NEXT_STDDEF_H=$gl_cv_next_stddef_h
25557
25558      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25559        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25560        gl_next_as_first_directive='<'stddef.h'>'
25561      else
25562        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25563        gl_next_as_first_directive=$gl_cv_next_stddef_h
25564      fi
25565      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
25566
25567
25568
25569
25570   fi
25571
25572
25573
25574
25575
25576
25577
25578
25579
25580
25581
25582
25583
25584      if test $gl_cv_have_include_next = yes; then
25585        gl_cv_next_stdio_h='<'stdio.h'>'
25586      else
25587        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
25588 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
25589 if ${gl_cv_next_stdio_h+:} false; then :
25590   $as_echo_n "(cached) " >&6
25591 else
25592
25593                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25594 /* end confdefs.h.  */
25595 #include <stdio.h>
25596
25597 _ACEOF
25598                                                                                                                         case "$host_os" in
25599                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
25600                  *)    gl_absname_cpp="$ac_cpp" ;;
25601                esac
25602
25603                case "$host_os" in
25604                  mingw*)
25605                                                                                                                                      gl_dirsep_regex='[/\\]'
25606                    ;;
25607                  *)
25608                    gl_dirsep_regex='\/'
25609                    ;;
25610                esac
25611                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25612
25613                gl_header_literal_regex=`echo 'stdio.h' \
25614                                         | sed -e "$gl_make_literal_regex_sed"`
25615                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25616                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25617                    s|^/[^/]|//&|
25618                    p
25619                    q
25620                  }'
25621                                                             gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25622                       sed -n "$gl_absolute_header_sed"`'"'
25623
25624
25625 fi
25626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
25627 $as_echo "$gl_cv_next_stdio_h" >&6; }
25628      fi
25629      NEXT_STDIO_H=$gl_cv_next_stdio_h
25630
25631      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25632        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25633        gl_next_as_first_directive='<'stdio.h'>'
25634      else
25635        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25636        gl_next_as_first_directive=$gl_cv_next_stdio_h
25637      fi
25638      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
25639
25640
25641
25642
25643
25644       GNULIB_FSCANF=1
25645   GNULIB_SCANF=1
25646   GNULIB_FGETC=1
25647   GNULIB_GETC=1
25648   GNULIB_GETCHAR=1
25649   GNULIB_FGETS=1
25650   GNULIB_FREAD=1
25651
25652
25653       GNULIB_FPRINTF=1
25654   GNULIB_PRINTF=1
25655   GNULIB_VFPRINTF=1
25656   GNULIB_VPRINTF=1
25657   GNULIB_FPUTC=1
25658   GNULIB_PUTC=1
25659   GNULIB_PUTCHAR=1
25660   GNULIB_FPUTS=1
25661   GNULIB_PUTS=1
25662   GNULIB_FWRITE=1
25663
25664
25665
25666
25667     for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen     renameat snprintf tmpfile vdprintf vsnprintf; do
25668     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25669     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25670 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25671 if eval \${$as_gl_Symbol+:} false; then :
25672   $as_echo_n "(cached) " >&6
25673 else
25674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25675 /* end confdefs.h.  */
25676 #include <stdio.h>
25677
25678 int
25679 main ()
25680 {
25681 #undef $gl_func
25682   (void) $gl_func;
25683   ;
25684   return 0;
25685 }
25686 _ACEOF
25687 if ac_fn_c_try_compile "$LINENO"; then :
25688   eval "$as_gl_Symbol=yes"
25689 else
25690   eval "$as_gl_Symbol=no"
25691 fi
25692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25693 fi
25694 eval ac_res=\$$as_gl_Symbol
25695                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25696 $as_echo "$ac_res" >&6; }
25697     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25698   cat >>confdefs.h <<_ACEOF
25699 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25700 _ACEOF
25701
25702                      eval ac_cv_have_decl_$gl_func=yes
25703 fi
25704       done
25705
25706
25707
25708
25709
25710
25711
25712
25713
25714
25715
25716
25717      if test $gl_cv_have_include_next = yes; then
25718        gl_cv_next_stdlib_h='<'stdlib.h'>'
25719      else
25720        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
25721 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
25722 if ${gl_cv_next_stdlib_h+:} false; then :
25723   $as_echo_n "(cached) " >&6
25724 else
25725
25726                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25727 /* end confdefs.h.  */
25728 #include <stdlib.h>
25729
25730 _ACEOF
25731                                                                                                                         case "$host_os" in
25732                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
25733                  *)    gl_absname_cpp="$ac_cpp" ;;
25734                esac
25735
25736                case "$host_os" in
25737                  mingw*)
25738                                                                                                                                      gl_dirsep_regex='[/\\]'
25739                    ;;
25740                  *)
25741                    gl_dirsep_regex='\/'
25742                    ;;
25743                esac
25744                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25745
25746                gl_header_literal_regex=`echo 'stdlib.h' \
25747                                         | sed -e "$gl_make_literal_regex_sed"`
25748                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25749                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25750                    s|^/[^/]|//&|
25751                    p
25752                    q
25753                  }'
25754                                                             gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25755                       sed -n "$gl_absolute_header_sed"`'"'
25756
25757
25758 fi
25759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
25760 $as_echo "$gl_cv_next_stdlib_h" >&6; }
25761      fi
25762      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
25763
25764      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25765        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25766        gl_next_as_first_directive='<'stdlib.h'>'
25767      else
25768        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25769        gl_next_as_first_directive=$gl_cv_next_stdlib_h
25770      fi
25771      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
25772
25773
25774
25775
25776
25777
25778     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     setenv setstate setstate_r srandom srandom_r     strtod strtoll strtoull unlockpt unsetenv; do
25779     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25780     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25781 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25782 if eval \${$as_gl_Symbol+:} false; then :
25783   $as_echo_n "(cached) " >&6
25784 else
25785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25786 /* end confdefs.h.  */
25787 #include <stdlib.h>
25788 #if HAVE_SYS_LOADAVG_H
25789 # include <sys/loadavg.h>
25790 #endif
25791 #if HAVE_RANDOM_H
25792 # include <random.h>
25793 #endif
25794
25795 int
25796 main ()
25797 {
25798 #undef $gl_func
25799   (void) $gl_func;
25800   ;
25801   return 0;
25802 }
25803 _ACEOF
25804 if ac_fn_c_try_compile "$LINENO"; then :
25805   eval "$as_gl_Symbol=yes"
25806 else
25807   eval "$as_gl_Symbol=no"
25808 fi
25809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25810 fi
25811 eval ac_res=\$$as_gl_Symbol
25812                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25813 $as_echo "$ac_res" >&6; }
25814     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25815   cat >>confdefs.h <<_ACEOF
25816 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25817 _ACEOF
25818
25819                      eval ac_cv_have_decl_$gl_func=yes
25820 fi
25821       done
25822
25823
25824
25825
25826
25827
25828
25829
25830
25831
25832
25833   if test $ac_cv_have_decl_strndup = no; then
25834     HAVE_DECL_STRNDUP=0
25835   fi
25836
25837   if test $ac_cv_func_strndup = yes; then
25838     HAVE_STRNDUP=1
25839     # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
25840     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
25841 $as_echo_n "checking for working strndup... " >&6; }
25842 if ${gl_cv_func_strndup_works+:} false; then :
25843   $as_echo_n "(cached) " >&6
25844 else
25845   if test "$cross_compiling" = yes; then :
25846
25847           case $host_os in
25848             aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
25849             *)               gl_cv_func_strndup_works="guessing yes";;
25850           esac
25851
25852 else
25853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25854 /* end confdefs.h.  */
25855
25856          #include <string.h>
25857                            #include <stdlib.h>
25858 int
25859 main ()
25860 {
25861
25862 #ifndef HAVE_DECL_STRNDUP
25863   extern
25864   #ifdef __cplusplus
25865   "C"
25866   #endif
25867   char *strndup (const char *, size_t);
25868 #endif
25869   char *s;
25870   s = strndup ("some longer string", 15);
25871   free (s);
25872   s = strndup ("shorter string", 13);
25873   return s[13] != '\0';
25874   ;
25875   return 0;
25876 }
25877 _ACEOF
25878 if ac_fn_c_try_run "$LINENO"; then :
25879   gl_cv_func_strndup_works=yes
25880 else
25881   gl_cv_func_strndup_works=no
25882 fi
25883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25884   conftest.$ac_objext conftest.beam conftest.$ac_ext
25885 fi
25886
25887 fi
25888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
25889 $as_echo "$gl_cv_func_strndup_works" >&6; }
25890     case $gl_cv_func_strndup_works in
25891       *no) REPLACE_STRNDUP=1 ;;
25892     esac
25893   else
25894     HAVE_STRNDUP=0
25895   fi
25896
25897 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
25898
25899
25900
25901
25902
25903
25904
25905
25906   gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
25907
25908 fi
25909
25910
25911
25912
25913
25914           GNULIB_STRNDUP=1
25915
25916
25917
25918
25919
25920 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
25921
25922
25923
25924
25925
25926
25927
25928
25929
25930   if test $ac_cv_have_decl_strnlen = no; then
25931     HAVE_DECL_STRNLEN=0
25932   else
25933
25934          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
25935 $as_echo_n "checking for working strnlen... " >&6; }
25936 if ${ac_cv_func_strnlen_working+:} false; then :
25937   $as_echo_n "(cached) " >&6
25938 else
25939   if test "$cross_compiling" = yes; then :
25940   # Guess no on AIX systems, yes otherwise.
25941                 case "$host_os" in
25942                   aix*) ac_cv_func_strnlen_working=no;;
25943                   *)    ac_cv_func_strnlen_working=yes;;
25944                 esac
25945 else
25946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25947 /* end confdefs.h.  */
25948 $ac_includes_default
25949 int
25950 main ()
25951 {
25952
25953 #define S "foobar"
25954 #define S_LEN (sizeof S - 1)
25955
25956   /* At least one implementation is buggy: that of AIX 4.3 would
25957      give strnlen (S, 1) == 3.  */
25958
25959   int i;
25960   for (i = 0; i < S_LEN + 1; ++i)
25961     {
25962       int expected = i <= S_LEN ? i : S_LEN;
25963       if (strnlen (S, i) != expected)
25964         return 1;
25965     }
25966   return 0;
25967
25968   ;
25969   return 0;
25970 }
25971 _ACEOF
25972 if ac_fn_c_try_run "$LINENO"; then :
25973   ac_cv_func_strnlen_working=yes
25974 else
25975   ac_cv_func_strnlen_working=no
25976 fi
25977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25978   conftest.$ac_objext conftest.beam conftest.$ac_ext
25979 fi
25980
25981 fi
25982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
25983 $as_echo "$ac_cv_func_strnlen_working" >&6; }
25984 test $ac_cv_func_strnlen_working = no && :
25985
25986
25987     if test $ac_cv_func_strnlen_working = no; then
25988       REPLACE_STRNLEN=1
25989     fi
25990   fi
25991
25992 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
25993
25994
25995
25996
25997
25998
25999
26000
26001   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
26002
26003   :
26004 fi
26005
26006
26007
26008
26009
26010           GNULIB_STRNLEN=1
26011
26012
26013
26014
26015
26016 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
26017
26018
26019
26020
26021
26022
26023
26024   for ac_func in strverscmp
26025 do :
26026   ac_fn_c_check_func "$LINENO" "strverscmp" "ac_cv_func_strverscmp"
26027 if test "x$ac_cv_func_strverscmp" = xyes; then :
26028   cat >>confdefs.h <<_ACEOF
26029 #define HAVE_STRVERSCMP 1
26030 _ACEOF
26031
26032 fi
26033 done
26034
26035   if test $ac_cv_func_strverscmp = no; then
26036     HAVE_STRVERSCMP=0
26037   fi
26038
26039 if test $HAVE_STRVERSCMP = 0; then
26040
26041
26042
26043
26044
26045
26046
26047
26048   gl_LIBOBJS="$gl_LIBOBJS strverscmp.$ac_objext"
26049
26050
26051   :
26052
26053 fi
26054
26055
26056
26057
26058
26059           GNULIB_STRVERSCMP=1
26060
26061
26062
26063
26064
26065 $as_echo "#define GNULIB_TEST_STRVERSCMP 1" >>confdefs.h
26066
26067
26068
26069
26070
26071
26072
26073
26074
26075
26076
26077
26078
26079      if test $gl_cv_have_include_next = yes; then
26080        gl_cv_next_sys_types_h='<'sys/types.h'>'
26081      else
26082        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
26083 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
26084 if ${gl_cv_next_sys_types_h+:} false; then :
26085   $as_echo_n "(cached) " >&6
26086 else
26087
26088                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26089 /* end confdefs.h.  */
26090 #include <sys/types.h>
26091
26092 _ACEOF
26093                                                                                                                         case "$host_os" in
26094                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
26095                  *)    gl_absname_cpp="$ac_cpp" ;;
26096                esac
26097
26098                case "$host_os" in
26099                  mingw*)
26100                                                                                                                                      gl_dirsep_regex='[/\\]'
26101                    ;;
26102                  *)
26103                    gl_dirsep_regex='\/'
26104                    ;;
26105                esac
26106                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26107
26108                gl_header_literal_regex=`echo 'sys/types.h' \
26109                                         | sed -e "$gl_make_literal_regex_sed"`
26110                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26111                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26112                    s|^/[^/]|//&|
26113                    p
26114                    q
26115                  }'
26116                                                             gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26117                       sed -n "$gl_absolute_header_sed"`'"'
26118
26119
26120 fi
26121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
26122 $as_echo "$gl_cv_next_sys_types_h" >&6; }
26123      fi
26124      NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
26125
26126      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26127        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26128        gl_next_as_first_directive='<'sys/types.h'>'
26129      else
26130        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26131        gl_next_as_first_directive=$gl_cv_next_sys_types_h
26132      fi
26133      NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
26134
26135
26136
26137
26138
26139
26140
26141
26142
26143
26144
26145
26146
26147
26148
26149
26150
26151
26152
26153
26154
26155
26156
26157
26158
26159      if test $gl_cv_have_include_next = yes; then
26160        gl_cv_next_unistd_h='<'unistd.h'>'
26161      else
26162        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
26163 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
26164 if ${gl_cv_next_unistd_h+:} false; then :
26165   $as_echo_n "(cached) " >&6
26166 else
26167
26168              if test $ac_cv_header_unistd_h = yes; then
26169
26170
26171                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26172 /* end confdefs.h.  */
26173 #include <unistd.h>
26174
26175 _ACEOF
26176                                                                                                                         case "$host_os" in
26177                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
26178                  *)    gl_absname_cpp="$ac_cpp" ;;
26179                esac
26180
26181                case "$host_os" in
26182                  mingw*)
26183                                                                                                                                      gl_dirsep_regex='[/\\]'
26184                    ;;
26185                  *)
26186                    gl_dirsep_regex='\/'
26187                    ;;
26188                esac
26189                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26190
26191                gl_header_literal_regex=`echo 'unistd.h' \
26192                                         | sed -e "$gl_make_literal_regex_sed"`
26193                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26194                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26195                    s|^/[^/]|//&|
26196                    p
26197                    q
26198                  }'
26199                                                             gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26200                       sed -n "$gl_absolute_header_sed"`'"'
26201           else
26202                gl_cv_next_unistd_h='<'unistd.h'>'
26203              fi
26204
26205
26206 fi
26207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
26208 $as_echo "$gl_cv_next_unistd_h" >&6; }
26209      fi
26210      NEXT_UNISTD_H=$gl_cv_next_unistd_h
26211
26212      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26213        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26214        gl_next_as_first_directive='<'unistd.h'>'
26215      else
26216        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26217        gl_next_as_first_directive=$gl_cv_next_unistd_h
26218      fi
26219      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
26220
26221
26222
26223
26224   if test $ac_cv_header_unistd_h = yes; then
26225     HAVE_UNISTD_H=1
26226   else
26227     HAVE_UNISTD_H=0
26228   fi
26229
26230
26231
26232
26233
26234
26235
26236     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
26237     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
26238     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
26239 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
26240 if eval \${$as_gl_Symbol+:} false; then :
26241   $as_echo_n "(cached) " >&6
26242 else
26243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26244 /* end confdefs.h.  */
26245
26246 #if HAVE_UNISTD_H
26247 # include <unistd.h>
26248 #endif
26249 /* Some systems declare various items in the wrong headers.  */
26250 #if !(defined __GLIBC__ && !defined __UCLIBC__)
26251 # include <fcntl.h>
26252 # include <stdio.h>
26253 # include <stdlib.h>
26254 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
26255 #  include <io.h>
26256 # endif
26257 #endif
26258
26259 int
26260 main ()
26261 {
26262 #undef $gl_func
26263   (void) $gl_func;
26264   ;
26265   return 0;
26266 }
26267 _ACEOF
26268 if ac_fn_c_try_compile "$LINENO"; then :
26269   eval "$as_gl_Symbol=yes"
26270 else
26271   eval "$as_gl_Symbol=no"
26272 fi
26273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26274 fi
26275 eval ac_res=\$$as_gl_Symbol
26276                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26277 $as_echo "$ac_res" >&6; }
26278     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
26279   cat >>confdefs.h <<_ACEOF
26280 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26281 _ACEOF
26282
26283                      eval ac_cv_have_decl_$gl_func=yes
26284 fi
26285       done
26286
26287
26288
26289
26290   if test $ac_cv_func_vasnprintf = no; then
26291
26292
26293
26294
26295
26296
26297
26298
26299
26300
26301   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
26302
26303
26304
26305
26306
26307
26308
26309
26310
26311   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
26312
26313
26314
26315
26316
26317
26318
26319
26320
26321   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
26322
26323
26324
26325
26326
26327
26328
26329
26330
26331   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
26332
26333   if test $ac_cv_func_vasnprintf = yes; then
26334
26335 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
26336
26337   fi
26338
26339
26340
26341
26342
26343
26344
26345
26346
26347
26348
26349   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
26350 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
26351
26352 else
26353
26354 $as_echo "#define ptrdiff_t long" >>confdefs.h
26355
26356
26357 fi
26358
26359
26360
26361
26362
26363
26364
26365   fi
26366
26367
26368   for ac_func in vasprintf
26369 do :
26370   ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
26371 if test "x$ac_cv_func_vasprintf" = xyes; then :
26372   cat >>confdefs.h <<_ACEOF
26373 #define HAVE_VASPRINTF 1
26374 _ACEOF
26375
26376 fi
26377 done
26378
26379   if test $ac_cv_func_vasprintf = no; then
26380
26381
26382
26383
26384
26385
26386
26387
26388
26389   gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
26390
26391
26392
26393
26394
26395
26396
26397
26398
26399   gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
26400
26401
26402   if test $ac_cv_func_vasprintf = yes; then
26403     REPLACE_VASPRINTF=1
26404   else
26405     HAVE_VASPRINTF=0
26406   fi
26407
26408
26409
26410
26411
26412
26413
26414
26415   fi
26416
26417
26418
26419
26420
26421
26422           GNULIB_VASPRINTF=1
26423
26424
26425
26426
26427
26428 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
26429
26430
26431
26432
26433
26434   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
26435
26436
26437
26438   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
26439
26440
26441
26442
26443
26444
26445
26446
26447
26448
26449
26450
26451
26452      if test $gl_cv_have_include_next = yes; then
26453        gl_cv_next_wchar_h='<'wchar.h'>'
26454      else
26455        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
26456 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
26457 if ${gl_cv_next_wchar_h+:} false; then :
26458   $as_echo_n "(cached) " >&6
26459 else
26460
26461              if test $ac_cv_header_wchar_h = yes; then
26462
26463
26464                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26465 /* end confdefs.h.  */
26466 #include <wchar.h>
26467
26468 _ACEOF
26469                                                                                                                         case "$host_os" in
26470                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
26471                  *)    gl_absname_cpp="$ac_cpp" ;;
26472                esac
26473
26474                case "$host_os" in
26475                  mingw*)
26476                                                                                                                                      gl_dirsep_regex='[/\\]'
26477                    ;;
26478                  *)
26479                    gl_dirsep_regex='\/'
26480                    ;;
26481                esac
26482                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26483
26484                gl_header_literal_regex=`echo 'wchar.h' \
26485                                         | sed -e "$gl_make_literal_regex_sed"`
26486                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26487                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26488                    s|^/[^/]|//&|
26489                    p
26490                    q
26491                  }'
26492                                                             gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26493                       sed -n "$gl_absolute_header_sed"`'"'
26494           else
26495                gl_cv_next_wchar_h='<'wchar.h'>'
26496              fi
26497
26498
26499 fi
26500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
26501 $as_echo "$gl_cv_next_wchar_h" >&6; }
26502      fi
26503      NEXT_WCHAR_H=$gl_cv_next_wchar_h
26504
26505      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26506        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26507        gl_next_as_first_directive='<'wchar.h'>'
26508      else
26509        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26510        gl_next_as_first_directive=$gl_cv_next_wchar_h
26511      fi
26512      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
26513
26514
26515
26516
26517   if test $ac_cv_header_wchar_h = yes; then
26518     HAVE_WCHAR_H=1
26519   else
26520     HAVE_WCHAR_H=0
26521   fi
26522
26523
26524
26525
26526
26527   if test $gt_cv_c_wint_t = yes; then
26528     HAVE_WINT_T=1
26529   else
26530     HAVE_WINT_T=0
26531   fi
26532
26533
26534
26535     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
26536     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
26537     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
26538 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
26539 if eval \${$as_gl_Symbol+:} false; then :
26540   $as_echo_n "(cached) " >&6
26541 else
26542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26543 /* end confdefs.h.  */
26544
26545 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26546    <wchar.h>.
26547    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26548    included before <wchar.h>.  */
26549 #if !(defined __GLIBC__ && !defined __UCLIBC__)
26550 # include <stddef.h>
26551 # include <stdio.h>
26552 # include <time.h>
26553 #endif
26554 #include <wchar.h>
26555
26556 int
26557 main ()
26558 {
26559 #undef $gl_func
26560   (void) $gl_func;
26561   ;
26562   return 0;
26563 }
26564 _ACEOF
26565 if ac_fn_c_try_compile "$LINENO"; then :
26566   eval "$as_gl_Symbol=yes"
26567 else
26568   eval "$as_gl_Symbol=no"
26569 fi
26570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26571 fi
26572 eval ac_res=\$$as_gl_Symbol
26573                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26574 $as_echo "$ac_res" >&6; }
26575     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
26576   cat >>confdefs.h <<_ACEOF
26577 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26578 _ACEOF
26579
26580                      eval ac_cv_have_decl_$gl_func=yes
26581 fi
26582       done
26583
26584
26585
26586
26587
26588   for ac_header in stdint.h
26589 do :
26590   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
26591 if test "x$ac_cv_header_stdint_h" = xyes; then :
26592   cat >>confdefs.h <<_ACEOF
26593 #define HAVE_STDINT_H 1
26594 _ACEOF
26595
26596 fi
26597
26598 done
26599
26600
26601   # End of code from modules
26602
26603
26604
26605
26606
26607
26608
26609
26610
26611   gltests_libdeps=
26612   gltests_ltlibdeps=
26613
26614
26615
26616
26617
26618
26619
26620
26621
26622   gl_source_base='gltests'
26623   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
26624
26625   gl_module_indicator_condition=$gltests_WITNESS
26626
26627
26628
26629
26630   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
26631     REPLACE_FDOPEN=1
26632   else
26633         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopen sets errno" >&5
26634 $as_echo_n "checking whether fdopen sets errno... " >&6; }
26635 if ${gl_cv_func_fdopen_works+:} false; then :
26636   $as_echo_n "(cached) " >&6
26637 else
26638
26639         if test "$cross_compiling" = yes; then :
26640   case "$host_os" in
26641              mingw*) gl_cv_func_fdopen_works="guessing no" ;;
26642              *)      gl_cv_func_fdopen_works="guessing yes" ;;
26643            esac
26644
26645 else
26646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26647 /* end confdefs.h.  */
26648
26649 #include <stdio.h>
26650 #include <errno.h>
26651 int
26652 main (void)
26653 {
26654   FILE *fp;
26655   errno = 0;
26656   fp = fdopen (-1, "r");
26657   if (fp != NULL)
26658     return 1;
26659   if (errno == 0)
26660     return 2;
26661   return 0;
26662 }
26663 _ACEOF
26664 if ac_fn_c_try_run "$LINENO"; then :
26665   gl_cv_func_fdopen_works=yes
26666 else
26667   gl_cv_func_fdopen_works=no
26668 fi
26669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26670   conftest.$ac_objext conftest.beam conftest.$ac_ext
26671 fi
26672
26673
26674 fi
26675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopen_works" >&5
26676 $as_echo "$gl_cv_func_fdopen_works" >&6; }
26677     case "$gl_cv_func_fdopen_works" in
26678       *no) REPLACE_FDOPEN=1 ;;
26679     esac
26680   fi
26681
26682 if test $REPLACE_FDOPEN = 1; then
26683
26684
26685
26686
26687
26688
26689
26690
26691   gltests_LIBOBJS="$gltests_LIBOBJS fdopen.$ac_objext"
26692
26693
26694 fi
26695
26696
26697
26698
26699
26700     if test "$GNULIB_FDOPEN" != 1; then
26701         if test "$GNULIB_FDOPEN" = 0; then
26702       GNULIB_FDOPEN=$gl_module_indicator_condition
26703     else
26704       GNULIB_FDOPEN="($GNULIB_FDOPEN || $gl_module_indicator_condition)"
26705     fi
26706   fi
26707
26708
26709
26710
26711
26712 $as_echo "#define GNULIB_TEST_FDOPEN 1" >>confdefs.h
26713
26714
26715
26716
26717
26718
26719   for ac_func in getpagesize
26720 do :
26721   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
26722 if test "x$ac_cv_func_getpagesize" = xyes; then :
26723   cat >>confdefs.h <<_ACEOF
26724 #define HAVE_GETPAGESIZE 1
26725 _ACEOF
26726
26727 fi
26728 done
26729
26730   if test $ac_cv_func_getpagesize = no; then
26731     HAVE_GETPAGESIZE=0
26732     for ac_header in OS.h
26733 do :
26734   ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
26735 if test "x$ac_cv_header_OS_h" = xyes; then :
26736   cat >>confdefs.h <<_ACEOF
26737 #define HAVE_OS_H 1
26738 _ACEOF
26739
26740 fi
26741
26742 done
26743
26744     if test $ac_cv_header_OS_h = yes; then
26745       HAVE_OS_H=1
26746     fi
26747     for ac_header in sys/param.h
26748 do :
26749   ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
26750 if test "x$ac_cv_header_sys_param_h" = xyes; then :
26751   cat >>confdefs.h <<_ACEOF
26752 #define HAVE_SYS_PARAM_H 1
26753 _ACEOF
26754
26755 fi
26756
26757 done
26758
26759     if test $ac_cv_header_sys_param_h = yes; then
26760       HAVE_SYS_PARAM_H=1
26761     fi
26762   fi
26763   case "$host_os" in
26764     mingw*)
26765       REPLACE_GETPAGESIZE=1
26766       ;;
26767   esac
26768       ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
26769 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
26770
26771 else
26772   HAVE_DECL_GETPAGESIZE=0
26773 fi
26774
26775
26776 if test $REPLACE_GETPAGESIZE = 1; then
26777
26778
26779
26780
26781
26782
26783
26784
26785   gltests_LIBOBJS="$gltests_LIBOBJS getpagesize.$ac_objext"
26786
26787 fi
26788
26789
26790
26791
26792
26793     if test "$GNULIB_GETPAGESIZE" != 1; then
26794         if test "$GNULIB_GETPAGESIZE" = 0; then
26795       GNULIB_GETPAGESIZE=$gl_module_indicator_condition
26796     else
26797       GNULIB_GETPAGESIZE="($GNULIB_GETPAGESIZE || $gl_module_indicator_condition)"
26798     fi
26799   fi
26800
26801
26802
26803
26804
26805 $as_echo "#define GNULIB_TEST_GETPAGESIZE 1" >>confdefs.h
26806
26807
26808
26809
26810
26811
26812
26813
26814   PRIPTR_PREFIX=
26815   if test -n "$STDINT_H"; then
26816         PRIPTR_PREFIX='"l"'
26817   else
26818         for glpfx in '' l ll I64; do
26819       case $glpfx in
26820         '')  gltype1='int';;
26821         l)   gltype1='long int';;
26822         ll)  gltype1='long long int';;
26823         I64) gltype1='__int64';;
26824       esac
26825       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26826 /* end confdefs.h.  */
26827 #include <stdint.h>
26828            extern intptr_t foo;
26829            extern $gltype1 foo;
26830 int
26831 main ()
26832 {
26833
26834   ;
26835   return 0;
26836 }
26837 _ACEOF
26838 if ac_fn_c_try_compile "$LINENO"; then :
26839   PRIPTR_PREFIX='"'$glpfx'"'
26840 fi
26841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26842       test -n "$PRIPTR_PREFIX" && break
26843     done
26844   fi
26845
26846
26847
26848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
26849 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
26850 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then :
26851   $as_echo_n "(cached) " >&6
26852 else
26853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26854 /* end confdefs.h.  */
26855 /* Work also in C++ mode.  */
26856             #define __STDC_LIMIT_MACROS 1
26857
26858             /* Work if build is not clean.  */
26859             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
26860
26861             #include <limits.h>
26862             #if HAVE_STDINT_H
26863              #include <stdint.h>
26864             #endif
26865
26866             #if defined INT32_MAX && defined INTMAX_MAX
26867              #define CONDITION (INT32_MAX < INTMAX_MAX)
26868             #elif HAVE_LONG_LONG_INT
26869              #define CONDITION (sizeof (int) < sizeof (long long int))
26870             #else
26871              #define CONDITION 0
26872             #endif
26873             int test[CONDITION ? 1 : -1];
26874 int
26875 main ()
26876 {
26877
26878   ;
26879   return 0;
26880 }
26881 _ACEOF
26882 if ac_fn_c_try_compile "$LINENO"; then :
26883   gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
26884 else
26885   gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
26886 fi
26887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26888 fi
26889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
26890 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
26891   if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
26892     INT32_MAX_LT_INTMAX_MAX=1;
26893   else
26894     INT32_MAX_LT_INTMAX_MAX=0;
26895   fi
26896
26897
26898   if test $APPLE_UNIVERSAL_BUILD = 0; then
26899
26900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
26901 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
26902 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then :
26903   $as_echo_n "(cached) " >&6
26904 else
26905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26906 /* end confdefs.h.  */
26907 /* Work also in C++ mode.  */
26908             #define __STDC_LIMIT_MACROS 1
26909
26910             /* Work if build is not clean.  */
26911             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
26912
26913             #include <limits.h>
26914             #if HAVE_STDINT_H
26915              #include <stdint.h>
26916             #endif
26917
26918             #if defined INT64_MAX
26919              #define CONDITION (INT64_MAX == LONG_MAX)
26920             #elif HAVE_LONG_LONG_INT
26921              #define CONDITION (sizeof (long long int) == sizeof (long int))
26922             #else
26923              #define CONDITION 0
26924             #endif
26925             int test[CONDITION ? 1 : -1];
26926 int
26927 main ()
26928 {
26929
26930   ;
26931   return 0;
26932 }
26933 _ACEOF
26934 if ac_fn_c_try_compile "$LINENO"; then :
26935   gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
26936 else
26937   gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
26938 fi
26939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26940 fi
26941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
26942 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
26943   if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
26944     INT64_MAX_EQ_LONG_MAX=1;
26945   else
26946     INT64_MAX_EQ_LONG_MAX=0;
26947   fi
26948
26949
26950   else
26951     INT64_MAX_EQ_LONG_MAX=-1
26952   fi
26953
26954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
26955 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
26956 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then :
26957   $as_echo_n "(cached) " >&6
26958 else
26959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26960 /* end confdefs.h.  */
26961 /* Work also in C++ mode.  */
26962             #define __STDC_LIMIT_MACROS 1
26963
26964             /* Work if build is not clean.  */
26965             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
26966
26967             #include <limits.h>
26968             #if HAVE_STDINT_H
26969              #include <stdint.h>
26970             #endif
26971
26972             #if defined UINT32_MAX && defined UINTMAX_MAX
26973              #define CONDITION (UINT32_MAX < UINTMAX_MAX)
26974             #elif HAVE_LONG_LONG_INT
26975              #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
26976             #else
26977              #define CONDITION 0
26978             #endif
26979             int test[CONDITION ? 1 : -1];
26980 int
26981 main ()
26982 {
26983
26984   ;
26985   return 0;
26986 }
26987 _ACEOF
26988 if ac_fn_c_try_compile "$LINENO"; then :
26989   gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
26990 else
26991   gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
26992 fi
26993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26994 fi
26995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
26996 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
26997   if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
26998     UINT32_MAX_LT_UINTMAX_MAX=1;
26999   else
27000     UINT32_MAX_LT_UINTMAX_MAX=0;
27001   fi
27002
27003
27004   if test $APPLE_UNIVERSAL_BUILD = 0; then
27005
27006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
27007 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
27008 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then :
27009   $as_echo_n "(cached) " >&6
27010 else
27011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27012 /* end confdefs.h.  */
27013 /* Work also in C++ mode.  */
27014             #define __STDC_LIMIT_MACROS 1
27015
27016             /* Work if build is not clean.  */
27017             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
27018
27019             #include <limits.h>
27020             #if HAVE_STDINT_H
27021              #include <stdint.h>
27022             #endif
27023
27024             #if defined UINT64_MAX
27025              #define CONDITION (UINT64_MAX == ULONG_MAX)
27026             #elif HAVE_LONG_LONG_INT
27027              #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
27028             #else
27029              #define CONDITION 0
27030             #endif
27031             int test[CONDITION ? 1 : -1];
27032 int
27033 main ()
27034 {
27035
27036   ;
27037   return 0;
27038 }
27039 _ACEOF
27040 if ac_fn_c_try_compile "$LINENO"; then :
27041   gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
27042 else
27043   gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
27044 fi
27045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27046 fi
27047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
27048 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
27049   if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
27050     UINT64_MAX_EQ_ULONG_MAX=1;
27051   else
27052     UINT64_MAX_EQ_ULONG_MAX=0;
27053   fi
27054
27055
27056   else
27057     UINT64_MAX_EQ_ULONG_MAX=-1
27058   fi
27059
27060
27061
27062
27063
27064
27065   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
27066   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
27067   # irrelevant for anonymous mappings.
27068   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
27069 if test "x$ac_cv_func_mmap" = xyes; then :
27070   gl_have_mmap=yes
27071 else
27072   gl_have_mmap=no
27073 fi
27074
27075
27076   # Try to allow MAP_ANONYMOUS.
27077   gl_have_mmap_anonymous=no
27078   if test $gl_have_mmap = yes; then
27079     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
27080 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
27081     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27082 /* end confdefs.h.  */
27083
27084 #include <sys/mman.h>
27085 #ifdef MAP_ANONYMOUS
27086     I cant identify this map
27087 #endif
27088
27089 _ACEOF
27090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27091   $EGREP "I cant identify this map" >/dev/null 2>&1; then :
27092   gl_have_mmap_anonymous=yes
27093 fi
27094 rm -f conftest*
27095
27096     if test $gl_have_mmap_anonymous != yes; then
27097       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27098 /* end confdefs.h.  */
27099
27100 #include <sys/mman.h>
27101 #ifdef MAP_ANON
27102     I cant identify this map
27103 #endif
27104
27105 _ACEOF
27106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27107   $EGREP "I cant identify this map" >/dev/null 2>&1; then :
27108
27109 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
27110
27111          gl_have_mmap_anonymous=yes
27112 fi
27113 rm -f conftest*
27114
27115     fi
27116     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
27117 $as_echo "$gl_have_mmap_anonymous" >&6; }
27118     if test $gl_have_mmap_anonymous = yes; then
27119
27120 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
27121
27122     fi
27123   fi
27124
27125
27126
27127
27128
27129
27130   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
27131   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
27132   # irrelevant for anonymous mappings.
27133   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
27134 if test "x$ac_cv_func_mmap" = xyes; then :
27135   gl_have_mmap=yes
27136 else
27137   gl_have_mmap=no
27138 fi
27139
27140
27141   # Try to allow MAP_ANONYMOUS.
27142   gl_have_mmap_anonymous=no
27143   if test $gl_have_mmap = yes; then
27144     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
27145 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
27146     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27147 /* end confdefs.h.  */
27148
27149 #include <sys/mman.h>
27150 #ifdef MAP_ANONYMOUS
27151     I cant identify this map
27152 #endif
27153
27154 _ACEOF
27155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27156   $EGREP "I cant identify this map" >/dev/null 2>&1; then :
27157   gl_have_mmap_anonymous=yes
27158 fi
27159 rm -f conftest*
27160
27161     if test $gl_have_mmap_anonymous != yes; then
27162       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27163 /* end confdefs.h.  */
27164
27165 #include <sys/mman.h>
27166 #ifdef MAP_ANON
27167     I cant identify this map
27168 #endif
27169
27170 _ACEOF
27171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27172   $EGREP "I cant identify this map" >/dev/null 2>&1; then :
27173
27174 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
27175
27176          gl_have_mmap_anonymous=yes
27177 fi
27178 rm -f conftest*
27179
27180     fi
27181     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
27182 $as_echo "$gl_have_mmap_anonymous" >&6; }
27183     if test $gl_have_mmap_anonymous = yes; then
27184
27185 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
27186
27187     fi
27188   fi
27189
27190
27191
27192
27193
27194
27195   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
27196     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
27197
27198 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
27199
27200   else
27201     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
27202   fi
27203
27204
27205 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
27206
27207
27208
27209
27210
27211
27212
27213
27214   gltests_LIBOBJS="$gltests_LIBOBJS msvc-inval.$ac_objext"
27215
27216 fi
27217
27218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
27219 $as_echo_n "checking for wchar_t... " >&6; }
27220 if ${gt_cv_c_wchar_t+:} false; then :
27221   $as_echo_n "(cached) " >&6
27222 else
27223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27224 /* end confdefs.h.  */
27225 #include <stddef.h>
27226        wchar_t foo = (wchar_t)'\0';
27227 int
27228 main ()
27229 {
27230
27231   ;
27232   return 0;
27233 }
27234 _ACEOF
27235 if ac_fn_c_try_compile "$LINENO"; then :
27236   gt_cv_c_wchar_t=yes
27237 else
27238   gt_cv_c_wchar_t=no
27239 fi
27240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27241 fi
27242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
27243 $as_echo "$gt_cv_c_wchar_t" >&6; }
27244   if test $gt_cv_c_wchar_t = yes; then
27245
27246 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
27247
27248   fi
27249
27250
27251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
27252 $as_echo_n "checking for wint_t... " >&6; }
27253 if ${gt_cv_c_wint_t+:} false; then :
27254   $as_echo_n "(cached) " >&6
27255 else
27256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27257 /* end confdefs.h.  */
27258
27259 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
27260    <wchar.h>.
27261    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
27262    before <wchar.h>.  */
27263 #include <stddef.h>
27264 #include <stdio.h>
27265 #include <time.h>
27266 #include <wchar.h>
27267        wint_t foo = (wchar_t)'\0';
27268 int
27269 main ()
27270 {
27271
27272   ;
27273   return 0;
27274 }
27275 _ACEOF
27276 if ac_fn_c_try_compile "$LINENO"; then :
27277   gt_cv_c_wint_t=yes
27278 else
27279   gt_cv_c_wint_t=no
27280 fi
27281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27282 fi
27283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
27284 $as_echo "$gt_cv_c_wint_t" >&6; }
27285   if test $gt_cv_c_wint_t = yes; then
27286
27287 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
27288
27289   fi
27290
27291
27292
27293
27294   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
27295   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
27296   # irrelevant for anonymous mappings.
27297   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
27298 if test "x$ac_cv_func_mmap" = xyes; then :
27299   gl_have_mmap=yes
27300 else
27301   gl_have_mmap=no
27302 fi
27303
27304
27305   # Try to allow MAP_ANONYMOUS.
27306   gl_have_mmap_anonymous=no
27307   if test $gl_have_mmap = yes; then
27308     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
27309 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
27310     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27311 /* end confdefs.h.  */
27312
27313 #include <sys/mman.h>
27314 #ifdef MAP_ANONYMOUS
27315     I cant identify this map
27316 #endif
27317
27318 _ACEOF
27319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27320   $EGREP "I cant identify this map" >/dev/null 2>&1; then :
27321   gl_have_mmap_anonymous=yes
27322 fi
27323 rm -f conftest*
27324
27325     if test $gl_have_mmap_anonymous != yes; then
27326       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27327 /* end confdefs.h.  */
27328
27329 #include <sys/mman.h>
27330 #ifdef MAP_ANON
27331     I cant identify this map
27332 #endif
27333
27334 _ACEOF
27335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27336   $EGREP "I cant identify this map" >/dev/null 2>&1; then :
27337
27338 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
27339
27340          gl_have_mmap_anonymous=yes
27341 fi
27342 rm -f conftest*
27343
27344     fi
27345     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
27346 $as_echo "$gl_have_mmap_anonymous" >&6; }
27347     if test $gl_have_mmap_anonymous = yes; then
27348
27349 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
27350
27351     fi
27352   fi
27353
27354
27355
27356
27357
27358
27359
27360
27361
27362
27363
27364
27365
27366   LIBTESTS_LIBDEPS="$gltests_libdeps"
27367
27368
27369
27370 # Disable GSSAPI/GS2 if we can't find GSS-API implementation
27371 if test "$gssapi_impl" = "no"; then
27372   gs2=no
27373   gssapi=no
27374 fi
27375
27376 # GS2, second part
27377 if test "$gs2" != "no" ; then
27378
27379 $as_echo "#define USE_GS2 1" >>confdefs.h
27380
27381 fi
27382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GS2 should be used" >&5
27383 $as_echo_n "checking if GS2 should be used... " >&6; }
27384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gs2" >&5
27385 $as_echo "$gs2" >&6; }
27386  if test x$gs2 = xyes; then
27387   GS2_TRUE=
27388   GS2_FALSE='#'
27389 else
27390   GS2_TRUE='#'
27391   GS2_FALSE=
27392 fi
27393
27394
27395 # GSSAPI, second part
27396 if test "$gssapi" != "no" ; then
27397
27398 $as_echo "#define USE_GSSAPI 1" >>confdefs.h
27399
27400 fi
27401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSSAPI should be used" >&5
27402 $as_echo_n "checking if GSSAPI should be used... " >&6; }
27403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gssapi" >&5
27404 $as_echo "$gssapi" >&6; }
27405  if test x$gssapi = xyes; then
27406   GSSAPI_TRUE=
27407   GSSAPI_FALSE='#'
27408 else
27409   GSSAPI_TRUE='#'
27410   GSSAPI_FALSE=
27411 fi
27412
27413
27414
27415
27416   if ! sed 's/_VERSION ".*"/_VERSION "'$PACKAGE_VERSION'"/' $srcdir/src/gsasl.h > fixhdr.tmp; then
27417     as_fn_error $? "*** Failed to update version number in $srcdir/src/gsasl.h..." "$LINENO" 5
27418   fi
27419   if cmp -s $srcdir/src/gsasl.h fixhdr.tmp 2>/dev/null; then
27420     rm -f fixhdr.tmp
27421   elif ! mv fixhdr.tmp $srcdir/src/gsasl.h; then
27422     as_fn_error $? "*** Failed to move fixhdr.tmp to $srcdir/src/gsasl.h..." "$LINENO" 5
27423   fi
27424
27425
27426
27427 MAJOR_VERSION=`echo $PACKAGE_VERSION | sed 's/\(.*\)\..*\..*/\1/g'`
27428 MINOR_VERSION=`echo $PACKAGE_VERSION | sed 's/.*\.\(.*\)\..*/\1/g'`
27429 PATCH_VERSION=`echo $PACKAGE_VERSION | sed 's/.*\..*\.\(.*\)/\1/g'`
27430 NUMBER_VERSION=`printf "0x%02x%02x%02x" $MAJOR_VERSION $MINOR_VERSION $PATCH_VERSION`
27431
27432   if ! sed "s/VERSION_MAJOR .*/VERSION_MAJOR $MAJOR_VERSION/" $srcdir/src/gsasl.h > fixhdr.tmp; then
27433     as_fn_error $? "*** Failed to update version number in $srcdir/src/gsasl.h..." "$LINENO" 5
27434   fi
27435   if cmp -s $srcdir/src/gsasl.h fixhdr.tmp 2>/dev/null; then
27436     rm -f fixhdr.tmp
27437   elif ! mv fixhdr.tmp $srcdir/src/gsasl.h; then
27438     as_fn_error $? "*** Failed to move fixhdr.tmp to $srcdir/src/gsasl.h..." "$LINENO" 5
27439   fi
27440
27441
27442   if ! sed "s/VERSION_MINOR .*/VERSION_MINOR $MINOR_VERSION/" $srcdir/src/gsasl.h > fixhdr.tmp; then
27443     as_fn_error $? "*** Failed to update version number in $srcdir/src/gsasl.h..." "$LINENO" 5
27444   fi
27445   if cmp -s $srcdir/src/gsasl.h fixhdr.tmp 2>/dev/null; then
27446     rm -f fixhdr.tmp
27447   elif ! mv fixhdr.tmp $srcdir/src/gsasl.h; then
27448     as_fn_error $? "*** Failed to move fixhdr.tmp to $srcdir/src/gsasl.h..." "$LINENO" 5
27449   fi
27450
27451
27452   if ! sed "s/VERSION_PATCH .*/VERSION_PATCH $PATCH_VERSION/" $srcdir/src/gsasl.h > fixhdr.tmp; then
27453     as_fn_error $? "*** Failed to update version number in $srcdir/src/gsasl.h..." "$LINENO" 5
27454   fi
27455   if cmp -s $srcdir/src/gsasl.h fixhdr.tmp 2>/dev/null; then
27456     rm -f fixhdr.tmp
27457   elif ! mv fixhdr.tmp $srcdir/src/gsasl.h; then
27458     as_fn_error $? "*** Failed to move fixhdr.tmp to $srcdir/src/gsasl.h..." "$LINENO" 5
27459   fi
27460
27461
27462   if ! sed "s/VERSION_NUMBER .*/VERSION_NUMBER $NUMBER_VERSION/" $srcdir/src/gsasl.h > fixhdr.tmp; then
27463     as_fn_error $? "*** Failed to update version number in $srcdir/src/gsasl.h..." "$LINENO" 5
27464   fi
27465   if cmp -s $srcdir/src/gsasl.h fixhdr.tmp 2>/dev/null; then
27466     rm -f fixhdr.tmp
27467   elif ! mv fixhdr.tmp $srcdir/src/gsasl.h; then
27468     as_fn_error $? "*** Failed to move fixhdr.tmp to $srcdir/src/gsasl.h..." "$LINENO" 5
27469   fi
27470
27471
27472
27473
27474 ac_config_files="$ac_config_files Makefile anonymous/Makefile cram-md5/Makefile digest-md5/Makefile scram/Makefile saml20/Makefile openid20/Makefile external/Makefile gl/Makefile gltests/Makefile gs2/Makefile gssapi/Makefile kerberos_v5/Makefile libgsasl.pc login/Makefile ntlm/Makefile plain/Makefile po/Makefile.in securid/Makefile src/Makefile tests/Makefile"
27475
27476 cat >confcache <<\_ACEOF
27477 # This file is a shell script that caches the results of configure
27478 # tests run on this system so they can be shared between configure
27479 # scripts and configure runs, see configure's option --config-cache.
27480 # It is not useful on other systems.  If it contains results you don't
27481 # want to keep, you may remove or edit it.
27482 #
27483 # config.status only pays attention to the cache file if you give it
27484 # the --recheck option to rerun configure.
27485 #
27486 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27487 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27488 # following values.
27489
27490 _ACEOF
27491
27492 # The following way of writing the cache mishandles newlines in values,
27493 # but we know of no workaround that is simple, portable, and efficient.
27494 # So, we kill variables containing newlines.
27495 # Ultrix sh set writes to stderr and can't be redirected directly,
27496 # and sets the high bit in the cache file unless we assign to the vars.
27497 (
27498   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27499     eval ac_val=\$$ac_var
27500     case $ac_val in #(
27501     *${as_nl}*)
27502       case $ac_var in #(
27503       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27504 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27505       esac
27506       case $ac_var in #(
27507       _ | IFS | as_nl) ;; #(
27508       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27509       *) { eval $ac_var=; unset $ac_var;} ;;
27510       esac ;;
27511     esac
27512   done
27513
27514   (set) 2>&1 |
27515     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27516     *${as_nl}ac_space=\ *)
27517       # `set' does not quote correctly, so add quotes: double-quote
27518       # substitution turns \\\\ into \\, and sed turns \\ into \.
27519       sed -n \
27520         "s/'/'\\\\''/g;
27521           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27522       ;; #(
27523     *)
27524       # `set' quotes correctly as required by POSIX, so do not add quotes.
27525       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27526       ;;
27527     esac |
27528     sort
27529 ) |
27530   sed '
27531      /^ac_cv_env_/b end
27532      t clear
27533      :clear
27534      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27535      t end
27536      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27537      :end' >>confcache
27538 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27539   if test -w "$cache_file"; then
27540     if test "x$cache_file" != "x/dev/null"; then
27541       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27542 $as_echo "$as_me: updating cache $cache_file" >&6;}
27543       if test ! -f "$cache_file" || test -h "$cache_file"; then
27544         cat confcache >"$cache_file"
27545       else
27546         case $cache_file in #(
27547         */* | ?:*)
27548           mv -f confcache "$cache_file"$$ &&
27549           mv -f "$cache_file"$$ "$cache_file" ;; #(
27550         *)
27551           mv -f confcache "$cache_file" ;;
27552         esac
27553       fi
27554     fi
27555   else
27556     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27557 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27558   fi
27559 fi
27560 rm -f confcache
27561
27562 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27563 # Let make expand exec_prefix.
27564 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27565
27566 DEFS=-DHAVE_CONFIG_H
27567
27568 ac_libobjs=
27569 ac_ltlibobjs=
27570 U=
27571 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27572   # 1. Remove the extension, and $U if already installed.
27573   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27574   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27575   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27576   #    will be set to the directory where LIBOBJS objects are built.
27577   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27578   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27579 done
27580 LIBOBJS=$ac_libobjs
27581
27582 LTLIBOBJS=$ac_ltlibobjs
27583
27584
27585  if test -n "$EXEEXT"; then
27586   am__EXEEXT_TRUE=
27587   am__EXEEXT_FALSE='#'
27588 else
27589   am__EXEEXT_TRUE='#'
27590   am__EXEEXT_FALSE=
27591 fi
27592
27593 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27594   as_fn_error $? "conditional \"AMDEP\" was never defined.
27595 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27596 fi
27597 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27598   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27600 fi
27601 if test -z "${ANONYMOUS_TRUE}" && test -z "${ANONYMOUS_FALSE}"; then
27602   as_fn_error $? "conditional \"ANONYMOUS\" was never defined.
27603 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27604 fi
27605 if test -z "${EXTERNAL_TRUE}" && test -z "${EXTERNAL_FALSE}"; then
27606   as_fn_error $? "conditional \"EXTERNAL\" was never defined.
27607 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27608 fi
27609 if test -z "${PLAIN_TRUE}" && test -z "${PLAIN_FALSE}"; then
27610   as_fn_error $? "conditional \"PLAIN\" was never defined.
27611 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27612 fi
27613 if test -z "${LOGIN_TRUE}" && test -z "${LOGIN_FALSE}"; then
27614   as_fn_error $? "conditional \"LOGIN\" was never defined.
27615 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27616 fi
27617 if test -z "${SECURID_TRUE}" && test -z "${SECURID_FALSE}"; then
27618   as_fn_error $? "conditional \"SECURID\" was never defined.
27619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27620 fi
27621 if test -z "${NTLM_TRUE}" && test -z "${NTLM_FALSE}"; then
27622   as_fn_error $? "conditional \"NTLM\" was never defined.
27623 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27624 fi
27625 if test -z "${CRAM_MD5_TRUE}" && test -z "${CRAM_MD5_FALSE}"; then
27626   as_fn_error $? "conditional \"CRAM_MD5\" was never defined.
27627 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27628 fi
27629 if test -z "${DIGEST_MD5_TRUE}" && test -z "${DIGEST_MD5_FALSE}"; then
27630   as_fn_error $? "conditional \"DIGEST_MD5\" was never defined.
27631 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27632 fi
27633 if test -z "${SCRAM_TRUE}" && test -z "${SCRAM_FALSE}"; then
27634   as_fn_error $? "conditional \"SCRAM\" was never defined.
27635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27636 fi
27637 if test -z "${SAML20_TRUE}" && test -z "${SAML20_FALSE}"; then
27638   as_fn_error $? "conditional \"SAML20\" was never defined.
27639 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27640 fi
27641 if test -z "${OPENID20_TRUE}" && test -z "${OPENID20_FALSE}"; then
27642   as_fn_error $? "conditional \"OPENID20\" was never defined.
27643 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27644 fi
27645 if test -z "${KERBEROS_V5_TRUE}" && test -z "${KERBEROS_V5_FALSE}"; then
27646   as_fn_error $? "conditional \"KERBEROS_V5\" was never defined.
27647 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27648 fi
27649 if test -z "${CLIENT_TRUE}" && test -z "${CLIENT_FALSE}"; then
27650   as_fn_error $? "conditional \"CLIENT\" was never defined.
27651 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27652 fi
27653 if test -z "${SERVER_TRUE}" && test -z "${SERVER_FALSE}"; then
27654   as_fn_error $? "conditional \"SERVER\" was never defined.
27655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27656 fi
27657 if test -z "${OBSOLETE_TRUE}" && test -z "${OBSOLETE_FALSE}"; then
27658   as_fn_error $? "conditional \"OBSOLETE\" was never defined.
27659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27660 fi
27661 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
27662   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
27663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27664 fi
27665 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
27666   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
27667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27668 fi
27669
27670 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
27671   as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
27672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27673 fi
27674 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
27675   as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
27676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27677 fi
27678 if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then
27679   as_fn_error $? "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined.
27680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27681 fi
27682 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
27683   as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
27684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27685 fi
27686 CONFIG_INCLUDE=config.h
27687
27688 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
27689   as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
27690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27691 fi
27692 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
27693   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
27694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27695 fi
27696 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
27697   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
27698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27699 fi
27700 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
27701   as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
27702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27703 fi
27704
27705
27706     gl_libobjs=
27707     gl_ltlibobjs=
27708     if test -n "$gl_LIBOBJS"; then
27709       # Remove the extension.
27710       sed_drop_objext='s/\.o$//;s/\.obj$//'
27711       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27712         gl_libobjs="$gl_libobjs $i.$ac_objext"
27713         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
27714       done
27715     fi
27716     gl_LIBOBJS=$gl_libobjs
27717
27718     gl_LTLIBOBJS=$gl_ltlibobjs
27719
27720
27721
27722     gltests_libobjs=
27723     gltests_ltlibobjs=
27724     if test -n "$gltests_LIBOBJS"; then
27725       # Remove the extension.
27726       sed_drop_objext='s/\.o$//;s/\.obj$//'
27727       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27728         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
27729         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
27730       done
27731     fi
27732     gltests_LIBOBJS=$gltests_libobjs
27733
27734     gltests_LTLIBOBJS=$gltests_ltlibobjs
27735
27736
27737 if test -z "${GS2_TRUE}" && test -z "${GS2_FALSE}"; then
27738   as_fn_error $? "conditional \"GS2\" was never defined.
27739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27740 fi
27741 if test -z "${GSSAPI_TRUE}" && test -z "${GSSAPI_FALSE}"; then
27742   as_fn_error $? "conditional \"GSSAPI\" was never defined.
27743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27744 fi
27745
27746 : "${CONFIG_STATUS=./config.status}"
27747 ac_write_fail=0
27748 ac_clean_files_save=$ac_clean_files
27749 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27750 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27751 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27752 as_write_fail=0
27753 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27754 #! $SHELL
27755 # Generated by $as_me.
27756 # Run this file to recreate the current configuration.
27757 # Compiler output produced by configure, useful for debugging
27758 # configure, is in config.log if it exists.
27759
27760 debug=false
27761 ac_cs_recheck=false
27762 ac_cs_silent=false
27763
27764 SHELL=\${CONFIG_SHELL-$SHELL}
27765 export SHELL
27766 _ASEOF
27767 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27768 ## -------------------- ##
27769 ## M4sh Initialization. ##
27770 ## -------------------- ##
27771
27772 # Be more Bourne compatible
27773 DUALCASE=1; export DUALCASE # for MKS sh
27774 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27775   emulate sh
27776   NULLCMD=:
27777   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27778   # is contrary to our usage.  Disable this feature.
27779   alias -g '${1+"$@"}'='"$@"'
27780   setopt NO_GLOB_SUBST
27781 else
27782   case `(set -o) 2>/dev/null` in #(
27783   *posix*) :
27784     set -o posix ;; #(
27785   *) :
27786      ;;
27787 esac
27788 fi
27789
27790
27791 as_nl='
27792 '
27793 export as_nl
27794 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27795 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27796 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27797 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27798 # Prefer a ksh shell builtin over an external printf program on Solaris,
27799 # but without wasting forks for bash or zsh.
27800 if test -z "$BASH_VERSION$ZSH_VERSION" \
27801     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27802   as_echo='print -r --'
27803   as_echo_n='print -rn --'
27804 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27805   as_echo='printf %s\n'
27806   as_echo_n='printf %s'
27807 else
27808   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27809     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27810     as_echo_n='/usr/ucb/echo -n'
27811   else
27812     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27813     as_echo_n_body='eval
27814       arg=$1;
27815       case $arg in #(
27816       *"$as_nl"*)
27817         expr "X$arg" : "X\\(.*\\)$as_nl";
27818         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27819       esac;
27820       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27821     '
27822     export as_echo_n_body
27823     as_echo_n='sh -c $as_echo_n_body as_echo'
27824   fi
27825   export as_echo_body
27826   as_echo='sh -c $as_echo_body as_echo'
27827 fi
27828
27829 # The user is always right.
27830 if test "${PATH_SEPARATOR+set}" != set; then
27831   PATH_SEPARATOR=:
27832   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27833     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27834       PATH_SEPARATOR=';'
27835   }
27836 fi
27837
27838
27839 # IFS
27840 # We need space, tab and new line, in precisely that order.  Quoting is
27841 # there to prevent editors from complaining about space-tab.
27842 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27843 # splitting by setting IFS to empty value.)
27844 IFS=" ""        $as_nl"
27845
27846 # Find who we are.  Look in the path if we contain no directory separator.
27847 as_myself=
27848 case $0 in #((
27849   *[\\/]* ) as_myself=$0 ;;
27850   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27851 for as_dir in $PATH
27852 do
27853   IFS=$as_save_IFS
27854   test -z "$as_dir" && as_dir=.
27855     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27856   done
27857 IFS=$as_save_IFS
27858
27859      ;;
27860 esac
27861 # We did not find ourselves, most probably we were run as `sh COMMAND'
27862 # in which case we are not to be found in the path.
27863 if test "x$as_myself" = x; then
27864   as_myself=$0
27865 fi
27866 if test ! -f "$as_myself"; then
27867   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27868   exit 1
27869 fi
27870
27871 # Unset variables that we do not need and which cause bugs (e.g. in
27872 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
27873 # suppresses any "Segmentation fault" message there.  '((' could
27874 # trigger a bug in pdksh 5.2.14.
27875 for as_var in BASH_ENV ENV MAIL MAILPATH
27876 do eval test x\${$as_var+set} = xset \
27877   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27878 done
27879 PS1='$ '
27880 PS2='> '
27881 PS4='+ '
27882
27883 # NLS nuisances.
27884 LC_ALL=C
27885 export LC_ALL
27886 LANGUAGE=C
27887 export LANGUAGE
27888
27889 # CDPATH.
27890 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27891
27892
27893 # as_fn_error STATUS ERROR [LINENO LOG_FD]
27894 # ----------------------------------------
27895 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27896 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27897 # script with STATUS, using 1 if that was 0.
27898 as_fn_error ()
27899 {
27900   as_status=$1; test $as_status -eq 0 && as_status=1
27901   if test "$4"; then
27902     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27903     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
27904   fi
27905   $as_echo "$as_me: error: $2" >&2
27906   as_fn_exit $as_status
27907 } # as_fn_error
27908
27909
27910 # as_fn_set_status STATUS
27911 # -----------------------
27912 # Set $? to STATUS, without forking.
27913 as_fn_set_status ()
27914 {
27915   return $1
27916 } # as_fn_set_status
27917
27918 # as_fn_exit STATUS
27919 # -----------------
27920 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27921 as_fn_exit ()
27922 {
27923   set +e
27924   as_fn_set_status $1
27925   exit $1
27926 } # as_fn_exit
27927
27928 # as_fn_unset VAR
27929 # ---------------
27930 # Portably unset VAR.
27931 as_fn_unset ()
27932 {
27933   { eval $1=; unset $1;}
27934 }
27935 as_unset=as_fn_unset
27936 # as_fn_append VAR VALUE
27937 # ----------------------
27938 # Append the text in VALUE to the end of the definition contained in VAR. Take
27939 # advantage of any shell optimizations that allow amortized linear growth over
27940 # repeated appends, instead of the typical quadratic growth present in naive
27941 # implementations.
27942 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27943   eval 'as_fn_append ()
27944   {
27945     eval $1+=\$2
27946   }'
27947 else
27948   as_fn_append ()
27949   {
27950     eval $1=\$$1\$2
27951   }
27952 fi # as_fn_append
27953
27954 # as_fn_arith ARG...
27955 # ------------------
27956 # Perform arithmetic evaluation on the ARGs, and store the result in the
27957 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27958 # must be portable across $(()) and expr.
27959 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27960   eval 'as_fn_arith ()
27961   {
27962     as_val=$(( $* ))
27963   }'
27964 else
27965   as_fn_arith ()
27966   {
27967     as_val=`expr "$@" || test $? -eq 1`
27968   }
27969 fi # as_fn_arith
27970
27971
27972 if expr a : '\(a\)' >/dev/null 2>&1 &&
27973    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27974   as_expr=expr
27975 else
27976   as_expr=false
27977 fi
27978
27979 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27980   as_basename=basename
27981 else
27982   as_basename=false
27983 fi
27984
27985 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27986   as_dirname=dirname
27987 else
27988   as_dirname=false
27989 fi
27990
27991 as_me=`$as_basename -- "$0" ||
27992 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27993          X"$0" : 'X\(//\)$' \| \
27994          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27995 $as_echo X/"$0" |
27996     sed '/^.*\/\([^/][^/]*\)\/*$/{
27997             s//\1/
27998             q
27999           }
28000           /^X\/\(\/\/\)$/{
28001             s//\1/
28002             q
28003           }
28004           /^X\/\(\/\).*/{
28005             s//\1/
28006             q
28007           }
28008           s/.*/./; q'`
28009
28010 # Avoid depending upon Character Ranges.
28011 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28012 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28013 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28014 as_cr_digits='0123456789'
28015 as_cr_alnum=$as_cr_Letters$as_cr_digits
28016
28017 ECHO_C= ECHO_N= ECHO_T=
28018 case `echo -n x` in #(((((
28019 -n*)
28020   case `echo 'xy\c'` in
28021   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
28022   xy)  ECHO_C='\c';;
28023   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
28024        ECHO_T=' ';;
28025   esac;;
28026 *)
28027   ECHO_N='-n';;
28028 esac
28029
28030 rm -f conf$$ conf$$.exe conf$$.file
28031 if test -d conf$$.dir; then
28032   rm -f conf$$.dir/conf$$.file
28033 else
28034   rm -f conf$$.dir
28035   mkdir conf$$.dir 2>/dev/null
28036 fi
28037 if (echo >conf$$.file) 2>/dev/null; then
28038   if ln -s conf$$.file conf$$ 2>/dev/null; then
28039     as_ln_s='ln -s'
28040     # ... but there are two gotchas:
28041     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28042     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28043     # In both cases, we have to default to `cp -p'.
28044     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28045       as_ln_s='cp -p'
28046   elif ln conf$$.file conf$$ 2>/dev/null; then
28047     as_ln_s=ln
28048   else
28049     as_ln_s='cp -p'
28050   fi
28051 else
28052   as_ln_s='cp -p'
28053 fi
28054 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28055 rmdir conf$$.dir 2>/dev/null
28056
28057
28058 # as_fn_mkdir_p
28059 # -------------
28060 # Create "$as_dir" as a directory, including parents if necessary.
28061 as_fn_mkdir_p ()
28062 {
28063
28064   case $as_dir in #(
28065   -*) as_dir=./$as_dir;;
28066   esac
28067   test -d "$as_dir" || eval $as_mkdir_p || {
28068     as_dirs=
28069     while :; do
28070       case $as_dir in #(
28071       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28072       *) as_qdir=$as_dir;;
28073       esac
28074       as_dirs="'$as_qdir' $as_dirs"
28075       as_dir=`$as_dirname -- "$as_dir" ||
28076 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28077          X"$as_dir" : 'X\(//\)[^/]' \| \
28078          X"$as_dir" : 'X\(//\)$' \| \
28079          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28080 $as_echo X"$as_dir" |
28081     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28082             s//\1/
28083             q
28084           }
28085           /^X\(\/\/\)[^/].*/{
28086             s//\1/
28087             q
28088           }
28089           /^X\(\/\/\)$/{
28090             s//\1/
28091             q
28092           }
28093           /^X\(\/\).*/{
28094             s//\1/
28095             q
28096           }
28097           s/.*/./; q'`
28098       test -d "$as_dir" && break
28099     done
28100     test -z "$as_dirs" || eval "mkdir $as_dirs"
28101   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
28102
28103
28104 } # as_fn_mkdir_p
28105 if mkdir -p . 2>/dev/null; then
28106   as_mkdir_p='mkdir -p "$as_dir"'
28107 else
28108   test -d ./-p && rmdir ./-p
28109   as_mkdir_p=false
28110 fi
28111
28112 if test -x / >/dev/null 2>&1; then
28113   as_test_x='test -x'
28114 else
28115   if ls -dL / >/dev/null 2>&1; then
28116     as_ls_L_option=L
28117   else
28118     as_ls_L_option=
28119   fi
28120   as_test_x='
28121     eval sh -c '\''
28122       if test -d "$1"; then
28123         test -d "$1/.";
28124       else
28125         case $1 in #(
28126         -*)set "./$1";;
28127         esac;
28128         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28129         ???[sx]*):;;*)false;;esac;fi
28130     '\'' sh
28131   '
28132 fi
28133 as_executable_p=$as_test_x
28134
28135 # Sed expression to map a string onto a valid CPP name.
28136 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28137
28138 # Sed expression to map a string onto a valid variable name.
28139 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28140
28141
28142 exec 6>&1
28143 ## ----------------------------------- ##
28144 ## Main body of $CONFIG_STATUS script. ##
28145 ## ----------------------------------- ##
28146 _ASEOF
28147 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28148
28149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28150 # Save the log message, to keep $0 and so on meaningful, and to
28151 # report actual input values of CONFIG_FILES etc. instead of their
28152 # values after options handling.
28153 ac_log="
28154 This file was extended by libgsasl $as_me 1.8.0, which was
28155 generated by GNU Autoconf 2.68.  Invocation command line was
28156
28157   CONFIG_FILES    = $CONFIG_FILES
28158   CONFIG_HEADERS  = $CONFIG_HEADERS
28159   CONFIG_LINKS    = $CONFIG_LINKS
28160   CONFIG_COMMANDS = $CONFIG_COMMANDS
28161   $ $0 $@
28162
28163 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28164 "
28165
28166 _ACEOF
28167
28168 case $ac_config_files in *"
28169 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28170 esac
28171
28172 case $ac_config_headers in *"
28173 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28174 esac
28175
28176
28177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28178 # Files that config.status was made for.
28179 config_files="$ac_config_files"
28180 config_headers="$ac_config_headers"
28181 config_links="$ac_config_links"
28182 config_commands="$ac_config_commands"
28183
28184 _ACEOF
28185
28186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28187 ac_cs_usage="\
28188 \`$as_me' instantiates files and other configuration actions
28189 from templates according to the current configuration.  Unless the files
28190 and actions are specified as TAGs, all are instantiated by default.
28191
28192 Usage: $0 [OPTION]... [TAG]...
28193
28194   -h, --help       print this help, then exit
28195   -V, --version    print version number and configuration settings, then exit
28196       --config     print configuration, then exit
28197   -q, --quiet, --silent
28198                    do not print progress messages
28199   -d, --debug      don't remove temporary files
28200       --recheck    update $as_me by reconfiguring in the same conditions
28201       --file=FILE[:TEMPLATE]
28202                    instantiate the configuration file FILE
28203       --header=FILE[:TEMPLATE]
28204                    instantiate the configuration header FILE
28205
28206 Configuration files:
28207 $config_files
28208
28209 Configuration headers:
28210 $config_headers
28211
28212 Configuration links:
28213 $config_links
28214
28215 Configuration commands:
28216 $config_commands
28217
28218 Report bugs to <bug-gsasl@gnu.org>."
28219
28220 _ACEOF
28221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28222 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
28223 ac_cs_version="\\
28224 libgsasl config.status 1.8.0
28225 configured by $0, generated by GNU Autoconf 2.68,
28226   with options \\"\$ac_cs_config\\"
28227
28228 Copyright (C) 2010 Free Software Foundation, Inc.
28229 This config.status script is free software; the Free Software Foundation
28230 gives unlimited permission to copy, distribute and modify it."
28231
28232 ac_pwd='$ac_pwd'
28233 srcdir='$srcdir'
28234 INSTALL='$INSTALL'
28235 MKDIR_P='$MKDIR_P'
28236 AWK='$AWK'
28237 test -n "\$AWK" || AWK=awk
28238 _ACEOF
28239
28240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28241 # The default lists apply if the user does not specify any file.
28242 ac_need_defaults=:
28243 while test $# != 0
28244 do
28245   case $1 in
28246   --*=?*)
28247     ac_option=`expr "X$1" : 'X\([^=]*\)='`
28248     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28249     ac_shift=:
28250     ;;
28251   --*=)
28252     ac_option=`expr "X$1" : 'X\([^=]*\)='`
28253     ac_optarg=
28254     ac_shift=:
28255     ;;
28256   *)
28257     ac_option=$1
28258     ac_optarg=$2
28259     ac_shift=shift
28260     ;;
28261   esac
28262
28263   case $ac_option in
28264   # Handling of the options.
28265   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28266     ac_cs_recheck=: ;;
28267   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28268     $as_echo "$ac_cs_version"; exit ;;
28269   --config | --confi | --conf | --con | --co | --c )
28270     $as_echo "$ac_cs_config"; exit ;;
28271   --debug | --debu | --deb | --de | --d | -d )
28272     debug=: ;;
28273   --file | --fil | --fi | --f )
28274     $ac_shift
28275     case $ac_optarg in
28276     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28277     '') as_fn_error $? "missing file argument" ;;
28278     esac
28279     as_fn_append CONFIG_FILES " '$ac_optarg'"
28280     ac_need_defaults=false;;
28281   --header | --heade | --head | --hea )
28282     $ac_shift
28283     case $ac_optarg in
28284     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28285     esac
28286     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28287     ac_need_defaults=false;;
28288   --he | --h)
28289     # Conflict between --help and --header
28290     as_fn_error $? "ambiguous option: \`$1'
28291 Try \`$0 --help' for more information.";;
28292   --help | --hel | -h )
28293     $as_echo "$ac_cs_usage"; exit ;;
28294   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28295   | -silent | --silent | --silen | --sile | --sil | --si | --s)
28296     ac_cs_silent=: ;;
28297
28298   # This is an error.
28299   -*) as_fn_error $? "unrecognized option: \`$1'
28300 Try \`$0 --help' for more information." ;;
28301
28302   *) as_fn_append ac_config_targets " $1"
28303      ac_need_defaults=false ;;
28304
28305   esac
28306   shift
28307 done
28308
28309 ac_configure_extra_args=
28310
28311 if $ac_cs_silent; then
28312   exec 6>/dev/null
28313   ac_configure_extra_args="$ac_configure_extra_args --silent"
28314 fi
28315
28316 _ACEOF
28317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28318 if \$ac_cs_recheck; then
28319   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28320   shift
28321   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28322   CONFIG_SHELL='$SHELL'
28323   export CONFIG_SHELL
28324   exec "\$@"
28325 fi
28326
28327 _ACEOF
28328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28329 exec 5>>config.log
28330 {
28331   echo
28332   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28333 ## Running $as_me. ##
28334 _ASBOX
28335   $as_echo "$ac_log"
28336 } >&5
28337
28338 _ACEOF
28339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28340 #
28341 # INIT-COMMANDS
28342 #
28343 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28344
28345
28346 # The HP-UX ksh and POSIX shell print the target directory to stdout
28347 # if CDPATH is set.
28348 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28349
28350 sed_quote_subst='$sed_quote_subst'
28351 double_quote_subst='$double_quote_subst'
28352 delay_variable_subst='$delay_variable_subst'
28353 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
28354 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
28355 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
28356 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
28357 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
28358 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
28359 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
28360 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
28361 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
28362 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
28363 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
28364 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
28365 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
28366 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
28367 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
28368 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
28369 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
28370 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
28371 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
28372 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
28373 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
28374 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
28375 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
28376 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
28377 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
28378 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
28379 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
28380 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
28381 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
28382 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
28383 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
28384 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
28385 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
28386 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
28387 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
28388 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
28389 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
28390 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
28391 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
28392 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
28393 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
28394 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
28395 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
28396 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
28397 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
28398 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
28399 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28400 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28401 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
28402 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
28403 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
28404 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
28405 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
28406 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
28407 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
28408 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
28409 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
28410 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"`'
28411 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
28412 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
28413 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
28414 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
28415 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
28416 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
28417 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
28418 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
28419 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
28420 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
28421 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
28422 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
28423 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
28424 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
28425 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
28426 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
28427 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
28428 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
28429 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28430 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
28431 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
28432 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
28433 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
28434 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
28435 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
28436 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28437 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
28438 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28439 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
28440 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28441 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
28442 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
28443 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
28444 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
28445 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
28446 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
28447 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
28448 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
28449 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
28450 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
28451 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
28452 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
28453 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
28454 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
28455 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
28456 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
28457 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
28458 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
28459 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
28460 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
28461 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
28462 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
28463 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
28464 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
28465 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
28466 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
28467 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
28468 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
28469 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
28470 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
28471 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28472 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28473 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
28474 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
28475 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
28476 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
28477 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
28478 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
28479 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
28480 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
28481 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
28482 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
28483 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
28484
28485 LTCC='$LTCC'
28486 LTCFLAGS='$LTCFLAGS'
28487 compiler='$compiler_DEFAULT'
28488
28489 # A function that is used when there is no print builtin or printf.
28490 func_fallback_echo ()
28491 {
28492   eval 'cat <<_LTECHO_EOF
28493 \$1
28494 _LTECHO_EOF'
28495 }
28496
28497 # Quote evaled strings.
28498 for var in AS \
28499 DLLTOOL \
28500 OBJDUMP \
28501 SHELL \
28502 ECHO \
28503 PATH_SEPARATOR \
28504 SED \
28505 GREP \
28506 EGREP \
28507 FGREP \
28508 LD \
28509 NM \
28510 LN_S \
28511 lt_SP2NL \
28512 lt_NL2SP \
28513 reload_flag \
28514 deplibs_check_method \
28515 file_magic_cmd \
28516 file_magic_glob \
28517 want_nocaseglob \
28518 sharedlib_from_linklib_cmd \
28519 AR \
28520 AR_FLAGS \
28521 archiver_list_spec \
28522 STRIP \
28523 RANLIB \
28524 CC \
28525 CFLAGS \
28526 compiler \
28527 lt_cv_sys_global_symbol_pipe \
28528 lt_cv_sys_global_symbol_to_cdecl \
28529 lt_cv_sys_global_symbol_to_c_name_address \
28530 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28531 nm_file_list_spec \
28532 lt_prog_compiler_no_builtin_flag \
28533 lt_prog_compiler_pic \
28534 lt_prog_compiler_wl \
28535 lt_prog_compiler_static \
28536 lt_cv_prog_compiler_c_o \
28537 need_locks \
28538 MANIFEST_TOOL \
28539 DSYMUTIL \
28540 NMEDIT \
28541 LIPO \
28542 OTOOL \
28543 OTOOL64 \
28544 shrext_cmds \
28545 export_dynamic_flag_spec \
28546 whole_archive_flag_spec \
28547 compiler_needs_object \
28548 with_gnu_ld \
28549 allow_undefined_flag \
28550 no_undefined_flag \
28551 hardcode_libdir_flag_spec \
28552 hardcode_libdir_separator \
28553 exclude_expsyms \
28554 include_expsyms \
28555 file_list_spec \
28556 variables_saved_for_relink \
28557 libname_spec \
28558 library_names_spec \
28559 soname_spec \
28560 install_override_mode \
28561 finish_eval \
28562 old_striplib \
28563 striplib; do
28564     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28565     *[\\\\\\\`\\"\\\$]*)
28566       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
28567       ;;
28568     *)
28569       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28570       ;;
28571     esac
28572 done
28573
28574 # Double-quote double-evaled strings.
28575 for var in reload_cmds \
28576 old_postinstall_cmds \
28577 old_postuninstall_cmds \
28578 old_archive_cmds \
28579 extract_expsyms_cmds \
28580 old_archive_from_new_cmds \
28581 old_archive_from_expsyms_cmds \
28582 archive_cmds \
28583 archive_expsym_cmds \
28584 module_cmds \
28585 module_expsym_cmds \
28586 export_symbols_cmds \
28587 prelink_cmds \
28588 postlink_cmds \
28589 postinstall_cmds \
28590 postuninstall_cmds \
28591 finish_cmds \
28592 sys_lib_search_path_spec \
28593 sys_lib_dlsearch_path_spec; do
28594     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28595     *[\\\\\\\`\\"\\\$]*)
28596       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
28597       ;;
28598     *)
28599       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28600       ;;
28601     esac
28602 done
28603
28604 ac_aux_dir='$ac_aux_dir'
28605 xsi_shell='$xsi_shell'
28606 lt_shell_append='$lt_shell_append'
28607
28608 # See if we are running on zsh, and set the options which allow our
28609 # commands through without removal of \ escapes INIT.
28610 if test -n "\${ZSH_VERSION+set}" ; then
28611    setopt NO_GLOB_SUBST
28612 fi
28613
28614
28615     PACKAGE='$PACKAGE'
28616     VERSION='$VERSION'
28617     TIMESTAMP='$TIMESTAMP'
28618     RM='$RM'
28619     ofile='$ofile'
28620
28621
28622
28623 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
28624     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
28625     # from automake < 1.5.
28626     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
28627     # Capture the value of LINGUAS because we need it to compute CATALOGS.
28628     LINGUAS="${LINGUAS-%UNSET%}"
28629
28630 GNUmakefile=$GNUmakefile
28631
28632 _ACEOF
28633
28634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28635
28636 # Handling of arguments.
28637 for ac_config_target in $ac_config_targets
28638 do
28639   case $ac_config_target in
28640     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28641     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28642     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28643     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
28644     "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;;
28645     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28646     "anonymous/Makefile") CONFIG_FILES="$CONFIG_FILES anonymous/Makefile" ;;
28647     "cram-md5/Makefile") CONFIG_FILES="$CONFIG_FILES cram-md5/Makefile" ;;
28648     "digest-md5/Makefile") CONFIG_FILES="$CONFIG_FILES digest-md5/Makefile" ;;
28649     "scram/Makefile") CONFIG_FILES="$CONFIG_FILES scram/Makefile" ;;
28650     "saml20/Makefile") CONFIG_FILES="$CONFIG_FILES saml20/Makefile" ;;
28651     "openid20/Makefile") CONFIG_FILES="$CONFIG_FILES openid20/Makefile" ;;
28652     "external/Makefile") CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
28653     "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
28654     "gltests/Makefile") CONFIG_FILES="$CONFIG_FILES gltests/Makefile" ;;
28655     "gs2/Makefile") CONFIG_FILES="$CONFIG_FILES gs2/Makefile" ;;
28656     "gssapi/Makefile") CONFIG_FILES="$CONFIG_FILES gssapi/Makefile" ;;
28657     "kerberos_v5/Makefile") CONFIG_FILES="$CONFIG_FILES kerberos_v5/Makefile" ;;
28658     "libgsasl.pc") CONFIG_FILES="$CONFIG_FILES libgsasl.pc" ;;
28659     "login/Makefile") CONFIG_FILES="$CONFIG_FILES login/Makefile" ;;
28660     "ntlm/Makefile") CONFIG_FILES="$CONFIG_FILES ntlm/Makefile" ;;
28661     "plain/Makefile") CONFIG_FILES="$CONFIG_FILES plain/Makefile" ;;
28662     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
28663     "securid/Makefile") CONFIG_FILES="$CONFIG_FILES securid/Makefile" ;;
28664     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
28665     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
28666
28667   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28668   esac
28669 done
28670
28671
28672 # If the user did not use the arguments to specify the items to instantiate,
28673 # then the envvar interface is used.  Set only those that are not.
28674 # We use the long form for the default assignment because of an extremely
28675 # bizarre bug on SunOS 4.1.3.
28676 if $ac_need_defaults; then
28677   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28678   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28679   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
28680   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28681 fi
28682
28683 # Have a temporary directory for convenience.  Make it in the build tree
28684 # simply because there is no reason against having it here, and in addition,
28685 # creating and moving files from /tmp can sometimes cause problems.
28686 # Hook for its removal unless debugging.
28687 # Note that there is a small window in which the directory will not be cleaned:
28688 # after its creation but before its name has been assigned to `$tmp'.
28689 $debug ||
28690 {
28691   tmp= ac_tmp=
28692   trap 'exit_status=$?
28693   : "${ac_tmp:=$tmp}"
28694   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28695 ' 0
28696   trap 'as_fn_exit 1' 1 2 13 15
28697 }
28698 # Create a (secure) tmp directory for tmp files.
28699
28700 {
28701   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28702   test -d "$tmp"
28703 }  ||
28704 {
28705   tmp=./conf$$-$RANDOM
28706   (umask 077 && mkdir "$tmp")
28707 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28708 ac_tmp=$tmp
28709
28710 # Set up the scripts for CONFIG_FILES section.
28711 # No need to generate them if there are no CONFIG_FILES.
28712 # This happens for instance with `./config.status config.h'.
28713 if test -n "$CONFIG_FILES"; then
28714
28715
28716 ac_cr=`echo X | tr X '\015'`
28717 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28718 # But we know of no other shell where ac_cr would be empty at this
28719 # point, so we can use a bashism as a fallback.
28720 if test "x$ac_cr" = x; then
28721   eval ac_cr=\$\'\\r\'
28722 fi
28723 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28724 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28725   ac_cs_awk_cr='\\r'
28726 else
28727   ac_cs_awk_cr=$ac_cr
28728 fi
28729
28730 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
28731 _ACEOF
28732
28733
28734 {
28735   echo "cat >conf$$subs.awk <<_ACEOF" &&
28736   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28737   echo "_ACEOF"
28738 } >conf$$subs.sh ||
28739   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28740 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
28741 ac_delim='%!_!# '
28742 for ac_last_try in false false false false false :; do
28743   . ./conf$$subs.sh ||
28744     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28745
28746   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28747   if test $ac_delim_n = $ac_delim_num; then
28748     break
28749   elif $ac_last_try; then
28750     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28751   else
28752     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28753   fi
28754 done
28755 rm -f conf$$subs.sh
28756
28757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28758 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
28759 _ACEOF
28760 sed -n '
28761 h
28762 s/^/S["/; s/!.*/"]=/
28763 p
28764 g
28765 s/^[^!]*!//
28766 :repl
28767 t repl
28768 s/'"$ac_delim"'$//
28769 t delim
28770 :nl
28771 h
28772 s/\(.\{148\}\)..*/\1/
28773 t more1
28774 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28775 p
28776 n
28777 b repl
28778 :more1
28779 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28780 p
28781 g
28782 s/.\{148\}//
28783 t nl
28784 :delim
28785 h
28786 s/\(.\{148\}\)..*/\1/
28787 t more2
28788 s/["\\]/\\&/g; s/^/"/; s/$/"/
28789 p
28790 b
28791 :more2
28792 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28793 p
28794 g
28795 s/.\{148\}//
28796 t delim
28797 ' <conf$$subs.awk | sed '
28798 /^[^""]/{
28799   N
28800   s/\n//
28801 }
28802 ' >>$CONFIG_STATUS || ac_write_fail=1
28803 rm -f conf$$subs.awk
28804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28805 _ACAWK
28806 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
28807   for (key in S) S_is_set[key] = 1
28808   FS = "\a"
28809
28810 }
28811 {
28812   line = $ 0
28813   nfields = split(line, field, "@")
28814   substed = 0
28815   len = length(field[1])
28816   for (i = 2; i < nfields; i++) {
28817     key = field[i]
28818     keylen = length(key)
28819     if (S_is_set[key]) {
28820       value = S[key]
28821       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28822       len += length(value) + length(field[++i])
28823       substed = 1
28824     } else
28825       len += 1 + keylen
28826   }
28827
28828   print line
28829 }
28830
28831 _ACAWK
28832 _ACEOF
28833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28834 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28835   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28836 else
28837   cat
28838 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28839   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
28840 _ACEOF
28841
28842 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28843 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
28844 # trailing colons and then remove the whole line if VPATH becomes empty
28845 # (actually we leave an empty line to preserve line numbers).
28846 if test "x$srcdir" = x.; then
28847   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
28848 h
28849 s///
28850 s/^/:/
28851 s/[      ]*$/:/
28852 s/:\$(srcdir):/:/g
28853 s/:\${srcdir}:/:/g
28854 s/:@srcdir@:/:/g
28855 s/^:*//
28856 s/:*$//
28857 x
28858 s/\(=[   ]*\).*/\1/
28859 G
28860 s/\n//
28861 s/^[^=]*=[       ]*$//
28862 }'
28863 fi
28864
28865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28866 fi # test -n "$CONFIG_FILES"
28867
28868 # Set up the scripts for CONFIG_HEADERS section.
28869 # No need to generate them if there are no CONFIG_HEADERS.
28870 # This happens for instance with `./config.status Makefile'.
28871 if test -n "$CONFIG_HEADERS"; then
28872 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
28873 BEGIN {
28874 _ACEOF
28875
28876 # Transform confdefs.h into an awk script `defines.awk', embedded as
28877 # here-document in config.status, that substitutes the proper values into
28878 # config.h.in to produce config.h.
28879
28880 # Create a delimiter string that does not exist in confdefs.h, to ease
28881 # handling of long lines.
28882 ac_delim='%!_!# '
28883 for ac_last_try in false false :; do
28884   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28885   if test -z "$ac_tt"; then
28886     break
28887   elif $ac_last_try; then
28888     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
28889   else
28890     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28891   fi
28892 done
28893
28894 # For the awk script, D is an array of macro values keyed by name,
28895 # likewise P contains macro parameters if any.  Preserve backslash
28896 # newline sequences.
28897
28898 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28899 sed -n '
28900 s/.\{148\}/&'"$ac_delim"'/g
28901 t rset
28902 :rset
28903 s/^[     ]*#[    ]*define[       ][      ]*/ /
28904 t def
28905 d
28906 :def
28907 s/\\$//
28908 t bsnl
28909 s/["\\]/\\&/g
28910 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28911 D["\1"]=" \3"/p
28912 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
28913 d
28914 :bsnl
28915 s/["\\]/\\&/g
28916 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28917 D["\1"]=" \3\\\\\\n"\\/p
28918 t cont
28919 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28920 t cont
28921 d
28922 :cont
28923 n
28924 s/.\{148\}/&'"$ac_delim"'/g
28925 t clear
28926 :clear
28927 s/\\$//
28928 t bsnlc
28929 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28930 d
28931 :bsnlc
28932 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28933 b cont
28934 ' <confdefs.h | sed '
28935 s/'"$ac_delim"'/"\\\
28936 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28937
28938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28939   for (key in D) D_is_set[key] = 1
28940   FS = "\a"
28941 }
28942 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28943   line = \$ 0
28944   split(line, arg, " ")
28945   if (arg[1] == "#") {
28946     defundef = arg[2]
28947     mac1 = arg[3]
28948   } else {
28949     defundef = substr(arg[1], 2)
28950     mac1 = arg[2]
28951   }
28952   split(mac1, mac2, "(") #)
28953   macro = mac2[1]
28954   prefix = substr(line, 1, index(line, defundef) - 1)
28955   if (D_is_set[macro]) {
28956     # Preserve the white space surrounding the "#".
28957     print prefix "define", macro P[macro] D[macro]
28958     next
28959   } else {
28960     # Replace #undef with comments.  This is necessary, for example,
28961     # in the case of _POSIX_SOURCE, which is predefined and required
28962     # on some systems where configure will not decide to define it.
28963     if (defundef == "undef") {
28964       print "/*", prefix defundef, macro, "*/"
28965       next
28966     }
28967   }
28968 }
28969 { print }
28970 _ACAWK
28971 _ACEOF
28972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28973   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
28974 fi # test -n "$CONFIG_HEADERS"
28975
28976
28977 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
28978 shift
28979 for ac_tag
28980 do
28981   case $ac_tag in
28982   :[FHLC]) ac_mode=$ac_tag; continue;;
28983   esac
28984   case $ac_mode$ac_tag in
28985   :[FHL]*:*);;
28986   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
28987   :[FH]-) ac_tag=-:-;;
28988   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28989   esac
28990   ac_save_IFS=$IFS
28991   IFS=:
28992   set x $ac_tag
28993   IFS=$ac_save_IFS
28994   shift
28995   ac_file=$1
28996   shift
28997
28998   case $ac_mode in
28999   :L) ac_source=$1;;
29000   :[FH])
29001     ac_file_inputs=
29002     for ac_f
29003     do
29004       case $ac_f in
29005       -) ac_f="$ac_tmp/stdin";;
29006       *) # Look for the file first in the build tree, then in the source tree
29007          # (if the path is not absolute).  The absolute path cannot be DOS-style,
29008          # because $ac_f cannot contain `:'.
29009          test -f "$ac_f" ||
29010            case $ac_f in
29011            [\\/$]*) false;;
29012            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29013            esac ||
29014            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29015       esac
29016       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29017       as_fn_append ac_file_inputs " '$ac_f'"
29018     done
29019
29020     # Let's still pretend it is `configure' which instantiates (i.e., don't
29021     # use $as_me), people would be surprised to read:
29022     #    /* config.h.  Generated by config.status.  */
29023     configure_input='Generated from '`
29024           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29025         `' by configure.'
29026     if test x"$ac_file" != x-; then
29027       configure_input="$ac_file.  $configure_input"
29028       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29029 $as_echo "$as_me: creating $ac_file" >&6;}
29030     fi
29031     # Neutralize special characters interpreted by sed in replacement strings.
29032     case $configure_input in #(
29033     *\&* | *\|* | *\\* )
29034        ac_sed_conf_input=`$as_echo "$configure_input" |
29035        sed 's/[\\\\&|]/\\\\&/g'`;; #(
29036     *) ac_sed_conf_input=$configure_input;;
29037     esac
29038
29039     case $ac_tag in
29040     *:-:* | *:-) cat >"$ac_tmp/stdin" \
29041       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
29042     esac
29043     ;;
29044   esac
29045
29046   ac_dir=`$as_dirname -- "$ac_file" ||
29047 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29048          X"$ac_file" : 'X\(//\)[^/]' \| \
29049          X"$ac_file" : 'X\(//\)$' \| \
29050          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29051 $as_echo X"$ac_file" |
29052     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29053             s//\1/
29054             q
29055           }
29056           /^X\(\/\/\)[^/].*/{
29057             s//\1/
29058             q
29059           }
29060           /^X\(\/\/\)$/{
29061             s//\1/
29062             q
29063           }
29064           /^X\(\/\).*/{
29065             s//\1/
29066             q
29067           }
29068           s/.*/./; q'`
29069   as_dir="$ac_dir"; as_fn_mkdir_p
29070   ac_builddir=.
29071
29072 case "$ac_dir" in
29073 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29074 *)
29075   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29076   # A ".." for each directory in $ac_dir_suffix.
29077   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29078   case $ac_top_builddir_sub in
29079   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29080   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29081   esac ;;
29082 esac
29083 ac_abs_top_builddir=$ac_pwd
29084 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29085 # for backward compatibility:
29086 ac_top_builddir=$ac_top_build_prefix
29087
29088 case $srcdir in
29089   .)  # We are building in place.
29090     ac_srcdir=.
29091     ac_top_srcdir=$ac_top_builddir_sub
29092     ac_abs_top_srcdir=$ac_pwd ;;
29093   [\\/]* | ?:[\\/]* )  # Absolute name.
29094     ac_srcdir=$srcdir$ac_dir_suffix;
29095     ac_top_srcdir=$srcdir
29096     ac_abs_top_srcdir=$srcdir ;;
29097   *) # Relative name.
29098     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29099     ac_top_srcdir=$ac_top_build_prefix$srcdir
29100     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29101 esac
29102 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29103
29104
29105   case $ac_mode in
29106   :F)
29107   #
29108   # CONFIG_FILE
29109   #
29110
29111   case $INSTALL in
29112   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29113   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29114   esac
29115   ac_MKDIR_P=$MKDIR_P
29116   case $MKDIR_P in
29117   [\\/$]* | ?:[\\/]* ) ;;
29118   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29119   esac
29120 _ACEOF
29121
29122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29123 # If the template does not know about datarootdir, expand it.
29124 # FIXME: This hack should be removed a few years after 2.60.
29125 ac_datarootdir_hack=; ac_datarootdir_seen=
29126 ac_sed_dataroot='
29127 /datarootdir/ {
29128   p
29129   q
29130 }
29131 /@datadir@/p
29132 /@docdir@/p
29133 /@infodir@/p
29134 /@localedir@/p
29135 /@mandir@/p'
29136 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29137 *datarootdir*) ac_datarootdir_seen=yes;;
29138 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29139   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29140 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29141 _ACEOF
29142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29143   ac_datarootdir_hack='
29144   s&@datadir@&$datadir&g
29145   s&@docdir@&$docdir&g
29146   s&@infodir@&$infodir&g
29147   s&@localedir@&$localedir&g
29148   s&@mandir@&$mandir&g
29149   s&\\\${datarootdir}&$datarootdir&g' ;;
29150 esac
29151 _ACEOF
29152
29153 # Neutralize VPATH when `$srcdir' = `.'.
29154 # Shell code in configure.ac might set extrasub.
29155 # FIXME: do we really want to maintain this feature?
29156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29157 ac_sed_extra="$ac_vpsub
29158 $extrasub
29159 _ACEOF
29160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29161 :t
29162 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29163 s|@configure_input@|$ac_sed_conf_input|;t t
29164 s&@top_builddir@&$ac_top_builddir_sub&;t t
29165 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29166 s&@srcdir@&$ac_srcdir&;t t
29167 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29168 s&@top_srcdir@&$ac_top_srcdir&;t t
29169 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29170 s&@builddir@&$ac_builddir&;t t
29171 s&@abs_builddir@&$ac_abs_builddir&;t t
29172 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29173 s&@INSTALL@&$ac_INSTALL&;t t
29174 s&@MKDIR_P@&$ac_MKDIR_P&;t t
29175 $ac_datarootdir_hack
29176 "
29177 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
29178   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29179
29180 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29181   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
29182   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
29183       "$ac_tmp/out"`; test -z "$ac_out"; } &&
29184   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29185 which seems to be undefined.  Please make sure it is defined" >&5
29186 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29187 which seems to be undefined.  Please make sure it is defined" >&2;}
29188
29189   rm -f "$ac_tmp/stdin"
29190   case $ac_file in
29191   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
29192   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
29193   esac \
29194   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29195  ;;
29196   :H)
29197   #
29198   # CONFIG_HEADER
29199   #
29200   if test x"$ac_file" != x-; then
29201     {
29202       $as_echo "/* $configure_input  */" \
29203       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
29204     } >"$ac_tmp/config.h" \
29205       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29206     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
29207       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29208 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29209     else
29210       rm -f "$ac_file"
29211       mv "$ac_tmp/config.h" "$ac_file" \
29212         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29213     fi
29214   else
29215     $as_echo "/* $configure_input  */" \
29216       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
29217       || as_fn_error $? "could not create -" "$LINENO" 5
29218   fi
29219 # Compute "$ac_file"'s index in $config_headers.
29220 _am_arg="$ac_file"
29221 _am_stamp_count=1
29222 for _am_header in $config_headers :; do
29223   case $_am_header in
29224     $_am_arg | $_am_arg:* )
29225       break ;;
29226     * )
29227       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29228   esac
29229 done
29230 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29231 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29232          X"$_am_arg" : 'X\(//\)[^/]' \| \
29233          X"$_am_arg" : 'X\(//\)$' \| \
29234          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29235 $as_echo X"$_am_arg" |
29236     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29237             s//\1/
29238             q
29239           }
29240           /^X\(\/\/\)[^/].*/{
29241             s//\1/
29242             q
29243           }
29244           /^X\(\/\/\)$/{
29245             s//\1/
29246             q
29247           }
29248           /^X\(\/\).*/{
29249             s//\1/
29250             q
29251           }
29252           s/.*/./; q'`/stamp-h$_am_stamp_count
29253  ;;
29254   :L)
29255   #
29256   # CONFIG_LINK
29257   #
29258
29259   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
29260     :
29261   else
29262     # Prefer the file from the source tree if names are identical.
29263     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29264       ac_source=$srcdir/$ac_source
29265     fi
29266
29267     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
29268 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29269
29270     if test ! -r "$ac_source"; then
29271       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
29272     fi
29273     rm -f "$ac_file"
29274
29275     # Try a relative symlink, then a hard link, then a copy.
29276     case $ac_source in
29277     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29278         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29279     esac
29280     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29281       ln "$ac_source" "$ac_file" 2>/dev/null ||
29282       cp -p "$ac_source" "$ac_file" ||
29283       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
29284   fi
29285  ;;
29286   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29287 $as_echo "$as_me: executing $ac_file commands" >&6;}
29288  ;;
29289   esac
29290
29291
29292   case $ac_file$ac_mode in
29293     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
29294   # Autoconf 2.62 quotes --file arguments for eval, but not when files
29295   # are listed without --file.  Let's play safe and only enable the eval
29296   # if we detect the quoting.
29297   case $CONFIG_FILES in
29298   *\'*) eval set x "$CONFIG_FILES" ;;
29299   *)   set x $CONFIG_FILES ;;
29300   esac
29301   shift
29302   for mf
29303   do
29304     # Strip MF so we end up with the name of the file.
29305     mf=`echo "$mf" | sed -e 's/:.*$//'`
29306     # Check whether this is an Automake generated Makefile or not.
29307     # We used to match only the files named `Makefile.in', but
29308     # some people rename them; so instead we look at the file content.
29309     # Grep'ing the first line is not enough: some people post-process
29310     # each Makefile.in and add a new line on top of each file to say so.
29311     # Grep'ing the whole file is not good either: AIX grep has a line
29312     # limit of 2048, but all sed's we know have understand at least 4000.
29313     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
29314       dirpart=`$as_dirname -- "$mf" ||
29315 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29316          X"$mf" : 'X\(//\)[^/]' \| \
29317          X"$mf" : 'X\(//\)$' \| \
29318          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29319 $as_echo X"$mf" |
29320     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29321             s//\1/
29322             q
29323           }
29324           /^X\(\/\/\)[^/].*/{
29325             s//\1/
29326             q
29327           }
29328           /^X\(\/\/\)$/{
29329             s//\1/
29330             q
29331           }
29332           /^X\(\/\).*/{
29333             s//\1/
29334             q
29335           }
29336           s/.*/./; q'`
29337     else
29338       continue
29339     fi
29340     # Extract the definition of DEPDIR, am__include, and am__quote
29341     # from the Makefile without running `make'.
29342     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29343     test -z "$DEPDIR" && continue
29344     am__include=`sed -n 's/^am__include = //p' < "$mf"`
29345     test -z "am__include" && continue
29346     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29347     # When using ansi2knr, U may be empty or an underscore; expand it
29348     U=`sed -n 's/^U = //p' < "$mf"`
29349     # Find all dependency output files, they are included files with
29350     # $(DEPDIR) in their names.  We invoke sed twice because it is the
29351     # simplest approach to changing $(DEPDIR) to its actual value in the
29352     # expansion.
29353     for file in `sed -n "
29354       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29355          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29356       # Make sure the directory exists.
29357       test -f "$dirpart/$file" && continue
29358       fdir=`$as_dirname -- "$file" ||
29359 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29360          X"$file" : 'X\(//\)[^/]' \| \
29361          X"$file" : 'X\(//\)$' \| \
29362          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29363 $as_echo X"$file" |
29364     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29365             s//\1/
29366             q
29367           }
29368           /^X\(\/\/\)[^/].*/{
29369             s//\1/
29370             q
29371           }
29372           /^X\(\/\/\)$/{
29373             s//\1/
29374             q
29375           }
29376           /^X\(\/\).*/{
29377             s//\1/
29378             q
29379           }
29380           s/.*/./; q'`
29381       as_dir=$dirpart/$fdir; as_fn_mkdir_p
29382       # echo "creating $dirpart/$file"
29383       echo '# dummy' > "$dirpart/$file"
29384     done
29385   done
29386 }
29387  ;;
29388     "libtool":C)
29389
29390     # See if we are running on zsh, and set the options which allow our
29391     # commands through without removal of \ escapes.
29392     if test -n "${ZSH_VERSION+set}" ; then
29393       setopt NO_GLOB_SUBST
29394     fi
29395
29396     cfgfile="${ofile}T"
29397     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29398     $RM "$cfgfile"
29399
29400     cat <<_LT_EOF >> "$cfgfile"
29401 #! $SHELL
29402
29403 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
29404 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
29405 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29406 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
29407 #
29408 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
29409 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
29410 #                 Foundation, Inc.
29411 #   Written by Gordon Matzigkeit, 1996
29412 #
29413 #   This file is part of GNU Libtool.
29414 #
29415 # GNU Libtool is free software; you can redistribute it and/or
29416 # modify it under the terms of the GNU General Public License as
29417 # published by the Free Software Foundation; either version 2 of
29418 # the License, or (at your option) any later version.
29419 #
29420 # As a special exception to the GNU General Public License,
29421 # if you distribute this file as part of a program or library that
29422 # is built using GNU Libtool, you may include this file under the
29423 # same distribution terms that you use for the rest of that program.
29424 #
29425 # GNU Libtool is distributed in the hope that it will be useful,
29426 # but WITHOUT ANY WARRANTY; without even the implied warranty of
29427 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
29428 # GNU General Public License for more details.
29429 #
29430 # You should have received a copy of the GNU General Public License
29431 # along with GNU Libtool; see the file COPYING.  If not, a copy
29432 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
29433 # obtained by writing to the Free Software Foundation, Inc.,
29434 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29435
29436
29437 # The names of the tagged configurations supported by this script.
29438 available_tags=""
29439
29440 # ### BEGIN LIBTOOL CONFIG
29441
29442 # Assembler program.
29443 AS=$lt_AS
29444
29445 # DLL creation program.
29446 DLLTOOL=$lt_DLLTOOL
29447
29448 # Object dumper program.
29449 OBJDUMP=$lt_OBJDUMP
29450
29451 # Which release of libtool.m4 was used?
29452 macro_version=$macro_version
29453 macro_revision=$macro_revision
29454
29455 # Whether or not to build shared libraries.
29456 build_libtool_libs=$enable_shared
29457
29458 # Whether or not to build static libraries.
29459 build_old_libs=$enable_static
29460
29461 # What type of objects to build.
29462 pic_mode=$pic_mode
29463
29464 # Whether or not to optimize for fast installation.
29465 fast_install=$enable_fast_install
29466
29467 # Shell to use when invoking shell scripts.
29468 SHELL=$lt_SHELL
29469
29470 # An echo program that protects backslashes.
29471 ECHO=$lt_ECHO
29472
29473 # The PATH separator for the build system.
29474 PATH_SEPARATOR=$lt_PATH_SEPARATOR
29475
29476 # The host system.
29477 host_alias=$host_alias
29478 host=$host
29479 host_os=$host_os
29480
29481 # The build system.
29482 build_alias=$build_alias
29483 build=$build
29484 build_os=$build_os
29485
29486 # A sed program that does not truncate output.
29487 SED=$lt_SED
29488
29489 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
29490 Xsed="\$SED -e 1s/^X//"
29491
29492 # A grep program that handles long lines.
29493 GREP=$lt_GREP
29494
29495 # An ERE matcher.
29496 EGREP=$lt_EGREP
29497
29498 # A literal string matcher.
29499 FGREP=$lt_FGREP
29500
29501 # A BSD- or MS-compatible name lister.
29502 NM=$lt_NM
29503
29504 # Whether we need soft or hard links.
29505 LN_S=$lt_LN_S
29506
29507 # What is the maximum length of a command?
29508 max_cmd_len=$max_cmd_len
29509
29510 # Object file suffix (normally "o").
29511 objext=$ac_objext
29512
29513 # Executable file suffix (normally "").
29514 exeext=$exeext
29515
29516 # whether the shell understands "unset".
29517 lt_unset=$lt_unset
29518
29519 # turn spaces into newlines.
29520 SP2NL=$lt_lt_SP2NL
29521
29522 # turn newlines into spaces.
29523 NL2SP=$lt_lt_NL2SP
29524
29525 # convert \$build file names to \$host format.
29526 to_host_file_cmd=$lt_cv_to_host_file_cmd
29527
29528 # convert \$build files to toolchain format.
29529 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
29530
29531 # Method to check whether dependent libraries are shared objects.
29532 deplibs_check_method=$lt_deplibs_check_method
29533
29534 # Command to use when deplibs_check_method = "file_magic".
29535 file_magic_cmd=$lt_file_magic_cmd
29536
29537 # How to find potential files when deplibs_check_method = "file_magic".
29538 file_magic_glob=$lt_file_magic_glob
29539
29540 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
29541 want_nocaseglob=$lt_want_nocaseglob
29542
29543 # Command to associate shared and link libraries.
29544 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
29545
29546 # The archiver.
29547 AR=$lt_AR
29548
29549 # Flags to create an archive.
29550 AR_FLAGS=$lt_AR_FLAGS
29551
29552 # How to feed a file listing to the archiver.
29553 archiver_list_spec=$lt_archiver_list_spec
29554
29555 # A symbol stripping program.
29556 STRIP=$lt_STRIP
29557
29558 # Commands used to install an old-style archive.
29559 RANLIB=$lt_RANLIB
29560 old_postinstall_cmds=$lt_old_postinstall_cmds
29561 old_postuninstall_cmds=$lt_old_postuninstall_cmds
29562
29563 # Whether to use a lock for old archive extraction.
29564 lock_old_archive_extraction=$lock_old_archive_extraction
29565
29566 # A C compiler.
29567 LTCC=$lt_CC
29568
29569 # LTCC compiler flags.
29570 LTCFLAGS=$lt_CFLAGS
29571
29572 # Take the output of nm and produce a listing of raw symbols and C names.
29573 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29574
29575 # Transform the output of nm in a proper C declaration.
29576 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29577
29578 # Transform the output of nm in a C name address pair.
29579 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29580
29581 # Transform the output of nm in a C name address pair when lib prefix is needed.
29582 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29583
29584 # Specify filename containing input files for \$NM.
29585 nm_file_list_spec=$lt_nm_file_list_spec
29586
29587 # The root where to search for dependent libraries,and in which our libraries should be installed.
29588 lt_sysroot=$lt_sysroot
29589
29590 # The name of the directory that contains temporary libtool files.
29591 objdir=$objdir
29592
29593 # Used to examine libraries when file_magic_cmd begins with "file".
29594 MAGIC_CMD=$MAGIC_CMD
29595
29596 # Must we lock files when doing compilation?
29597 need_locks=$lt_need_locks
29598
29599 # Manifest tool.
29600 MANIFEST_TOOL=$lt_MANIFEST_TOOL
29601
29602 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29603 DSYMUTIL=$lt_DSYMUTIL
29604
29605 # Tool to change global to local symbols on Mac OS X.
29606 NMEDIT=$lt_NMEDIT
29607
29608 # Tool to manipulate fat objects and archives on Mac OS X.
29609 LIPO=$lt_LIPO
29610
29611 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
29612 OTOOL=$lt_OTOOL
29613
29614 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29615 OTOOL64=$lt_OTOOL64
29616
29617 # Old archive suffix (normally "a").
29618 libext=$libext
29619
29620 # Shared library suffix (normally ".so").
29621 shrext_cmds=$lt_shrext_cmds
29622
29623 # The commands to extract the exported symbol list from a shared archive.
29624 extract_expsyms_cmds=$lt_extract_expsyms_cmds
29625
29626 # Variables whose values should be saved in libtool wrapper scripts and
29627 # restored at link time.
29628 variables_saved_for_relink=$lt_variables_saved_for_relink
29629
29630 # Do we need the "lib" prefix for modules?
29631 need_lib_prefix=$need_lib_prefix
29632
29633 # Do we need a version for libraries?
29634 need_version=$need_version
29635
29636 # Library versioning type.
29637 version_type=$version_type
29638
29639 # Shared library runtime path variable.
29640 runpath_var=$runpath_var
29641
29642 # Shared library path variable.
29643 shlibpath_var=$shlibpath_var
29644
29645 # Is shlibpath searched before the hard-coded library search path?
29646 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29647
29648 # Format of library name prefix.
29649 libname_spec=$lt_libname_spec
29650
29651 # List of archive names.  First name is the real one, the rest are links.
29652 # The last name is the one that the linker finds with -lNAME
29653 library_names_spec=$lt_library_names_spec
29654
29655 # The coded name of the library, if different from the real name.
29656 soname_spec=$lt_soname_spec
29657
29658 # Permission mode override for installation of shared libraries.
29659 install_override_mode=$lt_install_override_mode
29660
29661 # Command to use after installation of a shared archive.
29662 postinstall_cmds=$lt_postinstall_cmds
29663
29664 # Command to use after uninstallation of a shared archive.
29665 postuninstall_cmds=$lt_postuninstall_cmds
29666
29667 # Commands used to finish a libtool library installation in a directory.
29668 finish_cmds=$lt_finish_cmds
29669
29670 # As "finish_cmds", except a single script fragment to be evaled but
29671 # not shown.
29672 finish_eval=$lt_finish_eval
29673
29674 # Whether we should hardcode library paths into libraries.
29675 hardcode_into_libs=$hardcode_into_libs
29676
29677 # Compile-time system search path for libraries.
29678 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29679
29680 # Run-time system search path for libraries.
29681 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
29682
29683 # Whether dlopen is supported.
29684 dlopen_support=$enable_dlopen
29685
29686 # Whether dlopen of programs is supported.
29687 dlopen_self=$enable_dlopen_self
29688
29689 # Whether dlopen of statically linked programs is supported.
29690 dlopen_self_static=$enable_dlopen_self_static
29691
29692 # Commands to strip libraries.
29693 old_striplib=$lt_old_striplib
29694 striplib=$lt_striplib
29695
29696
29697 # The linker used to build libraries.
29698 LD=$lt_LD
29699
29700 # How to create reloadable object files.
29701 reload_flag=$lt_reload_flag
29702 reload_cmds=$lt_reload_cmds
29703
29704 # Commands used to build an old-style archive.
29705 old_archive_cmds=$lt_old_archive_cmds
29706
29707 # A language specific compiler.
29708 CC=$lt_compiler
29709
29710 # Is the compiler the GNU compiler?
29711 with_gcc=$GCC
29712
29713 # Compiler flag to turn off builtin functions.
29714 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29715
29716 # Additional compiler flags for building library objects.
29717 pic_flag=$lt_lt_prog_compiler_pic
29718
29719 # How to pass a linker flag through the compiler.
29720 wl=$lt_lt_prog_compiler_wl
29721
29722 # Compiler flag to prevent dynamic linking.
29723 link_static_flag=$lt_lt_prog_compiler_static
29724
29725 # Does compiler simultaneously support -c and -o options?
29726 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29727
29728 # Whether or not to add -lc for building shared libraries.
29729 build_libtool_need_lc=$archive_cmds_need_lc
29730
29731 # Whether or not to disallow shared libs when runtime libs are static.
29732 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29733
29734 # Compiler flag to allow reflexive dlopens.
29735 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29736
29737 # Compiler flag to generate shared objects directly from archives.
29738 whole_archive_flag_spec=$lt_whole_archive_flag_spec
29739
29740 # Whether the compiler copes with passing no objects directly.
29741 compiler_needs_object=$lt_compiler_needs_object
29742
29743 # Create an old-style archive from a shared archive.
29744 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29745
29746 # Create a temporary old-style archive to link instead of a shared archive.
29747 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29748
29749 # Commands used to build a shared archive.
29750 archive_cmds=$lt_archive_cmds
29751 archive_expsym_cmds=$lt_archive_expsym_cmds
29752
29753 # Commands used to build a loadable module if different from building
29754 # a shared archive.
29755 module_cmds=$lt_module_cmds
29756 module_expsym_cmds=$lt_module_expsym_cmds
29757
29758 # Whether we are building with GNU ld or not.
29759 with_gnu_ld=$lt_with_gnu_ld
29760
29761 # Flag that allows shared libraries with undefined symbols to be built.
29762 allow_undefined_flag=$lt_allow_undefined_flag
29763
29764 # Flag that enforces no undefined symbols.
29765 no_undefined_flag=$lt_no_undefined_flag
29766
29767 # Flag to hardcode \$libdir into a binary during linking.
29768 # This must work even if \$libdir does not exist
29769 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29770
29771 # Whether we need a single "-rpath" flag with a separated argument.
29772 hardcode_libdir_separator=$lt_hardcode_libdir_separator
29773
29774 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29775 # DIR into the resulting binary.
29776 hardcode_direct=$hardcode_direct
29777
29778 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29779 # DIR into the resulting binary and the resulting library dependency is
29780 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29781 # library is relocated.
29782 hardcode_direct_absolute=$hardcode_direct_absolute
29783
29784 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29785 # into the resulting binary.
29786 hardcode_minus_L=$hardcode_minus_L
29787
29788 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29789 # into the resulting binary.
29790 hardcode_shlibpath_var=$hardcode_shlibpath_var
29791
29792 # Set to "yes" if building a shared library automatically hardcodes DIR
29793 # into the library and all subsequent libraries and executables linked
29794 # against it.
29795 hardcode_automatic=$hardcode_automatic
29796
29797 # Set to yes if linker adds runtime paths of dependent libraries
29798 # to runtime path list.
29799 inherit_rpath=$inherit_rpath
29800
29801 # Whether libtool must link a program against all its dependency libraries.
29802 link_all_deplibs=$link_all_deplibs
29803
29804 # Set to "yes" if exported symbols are required.
29805 always_export_symbols=$always_export_symbols
29806
29807 # The commands to list exported symbols.
29808 export_symbols_cmds=$lt_export_symbols_cmds
29809
29810 # Symbols that should not be listed in the preloaded symbols.
29811 exclude_expsyms=$lt_exclude_expsyms
29812
29813 # Symbols that must always be exported.
29814 include_expsyms=$lt_include_expsyms
29815
29816 # Commands necessary for linking programs (against libraries) with templates.
29817 prelink_cmds=$lt_prelink_cmds
29818
29819 # Commands necessary for finishing linking programs.
29820 postlink_cmds=$lt_postlink_cmds
29821
29822 # Specify filename containing input files.
29823 file_list_spec=$lt_file_list_spec
29824
29825 # How to hardcode a shared library path into an executable.
29826 hardcode_action=$hardcode_action
29827
29828 # ### END LIBTOOL CONFIG
29829
29830 _LT_EOF
29831
29832   case $host_os in
29833   aix3*)
29834     cat <<\_LT_EOF >> "$cfgfile"
29835 # AIX sometimes has problems with the GCC collect2 program.  For some
29836 # reason, if we set the COLLECT_NAMES environment variable, the problems
29837 # vanish in a puff of smoke.
29838 if test "X${COLLECT_NAMES+set}" != Xset; then
29839   COLLECT_NAMES=
29840   export COLLECT_NAMES
29841 fi
29842 _LT_EOF
29843     ;;
29844   esac
29845
29846
29847 ltmain="$ac_aux_dir/ltmain.sh"
29848
29849
29850   # We use sed instead of cat because bash on DJGPP gets confused if
29851   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
29852   # text mode, it properly converts lines to CR/LF.  This bash problem
29853   # is reportedly fixed, but why not run on old versions too?
29854   sed '$q' "$ltmain" >> "$cfgfile" \
29855      || (rm -f "$cfgfile"; exit 1)
29856
29857   if test x"$xsi_shell" = xyes; then
29858   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
29859 func_dirname ()\
29860 {\
29861 \    case ${1} in\
29862 \      */*) func_dirname_result="${1%/*}${2}" ;;\
29863 \      *  ) func_dirname_result="${3}" ;;\
29864 \    esac\
29865 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
29866   && mv -f "$cfgfile.tmp" "$cfgfile" \
29867     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29868 test 0 -eq $? || _lt_function_replace_fail=:
29869
29870
29871   sed -e '/^func_basename ()$/,/^} # func_basename /c\
29872 func_basename ()\
29873 {\
29874 \    func_basename_result="${1##*/}"\
29875 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
29876   && mv -f "$cfgfile.tmp" "$cfgfile" \
29877     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29878 test 0 -eq $? || _lt_function_replace_fail=:
29879
29880
29881   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
29882 func_dirname_and_basename ()\
29883 {\
29884 \    case ${1} in\
29885 \      */*) func_dirname_result="${1%/*}${2}" ;;\
29886 \      *  ) func_dirname_result="${3}" ;;\
29887 \    esac\
29888 \    func_basename_result="${1##*/}"\
29889 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
29890   && mv -f "$cfgfile.tmp" "$cfgfile" \
29891     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29892 test 0 -eq $? || _lt_function_replace_fail=:
29893
29894
29895   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
29896 func_stripname ()\
29897 {\
29898 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
29899 \    # positional parameters, so assign one to ordinary parameter first.\
29900 \    func_stripname_result=${3}\
29901 \    func_stripname_result=${func_stripname_result#"${1}"}\
29902 \    func_stripname_result=${func_stripname_result%"${2}"}\
29903 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
29904   && mv -f "$cfgfile.tmp" "$cfgfile" \
29905     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29906 test 0 -eq $? || _lt_function_replace_fail=:
29907
29908
29909   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
29910 func_split_long_opt ()\
29911 {\
29912 \    func_split_long_opt_name=${1%%=*}\
29913 \    func_split_long_opt_arg=${1#*=}\
29914 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
29915   && mv -f "$cfgfile.tmp" "$cfgfile" \
29916     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29917 test 0 -eq $? || _lt_function_replace_fail=:
29918
29919
29920   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
29921 func_split_short_opt ()\
29922 {\
29923 \    func_split_short_opt_arg=${1#??}\
29924 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
29925 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
29926   && mv -f "$cfgfile.tmp" "$cfgfile" \
29927     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29928 test 0 -eq $? || _lt_function_replace_fail=:
29929
29930
29931   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
29932 func_lo2o ()\
29933 {\
29934 \    case ${1} in\
29935 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
29936 \      *)    func_lo2o_result=${1} ;;\
29937 \    esac\
29938 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
29939   && mv -f "$cfgfile.tmp" "$cfgfile" \
29940     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29941 test 0 -eq $? || _lt_function_replace_fail=:
29942
29943
29944   sed -e '/^func_xform ()$/,/^} # func_xform /c\
29945 func_xform ()\
29946 {\
29947     func_xform_result=${1%.*}.lo\
29948 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
29949   && mv -f "$cfgfile.tmp" "$cfgfile" \
29950     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29951 test 0 -eq $? || _lt_function_replace_fail=:
29952
29953
29954   sed -e '/^func_arith ()$/,/^} # func_arith /c\
29955 func_arith ()\
29956 {\
29957     func_arith_result=$(( $* ))\
29958 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
29959   && mv -f "$cfgfile.tmp" "$cfgfile" \
29960     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29961 test 0 -eq $? || _lt_function_replace_fail=:
29962
29963
29964   sed -e '/^func_len ()$/,/^} # func_len /c\
29965 func_len ()\
29966 {\
29967     func_len_result=${#1}\
29968 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
29969   && mv -f "$cfgfile.tmp" "$cfgfile" \
29970     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29971 test 0 -eq $? || _lt_function_replace_fail=:
29972
29973 fi
29974
29975 if test x"$lt_shell_append" = xyes; then
29976   sed -e '/^func_append ()$/,/^} # func_append /c\
29977 func_append ()\
29978 {\
29979     eval "${1}+=\\${2}"\
29980 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
29981   && mv -f "$cfgfile.tmp" "$cfgfile" \
29982     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29983 test 0 -eq $? || _lt_function_replace_fail=:
29984
29985
29986   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
29987 func_append_quoted ()\
29988 {\
29989 \    func_quote_for_eval "${2}"\
29990 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
29991 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
29992   && mv -f "$cfgfile.tmp" "$cfgfile" \
29993     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29994 test 0 -eq $? || _lt_function_replace_fail=:
29995
29996
29997   # Save a `func_append' function call where possible by direct use of '+='
29998   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
29999     && mv -f "$cfgfile.tmp" "$cfgfile" \
30000       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30001   test 0 -eq $? || _lt_function_replace_fail=:
30002 else
30003   # Save a `func_append' function call even when '+=' is not available
30004   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
30005     && mv -f "$cfgfile.tmp" "$cfgfile" \
30006       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30007   test 0 -eq $? || _lt_function_replace_fail=:
30008 fi
30009
30010 if test x"$_lt_function_replace_fail" = x":"; then
30011   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
30012 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
30013 fi
30014
30015
30016    mv -f "$cfgfile" "$ofile" ||
30017     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30018   chmod +x "$ofile"
30019
30020  ;;
30021     "po-directories":C)
30022     for ac_file in $CONFIG_FILES; do
30023       # Support "outfile[:infile[:infile...]]"
30024       case "$ac_file" in
30025         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
30026       esac
30027       # PO directories have a Makefile.in generated from Makefile.in.in.
30028       case "$ac_file" in */Makefile.in)
30029         # Adjust a relative srcdir.
30030         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
30031         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
30032         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
30033         # In autoconf-2.13 it is called $ac_given_srcdir.
30034         # In autoconf-2.50 it is called $srcdir.
30035         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
30036         case "$ac_given_srcdir" in
30037           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
30038           /*) top_srcdir="$ac_given_srcdir" ;;
30039           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
30040         esac
30041         # Treat a directory as a PO directory if and only if it has a
30042         # POTFILES.in file. This allows packages to have multiple PO
30043         # directories under different names or in different locations.
30044         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
30045           rm -f "$ac_dir/POTFILES"
30046           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
30047           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
30048           POMAKEFILEDEPS="POTFILES.in"
30049           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
30050           # on $ac_dir but don't depend on user-specified configuration
30051           # parameters.
30052           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
30053             # The LINGUAS file contains the set of available languages.
30054             if test -n "$OBSOLETE_ALL_LINGUAS"; then
30055               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
30056             fi
30057             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
30058             # Hide the ALL_LINGUAS assigment from automake < 1.5.
30059             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
30060             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
30061           else
30062             # The set of available languages was given in configure.in.
30063             # Hide the ALL_LINGUAS assigment from automake < 1.5.
30064             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
30065           fi
30066           # Compute POFILES
30067           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
30068           # Compute UPDATEPOFILES
30069           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
30070           # Compute DUMMYPOFILES
30071           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
30072           # Compute GMOFILES
30073           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
30074           case "$ac_given_srcdir" in
30075             .) srcdirpre= ;;
30076             *) srcdirpre='$(srcdir)/' ;;
30077           esac
30078           POFILES=
30079           UPDATEPOFILES=
30080           DUMMYPOFILES=
30081           GMOFILES=
30082           for lang in $ALL_LINGUAS; do
30083             POFILES="$POFILES $srcdirpre$lang.po"
30084             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
30085             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
30086             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
30087           done
30088           # CATALOGS depends on both $ac_dir and the user's LINGUAS
30089           # environment variable.
30090           INST_LINGUAS=
30091           if test -n "$ALL_LINGUAS"; then
30092             for presentlang in $ALL_LINGUAS; do
30093               useit=no
30094               if test "%UNSET%" != "$LINGUAS"; then
30095                 desiredlanguages="$LINGUAS"
30096               else
30097                 desiredlanguages="$ALL_LINGUAS"
30098               fi
30099               for desiredlang in $desiredlanguages; do
30100                 # Use the presentlang catalog if desiredlang is
30101                 #   a. equal to presentlang, or
30102                 #   b. a variant of presentlang (because in this case,
30103                 #      presentlang can be used as a fallback for messages
30104                 #      which are not translated in the desiredlang catalog).
30105                 case "$desiredlang" in
30106                   "$presentlang"*) useit=yes;;
30107                 esac
30108               done
30109               if test $useit = yes; then
30110                 INST_LINGUAS="$INST_LINGUAS $presentlang"
30111               fi
30112             done
30113           fi
30114           CATALOGS=
30115           if test -n "$INST_LINGUAS"; then
30116             for lang in $INST_LINGUAS; do
30117               CATALOGS="$CATALOGS $lang.gmo"
30118             done
30119           fi
30120           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
30121           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"
30122           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
30123             if test -f "$f"; then
30124               case "$f" in
30125                 *.orig | *.bak | *~) ;;
30126                 *) cat "$f" >> "$ac_dir/Makefile" ;;
30127               esac
30128             fi
30129           done
30130         fi
30131         ;;
30132       esac
30133     done ;;
30134
30135   esac
30136 done # for ac_tag
30137
30138
30139 as_fn_exit 0
30140 _ACEOF
30141 ac_clean_files=$ac_clean_files_save
30142
30143 test $ac_write_fail = 0 ||
30144   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30145
30146
30147 # configure is writing to config.log, and then calls config.status.
30148 # config.status does its own redirection, appending to config.log.
30149 # Unfortunately, on DOS this fails, as config.log is still kept open
30150 # by configure, so config.status won't be able to write to it; its
30151 # output is simply discarded.  So we exec the FD to /dev/null,
30152 # effectively closing config.log, so it can be properly (re)opened and
30153 # appended to by config.status.  When coming back to configure, we
30154 # need to make the FD available again.
30155 if test "$no_create" != yes; then
30156   ac_cs_success=:
30157   ac_config_status_args=
30158   test "$silent" = yes &&
30159     ac_config_status_args="$ac_config_status_args --quiet"
30160   exec 5>/dev/null
30161   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30162   exec 5>>config.log
30163   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30164   # would make configure fail if this is the last instruction.
30165   $ac_cs_success || as_fn_exit 1
30166 fi
30167 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30168   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30169 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30170 fi
30171
30172
30173 { $as_echo "$as_me:${as_lineno-$LINENO}: summary of library build options:
30174
30175   version:            ${VERSION}
30176   Host type:          ${host}
30177   Install prefix:     ${prefix}
30178   Compiler:           cc: ${CC} cflags: ${CFLAGS} cppflags: ${CPPFLAGS}
30179   Warning flags:      $gl_gcc_warnings
30180   Library types:      Shared=${enable_shared}, Static=${enable_static}
30181   Valgrind:           ${VALGRIND}
30182   Obsolete functions: $obsolete
30183
30184   Client side:        $client
30185   Server side:        $server
30186
30187   ANONYMOUS:          $anonymous
30188   EXTERNAL:           $external
30189   PLAIN:              $plain
30190   LOGIN:              $login
30191   SECURID:            $securid
30192   NTLM:               $ntlm (libs: $LTLIBNTLM)
30193   CRAM-MD5:           $cram_md5
30194   DIGEST-MD5:         $digest_md5
30195   SCRAM-SHA-1:        $scram_sha1
30196   SAML20:             $saml20
30197   OPENID20:           $openid20
30198   GS2:                $gs2
30199   GSSAPI:             $gssapi
30200 " >&5
30201 $as_echo "$as_me: summary of library build options:
30202
30203   version:            ${VERSION}
30204   Host type:          ${host}
30205   Install prefix:     ${prefix}
30206   Compiler:           cc: ${CC} cflags: ${CFLAGS} cppflags: ${CPPFLAGS}
30207   Warning flags:      $gl_gcc_warnings
30208   Library types:      Shared=${enable_shared}, Static=${enable_static}
30209   Valgrind:           ${VALGRIND}
30210   Obsolete functions: $obsolete
30211
30212   Client side:        $client
30213   Server side:        $server
30214
30215   ANONYMOUS:          $anonymous
30216   EXTERNAL:           $external
30217   PLAIN:              $plain
30218   LOGIN:              $login
30219   SECURID:            $securid
30220   NTLM:               $ntlm (libs: $LTLIBNTLM)
30221   CRAM-MD5:           $cram_md5
30222   DIGEST-MD5:         $digest_md5
30223   SCRAM-SHA-1:        $scram_sha1
30224   SAML20:             $saml20
30225   OPENID20:           $openid20
30226   GS2:                $gs2
30227   GSSAPI:             $gssapi
30228 " >&6;}