]> eyrie.org Git - kerberos/krb5-strength.git/blob - configure
New upstream version 3.1
[kerberos/krb5-strength.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for krb5-strength 3.1.
4 #
5 # Report bugs to <eagle@eyrie.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and eagle@eyrie.org
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='krb5-strength'
592 PACKAGE_TARNAME='krb5-strength'
593 PACKAGE_VERSION='3.1'
594 PACKAGE_STRING='krb5-strength 3.1'
595 PACKAGE_BUGREPORT='eagle@eyrie.org'
596 PACKAGE_URL=''
597
598 ac_config_libobj_dir=portable
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 DL_LIBS
639 SQLITE_CFLAGS
640 PKG_CONFIG_LIBDIR
641 PKG_CONFIG_PATH
642 PKG_CONFIG
643 SQLITE_LIBS
644 SQLITE_LDFLAGS
645 SQLITE_CPPFLAGS
646 LIBOBJS
647 KRB5_USES_COM_ERR_FALSE
648 KRB5_USES_COM_ERR_TRUE
649 PATH_KRB5_CONFIG
650 KRB5_LIBS
651 KRB5_LDFLAGS
652 KRB5_CPPFLAGS_GCC
653 KRB5_CPPFLAGS
654 EMBEDDED_CRACKLIB_FALSE
655 EMBEDDED_CRACKLIB_TRUE
656 CRACKLIB_LIBS
657 CRACKLIB_LDFLAGS
658 CRACKLIB_CPPFLAGS
659 CDB_LIBS
660 CDB_LDFLAGS
661 CDB_CPPFLAGS
662 LT_SYS_LIBRARY_PATH
663 OTOOL64
664 OTOOL
665 LIPO
666 NMEDIT
667 DSYMUTIL
668 MANIFEST_TOOL
669 RANLIB
670 DLLTOOL
671 OBJDUMP
672 LN_S
673 NM
674 ac_ct_DUMPBIN
675 DUMPBIN
676 LD
677 FGREP
678 SED
679 host_os
680 host_vendor
681 host_cpu
682 host
683 build_os
684 build_vendor
685 build_cpu
686 build
687 LIBTOOL
688 ac_ct_AR
689 AR
690 WARNINGS_CFLAGS
691 EGREP
692 GREP
693 CPP
694 am__fastdepCC_FALSE
695 am__fastdepCC_TRUE
696 CCDEPMODE
697 am__nodep
698 AMDEPBACKSLASH
699 AMDEP_FALSE
700 AMDEP_TRUE
701 am__quote
702 am__include
703 DEPDIR
704 OBJEXT
705 EXEEXT
706 ac_ct_CC
707 CPPFLAGS
708 LDFLAGS
709 CFLAGS
710 CC
711 MAINT
712 MAINTAINER_MODE_FALSE
713 MAINTAINER_MODE_TRUE
714 AM_BACKSLASH
715 AM_DEFAULT_VERBOSITY
716 AM_DEFAULT_V
717 AM_V
718 am__untar
719 am__tar
720 AMTAR
721 am__leading_dot
722 SET_MAKE
723 AWK
724 mkdir_p
725 MKDIR_P
726 INSTALL_STRIP_PROGRAM
727 STRIP
728 install_sh
729 MAKEINFO
730 AUTOHEADER
731 AUTOMAKE
732 AUTOCONF
733 ACLOCAL
734 VERSION
735 PACKAGE
736 CYGPATH_W
737 am__isrc
738 INSTALL_DATA
739 INSTALL_SCRIPT
740 INSTALL_PROGRAM
741 target_alias
742 host_alias
743 build_alias
744 LIBS
745 ECHO_T
746 ECHO_N
747 ECHO_C
748 DEFS
749 mandir
750 localedir
751 libdir
752 psdir
753 pdfdir
754 dvidir
755 htmldir
756 infodir
757 docdir
758 oldincludedir
759 includedir
760 runstatedir
761 localstatedir
762 sharedstatedir
763 sysconfdir
764 datadir
765 datarootdir
766 libexecdir
767 sbindir
768 bindir
769 program_transform_name
770 prefix
771 exec_prefix
772 PACKAGE_URL
773 PACKAGE_BUGREPORT
774 PACKAGE_STRING
775 PACKAGE_VERSION
776 PACKAGE_TARNAME
777 PACKAGE_NAME
778 PATH_SEPARATOR
779 SHELL'
780 ac_subst_files=''
781 ac_user_opts='
782 enable_option_checking
783 enable_silent_rules
784 enable_maintainer_mode
785 enable_dependency_tracking
786 enable_largefile
787 enable_static
788 enable_shared
789 with_pic
790 enable_fast_install
791 with_aix_soname
792 with_gnu_ld
793 with_sysroot
794 enable_libtool_lock
795 with_tinycdb
796 with_tinycdb_include
797 with_tinycdb_lib
798 with_cracklib
799 with_cracklib_include
800 with_cracklib_lib
801 with_krb5
802 with_krb5_include
803 with_krb5_lib
804 enable_reduced_depends
805 with_sqlite
806 with_sqlite_include
807 with_sqlite_lib
808 '
809       ac_precious_vars='build_alias
810 host_alias
811 target_alias
812 CC
813 CFLAGS
814 LDFLAGS
815 LIBS
816 CPPFLAGS
817 CPP
818 LT_SYS_LIBRARY_PATH
819 PATH_KRB5_CONFIG
820 PKG_CONFIG
821 PKG_CONFIG_PATH
822 PKG_CONFIG_LIBDIR
823 SQLITE_CFLAGS
824 SQLITE_LIBS'
825
826
827 # Initialize some variables set by options.
828 ac_init_help=
829 ac_init_version=false
830 ac_unrecognized_opts=
831 ac_unrecognized_sep=
832 # The variables have the same names as the options, with
833 # dashes changed to underlines.
834 cache_file=/dev/null
835 exec_prefix=NONE
836 no_create=
837 no_recursion=
838 prefix=NONE
839 program_prefix=NONE
840 program_suffix=NONE
841 program_transform_name=s,x,x,
842 silent=
843 site=
844 srcdir=
845 verbose=
846 x_includes=NONE
847 x_libraries=NONE
848
849 # Installation directory options.
850 # These are left unexpanded so users can "make install exec_prefix=/foo"
851 # and all the variables that are supposed to be based on exec_prefix
852 # by default will actually change.
853 # Use braces instead of parens because sh, perl, etc. also accept them.
854 # (The list follows the same order as the GNU Coding Standards.)
855 bindir='${exec_prefix}/bin'
856 sbindir='${exec_prefix}/sbin'
857 libexecdir='${exec_prefix}/libexec'
858 datarootdir='${prefix}/share'
859 datadir='${datarootdir}'
860 sysconfdir='${prefix}/etc'
861 sharedstatedir='${prefix}/com'
862 localstatedir='${prefix}/var'
863 runstatedir='${localstatedir}/run'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867 infodir='${datarootdir}/info'
868 htmldir='${docdir}'
869 dvidir='${docdir}'
870 pdfdir='${docdir}'
871 psdir='${docdir}'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
875
876 ac_prev=
877 ac_dashdash=
878 for ac_option
879 do
880   # If the previous option needs an argument, assign it.
881   if test -n "$ac_prev"; then
882     eval $ac_prev=\$ac_option
883     ac_prev=
884     continue
885   fi
886
887   case $ac_option in
888   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889   *=)   ac_optarg= ;;
890   *)    ac_optarg=yes ;;
891   esac
892
893   # Accept the important Cygnus configure options, so we can diagnose typos.
894
895   case $ac_dashdash$ac_option in
896   --)
897     ac_dashdash=yes ;;
898
899   -bindir | --bindir | --bindi | --bind | --bin | --bi)
900     ac_prev=bindir ;;
901   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902     bindir=$ac_optarg ;;
903
904   -build | --build | --buil | --bui | --bu)
905     ac_prev=build_alias ;;
906   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907     build_alias=$ac_optarg ;;
908
909   -cache-file | --cache-file | --cache-fil | --cache-fi \
910   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911     ac_prev=cache_file ;;
912   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914     cache_file=$ac_optarg ;;
915
916   --config-cache | -C)
917     cache_file=config.cache ;;
918
919   -datadir | --datadir | --datadi | --datad)
920     ac_prev=datadir ;;
921   -datadir=* | --datadir=* | --datadi=* | --datad=*)
922     datadir=$ac_optarg ;;
923
924   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925   | --dataroo | --dataro | --datar)
926     ac_prev=datarootdir ;;
927   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929     datarootdir=$ac_optarg ;;
930
931   -disable-* | --disable-*)
932     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933     # Reject names that are not valid shell variable names.
934     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935       as_fn_error $? "invalid feature name: $ac_useropt"
936     ac_useropt_orig=$ac_useropt
937     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938     case $ac_user_opts in
939       *"
940 "enable_$ac_useropt"
941 "*) ;;
942       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
943          ac_unrecognized_sep=', ';;
944     esac
945     eval enable_$ac_useropt=no ;;
946
947   -docdir | --docdir | --docdi | --doc | --do)
948     ac_prev=docdir ;;
949   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950     docdir=$ac_optarg ;;
951
952   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
953     ac_prev=dvidir ;;
954   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955     dvidir=$ac_optarg ;;
956
957   -enable-* | --enable-*)
958     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
959     # Reject names that are not valid shell variable names.
960     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961       as_fn_error $? "invalid feature name: $ac_useropt"
962     ac_useropt_orig=$ac_useropt
963     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964     case $ac_user_opts in
965       *"
966 "enable_$ac_useropt"
967 "*) ;;
968       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
969          ac_unrecognized_sep=', ';;
970     esac
971     eval enable_$ac_useropt=\$ac_optarg ;;
972
973   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
974   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
975   | --exec | --exe | --ex)
976     ac_prev=exec_prefix ;;
977   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
978   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
979   | --exec=* | --exe=* | --ex=*)
980     exec_prefix=$ac_optarg ;;
981
982   -gas | --gas | --ga | --g)
983     # Obsolete; use --with-gas.
984     with_gas=yes ;;
985
986   -help | --help | --hel | --he | -h)
987     ac_init_help=long ;;
988   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
989     ac_init_help=recursive ;;
990   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
991     ac_init_help=short ;;
992
993   -host | --host | --hos | --ho)
994     ac_prev=host_alias ;;
995   -host=* | --host=* | --hos=* | --ho=*)
996     host_alias=$ac_optarg ;;
997
998   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
999     ac_prev=htmldir ;;
1000   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1001   | --ht=*)
1002     htmldir=$ac_optarg ;;
1003
1004   -includedir | --includedir | --includedi | --included | --include \
1005   | --includ | --inclu | --incl | --inc)
1006     ac_prev=includedir ;;
1007   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1008   | --includ=* | --inclu=* | --incl=* | --inc=*)
1009     includedir=$ac_optarg ;;
1010
1011   -infodir | --infodir | --infodi | --infod | --info | --inf)
1012     ac_prev=infodir ;;
1013   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1014     infodir=$ac_optarg ;;
1015
1016   -libdir | --libdir | --libdi | --libd)
1017     ac_prev=libdir ;;
1018   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1019     libdir=$ac_optarg ;;
1020
1021   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1022   | --libexe | --libex | --libe)
1023     ac_prev=libexecdir ;;
1024   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1025   | --libexe=* | --libex=* | --libe=*)
1026     libexecdir=$ac_optarg ;;
1027
1028   -localedir | --localedir | --localedi | --localed | --locale)
1029     ac_prev=localedir ;;
1030   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1031     localedir=$ac_optarg ;;
1032
1033   -localstatedir | --localstatedir | --localstatedi | --localstated \
1034   | --localstate | --localstat | --localsta | --localst | --locals)
1035     ac_prev=localstatedir ;;
1036   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1037   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1038     localstatedir=$ac_optarg ;;
1039
1040   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1041     ac_prev=mandir ;;
1042   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1043     mandir=$ac_optarg ;;
1044
1045   -nfp | --nfp | --nf)
1046     # Obsolete; use --without-fp.
1047     with_fp=no ;;
1048
1049   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1050   | --no-cr | --no-c | -n)
1051     no_create=yes ;;
1052
1053   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1054   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1055     no_recursion=yes ;;
1056
1057   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1058   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1059   | --oldin | --oldi | --old | --ol | --o)
1060     ac_prev=oldincludedir ;;
1061   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1062   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1063   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1064     oldincludedir=$ac_optarg ;;
1065
1066   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1067     ac_prev=prefix ;;
1068   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1069     prefix=$ac_optarg ;;
1070
1071   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1072   | --program-pre | --program-pr | --program-p)
1073     ac_prev=program_prefix ;;
1074   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1075   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1076     program_prefix=$ac_optarg ;;
1077
1078   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1079   | --program-suf | --program-su | --program-s)
1080     ac_prev=program_suffix ;;
1081   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1082   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1083     program_suffix=$ac_optarg ;;
1084
1085   -program-transform-name | --program-transform-name \
1086   | --program-transform-nam | --program-transform-na \
1087   | --program-transform-n | --program-transform- \
1088   | --program-transform | --program-transfor \
1089   | --program-transfo | --program-transf \
1090   | --program-trans | --program-tran \
1091   | --progr-tra | --program-tr | --program-t)
1092     ac_prev=program_transform_name ;;
1093   -program-transform-name=* | --program-transform-name=* \
1094   | --program-transform-nam=* | --program-transform-na=* \
1095   | --program-transform-n=* | --program-transform-=* \
1096   | --program-transform=* | --program-transfor=* \
1097   | --program-transfo=* | --program-transf=* \
1098   | --program-trans=* | --program-tran=* \
1099   | --progr-tra=* | --program-tr=* | --program-t=*)
1100     program_transform_name=$ac_optarg ;;
1101
1102   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1103     ac_prev=pdfdir ;;
1104   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1105     pdfdir=$ac_optarg ;;
1106
1107   -psdir | --psdir | --psdi | --psd | --ps)
1108     ac_prev=psdir ;;
1109   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1110     psdir=$ac_optarg ;;
1111
1112   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113   | -silent | --silent | --silen | --sile | --sil)
1114     silent=yes ;;
1115
1116   -runstatedir | --runstatedir | --runstatedi | --runstated \
1117   | --runstate | --runstat | --runsta | --runst | --runs \
1118   | --run | --ru | --r)
1119     ac_prev=runstatedir ;;
1120   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1121   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1122   | --run=* | --ru=* | --r=*)
1123     runstatedir=$ac_optarg ;;
1124
1125   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126     ac_prev=sbindir ;;
1127   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128   | --sbi=* | --sb=*)
1129     sbindir=$ac_optarg ;;
1130
1131   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133   | --sharedst | --shareds | --shared | --share | --shar \
1134   | --sha | --sh)
1135     ac_prev=sharedstatedir ;;
1136   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139   | --sha=* | --sh=*)
1140     sharedstatedir=$ac_optarg ;;
1141
1142   -site | --site | --sit)
1143     ac_prev=site ;;
1144   -site=* | --site=* | --sit=*)
1145     site=$ac_optarg ;;
1146
1147   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148     ac_prev=srcdir ;;
1149   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150     srcdir=$ac_optarg ;;
1151
1152   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153   | --syscon | --sysco | --sysc | --sys | --sy)
1154     ac_prev=sysconfdir ;;
1155   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157     sysconfdir=$ac_optarg ;;
1158
1159   -target | --target | --targe | --targ | --tar | --ta | --t)
1160     ac_prev=target_alias ;;
1161   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162     target_alias=$ac_optarg ;;
1163
1164   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165     verbose=yes ;;
1166
1167   -version | --version | --versio | --versi | --vers | -V)
1168     ac_init_version=: ;;
1169
1170   -with-* | --with-*)
1171     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172     # Reject names that are not valid shell variable names.
1173     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174       as_fn_error $? "invalid package name: $ac_useropt"
1175     ac_useropt_orig=$ac_useropt
1176     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177     case $ac_user_opts in
1178       *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182          ac_unrecognized_sep=', ';;
1183     esac
1184     eval with_$ac_useropt=\$ac_optarg ;;
1185
1186   -without-* | --without-*)
1187     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188     # Reject names that are not valid shell variable names.
1189     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190       as_fn_error $? "invalid package name: $ac_useropt"
1191     ac_useropt_orig=$ac_useropt
1192     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193     case $ac_user_opts in
1194       *"
1195 "with_$ac_useropt"
1196 "*) ;;
1197       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198          ac_unrecognized_sep=', ';;
1199     esac
1200     eval with_$ac_useropt=no ;;
1201
1202   --x)
1203     # Obsolete; use --with-x.
1204     with_x=yes ;;
1205
1206   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207   | --x-incl | --x-inc | --x-in | --x-i)
1208     ac_prev=x_includes ;;
1209   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211     x_includes=$ac_optarg ;;
1212
1213   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215     ac_prev=x_libraries ;;
1216   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218     x_libraries=$ac_optarg ;;
1219
1220   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1221 Try \`$0 --help' for more information"
1222     ;;
1223
1224   *=*)
1225     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226     # Reject names that are not valid shell variable names.
1227     case $ac_envvar in #(
1228       '' | [0-9]* | *[!_$as_cr_alnum]* )
1229       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230     esac
1231     eval $ac_envvar=\$ac_optarg
1232     export $ac_envvar ;;
1233
1234   *)
1235     # FIXME: should be removed in autoconf 3.0.
1236     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1240     ;;
1241
1242   esac
1243 done
1244
1245 if test -n "$ac_prev"; then
1246   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247   as_fn_error $? "missing argument to $ac_option"
1248 fi
1249
1250 if test -n "$ac_unrecognized_opts"; then
1251   case $enable_option_checking in
1252     no) ;;
1253     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1254     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255   esac
1256 fi
1257
1258 # Check all directory arguments for consistency.
1259 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260                 datadir sysconfdir sharedstatedir localstatedir includedir \
1261                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262                 libdir localedir mandir runstatedir
1263 do
1264   eval ac_val=\$$ac_var
1265   # Remove trailing slashes.
1266   case $ac_val in
1267     */ )
1268       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269       eval $ac_var=\$ac_val;;
1270   esac
1271   # Be sure to have absolute directory names.
1272   case $ac_val in
1273     [\\/$]* | ?:[\\/]* )  continue;;
1274     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275   esac
1276   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277 done
1278
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1282 build=$build_alias
1283 host=$host_alias
1284 target=$target_alias
1285
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288   if test "x$build_alias" = x; then
1289     cross_compiling=maybe
1290   elif test "x$build_alias" != "x$host_alias"; then
1291     cross_compiling=yes
1292   fi
1293 fi
1294
1295 ac_tool_prefix=
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297
1298 test "$silent" = yes && exec 6>/dev/null
1299
1300
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304   as_fn_error $? "working directory cannot be determined"
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306   as_fn_error $? "pwd does not report name of working directory"
1307
1308
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311   ac_srcdir_defaulted=yes
1312   # Try the directory containing this script, then the parent directory.
1313   ac_confdir=`$as_dirname -- "$as_myself" ||
1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315          X"$as_myself" : 'X\(//\)[^/]' \| \
1316          X"$as_myself" : 'X\(//\)$' \| \
1317          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318 $as_echo X"$as_myself" |
1319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320             s//\1/
1321             q
1322           }
1323           /^X\(\/\/\)[^/].*/{
1324             s//\1/
1325             q
1326           }
1327           /^X\(\/\/\)$/{
1328             s//\1/
1329             q
1330           }
1331           /^X\(\/\).*/{
1332             s//\1/
1333             q
1334           }
1335           s/.*/./; q'`
1336   srcdir=$ac_confdir
1337   if test ! -r "$srcdir/$ac_unique_file"; then
1338     srcdir=..
1339   fi
1340 else
1341   ac_srcdir_defaulted=no
1342 fi
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1346 fi
1347 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 ac_abs_confdir=`(
1349         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350         pwd)`
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1353   srcdir=.
1354 fi
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1358 case $srcdir in
1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 esac
1361 for ac_var in $ac_precious_vars; do
1362   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363   eval ac_env_${ac_var}_value=\$${ac_var}
1364   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366 done
1367
1368 #
1369 # Report the --help message.
1370 #
1371 if test "$ac_init_help" = "long"; then
1372   # Omit some internal or obsolete options to make the list less imposing.
1373   # This message is too long to be a string in the A/UX 3.1 sh.
1374   cat <<_ACEOF
1375 \`configure' configures krb5-strength 3.1 to adapt to many kinds of systems.
1376
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1378
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE.  See below for descriptions of some of the useful variables.
1381
1382 Defaults for the options are specified in brackets.
1383
1384 Configuration:
1385   -h, --help              display this help and exit
1386       --help=short        display options specific to this package
1387       --help=recursive    display the short help of all the included packages
1388   -V, --version           display version information and exit
1389   -q, --quiet, --silent   do not print \`checking ...' messages
1390       --cache-file=FILE   cache test results in FILE [disabled]
1391   -C, --config-cache      alias for \`--cache-file=config.cache'
1392   -n, --no-create         do not create output files
1393       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1394
1395 Installation directories:
1396   --prefix=PREFIX         install architecture-independent files in PREFIX
1397                           [$ac_default_prefix]
1398   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1399                           [PREFIX]
1400
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1405
1406 For better control, use the options below.
1407
1408 Fine tuning of the installation directories:
1409   --bindir=DIR            user executables [EPREFIX/bin]
1410   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1411   --libexecdir=DIR        program executables [EPREFIX/libexec]
1412   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1413   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1414   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1415   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1416   --libdir=DIR            object code libraries [EPREFIX/lib]
1417   --includedir=DIR        C header files [PREFIX/include]
1418   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1419   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1420   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1421   --infodir=DIR           info documentation [DATAROOTDIR/info]
1422   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1423   --mandir=DIR            man documentation [DATAROOTDIR/man]
1424   --docdir=DIR            documentation root [DATAROOTDIR/doc/krb5-strength]
1425   --htmldir=DIR           html documentation [DOCDIR]
1426   --dvidir=DIR            dvi documentation [DOCDIR]
1427   --pdfdir=DIR            pdf documentation [DOCDIR]
1428   --psdir=DIR             ps documentation [DOCDIR]
1429 _ACEOF
1430
1431   cat <<\_ACEOF
1432
1433 Program names:
1434   --program-prefix=PREFIX            prepend PREFIX to installed program names
1435   --program-suffix=SUFFIX            append SUFFIX to installed program names
1436   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1437
1438 System types:
1439   --build=BUILD     configure for building on BUILD [guessed]
1440   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1441 _ACEOF
1442 fi
1443
1444 if test -n "$ac_init_help"; then
1445   case $ac_init_help in
1446      short | recursive ) echo "Configuration of krb5-strength 3.1:";;
1447    esac
1448   cat <<\_ACEOF
1449
1450 Optional Features:
1451   --disable-option-checking  ignore unrecognized --enable/--with options
1452   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1453   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1454   --enable-silent-rules   less verbose build output (undo: "make V=1")
1455   --disable-silent-rules  verbose build output (undo: "make V=0")
1456   --enable-maintainer-mode
1457                           enable make rules and dependencies not useful (and
1458                           sometimes confusing) to the casual installer
1459   --enable-dependency-tracking
1460                           do not reject slow dependency extractors
1461   --disable-dependency-tracking
1462                           speeds up one-time build
1463   --disable-largefile     omit support for large files
1464   --enable-static[=PKGS]  build static libraries [default=no]
1465   --enable-shared[=PKGS]  build shared libraries [default=yes]
1466   --enable-fast-install[=PKGS]
1467                           optimize for fast installation [default=yes]
1468   --disable-libtool-lock  avoid locking (might break parallel builds)
1469   --enable-reduced-depends
1470                           Try to minimize shared library dependencies
1471
1472 Optional Packages:
1473   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1474   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1475   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1476                           both]
1477   --with-aix-soname=aix|svr4|both
1478                           shared library versioning (aka "SONAME") variant to
1479                           provide on AIX, [default=aix].
1480   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1481   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1482                           compiler's sysroot if not specified).
1483   --with-tinycdb[=DIR]    Location of TinyCDB headers and libraries
1484   --with-tinycdb-include=DIR
1485                           Location of TinyCDB headers
1486   --with-tinycdb-lib=DIR  Location of TinyCDB libraries
1487   --with-cracklib[=DIR]   Use system CrackLib instead of embedded copy
1488   --with-cracklib-include=DIR
1489                           Location of CrackLib headers
1490   --with-cracklib-lib=DIR Location of cracklib libraries
1491   --with-krb5=DIR         Location of Kerberos headers and libraries
1492   --with-krb5-include=DIR Location of Kerberos headers
1493   --with-krb5-lib=DIR     Location of Kerberos libraries
1494   --with-sqlite[=DIR]     Location of SQLite headers and libraries
1495   --with-sqlite-include=DIR
1496                           Location of SQLite headers
1497   --with-sqlite-lib=DIR   Location of SQLite libraries
1498
1499 Some influential environment variables:
1500   CC          C compiler command
1501   CFLAGS      C compiler flags
1502   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1503               nonstandard directory <lib dir>
1504   LIBS        libraries to pass to the linker, e.g. -l<library>
1505   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1506               you have headers in a nonstandard directory <include dir>
1507   CPP         C preprocessor
1508   LT_SYS_LIBRARY_PATH
1509               User-defined run-time library search path.
1510   PATH_KRB5_CONFIG
1511               Path to krb5-config
1512   PKG_CONFIG  path to pkg-config utility
1513   PKG_CONFIG_PATH
1514               directories to add to pkg-config's search path
1515   PKG_CONFIG_LIBDIR
1516               path overriding pkg-config's built-in search path
1517   SQLITE_CFLAGS
1518               C compiler flags for SQLITE, overriding pkg-config
1519   SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
1520
1521 Use these variables to override the choices made by `configure' or to help
1522 it to find libraries and programs with nonstandard names/locations.
1523
1524 Report bugs to <eagle@eyrie.org>.
1525 _ACEOF
1526 ac_status=$?
1527 fi
1528
1529 if test "$ac_init_help" = "recursive"; then
1530   # If there are subdirs, report their specific --help.
1531   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1532     test -d "$ac_dir" ||
1533       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1534       continue
1535     ac_builddir=.
1536
1537 case "$ac_dir" in
1538 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *)
1540   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1541   # A ".." for each directory in $ac_dir_suffix.
1542   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1543   case $ac_top_builddir_sub in
1544   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1546   esac ;;
1547 esac
1548 ac_abs_top_builddir=$ac_pwd
1549 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1550 # for backward compatibility:
1551 ac_top_builddir=$ac_top_build_prefix
1552
1553 case $srcdir in
1554   .)  # We are building in place.
1555     ac_srcdir=.
1556     ac_top_srcdir=$ac_top_builddir_sub
1557     ac_abs_top_srcdir=$ac_pwd ;;
1558   [\\/]* | ?:[\\/]* )  # Absolute name.
1559     ac_srcdir=$srcdir$ac_dir_suffix;
1560     ac_top_srcdir=$srcdir
1561     ac_abs_top_srcdir=$srcdir ;;
1562   *) # Relative name.
1563     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1564     ac_top_srcdir=$ac_top_build_prefix$srcdir
1565     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1566 esac
1567 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1568
1569     cd "$ac_dir" || { ac_status=$?; continue; }
1570     # Check for guested configure.
1571     if test -f "$ac_srcdir/configure.gnu"; then
1572       echo &&
1573       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1574     elif test -f "$ac_srcdir/configure"; then
1575       echo &&
1576       $SHELL "$ac_srcdir/configure" --help=recursive
1577     else
1578       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1579     fi || ac_status=$?
1580     cd "$ac_pwd" || { ac_status=$?; break; }
1581   done
1582 fi
1583
1584 test -n "$ac_init_help" && exit $ac_status
1585 if $ac_init_version; then
1586   cat <<\_ACEOF
1587 krb5-strength configure 3.1
1588 generated by GNU Autoconf 2.69
1589
1590 Copyright (C) 2012 Free Software Foundation, Inc.
1591 This configure script is free software; the Free Software Foundation
1592 gives unlimited permission to copy, distribute and modify it.
1593 _ACEOF
1594   exit
1595 fi
1596
1597 ## ------------------------ ##
1598 ## Autoconf initialization. ##
1599 ## ------------------------ ##
1600
1601 # ac_fn_c_try_compile LINENO
1602 # --------------------------
1603 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1604 ac_fn_c_try_compile ()
1605 {
1606   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607   rm -f conftest.$ac_objext
1608   if { { ac_try="$ac_compile"
1609 case "(($ac_try" in
1610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611   *) ac_try_echo=$ac_try;;
1612 esac
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615   (eval "$ac_compile") 2>conftest.err
1616   ac_status=$?
1617   if test -s conftest.err; then
1618     grep -v '^ *+' conftest.err >conftest.er1
1619     cat conftest.er1 >&5
1620     mv -f conftest.er1 conftest.err
1621   fi
1622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623   test $ac_status = 0; } && {
1624          test -z "$ac_c_werror_flag" ||
1625          test ! -s conftest.err
1626        } && test -s conftest.$ac_objext; then :
1627   ac_retval=0
1628 else
1629   $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1631
1632         ac_retval=1
1633 fi
1634   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635   as_fn_set_status $ac_retval
1636
1637 } # ac_fn_c_try_compile
1638
1639 # ac_fn_c_try_cpp LINENO
1640 # ----------------------
1641 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1642 ac_fn_c_try_cpp ()
1643 {
1644   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645   if { { ac_try="$ac_cpp conftest.$ac_ext"
1646 case "(($ac_try" in
1647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648   *) ac_try_echo=$ac_try;;
1649 esac
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1653   ac_status=$?
1654   if test -s conftest.err; then
1655     grep -v '^ *+' conftest.err >conftest.er1
1656     cat conftest.er1 >&5
1657     mv -f conftest.er1 conftest.err
1658   fi
1659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660   test $ac_status = 0; } > conftest.i && {
1661          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1662          test ! -s conftest.err
1663        }; then :
1664   ac_retval=0
1665 else
1666   $as_echo "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1668
1669     ac_retval=1
1670 fi
1671   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672   as_fn_set_status $ac_retval
1673
1674 } # ac_fn_c_try_cpp
1675
1676 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1677 # -------------------------------------------------------
1678 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1679 # the include files in INCLUDES and setting the cache variable VAR
1680 # accordingly.
1681 ac_fn_c_check_header_mongrel ()
1682 {
1683   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684   if eval \${$3+:} false; then :
1685   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1686 $as_echo_n "checking for $2... " >&6; }
1687 if eval \${$3+:} false; then :
1688   $as_echo_n "(cached) " >&6
1689 fi
1690 eval ac_res=\$$3
1691                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1692 $as_echo "$ac_res" >&6; }
1693 else
1694   # Is the header compilable?
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1696 $as_echo_n "checking $2 usability... " >&6; }
1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698 /* end confdefs.h.  */
1699 $4
1700 #include <$2>
1701 _ACEOF
1702 if ac_fn_c_try_compile "$LINENO"; then :
1703   ac_header_compiler=yes
1704 else
1705   ac_header_compiler=no
1706 fi
1707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1709 $as_echo "$ac_header_compiler" >&6; }
1710
1711 # Is the header present?
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1713 $as_echo_n "checking $2 presence... " >&6; }
1714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715 /* end confdefs.h.  */
1716 #include <$2>
1717 _ACEOF
1718 if ac_fn_c_try_cpp "$LINENO"; then :
1719   ac_header_preproc=yes
1720 else
1721   ac_header_preproc=no
1722 fi
1723 rm -f conftest.err conftest.i conftest.$ac_ext
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1725 $as_echo "$ac_header_preproc" >&6; }
1726
1727 # So?  What about this header?
1728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1729   yes:no: )
1730     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1731 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1732     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1733 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1734     ;;
1735   no:yes:* )
1736     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1737 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1738     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1739 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1740     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1741 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1742     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1743 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1744     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1745 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1746 ( $as_echo "## ------------------------------ ##
1747 ## Report this to eagle@eyrie.org ##
1748 ## ------------------------------ ##"
1749      ) | sed "s/^/$as_me: WARNING:     /" >&2
1750     ;;
1751 esac
1752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 $as_echo_n "checking for $2... " >&6; }
1754 if eval \${$3+:} false; then :
1755   $as_echo_n "(cached) " >&6
1756 else
1757   eval "$3=\$ac_header_compiler"
1758 fi
1759 eval ac_res=\$$3
1760                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761 $as_echo "$ac_res" >&6; }
1762 fi
1763   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764
1765 } # ac_fn_c_check_header_mongrel
1766
1767 # ac_fn_c_try_run LINENO
1768 # ----------------------
1769 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1770 # that executables *can* be run.
1771 ac_fn_c_try_run ()
1772 {
1773   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774   if { { ac_try="$ac_link"
1775 case "(($ac_try" in
1776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777   *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781   (eval "$ac_link") 2>&5
1782   ac_status=$?
1783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1785   { { case "(($ac_try" in
1786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787   *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791   (eval "$ac_try") 2>&5
1792   ac_status=$?
1793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794   test $ac_status = 0; }; }; then :
1795   ac_retval=0
1796 else
1797   $as_echo "$as_me: program exited with status $ac_status" >&5
1798        $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1800
1801        ac_retval=$ac_status
1802 fi
1803   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805   as_fn_set_status $ac_retval
1806
1807 } # ac_fn_c_try_run
1808
1809 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1810 # -------------------------------------------------------
1811 # Tests whether HEADER exists and can be compiled using the include files in
1812 # INCLUDES, setting the cache variable VAR accordingly.
1813 ac_fn_c_check_header_compile ()
1814 {
1815   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if eval \${$3+:} false; then :
1819   $as_echo_n "(cached) " >&6
1820 else
1821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h.  */
1823 $4
1824 #include <$2>
1825 _ACEOF
1826 if ac_fn_c_try_compile "$LINENO"; then :
1827   eval "$3=yes"
1828 else
1829   eval "$3=no"
1830 fi
1831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832 fi
1833 eval ac_res=\$$3
1834                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837
1838 } # ac_fn_c_check_header_compile
1839
1840 # ac_fn_c_try_link LINENO
1841 # -----------------------
1842 # Try to link conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_c_try_link ()
1844 {
1845   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846   rm -f conftest.$ac_objext conftest$ac_exeext
1847   if { { ac_try="$ac_link"
1848 case "(($ac_try" in
1849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850   *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854   (eval "$ac_link") 2>conftest.err
1855   ac_status=$?
1856   if test -s conftest.err; then
1857     grep -v '^ *+' conftest.err >conftest.er1
1858     cat conftest.er1 >&5
1859     mv -f conftest.er1 conftest.err
1860   fi
1861   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862   test $ac_status = 0; } && {
1863          test -z "$ac_c_werror_flag" ||
1864          test ! -s conftest.err
1865        } && test -s conftest$ac_exeext && {
1866          test "$cross_compiling" = yes ||
1867          test -x conftest$ac_exeext
1868        }; then :
1869   ac_retval=0
1870 else
1871   $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1873
1874         ac_retval=1
1875 fi
1876   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1877   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1878   # interfere with the next link command; also delete a directory that is
1879   # left behind by Apple's compiler.  We do this before executing the actions.
1880   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1881   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882   as_fn_set_status $ac_retval
1883
1884 } # ac_fn_c_try_link
1885
1886 # ac_fn_c_check_func LINENO FUNC VAR
1887 # ----------------------------------
1888 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1889 ac_fn_c_check_func ()
1890 {
1891   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893 $as_echo_n "checking for $2... " >&6; }
1894 if eval \${$3+:} false; then :
1895   $as_echo_n "(cached) " >&6
1896 else
1897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h.  */
1899 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1900    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1901 #define $2 innocuous_$2
1902
1903 /* System header to define __stub macros and hopefully few prototypes,
1904     which can conflict with char $2 (); below.
1905     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1906     <limits.h> exists even on freestanding compilers.  */
1907
1908 #ifdef __STDC__
1909 # include <limits.h>
1910 #else
1911 # include <assert.h>
1912 #endif
1913
1914 #undef $2
1915
1916 /* Override any GCC internal prototype to avoid an error.
1917    Use char because int might match the return type of a GCC
1918    builtin and then its argument prototype would still apply.  */
1919 #ifdef __cplusplus
1920 extern "C"
1921 #endif
1922 char $2 ();
1923 /* The GNU C library defines this for functions which it implements
1924     to always fail with ENOSYS.  Some functions are actually named
1925     something starting with __ and the normal name is an alias.  */
1926 #if defined __stub_$2 || defined __stub___$2
1927 choke me
1928 #endif
1929
1930 int
1931 main ()
1932 {
1933 return $2 ();
1934   ;
1935   return 0;
1936 }
1937 _ACEOF
1938 if ac_fn_c_try_link "$LINENO"; then :
1939   eval "$3=yes"
1940 else
1941   eval "$3=no"
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext \
1944     conftest$ac_exeext conftest.$ac_ext
1945 fi
1946 eval ac_res=\$$3
1947                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 $as_echo "$ac_res" >&6; }
1949   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950
1951 } # ac_fn_c_check_func
1952
1953 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1954 # --------------------------------------------
1955 # Tries to find the compile-time value of EXPR in a program that includes
1956 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1957 # computed
1958 ac_fn_c_compute_int ()
1959 {
1960   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961   if test "$cross_compiling" = yes; then
1962     # Depending upon the size, compute the lo and hi bounds.
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h.  */
1965 $4
1966 int
1967 main ()
1968 {
1969 static int test_array [1 - 2 * !(($2) >= 0)];
1970 test_array [0] = 0;
1971 return test_array [0];
1972
1973   ;
1974   return 0;
1975 }
1976 _ACEOF
1977 if ac_fn_c_try_compile "$LINENO"; then :
1978   ac_lo=0 ac_mid=0
1979   while :; do
1980     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h.  */
1982 $4
1983 int
1984 main ()
1985 {
1986 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1987 test_array [0] = 0;
1988 return test_array [0];
1989
1990   ;
1991   return 0;
1992 }
1993 _ACEOF
1994 if ac_fn_c_try_compile "$LINENO"; then :
1995   ac_hi=$ac_mid; break
1996 else
1997   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1998                         if test $ac_lo -le $ac_mid; then
1999                           ac_lo= ac_hi=
2000                           break
2001                         fi
2002                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2003 fi
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005   done
2006 else
2007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h.  */
2009 $4
2010 int
2011 main ()
2012 {
2013 static int test_array [1 - 2 * !(($2) < 0)];
2014 test_array [0] = 0;
2015 return test_array [0];
2016
2017   ;
2018   return 0;
2019 }
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022   ac_hi=-1 ac_mid=-1
2023   while :; do
2024     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h.  */
2026 $4
2027 int
2028 main ()
2029 {
2030 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2031 test_array [0] = 0;
2032 return test_array [0];
2033
2034   ;
2035   return 0;
2036 }
2037 _ACEOF
2038 if ac_fn_c_try_compile "$LINENO"; then :
2039   ac_lo=$ac_mid; break
2040 else
2041   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2042                         if test $ac_mid -le $ac_hi; then
2043                           ac_lo= ac_hi=
2044                           break
2045                         fi
2046                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2047 fi
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049   done
2050 else
2051   ac_lo= ac_hi=
2052 fi
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 fi
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 # Binary search between lo and hi bounds.
2057 while test "x$ac_lo" != "x$ac_hi"; do
2058   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h.  */
2061 $4
2062 int
2063 main ()
2064 {
2065 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2066 test_array [0] = 0;
2067 return test_array [0];
2068
2069   ;
2070   return 0;
2071 }
2072 _ACEOF
2073 if ac_fn_c_try_compile "$LINENO"; then :
2074   ac_hi=$ac_mid
2075 else
2076   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2077 fi
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079 done
2080 case $ac_lo in #((
2081 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2082 '') ac_retval=1 ;;
2083 esac
2084   else
2085     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h.  */
2087 $4
2088 static long int longval () { return $2; }
2089 static unsigned long int ulongval () { return $2; }
2090 #include <stdio.h>
2091 #include <stdlib.h>
2092 int
2093 main ()
2094 {
2095
2096   FILE *f = fopen ("conftest.val", "w");
2097   if (! f)
2098     return 1;
2099   if (($2) < 0)
2100     {
2101       long int i = longval ();
2102       if (i != ($2))
2103         return 1;
2104       fprintf (f, "%ld", i);
2105     }
2106   else
2107     {
2108       unsigned long int i = ulongval ();
2109       if (i != ($2))
2110         return 1;
2111       fprintf (f, "%lu", i);
2112     }
2113   /* Do not output a trailing newline, as this causes \r\n confusion
2114      on some platforms.  */
2115   return ferror (f) || fclose (f) != 0;
2116
2117   ;
2118   return 0;
2119 }
2120 _ACEOF
2121 if ac_fn_c_try_run "$LINENO"; then :
2122   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2123 else
2124   ac_retval=1
2125 fi
2126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2127   conftest.$ac_objext conftest.beam conftest.$ac_ext
2128 rm -f conftest.val
2129
2130   fi
2131   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132   as_fn_set_status $ac_retval
2133
2134 } # ac_fn_c_compute_int
2135
2136 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2137 # -------------------------------------------
2138 # Tests whether TYPE exists after having included INCLUDES, setting cache
2139 # variable VAR accordingly.
2140 ac_fn_c_check_type ()
2141 {
2142   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2144 $as_echo_n "checking for $2... " >&6; }
2145 if eval \${$3+:} false; then :
2146   $as_echo_n "(cached) " >&6
2147 else
2148   eval "$3=no"
2149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h.  */
2151 $4
2152 int
2153 main ()
2154 {
2155 if (sizeof ($2))
2156          return 0;
2157   ;
2158   return 0;
2159 }
2160 _ACEOF
2161 if ac_fn_c_try_compile "$LINENO"; then :
2162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h.  */
2164 $4
2165 int
2166 main ()
2167 {
2168 if (sizeof (($2)))
2169             return 0;
2170   ;
2171   return 0;
2172 }
2173 _ACEOF
2174 if ac_fn_c_try_compile "$LINENO"; then :
2175
2176 else
2177   eval "$3=yes"
2178 fi
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180 fi
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 fi
2183 eval ac_res=\$$3
2184                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2185 $as_echo "$ac_res" >&6; }
2186   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2187
2188 } # ac_fn_c_check_type
2189
2190 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2191 # ---------------------------------------------
2192 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2193 # accordingly.
2194 ac_fn_c_check_decl ()
2195 {
2196   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2197   as_decl_name=`echo $2|sed 's/ *(.*//'`
2198   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2200 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2201 if eval \${$3+:} false; then :
2202   $as_echo_n "(cached) " >&6
2203 else
2204   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h.  */
2206 $4
2207 int
2208 main ()
2209 {
2210 #ifndef $as_decl_name
2211 #ifdef __cplusplus
2212   (void) $as_decl_use;
2213 #else
2214   (void) $as_decl_name;
2215 #endif
2216 #endif
2217
2218   ;
2219   return 0;
2220 }
2221 _ACEOF
2222 if ac_fn_c_try_compile "$LINENO"; then :
2223   eval "$3=yes"
2224 else
2225   eval "$3=no"
2226 fi
2227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2228 fi
2229 eval ac_res=\$$3
2230                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2231 $as_echo "$ac_res" >&6; }
2232   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2233
2234 } # ac_fn_c_check_decl
2235
2236 # ac_fn_c_find_uintX_t LINENO BITS VAR
2237 # ------------------------------------
2238 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2239 # accordingly.
2240 ac_fn_c_find_uintX_t ()
2241 {
2242   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2244 $as_echo_n "checking for uint$2_t... " >&6; }
2245 if eval \${$3+:} false; then :
2246   $as_echo_n "(cached) " >&6
2247 else
2248   eval "$3=no"
2249      # Order is important - never check a type that is potentially smaller
2250      # than half of the expected target width.
2251      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2252          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2253        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h.  */
2255 $ac_includes_default
2256 int
2257 main ()
2258 {
2259 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2260 test_array [0] = 0;
2261 return test_array [0];
2262
2263   ;
2264   return 0;
2265 }
2266 _ACEOF
2267 if ac_fn_c_try_compile "$LINENO"; then :
2268   case $ac_type in #(
2269   uint$2_t) :
2270     eval "$3=yes" ;; #(
2271   *) :
2272     eval "$3=\$ac_type" ;;
2273 esac
2274 fi
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276        if eval test \"x\$"$3"\" = x"no"; then :
2277
2278 else
2279   break
2280 fi
2281      done
2282 fi
2283 eval ac_res=\$$3
2284                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2285 $as_echo "$ac_res" >&6; }
2286   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2287
2288 } # ac_fn_c_find_uintX_t
2289 cat >config.log <<_ACEOF
2290 This file contains any messages produced by compilers while
2291 running configure, to aid debugging if configure makes a mistake.
2292
2293 It was created by krb5-strength $as_me 3.1, which was
2294 generated by GNU Autoconf 2.69.  Invocation command line was
2295
2296   $ $0 $@
2297
2298 _ACEOF
2299 exec 5>>config.log
2300 {
2301 cat <<_ASUNAME
2302 ## --------- ##
2303 ## Platform. ##
2304 ## --------- ##
2305
2306 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2307 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2308 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2309 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2310 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2311
2312 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2313 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2314
2315 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2316 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2317 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2318 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2319 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2320 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2321 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2322
2323 _ASUNAME
2324
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2327 do
2328   IFS=$as_save_IFS
2329   test -z "$as_dir" && as_dir=.
2330     $as_echo "PATH: $as_dir"
2331   done
2332 IFS=$as_save_IFS
2333
2334 } >&5
2335
2336 cat >&5 <<_ACEOF
2337
2338
2339 ## ----------- ##
2340 ## Core tests. ##
2341 ## ----------- ##
2342
2343 _ACEOF
2344
2345
2346 # Keep a trace of the command line.
2347 # Strip out --no-create and --no-recursion so they do not pile up.
2348 # Strip out --silent because we don't want to record it for future runs.
2349 # Also quote any args containing shell meta-characters.
2350 # Make two passes to allow for proper duplicate-argument suppression.
2351 ac_configure_args=
2352 ac_configure_args0=
2353 ac_configure_args1=
2354 ac_must_keep_next=false
2355 for ac_pass in 1 2
2356 do
2357   for ac_arg
2358   do
2359     case $ac_arg in
2360     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2361     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2362     | -silent | --silent | --silen | --sile | --sil)
2363       continue ;;
2364     *\'*)
2365       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2366     esac
2367     case $ac_pass in
2368     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2369     2)
2370       as_fn_append ac_configure_args1 " '$ac_arg'"
2371       if test $ac_must_keep_next = true; then
2372         ac_must_keep_next=false # Got value, back to normal.
2373       else
2374         case $ac_arg in
2375           *=* | --config-cache | -C | -disable-* | --disable-* \
2376           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2377           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2378           | -with-* | --with-* | -without-* | --without-* | --x)
2379             case "$ac_configure_args0 " in
2380               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2381             esac
2382             ;;
2383           -* ) ac_must_keep_next=true ;;
2384         esac
2385       fi
2386       as_fn_append ac_configure_args " '$ac_arg'"
2387       ;;
2388     esac
2389   done
2390 done
2391 { ac_configure_args0=; unset ac_configure_args0;}
2392 { ac_configure_args1=; unset ac_configure_args1;}
2393
2394 # When interrupted or exit'd, cleanup temporary files, and complete
2395 # config.log.  We remove comments because anyway the quotes in there
2396 # would cause problems or look ugly.
2397 # WARNING: Use '\'' to represent an apostrophe within the trap.
2398 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2399 trap 'exit_status=$?
2400   # Save into config.log some information that might help in debugging.
2401   {
2402     echo
2403
2404     $as_echo "## ---------------- ##
2405 ## Cache variables. ##
2406 ## ---------------- ##"
2407     echo
2408     # The following way of writing the cache mishandles newlines in values,
2409 (
2410   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2411     eval ac_val=\$$ac_var
2412     case $ac_val in #(
2413     *${as_nl}*)
2414       case $ac_var in #(
2415       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2416 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2417       esac
2418       case $ac_var in #(
2419       _ | IFS | as_nl) ;; #(
2420       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2421       *) { eval $ac_var=; unset $ac_var;} ;;
2422       esac ;;
2423     esac
2424   done
2425   (set) 2>&1 |
2426     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2427     *${as_nl}ac_space=\ *)
2428       sed -n \
2429         "s/'\''/'\''\\\\'\'''\''/g;
2430           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2431       ;; #(
2432     *)
2433       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2434       ;;
2435     esac |
2436     sort
2437 )
2438     echo
2439
2440     $as_echo "## ----------------- ##
2441 ## Output variables. ##
2442 ## ----------------- ##"
2443     echo
2444     for ac_var in $ac_subst_vars
2445     do
2446       eval ac_val=\$$ac_var
2447       case $ac_val in
2448       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2449       esac
2450       $as_echo "$ac_var='\''$ac_val'\''"
2451     done | sort
2452     echo
2453
2454     if test -n "$ac_subst_files"; then
2455       $as_echo "## ------------------- ##
2456 ## File substitutions. ##
2457 ## ------------------- ##"
2458       echo
2459       for ac_var in $ac_subst_files
2460       do
2461         eval ac_val=\$$ac_var
2462         case $ac_val in
2463         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2464         esac
2465         $as_echo "$ac_var='\''$ac_val'\''"
2466       done | sort
2467       echo
2468     fi
2469
2470     if test -s confdefs.h; then
2471       $as_echo "## ----------- ##
2472 ## confdefs.h. ##
2473 ## ----------- ##"
2474       echo
2475       cat confdefs.h
2476       echo
2477     fi
2478     test "$ac_signal" != 0 &&
2479       $as_echo "$as_me: caught signal $ac_signal"
2480     $as_echo "$as_me: exit $exit_status"
2481   } >&5
2482   rm -f core *.core core.conftest.* &&
2483     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2484     exit $exit_status
2485 ' 0
2486 for ac_signal in 1 2 13 15; do
2487   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2488 done
2489 ac_signal=0
2490
2491 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2492 rm -f -r conftest* confdefs.h
2493
2494 $as_echo "/* confdefs.h */" > confdefs.h
2495
2496 # Predefined preprocessor variables.
2497
2498 cat >>confdefs.h <<_ACEOF
2499 #define PACKAGE_NAME "$PACKAGE_NAME"
2500 _ACEOF
2501
2502 cat >>confdefs.h <<_ACEOF
2503 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2504 _ACEOF
2505
2506 cat >>confdefs.h <<_ACEOF
2507 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2508 _ACEOF
2509
2510 cat >>confdefs.h <<_ACEOF
2511 #define PACKAGE_STRING "$PACKAGE_STRING"
2512 _ACEOF
2513
2514 cat >>confdefs.h <<_ACEOF
2515 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2516 _ACEOF
2517
2518 cat >>confdefs.h <<_ACEOF
2519 #define PACKAGE_URL "$PACKAGE_URL"
2520 _ACEOF
2521
2522
2523 # Let the site file select an alternate cache file if it wants to.
2524 # Prefer an explicitly selected file to automatically selected ones.
2525 ac_site_file1=NONE
2526 ac_site_file2=NONE
2527 if test -n "$CONFIG_SITE"; then
2528   # We do not want a PATH search for config.site.
2529   case $CONFIG_SITE in #((
2530     -*)  ac_site_file1=./$CONFIG_SITE;;
2531     */*) ac_site_file1=$CONFIG_SITE;;
2532     *)   ac_site_file1=./$CONFIG_SITE;;
2533   esac
2534 elif test "x$prefix" != xNONE; then
2535   ac_site_file1=$prefix/share/config.site
2536   ac_site_file2=$prefix/etc/config.site
2537 else
2538   ac_site_file1=$ac_default_prefix/share/config.site
2539   ac_site_file2=$ac_default_prefix/etc/config.site
2540 fi
2541 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2542 do
2543   test "x$ac_site_file" = xNONE && continue
2544   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2545     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2546 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2547     sed 's/^/| /' "$ac_site_file" >&5
2548     . "$ac_site_file" \
2549       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2551 as_fn_error $? "failed to load site script $ac_site_file
2552 See \`config.log' for more details" "$LINENO" 5; }
2553   fi
2554 done
2555
2556 if test -r "$cache_file"; then
2557   # Some versions of bash will fail to source /dev/null (special files
2558   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2559   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2560     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2561 $as_echo "$as_me: loading cache $cache_file" >&6;}
2562     case $cache_file in
2563       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2564       *)                      . "./$cache_file";;
2565     esac
2566   fi
2567 else
2568   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2569 $as_echo "$as_me: creating cache $cache_file" >&6;}
2570   >$cache_file
2571 fi
2572
2573 # Check that the precious variables saved in the cache have kept the same
2574 # value.
2575 ac_cache_corrupted=false
2576 for ac_var in $ac_precious_vars; do
2577   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2578   eval ac_new_set=\$ac_env_${ac_var}_set
2579   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2580   eval ac_new_val=\$ac_env_${ac_var}_value
2581   case $ac_old_set,$ac_new_set in
2582     set,)
2583       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2584 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2585       ac_cache_corrupted=: ;;
2586     ,set)
2587       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2588 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2589       ac_cache_corrupted=: ;;
2590     ,);;
2591     *)
2592       if test "x$ac_old_val" != "x$ac_new_val"; then
2593         # differences in whitespace do not lead to failure.
2594         ac_old_val_w=`echo x $ac_old_val`
2595         ac_new_val_w=`echo x $ac_new_val`
2596         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2597           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2598 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2599           ac_cache_corrupted=:
2600         else
2601           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2602 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2603           eval $ac_var=\$ac_old_val
2604         fi
2605         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2606 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2607         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2608 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2609       fi;;
2610   esac
2611   # Pass precious variables to config.status.
2612   if test "$ac_new_set" = set; then
2613     case $ac_new_val in
2614     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2615     *) ac_arg=$ac_var=$ac_new_val ;;
2616     esac
2617     case " $ac_configure_args " in
2618       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2619       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2620     esac
2621   fi
2622 done
2623 if $ac_cache_corrupted; then
2624   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2626   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2627 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2628   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2629 fi
2630 ## -------------------- ##
2631 ## Main body of script. ##
2632 ## -------------------- ##
2633
2634 ac_ext=c
2635 ac_cpp='$CPP $CPPFLAGS'
2636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2639
2640
2641 ac_aux_dir=
2642 for ac_dir in build-aux "$srcdir"/build-aux; do
2643   if test -f "$ac_dir/install-sh"; then
2644     ac_aux_dir=$ac_dir
2645     ac_install_sh="$ac_aux_dir/install-sh -c"
2646     break
2647   elif test -f "$ac_dir/install.sh"; then
2648     ac_aux_dir=$ac_dir
2649     ac_install_sh="$ac_aux_dir/install.sh -c"
2650     break
2651   elif test -f "$ac_dir/shtool"; then
2652     ac_aux_dir=$ac_dir
2653     ac_install_sh="$ac_aux_dir/shtool install -c"
2654     break
2655   fi
2656 done
2657 if test -z "$ac_aux_dir"; then
2658   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2659 fi
2660
2661 # These three variables are undocumented and unsupported,
2662 # and are intended to be withdrawn in a future Autoconf release.
2663 # They can cause serious problems if a builder's source tree is in a directory
2664 # whose full name contains unusual characters.
2665 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2666 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2667 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2668
2669
2670
2671
2672 am__api_version='1.15'
2673
2674 # Find a good install program.  We prefer a C program (faster),
2675 # so one script is as good as another.  But avoid the broken or
2676 # incompatible versions:
2677 # SysV /etc/install, /usr/sbin/install
2678 # SunOS /usr/etc/install
2679 # IRIX /sbin/install
2680 # AIX /bin/install
2681 # AmigaOS /C/install, which installs bootblocks on floppy discs
2682 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2683 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2684 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2685 # OS/2's system install, which has a completely different semantic
2686 # ./install, which can be erroneously created by make from ./install.sh.
2687 # Reject install programs that cannot install multiple files.
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2689 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2690 if test -z "$INSTALL"; then
2691 if ${ac_cv_path_install+:} false; then :
2692   $as_echo_n "(cached) " >&6
2693 else
2694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH
2696 do
2697   IFS=$as_save_IFS
2698   test -z "$as_dir" && as_dir=.
2699     # Account for people who put trailing slashes in PATH elements.
2700 case $as_dir/ in #((
2701   ./ | .// | /[cC]/* | \
2702   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2703   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2704   /usr/ucb/* ) ;;
2705   *)
2706     # OSF1 and SCO ODT 3.0 have their own names for install.
2707     # Don't use installbsd from OSF since it installs stuff as root
2708     # by default.
2709     for ac_prog in ginstall scoinst install; do
2710       for ac_exec_ext in '' $ac_executable_extensions; do
2711         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2712           if test $ac_prog = install &&
2713             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2714             # AIX install.  It has an incompatible calling convention.
2715             :
2716           elif test $ac_prog = install &&
2717             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2718             # program-specific install script used by HP pwplus--don't use.
2719             :
2720           else
2721             rm -rf conftest.one conftest.two conftest.dir
2722             echo one > conftest.one
2723             echo two > conftest.two
2724             mkdir conftest.dir
2725             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2726               test -s conftest.one && test -s conftest.two &&
2727               test -s conftest.dir/conftest.one &&
2728               test -s conftest.dir/conftest.two
2729             then
2730               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2731               break 3
2732             fi
2733           fi
2734         fi
2735       done
2736     done
2737     ;;
2738 esac
2739
2740   done
2741 IFS=$as_save_IFS
2742
2743 rm -rf conftest.one conftest.two conftest.dir
2744
2745 fi
2746   if test "${ac_cv_path_install+set}" = set; then
2747     INSTALL=$ac_cv_path_install
2748   else
2749     # As a last resort, use the slow shell script.  Don't cache a
2750     # value for INSTALL within a source directory, because that will
2751     # break other packages using the cache if that directory is
2752     # removed, or if the value is a relative name.
2753     INSTALL=$ac_install_sh
2754   fi
2755 fi
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2757 $as_echo "$INSTALL" >&6; }
2758
2759 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2760 # It thinks the first close brace ends the variable substitution.
2761 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2762
2763 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2764
2765 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2766
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2768 $as_echo_n "checking whether build environment is sane... " >&6; }
2769 # Reject unsafe characters in $srcdir or the absolute working directory
2770 # name.  Accept space and tab only in the latter.
2771 am_lf='
2772 '
2773 case `pwd` in
2774   *[\\\"\#\$\&\'\`$am_lf]*)
2775     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2776 esac
2777 case $srcdir in
2778   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2779     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2780 esac
2781
2782 # Do 'set' in a subshell so we don't clobber the current shell's
2783 # arguments.  Must try -L first in case configure is actually a
2784 # symlink; some systems play weird games with the mod time of symlinks
2785 # (eg FreeBSD returns the mod time of the symlink's containing
2786 # directory).
2787 if (
2788    am_has_slept=no
2789    for am_try in 1 2; do
2790      echo "timestamp, slept: $am_has_slept" > conftest.file
2791      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2792      if test "$*" = "X"; then
2793         # -L didn't work.
2794         set X `ls -t "$srcdir/configure" conftest.file`
2795      fi
2796      if test "$*" != "X $srcdir/configure conftest.file" \
2797         && test "$*" != "X conftest.file $srcdir/configure"; then
2798
2799         # If neither matched, then we have a broken ls.  This can happen
2800         # if, for instance, CONFIG_SHELL is bash and it inherits a
2801         # broken ls alias from the environment.  This has actually
2802         # happened.  Such a system could not be considered "sane".
2803         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2804   alias in your environment" "$LINENO" 5
2805      fi
2806      if test "$2" = conftest.file || test $am_try -eq 2; then
2807        break
2808      fi
2809      # Just in case.
2810      sleep 1
2811      am_has_slept=yes
2812    done
2813    test "$2" = conftest.file
2814    )
2815 then
2816    # Ok.
2817    :
2818 else
2819    as_fn_error $? "newly created file is older than distributed files!
2820 Check your system clock" "$LINENO" 5
2821 fi
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2823 $as_echo "yes" >&6; }
2824 # If we didn't sleep, we still need to ensure time stamps of config.status and
2825 # generated files are strictly newer.
2826 am_sleep_pid=
2827 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2828   ( sleep 1 ) &
2829   am_sleep_pid=$!
2830 fi
2831
2832 rm -f conftest.file
2833
2834 test "$program_prefix" != NONE &&
2835   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2836 # Use a double $ so make ignores it.
2837 test "$program_suffix" != NONE &&
2838   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2839 # Double any \ or $.
2840 # By default was `s,x,x', remove it if useless.
2841 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2842 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2843
2844 # Expand $ac_aux_dir to an absolute path.
2845 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2846
2847 if test x"${MISSING+set}" != xset; then
2848   case $am_aux_dir in
2849   *\ * | *\     *)
2850     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2851   *)
2852     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2853   esac
2854 fi
2855 # Use eval to expand $SHELL
2856 if eval "$MISSING --is-lightweight"; then
2857   am_missing_run="$MISSING "
2858 else
2859   am_missing_run=
2860   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2861 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2862 fi
2863
2864 if test x"${install_sh+set}" != xset; then
2865   case $am_aux_dir in
2866   *\ * | *\     *)
2867     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2868   *)
2869     install_sh="\${SHELL} $am_aux_dir/install-sh"
2870   esac
2871 fi
2872
2873 # Installed binaries are usually stripped using 'strip' when the user
2874 # run "make install-strip".  However 'strip' might not be the right
2875 # tool to use in cross-compilation environments, therefore Automake
2876 # will honor the 'STRIP' environment variable to overrule this program.
2877 if test "$cross_compiling" != no; then
2878   if test -n "$ac_tool_prefix"; then
2879   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2880 set dummy ${ac_tool_prefix}strip; ac_word=$2
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882 $as_echo_n "checking for $ac_word... " >&6; }
2883 if ${ac_cv_prog_STRIP+:} false; then :
2884   $as_echo_n "(cached) " >&6
2885 else
2886   if test -n "$STRIP"; then
2887   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2888 else
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 for as_dir in $PATH
2891 do
2892   IFS=$as_save_IFS
2893   test -z "$as_dir" && as_dir=.
2894     for ac_exec_ext in '' $ac_executable_extensions; do
2895   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2896     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898     break 2
2899   fi
2900 done
2901   done
2902 IFS=$as_save_IFS
2903
2904 fi
2905 fi
2906 STRIP=$ac_cv_prog_STRIP
2907 if test -n "$STRIP"; then
2908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2909 $as_echo "$STRIP" >&6; }
2910 else
2911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2913 fi
2914
2915
2916 fi
2917 if test -z "$ac_cv_prog_STRIP"; then
2918   ac_ct_STRIP=$STRIP
2919   # Extract the first word of "strip", so it can be a program name with args.
2920 set dummy strip; ac_word=$2
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2922 $as_echo_n "checking for $ac_word... " >&6; }
2923 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2924   $as_echo_n "(cached) " >&6
2925 else
2926   if test -n "$ac_ct_STRIP"; then
2927   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2928 else
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH
2931 do
2932   IFS=$as_save_IFS
2933   test -z "$as_dir" && as_dir=.
2934     for ac_exec_ext in '' $ac_executable_extensions; do
2935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2936     ac_cv_prog_ac_ct_STRIP="strip"
2937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938     break 2
2939   fi
2940 done
2941   done
2942 IFS=$as_save_IFS
2943
2944 fi
2945 fi
2946 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2947 if test -n "$ac_ct_STRIP"; then
2948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2949 $as_echo "$ac_ct_STRIP" >&6; }
2950 else
2951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952 $as_echo "no" >&6; }
2953 fi
2954
2955   if test "x$ac_ct_STRIP" = x; then
2956     STRIP=":"
2957   else
2958     case $cross_compiling:$ac_tool_warned in
2959 yes:)
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2962 ac_tool_warned=yes ;;
2963 esac
2964     STRIP=$ac_ct_STRIP
2965   fi
2966 else
2967   STRIP="$ac_cv_prog_STRIP"
2968 fi
2969
2970 fi
2971 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2972
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2974 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2975 if test -z "$MKDIR_P"; then
2976   if ${ac_cv_path_mkdir+:} false; then :
2977   $as_echo_n "(cached) " >&6
2978 else
2979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2981 do
2982   IFS=$as_save_IFS
2983   test -z "$as_dir" && as_dir=.
2984     for ac_prog in mkdir gmkdir; do
2985          for ac_exec_ext in '' $ac_executable_extensions; do
2986            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2987            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2988              'mkdir (GNU coreutils) '* | \
2989              'mkdir (coreutils) '* | \
2990              'mkdir (fileutils) '4.1*)
2991                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2992                break 3;;
2993            esac
2994          done
2995        done
2996   done
2997 IFS=$as_save_IFS
2998
2999 fi
3000
3001   test -d ./--version && rmdir ./--version
3002   if test "${ac_cv_path_mkdir+set}" = set; then
3003     MKDIR_P="$ac_cv_path_mkdir -p"
3004   else
3005     # As a last resort, use the slow shell script.  Don't cache a
3006     # value for MKDIR_P within a source directory, because that will
3007     # break other packages using the cache if that directory is
3008     # removed, or if the value is a relative name.
3009     MKDIR_P="$ac_install_sh -d"
3010   fi
3011 fi
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3013 $as_echo "$MKDIR_P" >&6; }
3014
3015 for ac_prog in gawk mawk nawk awk
3016 do
3017   # Extract the first word of "$ac_prog", so it can be a program name with args.
3018 set dummy $ac_prog; ac_word=$2
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020 $as_echo_n "checking for $ac_word... " >&6; }
3021 if ${ac_cv_prog_AWK+:} false; then :
3022   $as_echo_n "(cached) " >&6
3023 else
3024   if test -n "$AWK"; then
3025   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3026 else
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 for as_dir in $PATH
3029 do
3030   IFS=$as_save_IFS
3031   test -z "$as_dir" && as_dir=.
3032     for ac_exec_ext in '' $ac_executable_extensions; do
3033   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3034     ac_cv_prog_AWK="$ac_prog"
3035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3036     break 2
3037   fi
3038 done
3039   done
3040 IFS=$as_save_IFS
3041
3042 fi
3043 fi
3044 AWK=$ac_cv_prog_AWK
3045 if test -n "$AWK"; then
3046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3047 $as_echo "$AWK" >&6; }
3048 else
3049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050 $as_echo "no" >&6; }
3051 fi
3052
3053
3054   test -n "$AWK" && break
3055 done
3056
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3058 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3059 set x ${MAKE-make}
3060 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3061 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3062   $as_echo_n "(cached) " >&6
3063 else
3064   cat >conftest.make <<\_ACEOF
3065 SHELL = /bin/sh
3066 all:
3067         @echo '@@@%%%=$(MAKE)=@@@%%%'
3068 _ACEOF
3069 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3070 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3071   *@@@%%%=?*=@@@%%%*)
3072     eval ac_cv_prog_make_${ac_make}_set=yes;;
3073   *)
3074     eval ac_cv_prog_make_${ac_make}_set=no;;
3075 esac
3076 rm -f conftest.make
3077 fi
3078 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3080 $as_echo "yes" >&6; }
3081   SET_MAKE=
3082 else
3083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084 $as_echo "no" >&6; }
3085   SET_MAKE="MAKE=${MAKE-make}"
3086 fi
3087
3088 rm -rf .tst 2>/dev/null
3089 mkdir .tst 2>/dev/null
3090 if test -d .tst; then
3091   am__leading_dot=.
3092 else
3093   am__leading_dot=_
3094 fi
3095 rmdir .tst 2>/dev/null
3096
3097 # Check whether --enable-silent-rules was given.
3098 if test "${enable_silent_rules+set}" = set; then :
3099   enableval=$enable_silent_rules;
3100 fi
3101
3102 case $enable_silent_rules in # (((
3103   yes) AM_DEFAULT_VERBOSITY=0;;
3104    no) AM_DEFAULT_VERBOSITY=1;;
3105     *) AM_DEFAULT_VERBOSITY=1;;
3106 esac
3107 am_make=${MAKE-make}
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3109 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3110 if ${am_cv_make_support_nested_variables+:} false; then :
3111   $as_echo_n "(cached) " >&6
3112 else
3113   if $as_echo 'TRUE=$(BAR$(V))
3114 BAR0=false
3115 BAR1=true
3116 V=1
3117 am__doit:
3118         @$(TRUE)
3119 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3120   am_cv_make_support_nested_variables=yes
3121 else
3122   am_cv_make_support_nested_variables=no
3123 fi
3124 fi
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3126 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3127 if test $am_cv_make_support_nested_variables = yes; then
3128     AM_V='$(V)'
3129   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3130 else
3131   AM_V=$AM_DEFAULT_VERBOSITY
3132   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3133 fi
3134 AM_BACKSLASH='\'
3135
3136 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3137   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3138   # is not polluted with repeated "-I."
3139   am__isrc=' -I$(srcdir)'
3140   # test to see if srcdir already configured
3141   if test -f $srcdir/config.status; then
3142     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3143   fi
3144 fi
3145
3146 # test whether we have cygpath
3147 if test -z "$CYGPATH_W"; then
3148   if (cygpath --version) >/dev/null 2>/dev/null; then
3149     CYGPATH_W='cygpath -w'
3150   else
3151     CYGPATH_W=echo
3152   fi
3153 fi
3154
3155
3156 # Define the identity of the package.
3157  PACKAGE='krb5-strength'
3158  VERSION='3.1'
3159
3160
3161 cat >>confdefs.h <<_ACEOF
3162 #define PACKAGE "$PACKAGE"
3163 _ACEOF
3164
3165
3166 cat >>confdefs.h <<_ACEOF
3167 #define VERSION "$VERSION"
3168 _ACEOF
3169
3170 # Some tools Automake needs.
3171
3172 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3173
3174
3175 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3176
3177
3178 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3179
3180
3181 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3182
3183
3184 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3185
3186 # For better backward compatibility.  To be removed once Automake 1.9.x
3187 # dies out for good.  For more background, see:
3188 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3189 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3190 mkdir_p='$(MKDIR_P)'
3191
3192 # We need awk for the "check" target (and possibly the TAP driver).  The
3193 # system "awk" is bad on some platforms.
3194 # Always define AMTAR for backward compatibility.  Yes, it's still used
3195 # in the wild :-(  We should find a proper way to deprecate it ...
3196 AMTAR='$${TAR-tar}'
3197
3198
3199 # We'll loop over all known methods to create a tar archive until one works.
3200 _am_tools='gnutar  pax cpio none'
3201
3202 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3203
3204
3205
3206
3207
3208
3209 # POSIX will say in a future version that running "rm -f" with no argument
3210 # is OK; and we want to be able to make that assumption in our Makefile
3211 # recipes.  So use an aggressive probe to check that the usage we want is
3212 # actually supported "in the wild" to an acceptable degree.
3213 # See automake bug#10828.
3214 # To make any issue more visible, cause the running configure to be aborted
3215 # by default if the 'rm' program in use doesn't match our expectations; the
3216 # user can still override this though.
3217 if rm -f && rm -fr && rm -rf; then : OK; else
3218   cat >&2 <<'END'
3219 Oops!
3220
3221 Your 'rm' program seems unable to run without file operands specified
3222 on the command line, even when the '-f' option is present.  This is contrary
3223 to the behaviour of most rm programs out there, and not conforming with
3224 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3225
3226 Please tell bug-automake@gnu.org about your system, including the value
3227 of your $PATH and any error possibly output before this message.  This
3228 can help us improve future automake versions.
3229
3230 END
3231   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3232     echo 'Configuration will proceed anyway, since you have set the' >&2
3233     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3234     echo >&2
3235   else
3236     cat >&2 <<'END'
3237 Aborting the configuration process, to ensure you take notice of the issue.
3238
3239 You can download and install GNU coreutils to get an 'rm' implementation
3240 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3241
3242 If you want to complete the configuration process using your problematic
3243 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3244 to "yes", and re-run configure.
3245
3246 END
3247     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3248   fi
3249 fi
3250
3251
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3253 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3254     # Check whether --enable-maintainer-mode was given.
3255 if test "${enable_maintainer_mode+set}" = set; then :
3256   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3257 else
3258   USE_MAINTAINER_MODE=no
3259 fi
3260
3261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3262 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3263    if test $USE_MAINTAINER_MODE = yes; then
3264   MAINTAINER_MODE_TRUE=
3265   MAINTAINER_MODE_FALSE='#'
3266 else
3267   MAINTAINER_MODE_TRUE='#'
3268   MAINTAINER_MODE_FALSE=
3269 fi
3270
3271   MAINT=$MAINTAINER_MODE_TRUE
3272
3273
3274
3275
3276
3277
3278 ac_ext=c
3279 ac_cpp='$CPP $CPPFLAGS'
3280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3283 if test -n "$ac_tool_prefix"; then
3284   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3285 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3287 $as_echo_n "checking for $ac_word... " >&6; }
3288 if ${ac_cv_prog_CC+:} false; then :
3289   $as_echo_n "(cached) " >&6
3290 else
3291   if test -n "$CC"; then
3292   ac_cv_prog_CC="$CC" # Let the user override the test.
3293 else
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3296 do
3297   IFS=$as_save_IFS
3298   test -z "$as_dir" && as_dir=.
3299     for ac_exec_ext in '' $ac_executable_extensions; do
3300   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3301     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3303     break 2
3304   fi
3305 done
3306   done
3307 IFS=$as_save_IFS
3308
3309 fi
3310 fi
3311 CC=$ac_cv_prog_CC
3312 if test -n "$CC"; then
3313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3314 $as_echo "$CC" >&6; }
3315 else
3316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3317 $as_echo "no" >&6; }
3318 fi
3319
3320
3321 fi
3322 if test -z "$ac_cv_prog_CC"; then
3323   ac_ct_CC=$CC
3324   # Extract the first word of "gcc", so it can be a program name with args.
3325 set dummy gcc; ac_word=$2
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3327 $as_echo_n "checking for $ac_word... " >&6; }
3328 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3329   $as_echo_n "(cached) " >&6
3330 else
3331   if test -n "$ac_ct_CC"; then
3332   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3333 else
3334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335 for as_dir in $PATH
3336 do
3337   IFS=$as_save_IFS
3338   test -z "$as_dir" && as_dir=.
3339     for ac_exec_ext in '' $ac_executable_extensions; do
3340   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3341     ac_cv_prog_ac_ct_CC="gcc"
3342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3343     break 2
3344   fi
3345 done
3346   done
3347 IFS=$as_save_IFS
3348
3349 fi
3350 fi
3351 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3352 if test -n "$ac_ct_CC"; then
3353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3354 $as_echo "$ac_ct_CC" >&6; }
3355 else
3356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357 $as_echo "no" >&6; }
3358 fi
3359
3360   if test "x$ac_ct_CC" = x; then
3361     CC=""
3362   else
3363     case $cross_compiling:$ac_tool_warned in
3364 yes:)
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3367 ac_tool_warned=yes ;;
3368 esac
3369     CC=$ac_ct_CC
3370   fi
3371 else
3372   CC="$ac_cv_prog_CC"
3373 fi
3374
3375 if test -z "$CC"; then
3376           if test -n "$ac_tool_prefix"; then
3377     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3378 set dummy ${ac_tool_prefix}cc; ac_word=$2
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3380 $as_echo_n "checking for $ac_word... " >&6; }
3381 if ${ac_cv_prog_CC+:} false; then :
3382   $as_echo_n "(cached) " >&6
3383 else
3384   if test -n "$CC"; then
3385   ac_cv_prog_CC="$CC" # Let the user override the test.
3386 else
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 for as_dir in $PATH
3389 do
3390   IFS=$as_save_IFS
3391   test -z "$as_dir" && as_dir=.
3392     for ac_exec_ext in '' $ac_executable_extensions; do
3393   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3394     ac_cv_prog_CC="${ac_tool_prefix}cc"
3395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3396     break 2
3397   fi
3398 done
3399   done
3400 IFS=$as_save_IFS
3401
3402 fi
3403 fi
3404 CC=$ac_cv_prog_CC
3405 if test -n "$CC"; then
3406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3407 $as_echo "$CC" >&6; }
3408 else
3409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410 $as_echo "no" >&6; }
3411 fi
3412
3413
3414   fi
3415 fi
3416 if test -z "$CC"; then
3417   # Extract the first word of "cc", so it can be a program name with args.
3418 set dummy cc; ac_word=$2
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3420 $as_echo_n "checking for $ac_word... " >&6; }
3421 if ${ac_cv_prog_CC+:} false; then :
3422   $as_echo_n "(cached) " >&6
3423 else
3424   if test -n "$CC"; then
3425   ac_cv_prog_CC="$CC" # Let the user override the test.
3426 else
3427   ac_prog_rejected=no
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 for as_dir in $PATH
3430 do
3431   IFS=$as_save_IFS
3432   test -z "$as_dir" && as_dir=.
3433     for ac_exec_ext in '' $ac_executable_extensions; do
3434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3435     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3436        ac_prog_rejected=yes
3437        continue
3438      fi
3439     ac_cv_prog_CC="cc"
3440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3441     break 2
3442   fi
3443 done
3444   done
3445 IFS=$as_save_IFS
3446
3447 if test $ac_prog_rejected = yes; then
3448   # We found a bogon in the path, so make sure we never use it.
3449   set dummy $ac_cv_prog_CC
3450   shift
3451   if test $# != 0; then
3452     # We chose a different compiler from the bogus one.
3453     # However, it has the same basename, so the bogon will be chosen
3454     # first if we set CC to just the basename; use the full file name.
3455     shift
3456     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3457   fi
3458 fi
3459 fi
3460 fi
3461 CC=$ac_cv_prog_CC
3462 if test -n "$CC"; then
3463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3464 $as_echo "$CC" >&6; }
3465 else
3466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467 $as_echo "no" >&6; }
3468 fi
3469
3470
3471 fi
3472 if test -z "$CC"; then
3473   if test -n "$ac_tool_prefix"; then
3474   for ac_prog in cl.exe
3475   do
3476     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3477 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3479 $as_echo_n "checking for $ac_word... " >&6; }
3480 if ${ac_cv_prog_CC+:} false; then :
3481   $as_echo_n "(cached) " >&6
3482 else
3483   if test -n "$CC"; then
3484   ac_cv_prog_CC="$CC" # Let the user override the test.
3485 else
3486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487 for as_dir in $PATH
3488 do
3489   IFS=$as_save_IFS
3490   test -z "$as_dir" && as_dir=.
3491     for ac_exec_ext in '' $ac_executable_extensions; do
3492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3493     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3495     break 2
3496   fi
3497 done
3498   done
3499 IFS=$as_save_IFS
3500
3501 fi
3502 fi
3503 CC=$ac_cv_prog_CC
3504 if test -n "$CC"; then
3505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3506 $as_echo "$CC" >&6; }
3507 else
3508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3509 $as_echo "no" >&6; }
3510 fi
3511
3512
3513     test -n "$CC" && break
3514   done
3515 fi
3516 if test -z "$CC"; then
3517   ac_ct_CC=$CC
3518   for ac_prog in cl.exe
3519 do
3520   # Extract the first word of "$ac_prog", so it can be a program name with args.
3521 set dummy $ac_prog; ac_word=$2
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3523 $as_echo_n "checking for $ac_word... " >&6; }
3524 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3525   $as_echo_n "(cached) " >&6
3526 else
3527   if test -n "$ac_ct_CC"; then
3528   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3529 else
3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531 for as_dir in $PATH
3532 do
3533   IFS=$as_save_IFS
3534   test -z "$as_dir" && as_dir=.
3535     for ac_exec_ext in '' $ac_executable_extensions; do
3536   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3537     ac_cv_prog_ac_ct_CC="$ac_prog"
3538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3539     break 2
3540   fi
3541 done
3542   done
3543 IFS=$as_save_IFS
3544
3545 fi
3546 fi
3547 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3548 if test -n "$ac_ct_CC"; then
3549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3550 $as_echo "$ac_ct_CC" >&6; }
3551 else
3552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3553 $as_echo "no" >&6; }
3554 fi
3555
3556
3557   test -n "$ac_ct_CC" && break
3558 done
3559
3560   if test "x$ac_ct_CC" = x; then
3561     CC=""
3562   else
3563     case $cross_compiling:$ac_tool_warned in
3564 yes:)
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3567 ac_tool_warned=yes ;;
3568 esac
3569     CC=$ac_ct_CC
3570   fi
3571 fi
3572
3573 fi
3574
3575
3576 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3578 as_fn_error $? "no acceptable C compiler found in \$PATH
3579 See \`config.log' for more details" "$LINENO" 5; }
3580
3581 # Provide some information about the compiler.
3582 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3583 set X $ac_compile
3584 ac_compiler=$2
3585 for ac_option in --version -v -V -qversion; do
3586   { { ac_try="$ac_compiler $ac_option >&5"
3587 case "(($ac_try" in
3588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589   *) ac_try_echo=$ac_try;;
3590 esac
3591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3592 $as_echo "$ac_try_echo"; } >&5
3593   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3594   ac_status=$?
3595   if test -s conftest.err; then
3596     sed '10a\
3597 ... rest of stderr output deleted ...
3598          10q' conftest.err >conftest.er1
3599     cat conftest.er1 >&5
3600   fi
3601   rm -f conftest.er1 conftest.err
3602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603   test $ac_status = 0; }
3604 done
3605
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607 /* end confdefs.h.  */
3608
3609 int
3610 main ()
3611 {
3612
3613   ;
3614   return 0;
3615 }
3616 _ACEOF
3617 ac_clean_files_save=$ac_clean_files
3618 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3619 # Try to create an executable without -o first, disregard a.out.
3620 # It will help us diagnose broken compilers, and finding out an intuition
3621 # of exeext.
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3623 $as_echo_n "checking whether the C compiler works... " >&6; }
3624 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3625
3626 # The possible output files:
3627 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3628
3629 ac_rmfiles=
3630 for ac_file in $ac_files
3631 do
3632   case $ac_file in
3633     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3634     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3635   esac
3636 done
3637 rm -f $ac_rmfiles
3638
3639 if { { ac_try="$ac_link_default"
3640 case "(($ac_try" in
3641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642   *) ac_try_echo=$ac_try;;
3643 esac
3644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3645 $as_echo "$ac_try_echo"; } >&5
3646   (eval "$ac_link_default") 2>&5
3647   ac_status=$?
3648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3649   test $ac_status = 0; }; then :
3650   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3651 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3652 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3653 # so that the user can short-circuit this test for compilers unknown to
3654 # Autoconf.
3655 for ac_file in $ac_files ''
3656 do
3657   test -f "$ac_file" || continue
3658   case $ac_file in
3659     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3660         ;;
3661     [ab].out )
3662         # We found the default executable, but exeext='' is most
3663         # certainly right.
3664         break;;
3665     *.* )
3666         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3667         then :; else
3668            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3669         fi
3670         # We set ac_cv_exeext here because the later test for it is not
3671         # safe: cross compilers may not add the suffix if given an `-o'
3672         # argument, so we may need to know it at that point already.
3673         # Even if this section looks crufty: it has the advantage of
3674         # actually working.
3675         break;;
3676     * )
3677         break;;
3678   esac
3679 done
3680 test "$ac_cv_exeext" = no && ac_cv_exeext=
3681
3682 else
3683   ac_file=''
3684 fi
3685 if test -z "$ac_file"; then :
3686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3687 $as_echo "no" >&6; }
3688 $as_echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3690
3691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3693 as_fn_error 77 "C compiler cannot create executables
3694 See \`config.log' for more details" "$LINENO" 5; }
3695 else
3696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3697 $as_echo "yes" >&6; }
3698 fi
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3700 $as_echo_n "checking for C compiler default output file name... " >&6; }
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3702 $as_echo "$ac_file" >&6; }
3703 ac_exeext=$ac_cv_exeext
3704
3705 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3706 ac_clean_files=$ac_clean_files_save
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3708 $as_echo_n "checking for suffix of executables... " >&6; }
3709 if { { ac_try="$ac_link"
3710 case "(($ac_try" in
3711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712   *) ac_try_echo=$ac_try;;
3713 esac
3714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3715 $as_echo "$ac_try_echo"; } >&5
3716   (eval "$ac_link") 2>&5
3717   ac_status=$?
3718   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3719   test $ac_status = 0; }; then :
3720   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3721 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3722 # work properly (i.e., refer to `conftest.exe'), while it won't with
3723 # `rm'.
3724 for ac_file in conftest.exe conftest conftest.*; do
3725   test -f "$ac_file" || continue
3726   case $ac_file in
3727     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3728     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3729           break;;
3730     * ) break;;
3731   esac
3732 done
3733 else
3734   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3736 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3737 See \`config.log' for more details" "$LINENO" 5; }
3738 fi
3739 rm -f conftest conftest$ac_cv_exeext
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3741 $as_echo "$ac_cv_exeext" >&6; }
3742
3743 rm -f conftest.$ac_ext
3744 EXEEXT=$ac_cv_exeext
3745 ac_exeext=$EXEEXT
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h.  */
3748 #include <stdio.h>
3749 int
3750 main ()
3751 {
3752 FILE *f = fopen ("conftest.out", "w");
3753  return ferror (f) || fclose (f) != 0;
3754
3755   ;
3756   return 0;
3757 }
3758 _ACEOF
3759 ac_clean_files="$ac_clean_files conftest.out"
3760 # Check that the compiler produces executables we can run.  If not, either
3761 # the compiler is broken, or we cross compile.
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3763 $as_echo_n "checking whether we are cross compiling... " >&6; }
3764 if test "$cross_compiling" != yes; then
3765   { { ac_try="$ac_link"
3766 case "(($ac_try" in
3767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768   *) ac_try_echo=$ac_try;;
3769 esac
3770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3771 $as_echo "$ac_try_echo"; } >&5
3772   (eval "$ac_link") 2>&5
3773   ac_status=$?
3774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3775   test $ac_status = 0; }
3776   if { ac_try='./conftest$ac_cv_exeext'
3777   { { case "(($ac_try" in
3778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3779   *) ac_try_echo=$ac_try;;
3780 esac
3781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3782 $as_echo "$ac_try_echo"; } >&5
3783   (eval "$ac_try") 2>&5
3784   ac_status=$?
3785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3786   test $ac_status = 0; }; }; then
3787     cross_compiling=no
3788   else
3789     if test "$cross_compiling" = maybe; then
3790         cross_compiling=yes
3791     else
3792         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3794 as_fn_error $? "cannot run C compiled programs.
3795 If you meant to cross compile, use \`--host'.
3796 See \`config.log' for more details" "$LINENO" 5; }
3797     fi
3798   fi
3799 fi
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3801 $as_echo "$cross_compiling" >&6; }
3802
3803 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3804 ac_clean_files=$ac_clean_files_save
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3806 $as_echo_n "checking for suffix of object files... " >&6; }
3807 if ${ac_cv_objext+:} false; then :
3808   $as_echo_n "(cached) " >&6
3809 else
3810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h.  */
3812
3813 int
3814 main ()
3815 {
3816
3817   ;
3818   return 0;
3819 }
3820 _ACEOF
3821 rm -f conftest.o conftest.obj
3822 if { { ac_try="$ac_compile"
3823 case "(($ac_try" in
3824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825   *) ac_try_echo=$ac_try;;
3826 esac
3827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3828 $as_echo "$ac_try_echo"; } >&5
3829   (eval "$ac_compile") 2>&5
3830   ac_status=$?
3831   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3832   test $ac_status = 0; }; then :
3833   for ac_file in conftest.o conftest.obj conftest.*; do
3834   test -f "$ac_file" || continue;
3835   case $ac_file in
3836     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3837     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3838        break;;
3839   esac
3840 done
3841 else
3842   $as_echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3844
3845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3847 as_fn_error $? "cannot compute suffix of object files: cannot compile
3848 See \`config.log' for more details" "$LINENO" 5; }
3849 fi
3850 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3851 fi
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3853 $as_echo "$ac_cv_objext" >&6; }
3854 OBJEXT=$ac_cv_objext
3855 ac_objext=$OBJEXT
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3857 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3858 if ${ac_cv_c_compiler_gnu+:} false; then :
3859   $as_echo_n "(cached) " >&6
3860 else
3861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h.  */
3863
3864 int
3865 main ()
3866 {
3867 #ifndef __GNUC__
3868        choke me
3869 #endif
3870
3871   ;
3872   return 0;
3873 }
3874 _ACEOF
3875 if ac_fn_c_try_compile "$LINENO"; then :
3876   ac_compiler_gnu=yes
3877 else
3878   ac_compiler_gnu=no
3879 fi
3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3882
3883 fi
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3885 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3886 if test $ac_compiler_gnu = yes; then
3887   GCC=yes
3888 else
3889   GCC=
3890 fi
3891 ac_test_CFLAGS=${CFLAGS+set}
3892 ac_save_CFLAGS=$CFLAGS
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3894 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3895 if ${ac_cv_prog_cc_g+:} false; then :
3896   $as_echo_n "(cached) " >&6
3897 else
3898   ac_save_c_werror_flag=$ac_c_werror_flag
3899    ac_c_werror_flag=yes
3900    ac_cv_prog_cc_g=no
3901    CFLAGS="-g"
3902    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h.  */
3904
3905 int
3906 main ()
3907 {
3908
3909   ;
3910   return 0;
3911 }
3912 _ACEOF
3913 if ac_fn_c_try_compile "$LINENO"; then :
3914   ac_cv_prog_cc_g=yes
3915 else
3916   CFLAGS=""
3917       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h.  */
3919
3920 int
3921 main ()
3922 {
3923
3924   ;
3925   return 0;
3926 }
3927 _ACEOF
3928 if ac_fn_c_try_compile "$LINENO"; then :
3929
3930 else
3931   ac_c_werror_flag=$ac_save_c_werror_flag
3932          CFLAGS="-g"
3933          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h.  */
3935
3936 int
3937 main ()
3938 {
3939
3940   ;
3941   return 0;
3942 }
3943 _ACEOF
3944 if ac_fn_c_try_compile "$LINENO"; then :
3945   ac_cv_prog_cc_g=yes
3946 fi
3947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3948 fi
3949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950 fi
3951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3952    ac_c_werror_flag=$ac_save_c_werror_flag
3953 fi
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3955 $as_echo "$ac_cv_prog_cc_g" >&6; }
3956 if test "$ac_test_CFLAGS" = set; then
3957   CFLAGS=$ac_save_CFLAGS
3958 elif test $ac_cv_prog_cc_g = yes; then
3959   if test "$GCC" = yes; then
3960     CFLAGS="-g -O2"
3961   else
3962     CFLAGS="-g"
3963   fi
3964 else
3965   if test "$GCC" = yes; then
3966     CFLAGS="-O2"
3967   else
3968     CFLAGS=
3969   fi
3970 fi
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3972 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3973 if ${ac_cv_prog_cc_c89+:} false; then :
3974   $as_echo_n "(cached) " >&6
3975 else
3976   ac_cv_prog_cc_c89=no
3977 ac_save_CC=$CC
3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h.  */
3980 #include <stdarg.h>
3981 #include <stdio.h>
3982 struct stat;
3983 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3984 struct buf { int x; };
3985 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3986 static char *e (p, i)
3987      char **p;
3988      int i;
3989 {
3990   return p[i];
3991 }
3992 static char *f (char * (*g) (char **, int), char **p, ...)
3993 {
3994   char *s;
3995   va_list v;
3996   va_start (v,p);
3997   s = g (p, va_arg (v,int));
3998   va_end (v);
3999   return s;
4000 }
4001
4002 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4003    function prototypes and stuff, but not '\xHH' hex character constants.
4004    These don't provoke an error unfortunately, instead are silently treated
4005    as 'x'.  The following induces an error, until -std is added to get
4006    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4007    array size at least.  It's necessary to write '\x00'==0 to get something
4008    that's true only with -std.  */
4009 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4010
4011 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4012    inside strings and character constants.  */
4013 #define FOO(x) 'x'
4014 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4015
4016 int test (int i, double x);
4017 struct s1 {int (*f) (int a);};
4018 struct s2 {int (*f) (double a);};
4019 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4020 int argc;
4021 char **argv;
4022 int
4023 main ()
4024 {
4025 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4026   ;
4027   return 0;
4028 }
4029 _ACEOF
4030 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4031         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4032 do
4033   CC="$ac_save_CC $ac_arg"
4034   if ac_fn_c_try_compile "$LINENO"; then :
4035   ac_cv_prog_cc_c89=$ac_arg
4036 fi
4037 rm -f core conftest.err conftest.$ac_objext
4038   test "x$ac_cv_prog_cc_c89" != "xno" && break
4039 done
4040 rm -f conftest.$ac_ext
4041 CC=$ac_save_CC
4042
4043 fi
4044 # AC_CACHE_VAL
4045 case "x$ac_cv_prog_cc_c89" in
4046   x)
4047     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4048 $as_echo "none needed" >&6; } ;;
4049   xno)
4050     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4051 $as_echo "unsupported" >&6; } ;;
4052   *)
4053     CC="$CC $ac_cv_prog_cc_c89"
4054     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4055 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4056 esac
4057 if test "x$ac_cv_prog_cc_c89" != xno; then :
4058
4059 fi
4060
4061 ac_ext=c
4062 ac_cpp='$CPP $CPPFLAGS'
4063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4066
4067 ac_ext=c
4068 ac_cpp='$CPP $CPPFLAGS'
4069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4073 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4074 if ${am_cv_prog_cc_c_o+:} false; then :
4075   $as_echo_n "(cached) " >&6
4076 else
4077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h.  */
4079
4080 int
4081 main ()
4082 {
4083
4084   ;
4085   return 0;
4086 }
4087 _ACEOF
4088   # Make sure it works both with $CC and with simple cc.
4089   # Following AC_PROG_CC_C_O, we do the test twice because some
4090   # compilers refuse to overwrite an existing .o file with -o,
4091   # though they will create one.
4092   am_cv_prog_cc_c_o=yes
4093   for am_i in 1 2; do
4094     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4095    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4096    ac_status=$?
4097    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098    (exit $ac_status); } \
4099          && test -f conftest2.$ac_objext; then
4100       : OK
4101     else
4102       am_cv_prog_cc_c_o=no
4103       break
4104     fi
4105   done
4106   rm -f core conftest*
4107   unset am_i
4108 fi
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4110 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4111 if test "$am_cv_prog_cc_c_o" != yes; then
4112    # Losing compiler, so override with the script.
4113    # FIXME: It is wrong to rewrite CC.
4114    # But if we don't then we get into trouble of one sort or another.
4115    # A longer-term fix would be to have automake use am__CC in this case,
4116    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4117    CC="$am_aux_dir/compile $CC"
4118 fi
4119 ac_ext=c
4120 ac_cpp='$CPP $CPPFLAGS'
4121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4124
4125 DEPDIR="${am__leading_dot}deps"
4126
4127 ac_config_commands="$ac_config_commands depfiles"
4128
4129
4130 am_make=${MAKE-make}
4131 cat > confinc << 'END'
4132 am__doit:
4133         @echo this is the am__doit target
4134 .PHONY: am__doit
4135 END
4136 # If we don't find an include directive, just comment out the code.
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4138 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4139 am__include="#"
4140 am__quote=
4141 _am_result=none
4142 # First try GNU make style include.
4143 echo "include confinc" > confmf
4144 # Ignore all kinds of additional output from 'make'.
4145 case `$am_make -s -f confmf 2> /dev/null` in #(
4146 *the\ am__doit\ target*)
4147   am__include=include
4148   am__quote=
4149   _am_result=GNU
4150   ;;
4151 esac
4152 # Now try BSD make style include.
4153 if test "$am__include" = "#"; then
4154    echo '.include "confinc"' > confmf
4155    case `$am_make -s -f confmf 2> /dev/null` in #(
4156    *the\ am__doit\ target*)
4157      am__include=.include
4158      am__quote="\""
4159      _am_result=BSD
4160      ;;
4161    esac
4162 fi
4163
4164
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4166 $as_echo "$_am_result" >&6; }
4167 rm -f confinc confmf
4168
4169 # Check whether --enable-dependency-tracking was given.
4170 if test "${enable_dependency_tracking+set}" = set; then :
4171   enableval=$enable_dependency_tracking;
4172 fi
4173
4174 if test "x$enable_dependency_tracking" != xno; then
4175   am_depcomp="$ac_aux_dir/depcomp"
4176   AMDEPBACKSLASH='\'
4177   am__nodep='_no'
4178 fi
4179  if test "x$enable_dependency_tracking" != xno; then
4180   AMDEP_TRUE=
4181   AMDEP_FALSE='#'
4182 else
4183   AMDEP_TRUE='#'
4184   AMDEP_FALSE=
4185 fi
4186
4187
4188
4189 depcc="$CC"   am_compiler_list=
4190
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4192 $as_echo_n "checking dependency style of $depcc... " >&6; }
4193 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4194   $as_echo_n "(cached) " >&6
4195 else
4196   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4197   # We make a subdir and do the tests there.  Otherwise we can end up
4198   # making bogus files that we don't know about and never remove.  For
4199   # instance it was reported that on HP-UX the gcc test will end up
4200   # making a dummy file named 'D' -- because '-MD' means "put the output
4201   # in D".
4202   rm -rf conftest.dir
4203   mkdir conftest.dir
4204   # Copy depcomp to subdir because otherwise we won't find it if we're
4205   # using a relative directory.
4206   cp "$am_depcomp" conftest.dir
4207   cd conftest.dir
4208   # We will build objects and dependencies in a subdirectory because
4209   # it helps to detect inapplicable dependency modes.  For instance
4210   # both Tru64's cc and ICC support -MD to output dependencies as a
4211   # side effect of compilation, but ICC will put the dependencies in
4212   # the current directory while Tru64 will put them in the object
4213   # directory.
4214   mkdir sub
4215
4216   am_cv_CC_dependencies_compiler_type=none
4217   if test "$am_compiler_list" = ""; then
4218      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4219   fi
4220   am__universal=false
4221   case " $depcc " in #(
4222      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4223      esac
4224
4225   for depmode in $am_compiler_list; do
4226     # Setup a source with many dependencies, because some compilers
4227     # like to wrap large dependency lists on column 80 (with \), and
4228     # we should not choose a depcomp mode which is confused by this.
4229     #
4230     # We need to recreate these files for each test, as the compiler may
4231     # overwrite some of them when testing with obscure command lines.
4232     # This happens at least with the AIX C compiler.
4233     : > sub/conftest.c
4234     for i in 1 2 3 4 5 6; do
4235       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4236       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4237       # Solaris 10 /bin/sh.
4238       echo '/* dummy */' > sub/conftst$i.h
4239     done
4240     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4241
4242     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4243     # mode.  It turns out that the SunPro C++ compiler does not properly
4244     # handle '-M -o', and we need to detect this.  Also, some Intel
4245     # versions had trouble with output in subdirs.
4246     am__obj=sub/conftest.${OBJEXT-o}
4247     am__minus_obj="-o $am__obj"
4248     case $depmode in
4249     gcc)
4250       # This depmode causes a compiler race in universal mode.
4251       test "$am__universal" = false || continue
4252       ;;
4253     nosideeffect)
4254       # After this tag, mechanisms are not by side-effect, so they'll
4255       # only be used when explicitly requested.
4256       if test "x$enable_dependency_tracking" = xyes; then
4257         continue
4258       else
4259         break
4260       fi
4261       ;;
4262     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4263       # This compiler won't grok '-c -o', but also, the minuso test has
4264       # not run yet.  These depmodes are late enough in the game, and
4265       # so weak that their functioning should not be impacted.
4266       am__obj=conftest.${OBJEXT-o}
4267       am__minus_obj=
4268       ;;
4269     none) break ;;
4270     esac
4271     if depmode=$depmode \
4272        source=sub/conftest.c object=$am__obj \
4273        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4274        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4275          >/dev/null 2>conftest.err &&
4276        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4277        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4278        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4279        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4280       # icc doesn't choke on unknown options, it will just issue warnings
4281       # or remarks (even with -Werror).  So we grep stderr for any message
4282       # that says an option was ignored or not supported.
4283       # When given -MP, icc 7.0 and 7.1 complain thusly:
4284       #   icc: Command line warning: ignoring option '-M'; no argument required
4285       # The diagnosis changed in icc 8.0:
4286       #   icc: Command line remark: option '-MP' not supported
4287       if (grep 'ignoring option' conftest.err ||
4288           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4289         am_cv_CC_dependencies_compiler_type=$depmode
4290         break
4291       fi
4292     fi
4293   done
4294
4295   cd ..
4296   rm -rf conftest.dir
4297 else
4298   am_cv_CC_dependencies_compiler_type=none
4299 fi
4300
4301 fi
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4303 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4304 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4305
4306  if
4307   test "x$enable_dependency_tracking" != xno \
4308   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4309   am__fastdepCC_TRUE=
4310   am__fastdepCC_FALSE='#'
4311 else
4312   am__fastdepCC_TRUE='#'
4313   am__fastdepCC_FALSE=
4314 fi
4315
4316
4317
4318 ac_ext=c
4319 ac_cpp='$CPP $CPPFLAGS'
4320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4324 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4325 # On Suns, sometimes $CPP names a directory.
4326 if test -n "$CPP" && test -d "$CPP"; then
4327   CPP=
4328 fi
4329 if test -z "$CPP"; then
4330   if ${ac_cv_prog_CPP+:} false; then :
4331   $as_echo_n "(cached) " >&6
4332 else
4333       # Double quotes because CPP needs to be expanded
4334     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4335     do
4336       ac_preproc_ok=false
4337 for ac_c_preproc_warn_flag in '' yes
4338 do
4339   # Use a header file that comes with gcc, so configuring glibc
4340   # with a fresh cross-compiler works.
4341   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4342   # <limits.h> exists even on freestanding compilers.
4343   # On the NeXT, cc -E runs the code through the compiler's parser,
4344   # not just through cpp. "Syntax error" is here to catch this case.
4345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h.  */
4347 #ifdef __STDC__
4348 # include <limits.h>
4349 #else
4350 # include <assert.h>
4351 #endif
4352                      Syntax error
4353 _ACEOF
4354 if ac_fn_c_try_cpp "$LINENO"; then :
4355
4356 else
4357   # Broken: fails on valid input.
4358 continue
4359 fi
4360 rm -f conftest.err conftest.i conftest.$ac_ext
4361
4362   # OK, works on sane cases.  Now check whether nonexistent headers
4363   # can be detected and how.
4364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h.  */
4366 #include <ac_nonexistent.h>
4367 _ACEOF
4368 if ac_fn_c_try_cpp "$LINENO"; then :
4369   # Broken: success on invalid input.
4370 continue
4371 else
4372   # Passes both tests.
4373 ac_preproc_ok=:
4374 break
4375 fi
4376 rm -f conftest.err conftest.i conftest.$ac_ext
4377
4378 done
4379 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4380 rm -f conftest.i conftest.err conftest.$ac_ext
4381 if $ac_preproc_ok; then :
4382   break
4383 fi
4384
4385     done
4386     ac_cv_prog_CPP=$CPP
4387
4388 fi
4389   CPP=$ac_cv_prog_CPP
4390 else
4391   ac_cv_prog_CPP=$CPP
4392 fi
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4394 $as_echo "$CPP" >&6; }
4395 ac_preproc_ok=false
4396 for ac_c_preproc_warn_flag in '' yes
4397 do
4398   # Use a header file that comes with gcc, so configuring glibc
4399   # with a fresh cross-compiler works.
4400   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4401   # <limits.h> exists even on freestanding compilers.
4402   # On the NeXT, cc -E runs the code through the compiler's parser,
4403   # not just through cpp. "Syntax error" is here to catch this case.
4404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405 /* end confdefs.h.  */
4406 #ifdef __STDC__
4407 # include <limits.h>
4408 #else
4409 # include <assert.h>
4410 #endif
4411                      Syntax error
4412 _ACEOF
4413 if ac_fn_c_try_cpp "$LINENO"; then :
4414
4415 else
4416   # Broken: fails on valid input.
4417 continue
4418 fi
4419 rm -f conftest.err conftest.i conftest.$ac_ext
4420
4421   # OK, works on sane cases.  Now check whether nonexistent headers
4422   # can be detected and how.
4423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h.  */
4425 #include <ac_nonexistent.h>
4426 _ACEOF
4427 if ac_fn_c_try_cpp "$LINENO"; then :
4428   # Broken: success on invalid input.
4429 continue
4430 else
4431   # Passes both tests.
4432 ac_preproc_ok=:
4433 break
4434 fi
4435 rm -f conftest.err conftest.i conftest.$ac_ext
4436
4437 done
4438 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4439 rm -f conftest.i conftest.err conftest.$ac_ext
4440 if $ac_preproc_ok; then :
4441
4442 else
4443   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4445 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4446 See \`config.log' for more details" "$LINENO" 5; }
4447 fi
4448
4449 ac_ext=c
4450 ac_cpp='$CPP $CPPFLAGS'
4451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4454
4455
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4457 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4458 if ${ac_cv_path_GREP+:} false; then :
4459   $as_echo_n "(cached) " >&6
4460 else
4461   if test -z "$GREP"; then
4462   ac_path_GREP_found=false
4463   # Loop through the user's path and test for each of PROGNAME-LIST
4464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4466 do
4467   IFS=$as_save_IFS
4468   test -z "$as_dir" && as_dir=.
4469     for ac_prog in grep ggrep; do
4470     for ac_exec_ext in '' $ac_executable_extensions; do
4471       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4472       as_fn_executable_p "$ac_path_GREP" || continue
4473 # Check for GNU ac_path_GREP and select it if it is found.
4474   # Check for GNU $ac_path_GREP
4475 case `"$ac_path_GREP" --version 2>&1` in
4476 *GNU*)
4477   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4478 *)
4479   ac_count=0
4480   $as_echo_n 0123456789 >"conftest.in"
4481   while :
4482   do
4483     cat "conftest.in" "conftest.in" >"conftest.tmp"
4484     mv "conftest.tmp" "conftest.in"
4485     cp "conftest.in" "conftest.nl"
4486     $as_echo 'GREP' >> "conftest.nl"
4487     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4488     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4489     as_fn_arith $ac_count + 1 && ac_count=$as_val
4490     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4491       # Best one so far, save it but keep looking for a better one
4492       ac_cv_path_GREP="$ac_path_GREP"
4493       ac_path_GREP_max=$ac_count
4494     fi
4495     # 10*(2^10) chars as input seems more than enough
4496     test $ac_count -gt 10 && break
4497   done
4498   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4499 esac
4500
4501       $ac_path_GREP_found && break 3
4502     done
4503   done
4504   done
4505 IFS=$as_save_IFS
4506   if test -z "$ac_cv_path_GREP"; then
4507     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4508   fi
4509 else
4510   ac_cv_path_GREP=$GREP
4511 fi
4512
4513 fi
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4515 $as_echo "$ac_cv_path_GREP" >&6; }
4516  GREP="$ac_cv_path_GREP"
4517
4518
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4520 $as_echo_n "checking for egrep... " >&6; }
4521 if ${ac_cv_path_EGREP+:} false; then :
4522   $as_echo_n "(cached) " >&6
4523 else
4524   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4525    then ac_cv_path_EGREP="$GREP -E"
4526    else
4527      if test -z "$EGREP"; then
4528   ac_path_EGREP_found=false
4529   # Loop through the user's path and test for each of PROGNAME-LIST
4530   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4532 do
4533   IFS=$as_save_IFS
4534   test -z "$as_dir" && as_dir=.
4535     for ac_prog in egrep; do
4536     for ac_exec_ext in '' $ac_executable_extensions; do
4537       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4538       as_fn_executable_p "$ac_path_EGREP" || continue
4539 # Check for GNU ac_path_EGREP and select it if it is found.
4540   # Check for GNU $ac_path_EGREP
4541 case `"$ac_path_EGREP" --version 2>&1` in
4542 *GNU*)
4543   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4544 *)
4545   ac_count=0
4546   $as_echo_n 0123456789 >"conftest.in"
4547   while :
4548   do
4549     cat "conftest.in" "conftest.in" >"conftest.tmp"
4550     mv "conftest.tmp" "conftest.in"
4551     cp "conftest.in" "conftest.nl"
4552     $as_echo 'EGREP' >> "conftest.nl"
4553     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4554     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4555     as_fn_arith $ac_count + 1 && ac_count=$as_val
4556     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4557       # Best one so far, save it but keep looking for a better one
4558       ac_cv_path_EGREP="$ac_path_EGREP"
4559       ac_path_EGREP_max=$ac_count
4560     fi
4561     # 10*(2^10) chars as input seems more than enough
4562     test $ac_count -gt 10 && break
4563   done
4564   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4565 esac
4566
4567       $ac_path_EGREP_found && break 3
4568     done
4569   done
4570   done
4571 IFS=$as_save_IFS
4572   if test -z "$ac_cv_path_EGREP"; then
4573     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4574   fi
4575 else
4576   ac_cv_path_EGREP=$EGREP
4577 fi
4578
4579    fi
4580 fi
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4582 $as_echo "$ac_cv_path_EGREP" >&6; }
4583  EGREP="$ac_cv_path_EGREP"
4584
4585
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4587 $as_echo_n "checking for ANSI C header files... " >&6; }
4588 if ${ac_cv_header_stdc+:} false; then :
4589   $as_echo_n "(cached) " >&6
4590 else
4591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h.  */
4593 #include <stdlib.h>
4594 #include <stdarg.h>
4595 #include <string.h>
4596 #include <float.h>
4597
4598 int
4599 main ()
4600 {
4601
4602   ;
4603   return 0;
4604 }
4605 _ACEOF
4606 if ac_fn_c_try_compile "$LINENO"; then :
4607   ac_cv_header_stdc=yes
4608 else
4609   ac_cv_header_stdc=no
4610 fi
4611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612
4613 if test $ac_cv_header_stdc = yes; then
4614   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h.  */
4617 #include <string.h>
4618
4619 _ACEOF
4620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4621   $EGREP "memchr" >/dev/null 2>&1; then :
4622
4623 else
4624   ac_cv_header_stdc=no
4625 fi
4626 rm -f conftest*
4627
4628 fi
4629
4630 if test $ac_cv_header_stdc = yes; then
4631   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633 /* end confdefs.h.  */
4634 #include <stdlib.h>
4635
4636 _ACEOF
4637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4638   $EGREP "free" >/dev/null 2>&1; then :
4639
4640 else
4641   ac_cv_header_stdc=no
4642 fi
4643 rm -f conftest*
4644
4645 fi
4646
4647 if test $ac_cv_header_stdc = yes; then
4648   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4649   if test "$cross_compiling" = yes; then :
4650   :
4651 else
4652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h.  */
4654 #include <ctype.h>
4655 #include <stdlib.h>
4656 #if ((' ' & 0x0FF) == 0x020)
4657 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4658 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4659 #else
4660 # define ISLOWER(c) \
4661                    (('a' <= (c) && (c) <= 'i') \
4662                      || ('j' <= (c) && (c) <= 'r') \
4663                      || ('s' <= (c) && (c) <= 'z'))
4664 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4665 #endif
4666
4667 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4668 int
4669 main ()
4670 {
4671   int i;
4672   for (i = 0; i < 256; i++)
4673     if (XOR (islower (i), ISLOWER (i))
4674         || toupper (i) != TOUPPER (i))
4675       return 2;
4676   return 0;
4677 }
4678 _ACEOF
4679 if ac_fn_c_try_run "$LINENO"; then :
4680
4681 else
4682   ac_cv_header_stdc=no
4683 fi
4684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4685   conftest.$ac_objext conftest.beam conftest.$ac_ext
4686 fi
4687
4688 fi
4689 fi
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4691 $as_echo "$ac_cv_header_stdc" >&6; }
4692 if test $ac_cv_header_stdc = yes; then
4693
4694 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4695
4696 fi
4697
4698 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4699 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4700                   inttypes.h stdint.h unistd.h
4701 do :
4702   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4703 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4704 "
4705 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4706   cat >>confdefs.h <<_ACEOF
4707 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4708 _ACEOF
4709
4710 fi
4711
4712 done
4713
4714
4715
4716   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4717 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4718   MINIX=yes
4719 else
4720   MINIX=
4721 fi
4722
4723
4724   if test "$MINIX" = yes; then
4725
4726 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4727
4728
4729 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4730
4731
4732 $as_echo "#define _MINIX 1" >>confdefs.h
4733
4734   fi
4735
4736
4737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4738 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4739 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4740   $as_echo_n "(cached) " >&6
4741 else
4742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h.  */
4744
4745 #         define __EXTENSIONS__ 1
4746           $ac_includes_default
4747 int
4748 main ()
4749 {
4750
4751   ;
4752   return 0;
4753 }
4754 _ACEOF
4755 if ac_fn_c_try_compile "$LINENO"; then :
4756   ac_cv_safe_to_define___extensions__=yes
4757 else
4758   ac_cv_safe_to_define___extensions__=no
4759 fi
4760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761 fi
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4763 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4764   test $ac_cv_safe_to_define___extensions__ = yes &&
4765     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4766
4767   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4768
4769   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4770
4771   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4772
4773   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4774
4775
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler is Clang" >&5
4777 $as_echo_n "checking if the compiler is Clang... " >&6; }
4778 if ${rra_cv_prog_cc_clang+:} false; then :
4779   $as_echo_n "(cached) " >&6
4780 else
4781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h.  */
4783
4784 #if ! __clang__
4785 #error
4786 #endif
4787
4788 _ACEOF
4789 if ac_fn_c_try_compile "$LINENO"; then :
4790   rra_cv_prog_cc_clang=yes
4791 else
4792   rra_cv_prog_cc_clang=no
4793 fi
4794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795 fi
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_prog_cc_clang" >&5
4797 $as_echo "$rra_cv_prog_cc_clang" >&6; }
4798  if test x"$rra_cv_prog_cc_clang" = xyes; then :
4799   CLANG=yes
4800 fi
4801
4802  if test x"$CLANG" = xyes; then :
4803   WARNINGS_CFLAGS="-Werror"
4804
4805  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Weverything" >&5
4806 $as_echo_n "checking if $CC supports -Weverything... " >&6; }
4807  if ${rra_cv_compiler_c__Weverything+:} false; then :
4808   $as_echo_n "(cached) " >&6
4809 else
4810   save_CFLAGS=$CFLAGS
4811      case -Weverything in #(
4812   -Wno-*) :
4813     CFLAGS="$CFLAGS `echo "-Weverything" | sed 's/-Wno-/-W/'`" ;; #(
4814   *) :
4815     CFLAGS="$CFLAGS -Weverything" ;; #(
4816   *) :
4817      ;;
4818 esac
4819      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h.  */
4821
4822 int
4823 main ()
4824 {
4825 int foo = 0;
4826   ;
4827   return 0;
4828 }
4829 _ACEOF
4830 if ac_fn_c_try_compile "$LINENO"; then :
4831   rra_cv_compiler_c__Weverything=yes
4832 else
4833   rra_cv_compiler_c__Weverything=no
4834 fi
4835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4836      CFLAGS=$save_CFLAGS
4837 fi
4838
4839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Weverything" >&5
4840 $as_echo "$rra_cv_compiler_c__Weverything" >&6; }
4841  if test x"$rra_cv_compiler_c__Weverything" = xyes; then :
4842   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Weverything"
4843 fi
4844  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-padded" >&5
4845 $as_echo_n "checking if $CC supports -Wno-padded... " >&6; }
4846  if ${rra_cv_compiler_c__Wno_padded+:} false; then :
4847   $as_echo_n "(cached) " >&6
4848 else
4849   save_CFLAGS=$CFLAGS
4850      case -Wno-padded in #(
4851   -Wno-*) :
4852     CFLAGS="$CFLAGS `echo "-Wno-padded" | sed 's/-Wno-/-W/'`" ;; #(
4853   *) :
4854     CFLAGS="$CFLAGS -Wno-padded" ;; #(
4855   *) :
4856      ;;
4857 esac
4858      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4859 /* end confdefs.h.  */
4860
4861 int
4862 main ()
4863 {
4864 int foo = 0;
4865   ;
4866   return 0;
4867 }
4868 _ACEOF
4869 if ac_fn_c_try_compile "$LINENO"; then :
4870   rra_cv_compiler_c__Wno_padded=yes
4871 else
4872   rra_cv_compiler_c__Wno_padded=no
4873 fi
4874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4875      CFLAGS=$save_CFLAGS
4876 fi
4877
4878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_padded" >&5
4879 $as_echo "$rra_cv_compiler_c__Wno_padded" >&6; }
4880  if test x"$rra_cv_compiler_c__Wno_padded" = xyes; then :
4881   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-padded"
4882 fi
4883 else
4884   WARNINGS_CFLAGS="-g -O2 -D_FORTIFY_SOURCE=2 -Werror"
4885
4886  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fstrict-overflow" >&5
4887 $as_echo_n "checking if $CC supports -fstrict-overflow... " >&6; }
4888  if ${rra_cv_compiler_c__fstrict_overflow+:} false; then :
4889   $as_echo_n "(cached) " >&6
4890 else
4891   save_CFLAGS=$CFLAGS
4892      case -fstrict-overflow in #(
4893   -Wno-*) :
4894     CFLAGS="$CFLAGS `echo "-fstrict-overflow" | sed 's/-Wno-/-W/'`" ;; #(
4895   *) :
4896     CFLAGS="$CFLAGS -fstrict-overflow" ;; #(
4897   *) :
4898      ;;
4899 esac
4900      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901 /* end confdefs.h.  */
4902
4903 int
4904 main ()
4905 {
4906 int foo = 0;
4907   ;
4908   return 0;
4909 }
4910 _ACEOF
4911 if ac_fn_c_try_compile "$LINENO"; then :
4912   rra_cv_compiler_c__fstrict_overflow=yes
4913 else
4914   rra_cv_compiler_c__fstrict_overflow=no
4915 fi
4916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4917      CFLAGS=$save_CFLAGS
4918 fi
4919
4920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__fstrict_overflow" >&5
4921 $as_echo "$rra_cv_compiler_c__fstrict_overflow" >&6; }
4922  if test x"$rra_cv_compiler_c__fstrict_overflow" = xyes; then :
4923   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -fstrict-overflow"
4924 fi
4925  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fstrict-aliasing" >&5
4926 $as_echo_n "checking if $CC supports -fstrict-aliasing... " >&6; }
4927  if ${rra_cv_compiler_c__fstrict_aliasing+:} false; then :
4928   $as_echo_n "(cached) " >&6
4929 else
4930   save_CFLAGS=$CFLAGS
4931      case -fstrict-aliasing in #(
4932   -Wno-*) :
4933     CFLAGS="$CFLAGS `echo "-fstrict-aliasing" | sed 's/-Wno-/-W/'`" ;; #(
4934   *) :
4935     CFLAGS="$CFLAGS -fstrict-aliasing" ;; #(
4936   *) :
4937      ;;
4938 esac
4939      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940 /* end confdefs.h.  */
4941
4942 int
4943 main ()
4944 {
4945 int foo = 0;
4946   ;
4947   return 0;
4948 }
4949 _ACEOF
4950 if ac_fn_c_try_compile "$LINENO"; then :
4951   rra_cv_compiler_c__fstrict_aliasing=yes
4952 else
4953   rra_cv_compiler_c__fstrict_aliasing=no
4954 fi
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956      CFLAGS=$save_CFLAGS
4957 fi
4958
4959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__fstrict_aliasing" >&5
4960 $as_echo "$rra_cv_compiler_c__fstrict_aliasing" >&6; }
4961  if test x"$rra_cv_compiler_c__fstrict_aliasing" = xyes; then :
4962   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -fstrict-aliasing"
4963 fi
4964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcomments" >&5
4965 $as_echo_n "checking if $CC supports -Wcomments... " >&6; }
4966  if ${rra_cv_compiler_c__Wcomments+:} false; then :
4967   $as_echo_n "(cached) " >&6
4968 else
4969   save_CFLAGS=$CFLAGS
4970      case -Wcomments in #(
4971   -Wno-*) :
4972     CFLAGS="$CFLAGS `echo "-Wcomments" | sed 's/-Wno-/-W/'`" ;; #(
4973   *) :
4974     CFLAGS="$CFLAGS -Wcomments" ;; #(
4975   *) :
4976      ;;
4977 esac
4978      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h.  */
4980
4981 int
4982 main ()
4983 {
4984 int foo = 0;
4985   ;
4986   return 0;
4987 }
4988 _ACEOF
4989 if ac_fn_c_try_compile "$LINENO"; then :
4990   rra_cv_compiler_c__Wcomments=yes
4991 else
4992   rra_cv_compiler_c__Wcomments=no
4993 fi
4994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4995      CFLAGS=$save_CFLAGS
4996 fi
4997
4998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wcomments" >&5
4999 $as_echo "$rra_cv_compiler_c__Wcomments" >&6; }
5000  if test x"$rra_cv_compiler_c__Wcomments" = xyes; then :
5001   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wcomments"
5002 fi
5003  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wendif-labels" >&5
5004 $as_echo_n "checking if $CC supports -Wendif-labels... " >&6; }
5005  if ${rra_cv_compiler_c__Wendif_labels+:} false; then :
5006   $as_echo_n "(cached) " >&6
5007 else
5008   save_CFLAGS=$CFLAGS
5009      case -Wendif-labels in #(
5010   -Wno-*) :
5011     CFLAGS="$CFLAGS `echo "-Wendif-labels" | sed 's/-Wno-/-W/'`" ;; #(
5012   *) :
5013     CFLAGS="$CFLAGS -Wendif-labels" ;; #(
5014   *) :
5015      ;;
5016 esac
5017      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018 /* end confdefs.h.  */
5019
5020 int
5021 main ()
5022 {
5023 int foo = 0;
5024   ;
5025   return 0;
5026 }
5027 _ACEOF
5028 if ac_fn_c_try_compile "$LINENO"; then :
5029   rra_cv_compiler_c__Wendif_labels=yes
5030 else
5031   rra_cv_compiler_c__Wendif_labels=no
5032 fi
5033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5034      CFLAGS=$save_CFLAGS
5035 fi
5036
5037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wendif_labels" >&5
5038 $as_echo "$rra_cv_compiler_c__Wendif_labels" >&6; }
5039  if test x"$rra_cv_compiler_c__Wendif_labels" = xyes; then :
5040   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wendif-labels"
5041 fi
5042  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5043 $as_echo_n "checking if $CC supports -Wall... " >&6; }
5044  if ${rra_cv_compiler_c__Wall+:} false; then :
5045   $as_echo_n "(cached) " >&6
5046 else
5047   save_CFLAGS=$CFLAGS
5048      case -Wall in #(
5049   -Wno-*) :
5050     CFLAGS="$CFLAGS `echo "-Wall" | sed 's/-Wno-/-W/'`" ;; #(
5051   *) :
5052     CFLAGS="$CFLAGS -Wall" ;; #(
5053   *) :
5054      ;;
5055 esac
5056      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h.  */
5058
5059 int
5060 main ()
5061 {
5062 int foo = 0;
5063   ;
5064   return 0;
5065 }
5066 _ACEOF
5067 if ac_fn_c_try_compile "$LINENO"; then :
5068   rra_cv_compiler_c__Wall=yes
5069 else
5070   rra_cv_compiler_c__Wall=no
5071 fi
5072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5073      CFLAGS=$save_CFLAGS
5074 fi
5075
5076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wall" >&5
5077 $as_echo "$rra_cv_compiler_c__Wall" >&6; }
5078  if test x"$rra_cv_compiler_c__Wall" = xyes; then :
5079   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wall"
5080 fi
5081  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wextra" >&5
5082 $as_echo_n "checking if $CC supports -Wextra... " >&6; }
5083  if ${rra_cv_compiler_c__Wextra+:} false; then :
5084   $as_echo_n "(cached) " >&6
5085 else
5086   save_CFLAGS=$CFLAGS
5087      case -Wextra in #(
5088   -Wno-*) :
5089     CFLAGS="$CFLAGS `echo "-Wextra" | sed 's/-Wno-/-W/'`" ;; #(
5090   *) :
5091     CFLAGS="$CFLAGS -Wextra" ;; #(
5092   *) :
5093      ;;
5094 esac
5095      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5096 /* end confdefs.h.  */
5097
5098 int
5099 main ()
5100 {
5101 int foo = 0;
5102   ;
5103   return 0;
5104 }
5105 _ACEOF
5106 if ac_fn_c_try_compile "$LINENO"; then :
5107   rra_cv_compiler_c__Wextra=yes
5108 else
5109   rra_cv_compiler_c__Wextra=no
5110 fi
5111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5112      CFLAGS=$save_CFLAGS
5113 fi
5114
5115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wextra" >&5
5116 $as_echo "$rra_cv_compiler_c__Wextra" >&6; }
5117  if test x"$rra_cv_compiler_c__Wextra" = xyes; then :
5118   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wextra"
5119 fi
5120  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5121 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5122  if ${rra_cv_compiler_c__Wformat_2+:} false; then :
5123   $as_echo_n "(cached) " >&6
5124 else
5125   save_CFLAGS=$CFLAGS
5126      case -Wformat=2 in #(
5127   -Wno-*) :
5128     CFLAGS="$CFLAGS `echo "-Wformat=2" | sed 's/-Wno-/-W/'`" ;; #(
5129   *) :
5130     CFLAGS="$CFLAGS -Wformat=2" ;; #(
5131   *) :
5132      ;;
5133 esac
5134      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135 /* end confdefs.h.  */
5136
5137 int
5138 main ()
5139 {
5140 int foo = 0;
5141   ;
5142   return 0;
5143 }
5144 _ACEOF
5145 if ac_fn_c_try_compile "$LINENO"; then :
5146   rra_cv_compiler_c__Wformat_2=yes
5147 else
5148   rra_cv_compiler_c__Wformat_2=no
5149 fi
5150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5151      CFLAGS=$save_CFLAGS
5152 fi
5153
5154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wformat_2" >&5
5155 $as_echo "$rra_cv_compiler_c__Wformat_2" >&6; }
5156  if test x"$rra_cv_compiler_c__Wformat_2" = xyes; then :
5157   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wformat=2"
5158 fi
5159  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat-signedness" >&5
5160 $as_echo_n "checking if $CC supports -Wformat-signedness... " >&6; }
5161  if ${rra_cv_compiler_c__Wformat_signedness+:} false; then :
5162   $as_echo_n "(cached) " >&6
5163 else
5164   save_CFLAGS=$CFLAGS
5165      case -Wformat-signedness in #(
5166   -Wno-*) :
5167     CFLAGS="$CFLAGS `echo "-Wformat-signedness" | sed 's/-Wno-/-W/'`" ;; #(
5168   *) :
5169     CFLAGS="$CFLAGS -Wformat-signedness" ;; #(
5170   *) :
5171      ;;
5172 esac
5173      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h.  */
5175
5176 int
5177 main ()
5178 {
5179 int foo = 0;
5180   ;
5181   return 0;
5182 }
5183 _ACEOF
5184 if ac_fn_c_try_compile "$LINENO"; then :
5185   rra_cv_compiler_c__Wformat_signedness=yes
5186 else
5187   rra_cv_compiler_c__Wformat_signedness=no
5188 fi
5189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5190      CFLAGS=$save_CFLAGS
5191 fi
5192
5193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wformat_signedness" >&5
5194 $as_echo "$rra_cv_compiler_c__Wformat_signedness" >&6; }
5195  if test x"$rra_cv_compiler_c__Wformat_signedness" = xyes; then :
5196   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wformat-signedness"
5197 fi
5198  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnull-dereference" >&5
5199 $as_echo_n "checking if $CC supports -Wnull-dereference... " >&6; }
5200  if ${rra_cv_compiler_c__Wnull_dereference+:} false; then :
5201   $as_echo_n "(cached) " >&6
5202 else
5203   save_CFLAGS=$CFLAGS
5204      case -Wnull-dereference in #(
5205   -Wno-*) :
5206     CFLAGS="$CFLAGS `echo "-Wnull-dereference" | sed 's/-Wno-/-W/'`" ;; #(
5207   *) :
5208     CFLAGS="$CFLAGS -Wnull-dereference" ;; #(
5209   *) :
5210      ;;
5211 esac
5212      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213 /* end confdefs.h.  */
5214
5215 int
5216 main ()
5217 {
5218 int foo = 0;
5219   ;
5220   return 0;
5221 }
5222 _ACEOF
5223 if ac_fn_c_try_compile "$LINENO"; then :
5224   rra_cv_compiler_c__Wnull_dereference=yes
5225 else
5226   rra_cv_compiler_c__Wnull_dereference=no
5227 fi
5228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5229      CFLAGS=$save_CFLAGS
5230 fi
5231
5232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wnull_dereference" >&5
5233 $as_echo "$rra_cv_compiler_c__Wnull_dereference" >&6; }
5234  if test x"$rra_cv_compiler_c__Wnull_dereference" = xyes; then :
5235   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wnull-dereference"
5236 fi
5237  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
5238 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
5239  if ${rra_cv_compiler_c__Winit_self+:} false; then :
5240   $as_echo_n "(cached) " >&6
5241 else
5242   save_CFLAGS=$CFLAGS
5243      case -Winit-self in #(
5244   -Wno-*) :
5245     CFLAGS="$CFLAGS `echo "-Winit-self" | sed 's/-Wno-/-W/'`" ;; #(
5246   *) :
5247     CFLAGS="$CFLAGS -Winit-self" ;; #(
5248   *) :
5249      ;;
5250 esac
5251      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252 /* end confdefs.h.  */
5253
5254 int
5255 main ()
5256 {
5257 int foo = 0;
5258   ;
5259   return 0;
5260 }
5261 _ACEOF
5262 if ac_fn_c_try_compile "$LINENO"; then :
5263   rra_cv_compiler_c__Winit_self=yes
5264 else
5265   rra_cv_compiler_c__Winit_self=no
5266 fi
5267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5268      CFLAGS=$save_CFLAGS
5269 fi
5270
5271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Winit_self" >&5
5272 $as_echo "$rra_cv_compiler_c__Winit_self" >&6; }
5273  if test x"$rra_cv_compiler_c__Winit_self" = xyes; then :
5274   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Winit-self"
5275 fi
5276  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wswitch-enum" >&5
5277 $as_echo_n "checking if $CC supports -Wswitch-enum... " >&6; }
5278  if ${rra_cv_compiler_c__Wswitch_enum+:} false; then :
5279   $as_echo_n "(cached) " >&6
5280 else
5281   save_CFLAGS=$CFLAGS
5282      case -Wswitch-enum in #(
5283   -Wno-*) :
5284     CFLAGS="$CFLAGS `echo "-Wswitch-enum" | sed 's/-Wno-/-W/'`" ;; #(
5285   *) :
5286     CFLAGS="$CFLAGS -Wswitch-enum" ;; #(
5287   *) :
5288      ;;
5289 esac
5290      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h.  */
5292
5293 int
5294 main ()
5295 {
5296 int foo = 0;
5297   ;
5298   return 0;
5299 }
5300 _ACEOF
5301 if ac_fn_c_try_compile "$LINENO"; then :
5302   rra_cv_compiler_c__Wswitch_enum=yes
5303 else
5304   rra_cv_compiler_c__Wswitch_enum=no
5305 fi
5306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5307      CFLAGS=$save_CFLAGS
5308 fi
5309
5310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wswitch_enum" >&5
5311 $as_echo "$rra_cv_compiler_c__Wswitch_enum" >&6; }
5312  if test x"$rra_cv_compiler_c__Wswitch_enum" = xyes; then :
5313   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wswitch-enum"
5314 fi
5315  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5316 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5317  if ${rra_cv_compiler_c__Wuninitialized+:} false; then :
5318   $as_echo_n "(cached) " >&6
5319 else
5320   save_CFLAGS=$CFLAGS
5321      case -Wuninitialized in #(
5322   -Wno-*) :
5323     CFLAGS="$CFLAGS `echo "-Wuninitialized" | sed 's/-Wno-/-W/'`" ;; #(
5324   *) :
5325     CFLAGS="$CFLAGS -Wuninitialized" ;; #(
5326   *) :
5327      ;;
5328 esac
5329      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h.  */
5331
5332 int
5333 main ()
5334 {
5335 int foo = 0;
5336   ;
5337   return 0;
5338 }
5339 _ACEOF
5340 if ac_fn_c_try_compile "$LINENO"; then :
5341   rra_cv_compiler_c__Wuninitialized=yes
5342 else
5343   rra_cv_compiler_c__Wuninitialized=no
5344 fi
5345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5346      CFLAGS=$save_CFLAGS
5347 fi
5348
5349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wuninitialized" >&5
5350 $as_echo "$rra_cv_compiler_c__Wuninitialized" >&6; }
5351  if test x"$rra_cv_compiler_c__Wuninitialized" = xyes; then :
5352   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wuninitialized"
5353 fi
5354  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-overflow=5" >&5
5355 $as_echo_n "checking if $CC supports -Wstrict-overflow=5... " >&6; }
5356  if ${rra_cv_compiler_c__Wstrict_overflow_5+:} false; then :
5357   $as_echo_n "(cached) " >&6
5358 else
5359   save_CFLAGS=$CFLAGS
5360      case -Wstrict-overflow=5 in #(
5361   -Wno-*) :
5362     CFLAGS="$CFLAGS `echo "-Wstrict-overflow=5" | sed 's/-Wno-/-W/'`" ;; #(
5363   *) :
5364     CFLAGS="$CFLAGS -Wstrict-overflow=5" ;; #(
5365   *) :
5366      ;;
5367 esac
5368      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h.  */
5370
5371 int
5372 main ()
5373 {
5374 int foo = 0;
5375   ;
5376   return 0;
5377 }
5378 _ACEOF
5379 if ac_fn_c_try_compile "$LINENO"; then :
5380   rra_cv_compiler_c__Wstrict_overflow_5=yes
5381 else
5382   rra_cv_compiler_c__Wstrict_overflow_5=no
5383 fi
5384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5385      CFLAGS=$save_CFLAGS
5386 fi
5387
5388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wstrict_overflow_5" >&5
5389 $as_echo "$rra_cv_compiler_c__Wstrict_overflow_5" >&6; }
5390  if test x"$rra_cv_compiler_c__Wstrict_overflow_5" = xyes; then :
5391   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wstrict-overflow=5"
5392 fi
5393  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
5394 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
5395  if ${rra_cv_compiler_c__Wmissing_format_attribute+:} false; then :
5396   $as_echo_n "(cached) " >&6
5397 else
5398   save_CFLAGS=$CFLAGS
5399      case -Wmissing-format-attribute in #(
5400   -Wno-*) :
5401     CFLAGS="$CFLAGS `echo "-Wmissing-format-attribute" | sed 's/-Wno-/-W/'`" ;; #(
5402   *) :
5403     CFLAGS="$CFLAGS -Wmissing-format-attribute" ;; #(
5404   *) :
5405      ;;
5406 esac
5407      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h.  */
5409
5410 int
5411 main ()
5412 {
5413 int foo = 0;
5414   ;
5415   return 0;
5416 }
5417 _ACEOF
5418 if ac_fn_c_try_compile "$LINENO"; then :
5419   rra_cv_compiler_c__Wmissing_format_attribute=yes
5420 else
5421   rra_cv_compiler_c__Wmissing_format_attribute=no
5422 fi
5423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5424      CFLAGS=$save_CFLAGS
5425 fi
5426
5427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wmissing_format_attribute" >&5
5428 $as_echo "$rra_cv_compiler_c__Wmissing_format_attribute" >&6; }
5429  if test x"$rra_cv_compiler_c__Wmissing_format_attribute" = xyes; then :
5430   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wmissing-format-attribute"
5431 fi
5432  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wduplicated-cond" >&5
5433 $as_echo_n "checking if $CC supports -Wduplicated-cond... " >&6; }
5434  if ${rra_cv_compiler_c__Wduplicated_cond+:} false; then :
5435   $as_echo_n "(cached) " >&6
5436 else
5437   save_CFLAGS=$CFLAGS
5438      case -Wduplicated-cond in #(
5439   -Wno-*) :
5440     CFLAGS="$CFLAGS `echo "-Wduplicated-cond" | sed 's/-Wno-/-W/'`" ;; #(
5441   *) :
5442     CFLAGS="$CFLAGS -Wduplicated-cond" ;; #(
5443   *) :
5444      ;;
5445 esac
5446      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h.  */
5448
5449 int
5450 main ()
5451 {
5452 int foo = 0;
5453   ;
5454   return 0;
5455 }
5456 _ACEOF
5457 if ac_fn_c_try_compile "$LINENO"; then :
5458   rra_cv_compiler_c__Wduplicated_cond=yes
5459 else
5460   rra_cv_compiler_c__Wduplicated_cond=no
5461 fi
5462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463      CFLAGS=$save_CFLAGS
5464 fi
5465
5466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wduplicated_cond" >&5
5467 $as_echo "$rra_cv_compiler_c__Wduplicated_cond" >&6; }
5468  if test x"$rra_cv_compiler_c__Wduplicated_cond" = xyes; then :
5469   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wduplicated-cond"
5470 fi
5471  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrampolines" >&5
5472 $as_echo_n "checking if $CC supports -Wtrampolines... " >&6; }
5473  if ${rra_cv_compiler_c__Wtrampolines+:} false; then :
5474   $as_echo_n "(cached) " >&6
5475 else
5476   save_CFLAGS=$CFLAGS
5477      case -Wtrampolines in #(
5478   -Wno-*) :
5479     CFLAGS="$CFLAGS `echo "-Wtrampolines" | sed 's/-Wno-/-W/'`" ;; #(
5480   *) :
5481     CFLAGS="$CFLAGS -Wtrampolines" ;; #(
5482   *) :
5483      ;;
5484 esac
5485      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h.  */
5487
5488 int
5489 main ()
5490 {
5491 int foo = 0;
5492   ;
5493   return 0;
5494 }
5495 _ACEOF
5496 if ac_fn_c_try_compile "$LINENO"; then :
5497   rra_cv_compiler_c__Wtrampolines=yes
5498 else
5499   rra_cv_compiler_c__Wtrampolines=no
5500 fi
5501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502      CFLAGS=$save_CFLAGS
5503 fi
5504
5505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wtrampolines" >&5
5506 $as_echo "$rra_cv_compiler_c__Wtrampolines" >&6; }
5507  if test x"$rra_cv_compiler_c__Wtrampolines" = xyes; then :
5508   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wtrampolines"
5509 fi
5510  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wfloat-equal" >&5
5511 $as_echo_n "checking if $CC supports -Wfloat-equal... " >&6; }
5512  if ${rra_cv_compiler_c__Wfloat_equal+:} false; then :
5513   $as_echo_n "(cached) " >&6
5514 else
5515   save_CFLAGS=$CFLAGS
5516      case -Wfloat-equal in #(
5517   -Wno-*) :
5518     CFLAGS="$CFLAGS `echo "-Wfloat-equal" | sed 's/-Wno-/-W/'`" ;; #(
5519   *) :
5520     CFLAGS="$CFLAGS -Wfloat-equal" ;; #(
5521   *) :
5522      ;;
5523 esac
5524      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h.  */
5526
5527 int
5528 main ()
5529 {
5530 int foo = 0;
5531   ;
5532   return 0;
5533 }
5534 _ACEOF
5535 if ac_fn_c_try_compile "$LINENO"; then :
5536   rra_cv_compiler_c__Wfloat_equal=yes
5537 else
5538   rra_cv_compiler_c__Wfloat_equal=no
5539 fi
5540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5541      CFLAGS=$save_CFLAGS
5542 fi
5543
5544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wfloat_equal" >&5
5545 $as_echo "$rra_cv_compiler_c__Wfloat_equal" >&6; }
5546  if test x"$rra_cv_compiler_c__Wfloat_equal" = xyes; then :
5547   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wfloat-equal"
5548 fi
5549  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5550 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5551  if ${rra_cv_compiler_c__Wdeclaration_after_statement+:} false; then :
5552   $as_echo_n "(cached) " >&6
5553 else
5554   save_CFLAGS=$CFLAGS
5555      case -Wdeclaration-after-statement in #(
5556   -Wno-*) :
5557     CFLAGS="$CFLAGS `echo "-Wdeclaration-after-statement" | sed 's/-Wno-/-W/'`" ;; #(
5558   *) :
5559     CFLAGS="$CFLAGS -Wdeclaration-after-statement" ;; #(
5560   *) :
5561      ;;
5562 esac
5563      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564 /* end confdefs.h.  */
5565
5566 int
5567 main ()
5568 {
5569 int foo = 0;
5570   ;
5571   return 0;
5572 }
5573 _ACEOF
5574 if ac_fn_c_try_compile "$LINENO"; then :
5575   rra_cv_compiler_c__Wdeclaration_after_statement=yes
5576 else
5577   rra_cv_compiler_c__Wdeclaration_after_statement=no
5578 fi
5579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580      CFLAGS=$save_CFLAGS
5581 fi
5582
5583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wdeclaration_after_statement" >&5
5584 $as_echo "$rra_cv_compiler_c__Wdeclaration_after_statement" >&6; }
5585  if test x"$rra_cv_compiler_c__Wdeclaration_after_statement" = xyes; then :
5586   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wdeclaration-after-statement"
5587 fi
5588  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
5589 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
5590  if ${rra_cv_compiler_c__Wshadow+:} false; then :
5591   $as_echo_n "(cached) " >&6
5592 else
5593   save_CFLAGS=$CFLAGS
5594      case -Wshadow in #(
5595   -Wno-*) :
5596     CFLAGS="$CFLAGS `echo "-Wshadow" | sed 's/-Wno-/-W/'`" ;; #(
5597   *) :
5598     CFLAGS="$CFLAGS -Wshadow" ;; #(
5599   *) :
5600      ;;
5601 esac
5602      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h.  */
5604
5605 int
5606 main ()
5607 {
5608 int foo = 0;
5609   ;
5610   return 0;
5611 }
5612 _ACEOF
5613 if ac_fn_c_try_compile "$LINENO"; then :
5614   rra_cv_compiler_c__Wshadow=yes
5615 else
5616   rra_cv_compiler_c__Wshadow=no
5617 fi
5618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5619      CFLAGS=$save_CFLAGS
5620 fi
5621
5622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wshadow" >&5
5623 $as_echo "$rra_cv_compiler_c__Wshadow" >&6; }
5624  if test x"$rra_cv_compiler_c__Wshadow" = xyes; then :
5625   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wshadow"
5626 fi
5627  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5628 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5629  if ${rra_cv_compiler_c__Wpointer_arith+:} false; then :
5630   $as_echo_n "(cached) " >&6
5631 else
5632   save_CFLAGS=$CFLAGS
5633      case -Wpointer-arith in #(
5634   -Wno-*) :
5635     CFLAGS="$CFLAGS `echo "-Wpointer-arith" | sed 's/-Wno-/-W/'`" ;; #(
5636   *) :
5637     CFLAGS="$CFLAGS -Wpointer-arith" ;; #(
5638   *) :
5639      ;;
5640 esac
5641      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642 /* end confdefs.h.  */
5643
5644 int
5645 main ()
5646 {
5647 int foo = 0;
5648   ;
5649   return 0;
5650 }
5651 _ACEOF
5652 if ac_fn_c_try_compile "$LINENO"; then :
5653   rra_cv_compiler_c__Wpointer_arith=yes
5654 else
5655   rra_cv_compiler_c__Wpointer_arith=no
5656 fi
5657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5658      CFLAGS=$save_CFLAGS
5659 fi
5660
5661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wpointer_arith" >&5
5662 $as_echo "$rra_cv_compiler_c__Wpointer_arith" >&6; }
5663  if test x"$rra_cv_compiler_c__Wpointer_arith" = xyes; then :
5664   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wpointer-arith"
5665 fi
5666  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5667 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5668  if ${rra_cv_compiler_c__Wbad_function_cast+:} false; then :
5669   $as_echo_n "(cached) " >&6
5670 else
5671   save_CFLAGS=$CFLAGS
5672      case -Wbad-function-cast in #(
5673   -Wno-*) :
5674     CFLAGS="$CFLAGS `echo "-Wbad-function-cast" | sed 's/-Wno-/-W/'`" ;; #(
5675   *) :
5676     CFLAGS="$CFLAGS -Wbad-function-cast" ;; #(
5677   *) :
5678      ;;
5679 esac
5680      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681 /* end confdefs.h.  */
5682
5683 int
5684 main ()
5685 {
5686 int foo = 0;
5687   ;
5688   return 0;
5689 }
5690 _ACEOF
5691 if ac_fn_c_try_compile "$LINENO"; then :
5692   rra_cv_compiler_c__Wbad_function_cast=yes
5693 else
5694   rra_cv_compiler_c__Wbad_function_cast=no
5695 fi
5696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697      CFLAGS=$save_CFLAGS
5698 fi
5699
5700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wbad_function_cast" >&5
5701 $as_echo "$rra_cv_compiler_c__Wbad_function_cast" >&6; }
5702  if test x"$rra_cv_compiler_c__Wbad_function_cast" = xyes; then :
5703   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wbad-function-cast"
5704 fi
5705  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-align" >&5
5706 $as_echo_n "checking if $CC supports -Wcast-align... " >&6; }
5707  if ${rra_cv_compiler_c__Wcast_align+:} false; then :
5708   $as_echo_n "(cached) " >&6
5709 else
5710   save_CFLAGS=$CFLAGS
5711      case -Wcast-align in #(
5712   -Wno-*) :
5713     CFLAGS="$CFLAGS `echo "-Wcast-align" | sed 's/-Wno-/-W/'`" ;; #(
5714   *) :
5715     CFLAGS="$CFLAGS -Wcast-align" ;; #(
5716   *) :
5717      ;;
5718 esac
5719      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5720 /* end confdefs.h.  */
5721
5722 int
5723 main ()
5724 {
5725 int foo = 0;
5726   ;
5727   return 0;
5728 }
5729 _ACEOF
5730 if ac_fn_c_try_compile "$LINENO"; then :
5731   rra_cv_compiler_c__Wcast_align=yes
5732 else
5733   rra_cv_compiler_c__Wcast_align=no
5734 fi
5735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5736      CFLAGS=$save_CFLAGS
5737 fi
5738
5739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wcast_align" >&5
5740 $as_echo "$rra_cv_compiler_c__Wcast_align" >&6; }
5741  if test x"$rra_cv_compiler_c__Wcast_align" = xyes; then :
5742   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wcast-align"
5743 fi
5744  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
5745 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
5746  if ${rra_cv_compiler_c__Wwrite_strings+:} false; then :
5747   $as_echo_n "(cached) " >&6
5748 else
5749   save_CFLAGS=$CFLAGS
5750      case -Wwrite-strings in #(
5751   -Wno-*) :
5752     CFLAGS="$CFLAGS `echo "-Wwrite-strings" | sed 's/-Wno-/-W/'`" ;; #(
5753   *) :
5754     CFLAGS="$CFLAGS -Wwrite-strings" ;; #(
5755   *) :
5756      ;;
5757 esac
5758      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h.  */
5760
5761 int
5762 main ()
5763 {
5764 int foo = 0;
5765   ;
5766   return 0;
5767 }
5768 _ACEOF
5769 if ac_fn_c_try_compile "$LINENO"; then :
5770   rra_cv_compiler_c__Wwrite_strings=yes
5771 else
5772   rra_cv_compiler_c__Wwrite_strings=no
5773 fi
5774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5775      CFLAGS=$save_CFLAGS
5776 fi
5777
5778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wwrite_strings" >&5
5779 $as_echo "$rra_cv_compiler_c__Wwrite_strings" >&6; }
5780  if test x"$rra_cv_compiler_c__Wwrite_strings" = xyes; then :
5781   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wwrite-strings"
5782 fi
5783  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdate-time" >&5
5784 $as_echo_n "checking if $CC supports -Wdate-time... " >&6; }
5785  if ${rra_cv_compiler_c__Wdate_time+:} false; then :
5786   $as_echo_n "(cached) " >&6
5787 else
5788   save_CFLAGS=$CFLAGS
5789      case -Wdate-time in #(
5790   -Wno-*) :
5791     CFLAGS="$CFLAGS `echo "-Wdate-time" | sed 's/-Wno-/-W/'`" ;; #(
5792   *) :
5793     CFLAGS="$CFLAGS -Wdate-time" ;; #(
5794   *) :
5795      ;;
5796 esac
5797      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798 /* end confdefs.h.  */
5799
5800 int
5801 main ()
5802 {
5803 int foo = 0;
5804   ;
5805   return 0;
5806 }
5807 _ACEOF
5808 if ac_fn_c_try_compile "$LINENO"; then :
5809   rra_cv_compiler_c__Wdate_time=yes
5810 else
5811   rra_cv_compiler_c__Wdate_time=no
5812 fi
5813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5814      CFLAGS=$save_CFLAGS
5815 fi
5816
5817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wdate_time" >&5
5818 $as_echo "$rra_cv_compiler_c__Wdate_time" >&6; }
5819  if test x"$rra_cv_compiler_c__Wdate_time" = xyes; then :
5820   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wdate-time"
5821 fi
5822  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wjump-misses-init" >&5
5823 $as_echo_n "checking if $CC supports -Wjump-misses-init... " >&6; }
5824  if ${rra_cv_compiler_c__Wjump_misses_init+:} false; then :
5825   $as_echo_n "(cached) " >&6
5826 else
5827   save_CFLAGS=$CFLAGS
5828      case -Wjump-misses-init in #(
5829   -Wno-*) :
5830     CFLAGS="$CFLAGS `echo "-Wjump-misses-init" | sed 's/-Wno-/-W/'`" ;; #(
5831   *) :
5832     CFLAGS="$CFLAGS -Wjump-misses-init" ;; #(
5833   *) :
5834      ;;
5835 esac
5836      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837 /* end confdefs.h.  */
5838
5839 int
5840 main ()
5841 {
5842 int foo = 0;
5843   ;
5844   return 0;
5845 }
5846 _ACEOF
5847 if ac_fn_c_try_compile "$LINENO"; then :
5848   rra_cv_compiler_c__Wjump_misses_init=yes
5849 else
5850   rra_cv_compiler_c__Wjump_misses_init=no
5851 fi
5852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853      CFLAGS=$save_CFLAGS
5854 fi
5855
5856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wjump_misses_init" >&5
5857 $as_echo "$rra_cv_compiler_c__Wjump_misses_init" >&6; }
5858  if test x"$rra_cv_compiler_c__Wjump_misses_init" = xyes; then :
5859   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wjump-misses-init"
5860 fi
5861  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wfloat-conversion" >&5
5862 $as_echo_n "checking if $CC supports -Wfloat-conversion... " >&6; }
5863  if ${rra_cv_compiler_c__Wfloat_conversion+:} false; then :
5864   $as_echo_n "(cached) " >&6
5865 else
5866   save_CFLAGS=$CFLAGS
5867      case -Wfloat-conversion in #(
5868   -Wno-*) :
5869     CFLAGS="$CFLAGS `echo "-Wfloat-conversion" | sed 's/-Wno-/-W/'`" ;; #(
5870   *) :
5871     CFLAGS="$CFLAGS -Wfloat-conversion" ;; #(
5872   *) :
5873      ;;
5874 esac
5875      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5876 /* end confdefs.h.  */
5877
5878 int
5879 main ()
5880 {
5881 int foo = 0;
5882   ;
5883   return 0;
5884 }
5885 _ACEOF
5886 if ac_fn_c_try_compile "$LINENO"; then :
5887   rra_cv_compiler_c__Wfloat_conversion=yes
5888 else
5889   rra_cv_compiler_c__Wfloat_conversion=no
5890 fi
5891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892      CFLAGS=$save_CFLAGS
5893 fi
5894
5895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wfloat_conversion" >&5
5896 $as_echo "$rra_cv_compiler_c__Wfloat_conversion" >&6; }
5897  if test x"$rra_cv_compiler_c__Wfloat_conversion" = xyes; then :
5898   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wfloat-conversion"
5899 fi
5900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
5901 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
5902  if ${rra_cv_compiler_c__Wlogical_op+:} false; then :
5903   $as_echo_n "(cached) " >&6
5904 else
5905   save_CFLAGS=$CFLAGS
5906      case -Wlogical-op in #(
5907   -Wno-*) :
5908     CFLAGS="$CFLAGS `echo "-Wlogical-op" | sed 's/-Wno-/-W/'`" ;; #(
5909   *) :
5910     CFLAGS="$CFLAGS -Wlogical-op" ;; #(
5911   *) :
5912      ;;
5913 esac
5914      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h.  */
5916
5917 int
5918 main ()
5919 {
5920 int foo = 0;
5921   ;
5922   return 0;
5923 }
5924 _ACEOF
5925 if ac_fn_c_try_compile "$LINENO"; then :
5926   rra_cv_compiler_c__Wlogical_op=yes
5927 else
5928   rra_cv_compiler_c__Wlogical_op=no
5929 fi
5930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5931      CFLAGS=$save_CFLAGS
5932 fi
5933
5934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wlogical_op" >&5
5935 $as_echo "$rra_cv_compiler_c__Wlogical_op" >&6; }
5936  if test x"$rra_cv_compiler_c__Wlogical_op" = xyes; then :
5937   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wlogical-op"
5938 fi
5939  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5940 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5941  if ${rra_cv_compiler_c__Wstrict_prototypes+:} false; then :
5942   $as_echo_n "(cached) " >&6
5943 else
5944   save_CFLAGS=$CFLAGS
5945      case -Wstrict-prototypes in #(
5946   -Wno-*) :
5947     CFLAGS="$CFLAGS `echo "-Wstrict-prototypes" | sed 's/-Wno-/-W/'`" ;; #(
5948   *) :
5949     CFLAGS="$CFLAGS -Wstrict-prototypes" ;; #(
5950   *) :
5951      ;;
5952 esac
5953      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954 /* end confdefs.h.  */
5955
5956 int
5957 main ()
5958 {
5959 int foo = 0;
5960   ;
5961   return 0;
5962 }
5963 _ACEOF
5964 if ac_fn_c_try_compile "$LINENO"; then :
5965   rra_cv_compiler_c__Wstrict_prototypes=yes
5966 else
5967   rra_cv_compiler_c__Wstrict_prototypes=no
5968 fi
5969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970      CFLAGS=$save_CFLAGS
5971 fi
5972
5973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wstrict_prototypes" >&5
5974 $as_echo "$rra_cv_compiler_c__Wstrict_prototypes" >&6; }
5975  if test x"$rra_cv_compiler_c__Wstrict_prototypes" = xyes; then :
5976   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wstrict-prototypes"
5977 fi
5978  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5979 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5980  if ${rra_cv_compiler_c__Wold_style_definition+:} false; then :
5981   $as_echo_n "(cached) " >&6
5982 else
5983   save_CFLAGS=$CFLAGS
5984      case -Wold-style-definition in #(
5985   -Wno-*) :
5986     CFLAGS="$CFLAGS `echo "-Wold-style-definition" | sed 's/-Wno-/-W/'`" ;; #(
5987   *) :
5988     CFLAGS="$CFLAGS -Wold-style-definition" ;; #(
5989   *) :
5990      ;;
5991 esac
5992      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h.  */
5994
5995 int
5996 main ()
5997 {
5998 int foo = 0;
5999   ;
6000   return 0;
6001 }
6002 _ACEOF
6003 if ac_fn_c_try_compile "$LINENO"; then :
6004   rra_cv_compiler_c__Wold_style_definition=yes
6005 else
6006   rra_cv_compiler_c__Wold_style_definition=no
6007 fi
6008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6009      CFLAGS=$save_CFLAGS
6010 fi
6011
6012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wold_style_definition" >&5
6013 $as_echo "$rra_cv_compiler_c__Wold_style_definition" >&6; }
6014  if test x"$rra_cv_compiler_c__Wold_style_definition" = xyes; then :
6015   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wold-style-definition"
6016 fi
6017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
6018 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
6019  if ${rra_cv_compiler_c__Wmissing_prototypes+:} false; then :
6020   $as_echo_n "(cached) " >&6
6021 else
6022   save_CFLAGS=$CFLAGS
6023      case -Wmissing-prototypes in #(
6024   -Wno-*) :
6025     CFLAGS="$CFLAGS `echo "-Wmissing-prototypes" | sed 's/-Wno-/-W/'`" ;; #(
6026   *) :
6027     CFLAGS="$CFLAGS -Wmissing-prototypes" ;; #(
6028   *) :
6029      ;;
6030 esac
6031      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h.  */
6033
6034 int
6035 main ()
6036 {
6037 int foo = 0;
6038   ;
6039   return 0;
6040 }
6041 _ACEOF
6042 if ac_fn_c_try_compile "$LINENO"; then :
6043   rra_cv_compiler_c__Wmissing_prototypes=yes
6044 else
6045   rra_cv_compiler_c__Wmissing_prototypes=no
6046 fi
6047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6048      CFLAGS=$save_CFLAGS
6049 fi
6050
6051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wmissing_prototypes" >&5
6052 $as_echo "$rra_cv_compiler_c__Wmissing_prototypes" >&6; }
6053  if test x"$rra_cv_compiler_c__Wmissing_prototypes" = xyes; then :
6054   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wmissing-prototypes"
6055 fi
6056  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnormalized=nfc" >&5
6057 $as_echo_n "checking if $CC supports -Wnormalized=nfc... " >&6; }
6058  if ${rra_cv_compiler_c__Wnormalized_nfc+:} false; then :
6059   $as_echo_n "(cached) " >&6
6060 else
6061   save_CFLAGS=$CFLAGS
6062      case -Wnormalized=nfc in #(
6063   -Wno-*) :
6064     CFLAGS="$CFLAGS `echo "-Wnormalized=nfc" | sed 's/-Wno-/-W/'`" ;; #(
6065   *) :
6066     CFLAGS="$CFLAGS -Wnormalized=nfc" ;; #(
6067   *) :
6068      ;;
6069 esac
6070      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071 /* end confdefs.h.  */
6072
6073 int
6074 main ()
6075 {
6076 int foo = 0;
6077   ;
6078   return 0;
6079 }
6080 _ACEOF
6081 if ac_fn_c_try_compile "$LINENO"; then :
6082   rra_cv_compiler_c__Wnormalized_nfc=yes
6083 else
6084   rra_cv_compiler_c__Wnormalized_nfc=no
6085 fi
6086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6087      CFLAGS=$save_CFLAGS
6088 fi
6089
6090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wnormalized_nfc" >&5
6091 $as_echo "$rra_cv_compiler_c__Wnormalized_nfc" >&6; }
6092  if test x"$rra_cv_compiler_c__Wnormalized_nfc" = xyes; then :
6093   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wnormalized=nfc"
6094 fi
6095  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpacked" >&5
6096 $as_echo_n "checking if $CC supports -Wpacked... " >&6; }
6097  if ${rra_cv_compiler_c__Wpacked+:} false; then :
6098   $as_echo_n "(cached) " >&6
6099 else
6100   save_CFLAGS=$CFLAGS
6101      case -Wpacked in #(
6102   -Wno-*) :
6103     CFLAGS="$CFLAGS `echo "-Wpacked" | sed 's/-Wno-/-W/'`" ;; #(
6104   *) :
6105     CFLAGS="$CFLAGS -Wpacked" ;; #(
6106   *) :
6107      ;;
6108 esac
6109      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110 /* end confdefs.h.  */
6111
6112 int
6113 main ()
6114 {
6115 int foo = 0;
6116   ;
6117   return 0;
6118 }
6119 _ACEOF
6120 if ac_fn_c_try_compile "$LINENO"; then :
6121   rra_cv_compiler_c__Wpacked=yes
6122 else
6123   rra_cv_compiler_c__Wpacked=no
6124 fi
6125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126      CFLAGS=$save_CFLAGS
6127 fi
6128
6129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wpacked" >&5
6130 $as_echo "$rra_cv_compiler_c__Wpacked" >&6; }
6131  if test x"$rra_cv_compiler_c__Wpacked" = xyes; then :
6132   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wpacked"
6133 fi
6134  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6135 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6136  if ${rra_cv_compiler_c__Wredundant_decls+:} false; then :
6137   $as_echo_n "(cached) " >&6
6138 else
6139   save_CFLAGS=$CFLAGS
6140      case -Wredundant-decls in #(
6141   -Wno-*) :
6142     CFLAGS="$CFLAGS `echo "-Wredundant-decls" | sed 's/-Wno-/-W/'`" ;; #(
6143   *) :
6144     CFLAGS="$CFLAGS -Wredundant-decls" ;; #(
6145   *) :
6146      ;;
6147 esac
6148      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6149 /* end confdefs.h.  */
6150
6151 int
6152 main ()
6153 {
6154 int foo = 0;
6155   ;
6156   return 0;
6157 }
6158 _ACEOF
6159 if ac_fn_c_try_compile "$LINENO"; then :
6160   rra_cv_compiler_c__Wredundant_decls=yes
6161 else
6162   rra_cv_compiler_c__Wredundant_decls=no
6163 fi
6164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165      CFLAGS=$save_CFLAGS
6166 fi
6167
6168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wredundant_decls" >&5
6169 $as_echo "$rra_cv_compiler_c__Wredundant_decls" >&6; }
6170  if test x"$rra_cv_compiler_c__Wredundant_decls" = xyes; then :
6171   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wredundant-decls"
6172 fi
6173  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6174 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
6175  if ${rra_cv_compiler_c__Wnested_externs+:} false; then :
6176   $as_echo_n "(cached) " >&6
6177 else
6178   save_CFLAGS=$CFLAGS
6179      case -Wnested-externs in #(
6180   -Wno-*) :
6181     CFLAGS="$CFLAGS `echo "-Wnested-externs" | sed 's/-Wno-/-W/'`" ;; #(
6182   *) :
6183     CFLAGS="$CFLAGS -Wnested-externs" ;; #(
6184   *) :
6185      ;;
6186 esac
6187      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h.  */
6189
6190 int
6191 main ()
6192 {
6193 int foo = 0;
6194   ;
6195   return 0;
6196 }
6197 _ACEOF
6198 if ac_fn_c_try_compile "$LINENO"; then :
6199   rra_cv_compiler_c__Wnested_externs=yes
6200 else
6201   rra_cv_compiler_c__Wnested_externs=no
6202 fi
6203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6204      CFLAGS=$save_CFLAGS
6205 fi
6206
6207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wnested_externs" >&5
6208 $as_echo "$rra_cv_compiler_c__Wnested_externs" >&6; }
6209  if test x"$rra_cv_compiler_c__Wnested_externs" = xyes; then :
6210   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wnested-externs"
6211 fi
6212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winline" >&5
6213 $as_echo_n "checking if $CC supports -Winline... " >&6; }
6214  if ${rra_cv_compiler_c__Winline+:} false; then :
6215   $as_echo_n "(cached) " >&6
6216 else
6217   save_CFLAGS=$CFLAGS
6218      case -Winline in #(
6219   -Wno-*) :
6220     CFLAGS="$CFLAGS `echo "-Winline" | sed 's/-Wno-/-W/'`" ;; #(
6221   *) :
6222     CFLAGS="$CFLAGS -Winline" ;; #(
6223   *) :
6224      ;;
6225 esac
6226      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227 /* end confdefs.h.  */
6228
6229 int
6230 main ()
6231 {
6232 int foo = 0;
6233   ;
6234   return 0;
6235 }
6236 _ACEOF
6237 if ac_fn_c_try_compile "$LINENO"; then :
6238   rra_cv_compiler_c__Winline=yes
6239 else
6240   rra_cv_compiler_c__Winline=no
6241 fi
6242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6243      CFLAGS=$save_CFLAGS
6244 fi
6245
6246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Winline" >&5
6247 $as_echo "$rra_cv_compiler_c__Winline" >&6; }
6248  if test x"$rra_cv_compiler_c__Winline" = xyes; then :
6249   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Winline"
6250 fi
6251  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wvla" >&5
6252 $as_echo_n "checking if $CC supports -Wvla... " >&6; }
6253  if ${rra_cv_compiler_c__Wvla+:} false; then :
6254   $as_echo_n "(cached) " >&6
6255 else
6256   save_CFLAGS=$CFLAGS
6257      case -Wvla in #(
6258   -Wno-*) :
6259     CFLAGS="$CFLAGS `echo "-Wvla" | sed 's/-Wno-/-W/'`" ;; #(
6260   *) :
6261     CFLAGS="$CFLAGS -Wvla" ;; #(
6262   *) :
6263      ;;
6264 esac
6265      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6266 /* end confdefs.h.  */
6267
6268 int
6269 main ()
6270 {
6271 int foo = 0;
6272   ;
6273   return 0;
6274 }
6275 _ACEOF
6276 if ac_fn_c_try_compile "$LINENO"; then :
6277   rra_cv_compiler_c__Wvla=yes
6278 else
6279   rra_cv_compiler_c__Wvla=no
6280 fi
6281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282      CFLAGS=$save_CFLAGS
6283 fi
6284
6285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wvla" >&5
6286 $as_echo "$rra_cv_compiler_c__Wvla" >&6; }
6287  if test x"$rra_cv_compiler_c__Wvla" = xyes; then :
6288   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wvla"
6289 fi
6290 fi
6291
6292 # Check whether --enable-largefile was given.
6293 if test "${enable_largefile+set}" = set; then :
6294   enableval=$enable_largefile;
6295 fi
6296
6297 if test "$enable_largefile" != no; then
6298
6299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6300 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6301 if ${ac_cv_sys_largefile_CC+:} false; then :
6302   $as_echo_n "(cached) " >&6
6303 else
6304   ac_cv_sys_largefile_CC=no
6305      if test "$GCC" != yes; then
6306        ac_save_CC=$CC
6307        while :; do
6308          # IRIX 6.2 and later do not support large files by default,
6309          # so use the C compiler's -n32 option if that helps.
6310          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6311 /* end confdefs.h.  */
6312 #include <sys/types.h>
6313  /* Check that off_t can represent 2**63 - 1 correctly.
6314     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6315     since some C++ compilers masquerading as C compilers
6316     incorrectly reject 9223372036854775807.  */
6317 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6318   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6319                        && LARGE_OFF_T % 2147483647 == 1)
6320                       ? 1 : -1];
6321 int
6322 main ()
6323 {
6324
6325   ;
6326   return 0;
6327 }
6328 _ACEOF
6329          if ac_fn_c_try_compile "$LINENO"; then :
6330   break
6331 fi
6332 rm -f core conftest.err conftest.$ac_objext
6333          CC="$CC -n32"
6334          if ac_fn_c_try_compile "$LINENO"; then :
6335   ac_cv_sys_largefile_CC=' -n32'; break
6336 fi
6337 rm -f core conftest.err conftest.$ac_objext
6338          break
6339        done
6340        CC=$ac_save_CC
6341        rm -f conftest.$ac_ext
6342     fi
6343 fi
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6345 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6346   if test "$ac_cv_sys_largefile_CC" != no; then
6347     CC=$CC$ac_cv_sys_largefile_CC
6348   fi
6349
6350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6351 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6352 if ${ac_cv_sys_file_offset_bits+:} false; then :
6353   $as_echo_n "(cached) " >&6
6354 else
6355   while :; do
6356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h.  */
6358 #include <sys/types.h>
6359  /* Check that off_t can represent 2**63 - 1 correctly.
6360     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6361     since some C++ compilers masquerading as C compilers
6362     incorrectly reject 9223372036854775807.  */
6363 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6364   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6365                        && LARGE_OFF_T % 2147483647 == 1)
6366                       ? 1 : -1];
6367 int
6368 main ()
6369 {
6370
6371   ;
6372   return 0;
6373 }
6374 _ACEOF
6375 if ac_fn_c_try_compile "$LINENO"; then :
6376   ac_cv_sys_file_offset_bits=no; break
6377 fi
6378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6380 /* end confdefs.h.  */
6381 #define _FILE_OFFSET_BITS 64
6382 #include <sys/types.h>
6383  /* Check that off_t can represent 2**63 - 1 correctly.
6384     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6385     since some C++ compilers masquerading as C compilers
6386     incorrectly reject 9223372036854775807.  */
6387 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6388   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6389                        && LARGE_OFF_T % 2147483647 == 1)
6390                       ? 1 : -1];
6391 int
6392 main ()
6393 {
6394
6395   ;
6396   return 0;
6397 }
6398 _ACEOF
6399 if ac_fn_c_try_compile "$LINENO"; then :
6400   ac_cv_sys_file_offset_bits=64; break
6401 fi
6402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403   ac_cv_sys_file_offset_bits=unknown
6404   break
6405 done
6406 fi
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6408 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6409 case $ac_cv_sys_file_offset_bits in #(
6410   no | unknown) ;;
6411   *)
6412 cat >>confdefs.h <<_ACEOF
6413 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6414 _ACEOF
6415 ;;
6416 esac
6417 rm -rf conftest*
6418   if test $ac_cv_sys_file_offset_bits = unknown; then
6419     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6420 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6421 if ${ac_cv_sys_large_files+:} false; then :
6422   $as_echo_n "(cached) " >&6
6423 else
6424   while :; do
6425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6426 /* end confdefs.h.  */
6427 #include <sys/types.h>
6428  /* Check that off_t can represent 2**63 - 1 correctly.
6429     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6430     since some C++ compilers masquerading as C compilers
6431     incorrectly reject 9223372036854775807.  */
6432 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6433   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6434                        && LARGE_OFF_T % 2147483647 == 1)
6435                       ? 1 : -1];
6436 int
6437 main ()
6438 {
6439
6440   ;
6441   return 0;
6442 }
6443 _ACEOF
6444 if ac_fn_c_try_compile "$LINENO"; then :
6445   ac_cv_sys_large_files=no; break
6446 fi
6447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6449 /* end confdefs.h.  */
6450 #define _LARGE_FILES 1
6451 #include <sys/types.h>
6452  /* Check that off_t can represent 2**63 - 1 correctly.
6453     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6454     since some C++ compilers masquerading as C compilers
6455     incorrectly reject 9223372036854775807.  */
6456 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6457   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6458                        && LARGE_OFF_T % 2147483647 == 1)
6459                       ? 1 : -1];
6460 int
6461 main ()
6462 {
6463
6464   ;
6465   return 0;
6466 }
6467 _ACEOF
6468 if ac_fn_c_try_compile "$LINENO"; then :
6469   ac_cv_sys_large_files=1; break
6470 fi
6471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6472   ac_cv_sys_large_files=unknown
6473   break
6474 done
6475 fi
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6477 $as_echo "$ac_cv_sys_large_files" >&6; }
6478 case $ac_cv_sys_large_files in #(
6479   no | unknown) ;;
6480   *)
6481 cat >>confdefs.h <<_ACEOF
6482 #define _LARGE_FILES $ac_cv_sys_large_files
6483 _ACEOF
6484 ;;
6485 esac
6486 rm -rf conftest*
6487   fi
6488
6489
6490 fi
6491
6492
6493 if test -n "$ac_tool_prefix"; then
6494   for ac_prog in ar lib "link -lib"
6495   do
6496     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6497 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499 $as_echo_n "checking for $ac_word... " >&6; }
6500 if ${ac_cv_prog_AR+:} false; then :
6501   $as_echo_n "(cached) " >&6
6502 else
6503   if test -n "$AR"; then
6504   ac_cv_prog_AR="$AR" # Let the user override the test.
6505 else
6506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507 for as_dir in $PATH
6508 do
6509   IFS=$as_save_IFS
6510   test -z "$as_dir" && as_dir=.
6511     for ac_exec_ext in '' $ac_executable_extensions; do
6512   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6513     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6515     break 2
6516   fi
6517 done
6518   done
6519 IFS=$as_save_IFS
6520
6521 fi
6522 fi
6523 AR=$ac_cv_prog_AR
6524 if test -n "$AR"; then
6525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6526 $as_echo "$AR" >&6; }
6527 else
6528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6529 $as_echo "no" >&6; }
6530 fi
6531
6532
6533     test -n "$AR" && break
6534   done
6535 fi
6536 if test -z "$AR"; then
6537   ac_ct_AR=$AR
6538   for ac_prog in ar lib "link -lib"
6539 do
6540   # Extract the first word of "$ac_prog", so it can be a program name with args.
6541 set dummy $ac_prog; ac_word=$2
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6543 $as_echo_n "checking for $ac_word... " >&6; }
6544 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6545   $as_echo_n "(cached) " >&6
6546 else
6547   if test -n "$ac_ct_AR"; then
6548   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6549 else
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $PATH
6552 do
6553   IFS=$as_save_IFS
6554   test -z "$as_dir" && as_dir=.
6555     for ac_exec_ext in '' $ac_executable_extensions; do
6556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6557     ac_cv_prog_ac_ct_AR="$ac_prog"
6558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6559     break 2
6560   fi
6561 done
6562   done
6563 IFS=$as_save_IFS
6564
6565 fi
6566 fi
6567 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6568 if test -n "$ac_ct_AR"; then
6569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6570 $as_echo "$ac_ct_AR" >&6; }
6571 else
6572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6573 $as_echo "no" >&6; }
6574 fi
6575
6576
6577   test -n "$ac_ct_AR" && break
6578 done
6579
6580   if test "x$ac_ct_AR" = x; then
6581     AR="false"
6582   else
6583     case $cross_compiling:$ac_tool_warned in
6584 yes:)
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6587 ac_tool_warned=yes ;;
6588 esac
6589     AR=$ac_ct_AR
6590   fi
6591 fi
6592
6593 : ${AR=ar}
6594
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6596 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
6597 if ${am_cv_ar_interface+:} false; then :
6598   $as_echo_n "(cached) " >&6
6599 else
6600   ac_ext=c
6601 ac_cpp='$CPP $CPPFLAGS'
6602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6605
6606    am_cv_ar_interface=ar
6607    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 /* end confdefs.h.  */
6609 int some_variable = 0;
6610 _ACEOF
6611 if ac_fn_c_try_compile "$LINENO"; then :
6612   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6613       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6614   (eval $am_ar_try) 2>&5
6615   ac_status=$?
6616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6617   test $ac_status = 0; }
6618       if test "$ac_status" -eq 0; then
6619         am_cv_ar_interface=ar
6620       else
6621         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6622         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6623   (eval $am_ar_try) 2>&5
6624   ac_status=$?
6625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6626   test $ac_status = 0; }
6627         if test "$ac_status" -eq 0; then
6628           am_cv_ar_interface=lib
6629         else
6630           am_cv_ar_interface=unknown
6631         fi
6632       fi
6633       rm -f conftest.lib libconftest.a
6634
6635 fi
6636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6637    ac_ext=c
6638 ac_cpp='$CPP $CPPFLAGS'
6639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6642
6643 fi
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6645 $as_echo "$am_cv_ar_interface" >&6; }
6646
6647 case $am_cv_ar_interface in
6648 ar)
6649   ;;
6650 lib)
6651   # Microsoft lib, so override with the ar-lib wrapper script.
6652   # FIXME: It is wrong to rewrite AR.
6653   # But if we don't then we get into trouble of one sort or another.
6654   # A longer-term fix would be to have automake use am__AR in this case,
6655   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6656   # similar.
6657   AR="$am_aux_dir/ar-lib $AR"
6658   ;;
6659 unknown)
6660   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6661   ;;
6662 esac
6663
6664
6665 # Check whether --enable-static was given.
6666 if test "${enable_static+set}" = set; then :
6667   enableval=$enable_static; p=${PACKAGE-default}
6668     case $enableval in
6669     yes) enable_static=yes ;;
6670     no) enable_static=no ;;
6671     *)
6672      enable_static=no
6673       # Look at the argument we got.  We use all the common list separators.
6674       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
6675       for pkg in $enableval; do
6676         IFS=$lt_save_ifs
6677         if test "X$pkg" = "X$p"; then
6678           enable_static=yes
6679         fi
6680       done
6681       IFS=$lt_save_ifs
6682       ;;
6683     esac
6684 else
6685   enable_static=no
6686 fi
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696 case `pwd` in
6697   *\ * | *\     *)
6698     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6699 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6700 esac
6701
6702
6703
6704 macro_version='2.4.6'
6705 macro_revision='2.4.6'
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719 ltmain=$ac_aux_dir/ltmain.sh
6720
6721 # Make sure we can run config.sub.
6722 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6723   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6724
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6726 $as_echo_n "checking build system type... " >&6; }
6727 if ${ac_cv_build+:} false; then :
6728   $as_echo_n "(cached) " >&6
6729 else
6730   ac_build_alias=$build_alias
6731 test "x$ac_build_alias" = x &&
6732   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6733 test "x$ac_build_alias" = x &&
6734   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6735 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6736   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6737
6738 fi
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6740 $as_echo "$ac_cv_build" >&6; }
6741 case $ac_cv_build in
6742 *-*-*) ;;
6743 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6744 esac
6745 build=$ac_cv_build
6746 ac_save_IFS=$IFS; IFS='-'
6747 set x $ac_cv_build
6748 shift
6749 build_cpu=$1
6750 build_vendor=$2
6751 shift; shift
6752 # Remember, the first character of IFS is used to create $*,
6753 # except with old shells:
6754 build_os=$*
6755 IFS=$ac_save_IFS
6756 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6757
6758
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6760 $as_echo_n "checking host system type... " >&6; }
6761 if ${ac_cv_host+:} false; then :
6762   $as_echo_n "(cached) " >&6
6763 else
6764   if test "x$host_alias" = x; then
6765   ac_cv_host=$ac_cv_build
6766 else
6767   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6768     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6769 fi
6770
6771 fi
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6773 $as_echo "$ac_cv_host" >&6; }
6774 case $ac_cv_host in
6775 *-*-*) ;;
6776 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6777 esac
6778 host=$ac_cv_host
6779 ac_save_IFS=$IFS; IFS='-'
6780 set x $ac_cv_host
6781 shift
6782 host_cpu=$1
6783 host_vendor=$2
6784 shift; shift
6785 # Remember, the first character of IFS is used to create $*,
6786 # except with old shells:
6787 host_os=$*
6788 IFS=$ac_save_IFS
6789 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6790
6791
6792 # Backslashify metacharacters that are still active within
6793 # double-quoted strings.
6794 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6795
6796 # Same as above, but do not quote variable references.
6797 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6798
6799 # Sed substitution to delay expansion of an escaped shell variable in a
6800 # double_quote_subst'ed string.
6801 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6802
6803 # Sed substitution to delay expansion of an escaped single quote.
6804 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6805
6806 # Sed substitution to avoid accidental globbing in evaled expressions
6807 no_glob_subst='s/\*/\\\*/g'
6808
6809 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6810 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6811 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6812
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6814 $as_echo_n "checking how to print strings... " >&6; }
6815 # Test print first, because it will be a builtin if present.
6816 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6817    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6818   ECHO='print -r --'
6819 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6820   ECHO='printf %s\n'
6821 else
6822   # Use this function as a fallback that always works.
6823   func_fallback_echo ()
6824   {
6825     eval 'cat <<_LTECHO_EOF
6826 $1
6827 _LTECHO_EOF'
6828   }
6829   ECHO='func_fallback_echo'
6830 fi
6831
6832 # func_echo_all arg...
6833 # Invoke $ECHO with all args, space-separated.
6834 func_echo_all ()
6835 {
6836     $ECHO ""
6837 }
6838
6839 case $ECHO in
6840   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6841 $as_echo "printf" >&6; } ;;
6842   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6843 $as_echo "print -r" >&6; } ;;
6844   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6845 $as_echo "cat" >&6; } ;;
6846 esac
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6862 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6863 if ${ac_cv_path_SED+:} false; then :
6864   $as_echo_n "(cached) " >&6
6865 else
6866             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6867      for ac_i in 1 2 3 4 5 6 7; do
6868        ac_script="$ac_script$as_nl$ac_script"
6869      done
6870      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6871      { ac_script=; unset ac_script;}
6872      if test -z "$SED"; then
6873   ac_path_SED_found=false
6874   # Loop through the user's path and test for each of PROGNAME-LIST
6875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH
6877 do
6878   IFS=$as_save_IFS
6879   test -z "$as_dir" && as_dir=.
6880     for ac_prog in sed gsed; do
6881     for ac_exec_ext in '' $ac_executable_extensions; do
6882       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6883       as_fn_executable_p "$ac_path_SED" || continue
6884 # Check for GNU ac_path_SED and select it if it is found.
6885   # Check for GNU $ac_path_SED
6886 case `"$ac_path_SED" --version 2>&1` in
6887 *GNU*)
6888   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6889 *)
6890   ac_count=0
6891   $as_echo_n 0123456789 >"conftest.in"
6892   while :
6893   do
6894     cat "conftest.in" "conftest.in" >"conftest.tmp"
6895     mv "conftest.tmp" "conftest.in"
6896     cp "conftest.in" "conftest.nl"
6897     $as_echo '' >> "conftest.nl"
6898     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6899     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6900     as_fn_arith $ac_count + 1 && ac_count=$as_val
6901     if test $ac_count -gt ${ac_path_SED_max-0}; then
6902       # Best one so far, save it but keep looking for a better one
6903       ac_cv_path_SED="$ac_path_SED"
6904       ac_path_SED_max=$ac_count
6905     fi
6906     # 10*(2^10) chars as input seems more than enough
6907     test $ac_count -gt 10 && break
6908   done
6909   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6910 esac
6911
6912       $ac_path_SED_found && break 3
6913     done
6914   done
6915   done
6916 IFS=$as_save_IFS
6917   if test -z "$ac_cv_path_SED"; then
6918     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6919   fi
6920 else
6921   ac_cv_path_SED=$SED
6922 fi
6923
6924 fi
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6926 $as_echo "$ac_cv_path_SED" >&6; }
6927  SED="$ac_cv_path_SED"
6928   rm -f conftest.sed
6929
6930 test -z "$SED" && SED=sed
6931 Xsed="$SED -e 1s/^X//"
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6944 $as_echo_n "checking for fgrep... " >&6; }
6945 if ${ac_cv_path_FGREP+:} false; then :
6946   $as_echo_n "(cached) " >&6
6947 else
6948   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6949    then ac_cv_path_FGREP="$GREP -F"
6950    else
6951      if test -z "$FGREP"; then
6952   ac_path_FGREP_found=false
6953   # Loop through the user's path and test for each of PROGNAME-LIST
6954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6956 do
6957   IFS=$as_save_IFS
6958   test -z "$as_dir" && as_dir=.
6959     for ac_prog in fgrep; do
6960     for ac_exec_ext in '' $ac_executable_extensions; do
6961       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6962       as_fn_executable_p "$ac_path_FGREP" || continue
6963 # Check for GNU ac_path_FGREP and select it if it is found.
6964   # Check for GNU $ac_path_FGREP
6965 case `"$ac_path_FGREP" --version 2>&1` in
6966 *GNU*)
6967   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6968 *)
6969   ac_count=0
6970   $as_echo_n 0123456789 >"conftest.in"
6971   while :
6972   do
6973     cat "conftest.in" "conftest.in" >"conftest.tmp"
6974     mv "conftest.tmp" "conftest.in"
6975     cp "conftest.in" "conftest.nl"
6976     $as_echo 'FGREP' >> "conftest.nl"
6977     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6978     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6979     as_fn_arith $ac_count + 1 && ac_count=$as_val
6980     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6981       # Best one so far, save it but keep looking for a better one
6982       ac_cv_path_FGREP="$ac_path_FGREP"
6983       ac_path_FGREP_max=$ac_count
6984     fi
6985     # 10*(2^10) chars as input seems more than enough
6986     test $ac_count -gt 10 && break
6987   done
6988   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6989 esac
6990
6991       $ac_path_FGREP_found && break 3
6992     done
6993   done
6994   done
6995 IFS=$as_save_IFS
6996   if test -z "$ac_cv_path_FGREP"; then
6997     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6998   fi
6999 else
7000   ac_cv_path_FGREP=$FGREP
7001 fi
7002
7003    fi
7004 fi
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7006 $as_echo "$ac_cv_path_FGREP" >&6; }
7007  FGREP="$ac_cv_path_FGREP"
7008
7009
7010 test -z "$GREP" && GREP=grep
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030 # Check whether --with-gnu-ld was given.
7031 if test "${with_gnu_ld+set}" = set; then :
7032   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7033 else
7034   with_gnu_ld=no
7035 fi
7036
7037 ac_prog=ld
7038 if test yes = "$GCC"; then
7039   # Check if gcc -print-prog-name=ld gives a path.
7040   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7041 $as_echo_n "checking for ld used by $CC... " >&6; }
7042   case $host in
7043   *-*-mingw*)
7044     # gcc leaves a trailing carriage return, which upsets mingw
7045     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7046   *)
7047     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7048   esac
7049   case $ac_prog in
7050     # Accept absolute paths.
7051     [\\/]* | ?:[\\/]*)
7052       re_direlt='/[^/][^/]*/\.\./'
7053       # Canonicalize the pathname of ld
7054       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7055       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7056         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7057       done
7058       test -z "$LD" && LD=$ac_prog
7059       ;;
7060   "")
7061     # If it fails, then pretend we aren't using GCC.
7062     ac_prog=ld
7063     ;;
7064   *)
7065     # If it is relative, then search for the first ld in PATH.
7066     with_gnu_ld=unknown
7067     ;;
7068   esac
7069 elif test yes = "$with_gnu_ld"; then
7070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7071 $as_echo_n "checking for GNU ld... " >&6; }
7072 else
7073   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7074 $as_echo_n "checking for non-GNU ld... " >&6; }
7075 fi
7076 if ${lt_cv_path_LD+:} false; then :
7077   $as_echo_n "(cached) " >&6
7078 else
7079   if test -z "$LD"; then
7080   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7081   for ac_dir in $PATH; do
7082     IFS=$lt_save_ifs
7083     test -z "$ac_dir" && ac_dir=.
7084     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7085       lt_cv_path_LD=$ac_dir/$ac_prog
7086       # Check to see if the program is GNU ld.  I'd rather use --version,
7087       # but apparently some variants of GNU ld only accept -v.
7088       # Break only if it was the GNU/non-GNU ld that we prefer.
7089       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7090       *GNU* | *'with BFD'*)
7091         test no != "$with_gnu_ld" && break
7092         ;;
7093       *)
7094         test yes != "$with_gnu_ld" && break
7095         ;;
7096       esac
7097     fi
7098   done
7099   IFS=$lt_save_ifs
7100 else
7101   lt_cv_path_LD=$LD # Let the user override the test with a path.
7102 fi
7103 fi
7104
7105 LD=$lt_cv_path_LD
7106 if test -n "$LD"; then
7107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7108 $as_echo "$LD" >&6; }
7109 else
7110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111 $as_echo "no" >&6; }
7112 fi
7113 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7115 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7116 if ${lt_cv_prog_gnu_ld+:} false; then :
7117   $as_echo_n "(cached) " >&6
7118 else
7119   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7120 case `$LD -v 2>&1 </dev/null` in
7121 *GNU* | *'with BFD'*)
7122   lt_cv_prog_gnu_ld=yes
7123   ;;
7124 *)
7125   lt_cv_prog_gnu_ld=no
7126   ;;
7127 esac
7128 fi
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7130 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7131 with_gnu_ld=$lt_cv_prog_gnu_ld
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7142 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7143 if ${lt_cv_path_NM+:} false; then :
7144   $as_echo_n "(cached) " >&6
7145 else
7146   if test -n "$NM"; then
7147   # Let the user override the test.
7148   lt_cv_path_NM=$NM
7149 else
7150   lt_nm_to_check=${ac_tool_prefix}nm
7151   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7152     lt_nm_to_check="$lt_nm_to_check nm"
7153   fi
7154   for lt_tmp_nm in $lt_nm_to_check; do
7155     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7156     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7157       IFS=$lt_save_ifs
7158       test -z "$ac_dir" && ac_dir=.
7159       tmp_nm=$ac_dir/$lt_tmp_nm
7160       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7161         # Check to see if the nm accepts a BSD-compat flag.
7162         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7163         #   nm: unknown option "B" ignored
7164         # Tru64's nm complains that /dev/null is an invalid object file
7165         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7166         case $build_os in
7167         mingw*) lt_bad_file=conftest.nm/nofile ;;
7168         *) lt_bad_file=/dev/null ;;
7169         esac
7170         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7171         *$lt_bad_file* | *'Invalid file or object type'*)
7172           lt_cv_path_NM="$tmp_nm -B"
7173           break 2
7174           ;;
7175         *)
7176           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7177           */dev/null*)
7178             lt_cv_path_NM="$tmp_nm -p"
7179             break 2
7180             ;;
7181           *)
7182             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7183             continue # so that we can try to find one that supports BSD flags
7184             ;;
7185           esac
7186           ;;
7187         esac
7188       fi
7189     done
7190     IFS=$lt_save_ifs
7191   done
7192   : ${lt_cv_path_NM=no}
7193 fi
7194 fi
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7196 $as_echo "$lt_cv_path_NM" >&6; }
7197 if test no != "$lt_cv_path_NM"; then
7198   NM=$lt_cv_path_NM
7199 else
7200   # Didn't find any BSD compatible name lister, look for dumpbin.
7201   if test -n "$DUMPBIN"; then :
7202     # Let the user override the test.
7203   else
7204     if test -n "$ac_tool_prefix"; then
7205   for ac_prog in dumpbin "link -dump"
7206   do
7207     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7210 $as_echo_n "checking for $ac_word... " >&6; }
7211 if ${ac_cv_prog_DUMPBIN+:} false; then :
7212   $as_echo_n "(cached) " >&6
7213 else
7214   if test -n "$DUMPBIN"; then
7215   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7216 else
7217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 for as_dir in $PATH
7219 do
7220   IFS=$as_save_IFS
7221   test -z "$as_dir" && as_dir=.
7222     for ac_exec_ext in '' $ac_executable_extensions; do
7223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7224     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7226     break 2
7227   fi
7228 done
7229   done
7230 IFS=$as_save_IFS
7231
7232 fi
7233 fi
7234 DUMPBIN=$ac_cv_prog_DUMPBIN
7235 if test -n "$DUMPBIN"; then
7236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7237 $as_echo "$DUMPBIN" >&6; }
7238 else
7239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240 $as_echo "no" >&6; }
7241 fi
7242
7243
7244     test -n "$DUMPBIN" && break
7245   done
7246 fi
7247 if test -z "$DUMPBIN"; then
7248   ac_ct_DUMPBIN=$DUMPBIN
7249   for ac_prog in dumpbin "link -dump"
7250 do
7251   # Extract the first word of "$ac_prog", so it can be a program name with args.
7252 set dummy $ac_prog; ac_word=$2
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7254 $as_echo_n "checking for $ac_word... " >&6; }
7255 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7256   $as_echo_n "(cached) " >&6
7257 else
7258   if test -n "$ac_ct_DUMPBIN"; then
7259   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7260 else
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 for as_dir in $PATH
7263 do
7264   IFS=$as_save_IFS
7265   test -z "$as_dir" && as_dir=.
7266     for ac_exec_ext in '' $ac_executable_extensions; do
7267   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7268     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7270     break 2
7271   fi
7272 done
7273   done
7274 IFS=$as_save_IFS
7275
7276 fi
7277 fi
7278 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7279 if test -n "$ac_ct_DUMPBIN"; then
7280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7281 $as_echo "$ac_ct_DUMPBIN" >&6; }
7282 else
7283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284 $as_echo "no" >&6; }
7285 fi
7286
7287
7288   test -n "$ac_ct_DUMPBIN" && break
7289 done
7290
7291   if test "x$ac_ct_DUMPBIN" = x; then
7292     DUMPBIN=":"
7293   else
7294     case $cross_compiling:$ac_tool_warned in
7295 yes:)
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7298 ac_tool_warned=yes ;;
7299 esac
7300     DUMPBIN=$ac_ct_DUMPBIN
7301   fi
7302 fi
7303
7304     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7305     *COFF*)
7306       DUMPBIN="$DUMPBIN -symbols -headers"
7307       ;;
7308     *)
7309       DUMPBIN=:
7310       ;;
7311     esac
7312   fi
7313
7314   if test : != "$DUMPBIN"; then
7315     NM=$DUMPBIN
7316   fi
7317 fi
7318 test -z "$NM" && NM=nm
7319
7320
7321
7322
7323
7324
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7326 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7327 if ${lt_cv_nm_interface+:} false; then :
7328   $as_echo_n "(cached) " >&6
7329 else
7330   lt_cv_nm_interface="BSD nm"
7331   echo "int some_variable = 0;" > conftest.$ac_ext
7332   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7333   (eval "$ac_compile" 2>conftest.err)
7334   cat conftest.err >&5
7335   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7336   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7337   cat conftest.err >&5
7338   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7339   cat conftest.out >&5
7340   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7341     lt_cv_nm_interface="MS dumpbin"
7342   fi
7343   rm -f conftest*
7344 fi
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7346 $as_echo "$lt_cv_nm_interface" >&6; }
7347
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7349 $as_echo_n "checking whether ln -s works... " >&6; }
7350 LN_S=$as_ln_s
7351 if test "$LN_S" = "ln -s"; then
7352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7353 $as_echo "yes" >&6; }
7354 else
7355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7356 $as_echo "no, using $LN_S" >&6; }
7357 fi
7358
7359 # find the maximum length of command line arguments
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7361 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7362 if ${lt_cv_sys_max_cmd_len+:} false; then :
7363   $as_echo_n "(cached) " >&6
7364 else
7365     i=0
7366   teststring=ABCD
7367
7368   case $build_os in
7369   msdosdjgpp*)
7370     # On DJGPP, this test can blow up pretty badly due to problems in libc
7371     # (any single argument exceeding 2000 bytes causes a buffer overrun
7372     # during glob expansion).  Even if it were fixed, the result of this
7373     # check would be larger than it should be.
7374     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7375     ;;
7376
7377   gnu*)
7378     # Under GNU Hurd, this test is not required because there is
7379     # no limit to the length of command line arguments.
7380     # Libtool will interpret -1 as no limit whatsoever
7381     lt_cv_sys_max_cmd_len=-1;
7382     ;;
7383
7384   cygwin* | mingw* | cegcc*)
7385     # On Win9x/ME, this test blows up -- it succeeds, but takes
7386     # about 5 minutes as the teststring grows exponentially.
7387     # Worse, since 9x/ME are not pre-emptively multitasking,
7388     # you end up with a "frozen" computer, even though with patience
7389     # the test eventually succeeds (with a max line length of 256k).
7390     # Instead, let's just punt: use the minimum linelength reported by
7391     # all of the supported platforms: 8192 (on NT/2K/XP).
7392     lt_cv_sys_max_cmd_len=8192;
7393     ;;
7394
7395   mint*)
7396     # On MiNT this can take a long time and run out of memory.
7397     lt_cv_sys_max_cmd_len=8192;
7398     ;;
7399
7400   amigaos*)
7401     # On AmigaOS with pdksh, this test takes hours, literally.
7402     # So we just punt and use a minimum line length of 8192.
7403     lt_cv_sys_max_cmd_len=8192;
7404     ;;
7405
7406   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7407     # This has been around since 386BSD, at least.  Likely further.
7408     if test -x /sbin/sysctl; then
7409       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7410     elif test -x /usr/sbin/sysctl; then
7411       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7412     else
7413       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7414     fi
7415     # And add a safety zone
7416     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7417     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7418     ;;
7419
7420   interix*)
7421     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7422     lt_cv_sys_max_cmd_len=196608
7423     ;;
7424
7425   os2*)
7426     # The test takes a long time on OS/2.
7427     lt_cv_sys_max_cmd_len=8192
7428     ;;
7429
7430   osf*)
7431     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7432     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7433     # nice to cause kernel panics so lets avoid the loop below.
7434     # First set a reasonable default.
7435     lt_cv_sys_max_cmd_len=16384
7436     #
7437     if test -x /sbin/sysconfig; then
7438       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7439         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7440       esac
7441     fi
7442     ;;
7443   sco3.2v5*)
7444     lt_cv_sys_max_cmd_len=102400
7445     ;;
7446   sysv5* | sco5v6* | sysv4.2uw2*)
7447     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7448     if test -n "$kargmax"; then
7449       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7450     else
7451       lt_cv_sys_max_cmd_len=32768
7452     fi
7453     ;;
7454   *)
7455     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7456     if test -n "$lt_cv_sys_max_cmd_len" && \
7457        test undefined != "$lt_cv_sys_max_cmd_len"; then
7458       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7459       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7460     else
7461       # Make teststring a little bigger before we do anything with it.
7462       # a 1K string should be a reasonable start.
7463       for i in 1 2 3 4 5 6 7 8; do
7464         teststring=$teststring$teststring
7465       done
7466       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7467       # If test is not a shell built-in, we'll probably end up computing a
7468       # maximum length that is only half of the actual maximum length, but
7469       # we can't tell.
7470       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7471                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7472               test 17 != "$i" # 1/2 MB should be enough
7473       do
7474         i=`expr $i + 1`
7475         teststring=$teststring$teststring
7476       done
7477       # Only check the string length outside the loop.
7478       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7479       teststring=
7480       # Add a significant safety factor because C++ compilers can tack on
7481       # massive amounts of additional arguments before passing them to the
7482       # linker.  It appears as though 1/2 is a usable value.
7483       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7484     fi
7485     ;;
7486   esac
7487
7488 fi
7489
7490 if test -n "$lt_cv_sys_max_cmd_len"; then
7491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7492 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7493 else
7494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7495 $as_echo "none" >&6; }
7496 fi
7497 max_cmd_len=$lt_cv_sys_max_cmd_len
7498
7499
7500
7501
7502
7503
7504 : ${CP="cp -f"}
7505 : ${MV="mv -f"}
7506 : ${RM="rm -f"}
7507
7508 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7509   lt_unset=unset
7510 else
7511   lt_unset=false
7512 fi
7513
7514
7515
7516
7517
7518 # test EBCDIC or ASCII
7519 case `echo X|tr X '\101'` in
7520  A) # ASCII based system
7521     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7522   lt_SP2NL='tr \040 \012'
7523   lt_NL2SP='tr \015\012 \040\040'
7524   ;;
7525  *) # EBCDIC based system
7526   lt_SP2NL='tr \100 \n'
7527   lt_NL2SP='tr \r\n \100\100'
7528   ;;
7529 esac
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7540 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7541 if ${lt_cv_to_host_file_cmd+:} false; then :
7542   $as_echo_n "(cached) " >&6
7543 else
7544   case $host in
7545   *-*-mingw* )
7546     case $build in
7547       *-*-mingw* ) # actually msys
7548         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7549         ;;
7550       *-*-cygwin* )
7551         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7552         ;;
7553       * ) # otherwise, assume *nix
7554         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7555         ;;
7556     esac
7557     ;;
7558   *-*-cygwin* )
7559     case $build in
7560       *-*-mingw* ) # actually msys
7561         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7562         ;;
7563       *-*-cygwin* )
7564         lt_cv_to_host_file_cmd=func_convert_file_noop
7565         ;;
7566       * ) # otherwise, assume *nix
7567         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7568         ;;
7569     esac
7570     ;;
7571   * ) # unhandled hosts (and "normal" native builds)
7572     lt_cv_to_host_file_cmd=func_convert_file_noop
7573     ;;
7574 esac
7575
7576 fi
7577
7578 to_host_file_cmd=$lt_cv_to_host_file_cmd
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7580 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7581
7582
7583
7584
7585
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7587 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7588 if ${lt_cv_to_tool_file_cmd+:} false; then :
7589   $as_echo_n "(cached) " >&6
7590 else
7591   #assume ordinary cross tools, or native build.
7592 lt_cv_to_tool_file_cmd=func_convert_file_noop
7593 case $host in
7594   *-*-mingw* )
7595     case $build in
7596       *-*-mingw* ) # actually msys
7597         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7598         ;;
7599     esac
7600     ;;
7601 esac
7602
7603 fi
7604
7605 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7607 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7608
7609
7610
7611
7612
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7614 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7615 if ${lt_cv_ld_reload_flag+:} false; then :
7616   $as_echo_n "(cached) " >&6
7617 else
7618   lt_cv_ld_reload_flag='-r'
7619 fi
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7621 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7622 reload_flag=$lt_cv_ld_reload_flag
7623 case $reload_flag in
7624 "" | " "*) ;;
7625 *) reload_flag=" $reload_flag" ;;
7626 esac
7627 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7628 case $host_os in
7629   cygwin* | mingw* | pw32* | cegcc*)
7630     if test yes != "$GCC"; then
7631       reload_cmds=false
7632     fi
7633     ;;
7634   darwin*)
7635     if test yes = "$GCC"; then
7636       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7637     else
7638       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7639     fi
7640     ;;
7641 esac
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651 if test -n "$ac_tool_prefix"; then
7652   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7653 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7655 $as_echo_n "checking for $ac_word... " >&6; }
7656 if ${ac_cv_prog_OBJDUMP+:} false; then :
7657   $as_echo_n "(cached) " >&6
7658 else
7659   if test -n "$OBJDUMP"; then
7660   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7661 else
7662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663 for as_dir in $PATH
7664 do
7665   IFS=$as_save_IFS
7666   test -z "$as_dir" && as_dir=.
7667     for ac_exec_ext in '' $ac_executable_extensions; do
7668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7669     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7671     break 2
7672   fi
7673 done
7674   done
7675 IFS=$as_save_IFS
7676
7677 fi
7678 fi
7679 OBJDUMP=$ac_cv_prog_OBJDUMP
7680 if test -n "$OBJDUMP"; then
7681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7682 $as_echo "$OBJDUMP" >&6; }
7683 else
7684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685 $as_echo "no" >&6; }
7686 fi
7687
7688
7689 fi
7690 if test -z "$ac_cv_prog_OBJDUMP"; then
7691   ac_ct_OBJDUMP=$OBJDUMP
7692   # Extract the first word of "objdump", so it can be a program name with args.
7693 set dummy objdump; ac_word=$2
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7695 $as_echo_n "checking for $ac_word... " >&6; }
7696 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7697   $as_echo_n "(cached) " >&6
7698 else
7699   if test -n "$ac_ct_OBJDUMP"; then
7700   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7701 else
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 for as_dir in $PATH
7704 do
7705   IFS=$as_save_IFS
7706   test -z "$as_dir" && as_dir=.
7707     for ac_exec_ext in '' $ac_executable_extensions; do
7708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7709     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7711     break 2
7712   fi
7713 done
7714   done
7715 IFS=$as_save_IFS
7716
7717 fi
7718 fi
7719 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7720 if test -n "$ac_ct_OBJDUMP"; then
7721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7722 $as_echo "$ac_ct_OBJDUMP" >&6; }
7723 else
7724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725 $as_echo "no" >&6; }
7726 fi
7727
7728   if test "x$ac_ct_OBJDUMP" = x; then
7729     OBJDUMP="false"
7730   else
7731     case $cross_compiling:$ac_tool_warned in
7732 yes:)
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7735 ac_tool_warned=yes ;;
7736 esac
7737     OBJDUMP=$ac_ct_OBJDUMP
7738   fi
7739 else
7740   OBJDUMP="$ac_cv_prog_OBJDUMP"
7741 fi
7742
7743 test -z "$OBJDUMP" && OBJDUMP=objdump
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7754 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7755 if ${lt_cv_deplibs_check_method+:} false; then :
7756   $as_echo_n "(cached) " >&6
7757 else
7758   lt_cv_file_magic_cmd='$MAGIC_CMD'
7759 lt_cv_file_magic_test_file=
7760 lt_cv_deplibs_check_method='unknown'
7761 # Need to set the preceding variable on all platforms that support
7762 # interlibrary dependencies.
7763 # 'none' -- dependencies not supported.
7764 # 'unknown' -- same as none, but documents that we really don't know.
7765 # 'pass_all' -- all dependencies passed with no checks.
7766 # 'test_compile' -- check by making test program.
7767 # 'file_magic [[regex]]' -- check by looking for files in library path
7768 # that responds to the $file_magic_cmd with a given extended regex.
7769 # If you have 'file' or equivalent on your system and you're not sure
7770 # whether 'pass_all' will *always* work, you probably want this one.
7771
7772 case $host_os in
7773 aix[4-9]*)
7774   lt_cv_deplibs_check_method=pass_all
7775   ;;
7776
7777 beos*)
7778   lt_cv_deplibs_check_method=pass_all
7779   ;;
7780
7781 bsdi[45]*)
7782   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7783   lt_cv_file_magic_cmd='/usr/bin/file -L'
7784   lt_cv_file_magic_test_file=/shlib/libc.so
7785   ;;
7786
7787 cygwin*)
7788   # func_win32_libid is a shell function defined in ltmain.sh
7789   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7790   lt_cv_file_magic_cmd='func_win32_libid'
7791   ;;
7792
7793 mingw* | pw32*)
7794   # Base MSYS/MinGW do not provide the 'file' command needed by
7795   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7796   # unless we find 'file', for example because we are cross-compiling.
7797   if ( file / ) >/dev/null 2>&1; then
7798     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7799     lt_cv_file_magic_cmd='func_win32_libid'
7800   else
7801     # Keep this pattern in sync with the one in func_win32_libid.
7802     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7803     lt_cv_file_magic_cmd='$OBJDUMP -f'
7804   fi
7805   ;;
7806
7807 cegcc*)
7808   # use the weaker test based on 'objdump'. See mingw*.
7809   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7810   lt_cv_file_magic_cmd='$OBJDUMP -f'
7811   ;;
7812
7813 darwin* | rhapsody*)
7814   lt_cv_deplibs_check_method=pass_all
7815   ;;
7816
7817 freebsd* | dragonfly*)
7818   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7819     case $host_cpu in
7820     i*86 )
7821       # Not sure whether the presence of OpenBSD here was a mistake.
7822       # Let's accept both of them until this is cleared up.
7823       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7824       lt_cv_file_magic_cmd=/usr/bin/file
7825       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7826       ;;
7827     esac
7828   else
7829     lt_cv_deplibs_check_method=pass_all
7830   fi
7831   ;;
7832
7833 haiku*)
7834   lt_cv_deplibs_check_method=pass_all
7835   ;;
7836
7837 hpux10.20* | hpux11*)
7838   lt_cv_file_magic_cmd=/usr/bin/file
7839   case $host_cpu in
7840   ia64*)
7841     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7842     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7843     ;;
7844   hppa*64*)
7845     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]'
7846     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7847     ;;
7848   *)
7849     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7850     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7851     ;;
7852   esac
7853   ;;
7854
7855 interix[3-9]*)
7856   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7857   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7858   ;;
7859
7860 irix5* | irix6* | nonstopux*)
7861   case $LD in
7862   *-32|*"-32 ") libmagic=32-bit;;
7863   *-n32|*"-n32 ") libmagic=N32;;
7864   *-64|*"-64 ") libmagic=64-bit;;
7865   *) libmagic=never-match;;
7866   esac
7867   lt_cv_deplibs_check_method=pass_all
7868   ;;
7869
7870 # This must be glibc/ELF.
7871 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7872   lt_cv_deplibs_check_method=pass_all
7873   ;;
7874
7875 netbsd* | netbsdelf*-gnu)
7876   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7877     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7878   else
7879     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7880   fi
7881   ;;
7882
7883 newos6*)
7884   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7885   lt_cv_file_magic_cmd=/usr/bin/file
7886   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7887   ;;
7888
7889 *nto* | *qnx*)
7890   lt_cv_deplibs_check_method=pass_all
7891   ;;
7892
7893 openbsd* | bitrig*)
7894   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7895     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7896   else
7897     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7898   fi
7899   ;;
7900
7901 osf3* | osf4* | osf5*)
7902   lt_cv_deplibs_check_method=pass_all
7903   ;;
7904
7905 rdos*)
7906   lt_cv_deplibs_check_method=pass_all
7907   ;;
7908
7909 solaris*)
7910   lt_cv_deplibs_check_method=pass_all
7911   ;;
7912
7913 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7914   lt_cv_deplibs_check_method=pass_all
7915   ;;
7916
7917 sysv4 | sysv4.3*)
7918   case $host_vendor in
7919   motorola)
7920     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]'
7921     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7922     ;;
7923   ncr)
7924     lt_cv_deplibs_check_method=pass_all
7925     ;;
7926   sequent)
7927     lt_cv_file_magic_cmd='/bin/file'
7928     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7929     ;;
7930   sni)
7931     lt_cv_file_magic_cmd='/bin/file'
7932     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7933     lt_cv_file_magic_test_file=/lib/libc.so
7934     ;;
7935   siemens)
7936     lt_cv_deplibs_check_method=pass_all
7937     ;;
7938   pc)
7939     lt_cv_deplibs_check_method=pass_all
7940     ;;
7941   esac
7942   ;;
7943
7944 tpf*)
7945   lt_cv_deplibs_check_method=pass_all
7946   ;;
7947 os2*)
7948   lt_cv_deplibs_check_method=pass_all
7949   ;;
7950 esac
7951
7952 fi
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7954 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7955
7956 file_magic_glob=
7957 want_nocaseglob=no
7958 if test "$build" = "$host"; then
7959   case $host_os in
7960   mingw* | pw32*)
7961     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7962       want_nocaseglob=yes
7963     else
7964       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7965     fi
7966     ;;
7967   esac
7968 fi
7969
7970 file_magic_cmd=$lt_cv_file_magic_cmd
7971 deplibs_check_method=$lt_cv_deplibs_check_method
7972 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995 if test -n "$ac_tool_prefix"; then
7996   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7997 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7999 $as_echo_n "checking for $ac_word... " >&6; }
8000 if ${ac_cv_prog_DLLTOOL+:} false; then :
8001   $as_echo_n "(cached) " >&6
8002 else
8003   if test -n "$DLLTOOL"; then
8004   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8005 else
8006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007 for as_dir in $PATH
8008 do
8009   IFS=$as_save_IFS
8010   test -z "$as_dir" && as_dir=.
8011     for ac_exec_ext in '' $ac_executable_extensions; do
8012   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8013     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8015     break 2
8016   fi
8017 done
8018   done
8019 IFS=$as_save_IFS
8020
8021 fi
8022 fi
8023 DLLTOOL=$ac_cv_prog_DLLTOOL
8024 if test -n "$DLLTOOL"; then
8025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8026 $as_echo "$DLLTOOL" >&6; }
8027 else
8028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8029 $as_echo "no" >&6; }
8030 fi
8031
8032
8033 fi
8034 if test -z "$ac_cv_prog_DLLTOOL"; then
8035   ac_ct_DLLTOOL=$DLLTOOL
8036   # Extract the first word of "dlltool", so it can be a program name with args.
8037 set dummy dlltool; ac_word=$2
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8039 $as_echo_n "checking for $ac_word... " >&6; }
8040 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8041   $as_echo_n "(cached) " >&6
8042 else
8043   if test -n "$ac_ct_DLLTOOL"; then
8044   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8045 else
8046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047 for as_dir in $PATH
8048 do
8049   IFS=$as_save_IFS
8050   test -z "$as_dir" && as_dir=.
8051     for ac_exec_ext in '' $ac_executable_extensions; do
8052   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8053     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8055     break 2
8056   fi
8057 done
8058   done
8059 IFS=$as_save_IFS
8060
8061 fi
8062 fi
8063 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8064 if test -n "$ac_ct_DLLTOOL"; then
8065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8066 $as_echo "$ac_ct_DLLTOOL" >&6; }
8067 else
8068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069 $as_echo "no" >&6; }
8070 fi
8071
8072   if test "x$ac_ct_DLLTOOL" = x; then
8073     DLLTOOL="false"
8074   else
8075     case $cross_compiling:$ac_tool_warned in
8076 yes:)
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8079 ac_tool_warned=yes ;;
8080 esac
8081     DLLTOOL=$ac_ct_DLLTOOL
8082   fi
8083 else
8084   DLLTOOL="$ac_cv_prog_DLLTOOL"
8085 fi
8086
8087 test -z "$DLLTOOL" && DLLTOOL=dlltool
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8099 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8100 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8101   $as_echo_n "(cached) " >&6
8102 else
8103   lt_cv_sharedlib_from_linklib_cmd='unknown'
8104
8105 case $host_os in
8106 cygwin* | mingw* | pw32* | cegcc*)
8107   # two different shell functions defined in ltmain.sh;
8108   # decide which one to use based on capabilities of $DLLTOOL
8109   case `$DLLTOOL --help 2>&1` in
8110   *--identify-strict*)
8111     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8112     ;;
8113   *)
8114     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8115     ;;
8116   esac
8117   ;;
8118 *)
8119   # fallback: assume linklib IS sharedlib
8120   lt_cv_sharedlib_from_linklib_cmd=$ECHO
8121   ;;
8122 esac
8123
8124 fi
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8126 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8127 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8128 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8129
8130
8131
8132
8133
8134
8135
8136 if test -n "$ac_tool_prefix"; then
8137   for ac_prog in ar
8138   do
8139     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8140 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8142 $as_echo_n "checking for $ac_word... " >&6; }
8143 if ${ac_cv_prog_AR+:} false; then :
8144   $as_echo_n "(cached) " >&6
8145 else
8146   if test -n "$AR"; then
8147   ac_cv_prog_AR="$AR" # Let the user override the test.
8148 else
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150 for as_dir in $PATH
8151 do
8152   IFS=$as_save_IFS
8153   test -z "$as_dir" && as_dir=.
8154     for ac_exec_ext in '' $ac_executable_extensions; do
8155   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8156     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8158     break 2
8159   fi
8160 done
8161   done
8162 IFS=$as_save_IFS
8163
8164 fi
8165 fi
8166 AR=$ac_cv_prog_AR
8167 if test -n "$AR"; then
8168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8169 $as_echo "$AR" >&6; }
8170 else
8171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8172 $as_echo "no" >&6; }
8173 fi
8174
8175
8176     test -n "$AR" && break
8177   done
8178 fi
8179 if test -z "$AR"; then
8180   ac_ct_AR=$AR
8181   for ac_prog in ar
8182 do
8183   # Extract the first word of "$ac_prog", so it can be a program name with args.
8184 set dummy $ac_prog; ac_word=$2
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8186 $as_echo_n "checking for $ac_word... " >&6; }
8187 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8188   $as_echo_n "(cached) " >&6
8189 else
8190   if test -n "$ac_ct_AR"; then
8191   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8192 else
8193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194 for as_dir in $PATH
8195 do
8196   IFS=$as_save_IFS
8197   test -z "$as_dir" && as_dir=.
8198     for ac_exec_ext in '' $ac_executable_extensions; do
8199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8200     ac_cv_prog_ac_ct_AR="$ac_prog"
8201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8202     break 2
8203   fi
8204 done
8205   done
8206 IFS=$as_save_IFS
8207
8208 fi
8209 fi
8210 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8211 if test -n "$ac_ct_AR"; then
8212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8213 $as_echo "$ac_ct_AR" >&6; }
8214 else
8215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216 $as_echo "no" >&6; }
8217 fi
8218
8219
8220   test -n "$ac_ct_AR" && break
8221 done
8222
8223   if test "x$ac_ct_AR" = x; then
8224     AR="false"
8225   else
8226     case $cross_compiling:$ac_tool_warned in
8227 yes:)
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8230 ac_tool_warned=yes ;;
8231 esac
8232     AR=$ac_ct_AR
8233   fi
8234 fi
8235
8236 : ${AR=ar}
8237 : ${AR_FLAGS=cru}
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8250 $as_echo_n "checking for archiver @FILE support... " >&6; }
8251 if ${lt_cv_ar_at_file+:} false; then :
8252   $as_echo_n "(cached) " >&6
8253 else
8254   lt_cv_ar_at_file=no
8255    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256 /* end confdefs.h.  */
8257
8258 int
8259 main ()
8260 {
8261
8262   ;
8263   return 0;
8264 }
8265 _ACEOF
8266 if ac_fn_c_try_compile "$LINENO"; then :
8267   echo conftest.$ac_objext > conftest.lst
8268       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8269       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8270   (eval $lt_ar_try) 2>&5
8271   ac_status=$?
8272   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8273   test $ac_status = 0; }
8274       if test 0 -eq "$ac_status"; then
8275         # Ensure the archiver fails upon bogus file names.
8276         rm -f conftest.$ac_objext libconftest.a
8277         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8278   (eval $lt_ar_try) 2>&5
8279   ac_status=$?
8280   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8281   test $ac_status = 0; }
8282         if test 0 -ne "$ac_status"; then
8283           lt_cv_ar_at_file=@
8284         fi
8285       fi
8286       rm -f conftest.* libconftest.a
8287
8288 fi
8289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8290
8291 fi
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8293 $as_echo "$lt_cv_ar_at_file" >&6; }
8294
8295 if test no = "$lt_cv_ar_at_file"; then
8296   archiver_list_spec=
8297 else
8298   archiver_list_spec=$lt_cv_ar_at_file
8299 fi
8300
8301
8302
8303
8304
8305
8306
8307 if test -n "$ac_tool_prefix"; then
8308   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8309 set dummy ${ac_tool_prefix}strip; ac_word=$2
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8311 $as_echo_n "checking for $ac_word... " >&6; }
8312 if ${ac_cv_prog_STRIP+:} false; then :
8313   $as_echo_n "(cached) " >&6
8314 else
8315   if test -n "$STRIP"; then
8316   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8317 else
8318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319 for as_dir in $PATH
8320 do
8321   IFS=$as_save_IFS
8322   test -z "$as_dir" && as_dir=.
8323     for ac_exec_ext in '' $ac_executable_extensions; do
8324   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8325     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8327     break 2
8328   fi
8329 done
8330   done
8331 IFS=$as_save_IFS
8332
8333 fi
8334 fi
8335 STRIP=$ac_cv_prog_STRIP
8336 if test -n "$STRIP"; then
8337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8338 $as_echo "$STRIP" >&6; }
8339 else
8340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341 $as_echo "no" >&6; }
8342 fi
8343
8344
8345 fi
8346 if test -z "$ac_cv_prog_STRIP"; then
8347   ac_ct_STRIP=$STRIP
8348   # Extract the first word of "strip", so it can be a program name with args.
8349 set dummy strip; ac_word=$2
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8351 $as_echo_n "checking for $ac_word... " >&6; }
8352 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8353   $as_echo_n "(cached) " >&6
8354 else
8355   if test -n "$ac_ct_STRIP"; then
8356   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8357 else
8358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359 for as_dir in $PATH
8360 do
8361   IFS=$as_save_IFS
8362   test -z "$as_dir" && as_dir=.
8363     for ac_exec_ext in '' $ac_executable_extensions; do
8364   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8365     ac_cv_prog_ac_ct_STRIP="strip"
8366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8367     break 2
8368   fi
8369 done
8370   done
8371 IFS=$as_save_IFS
8372
8373 fi
8374 fi
8375 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8376 if test -n "$ac_ct_STRIP"; then
8377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8378 $as_echo "$ac_ct_STRIP" >&6; }
8379 else
8380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8381 $as_echo "no" >&6; }
8382 fi
8383
8384   if test "x$ac_ct_STRIP" = x; then
8385     STRIP=":"
8386   else
8387     case $cross_compiling:$ac_tool_warned in
8388 yes:)
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8391 ac_tool_warned=yes ;;
8392 esac
8393     STRIP=$ac_ct_STRIP
8394   fi
8395 else
8396   STRIP="$ac_cv_prog_STRIP"
8397 fi
8398
8399 test -z "$STRIP" && STRIP=:
8400
8401
8402
8403
8404
8405
8406 if test -n "$ac_tool_prefix"; then
8407   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8408 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8410 $as_echo_n "checking for $ac_word... " >&6; }
8411 if ${ac_cv_prog_RANLIB+:} false; then :
8412   $as_echo_n "(cached) " >&6
8413 else
8414   if test -n "$RANLIB"; then
8415   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8416 else
8417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418 for as_dir in $PATH
8419 do
8420   IFS=$as_save_IFS
8421   test -z "$as_dir" && as_dir=.
8422     for ac_exec_ext in '' $ac_executable_extensions; do
8423   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8424     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8426     break 2
8427   fi
8428 done
8429   done
8430 IFS=$as_save_IFS
8431
8432 fi
8433 fi
8434 RANLIB=$ac_cv_prog_RANLIB
8435 if test -n "$RANLIB"; then
8436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8437 $as_echo "$RANLIB" >&6; }
8438 else
8439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8440 $as_echo "no" >&6; }
8441 fi
8442
8443
8444 fi
8445 if test -z "$ac_cv_prog_RANLIB"; then
8446   ac_ct_RANLIB=$RANLIB
8447   # Extract the first word of "ranlib", so it can be a program name with args.
8448 set dummy ranlib; ac_word=$2
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8450 $as_echo_n "checking for $ac_word... " >&6; }
8451 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8452   $as_echo_n "(cached) " >&6
8453 else
8454   if test -n "$ac_ct_RANLIB"; then
8455   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8456 else
8457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8458 for as_dir in $PATH
8459 do
8460   IFS=$as_save_IFS
8461   test -z "$as_dir" && as_dir=.
8462     for ac_exec_ext in '' $ac_executable_extensions; do
8463   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8464     ac_cv_prog_ac_ct_RANLIB="ranlib"
8465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8466     break 2
8467   fi
8468 done
8469   done
8470 IFS=$as_save_IFS
8471
8472 fi
8473 fi
8474 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8475 if test -n "$ac_ct_RANLIB"; then
8476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8477 $as_echo "$ac_ct_RANLIB" >&6; }
8478 else
8479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8480 $as_echo "no" >&6; }
8481 fi
8482
8483   if test "x$ac_ct_RANLIB" = x; then
8484     RANLIB=":"
8485   else
8486     case $cross_compiling:$ac_tool_warned in
8487 yes:)
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8490 ac_tool_warned=yes ;;
8491 esac
8492     RANLIB=$ac_ct_RANLIB
8493   fi
8494 else
8495   RANLIB="$ac_cv_prog_RANLIB"
8496 fi
8497
8498 test -z "$RANLIB" && RANLIB=:
8499
8500
8501
8502
8503
8504
8505 # Determine commands to create old-style static archives.
8506 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8507 old_postinstall_cmds='chmod 644 $oldlib'
8508 old_postuninstall_cmds=
8509
8510 if test -n "$RANLIB"; then
8511   case $host_os in
8512   bitrig* | openbsd*)
8513     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8514     ;;
8515   *)
8516     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8517     ;;
8518   esac
8519   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8520 fi
8521
8522 case $host_os in
8523   darwin*)
8524     lock_old_archive_extraction=yes ;;
8525   *)
8526     lock_old_archive_extraction=no ;;
8527 esac
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567 # If no C compiler was specified, use CC.
8568 LTCC=${LTCC-"$CC"}
8569
8570 # If no C compiler flags were specified, use CFLAGS.
8571 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8572
8573 # Allow CC to be a program name with arguments.
8574 compiler=$CC
8575
8576
8577 # Check for command to grab the raw symbol name followed by C symbol from nm.
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8579 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8580 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8581   $as_echo_n "(cached) " >&6
8582 else
8583
8584 # These are sane defaults that work on at least a few old systems.
8585 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8586
8587 # Character class describing NM global symbol codes.
8588 symcode='[BCDEGRST]'
8589
8590 # Regexp to match symbols that can be accessed directly from C.
8591 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8592
8593 # Define system-specific variables.
8594 case $host_os in
8595 aix*)
8596   symcode='[BCDT]'
8597   ;;
8598 cygwin* | mingw* | pw32* | cegcc*)
8599   symcode='[ABCDGISTW]'
8600   ;;
8601 hpux*)
8602   if test ia64 = "$host_cpu"; then
8603     symcode='[ABCDEGRST]'
8604   fi
8605   ;;
8606 irix* | nonstopux*)
8607   symcode='[BCDEGRST]'
8608   ;;
8609 osf*)
8610   symcode='[BCDEGQRST]'
8611   ;;
8612 solaris*)
8613   symcode='[BDRT]'
8614   ;;
8615 sco3.2v5*)
8616   symcode='[DT]'
8617   ;;
8618 sysv4.2uw2*)
8619   symcode='[DT]'
8620   ;;
8621 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8622   symcode='[ABDT]'
8623   ;;
8624 sysv4)
8625   symcode='[DFNSTU]'
8626   ;;
8627 esac
8628
8629 # If we're using GNU nm, then use its standard symbol codes.
8630 case `$NM -V 2>&1` in
8631 *GNU* | *'with BFD'*)
8632   symcode='[ABCDGIRSTW]' ;;
8633 esac
8634
8635 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8636   # Gets list of data symbols to import.
8637   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8638   # Adjust the below global symbol transforms to fixup imported variables.
8639   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8640   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8641   lt_c_name_lib_hook="\
8642   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8643   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8644 else
8645   # Disable hooks by default.
8646   lt_cv_sys_global_symbol_to_import=
8647   lt_cdecl_hook=
8648   lt_c_name_hook=
8649   lt_c_name_lib_hook=
8650 fi
8651
8652 # Transform an extracted symbol line into a proper C declaration.
8653 # Some systems (esp. on ia64) link data and code symbols differently,
8654 # so use this general approach.
8655 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8656 $lt_cdecl_hook\
8657 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8658 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8659
8660 # Transform an extracted symbol line into symbol name and symbol address
8661 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8662 $lt_c_name_hook\
8663 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8664 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8665
8666 # Transform an extracted symbol line into symbol name with lib prefix and
8667 # symbol address.
8668 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8669 $lt_c_name_lib_hook\
8670 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8671 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8672 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8673
8674 # Handle CRLF in mingw tool chain
8675 opt_cr=
8676 case $build_os in
8677 mingw*)
8678   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8679   ;;
8680 esac
8681
8682 # Try without a prefix underscore, then with it.
8683 for ac_symprfx in "" "_"; do
8684
8685   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8686   symxfrm="\\1 $ac_symprfx\\2 \\2"
8687
8688   # Write the raw and C identifiers.
8689   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8690     # Fake it for dumpbin and say T for any non-static function,
8691     # D for any global variable and I for any imported variable.
8692     # Also find C++ and __fastcall symbols from MSVC++,
8693     # which start with @ or ?.
8694     lt_cv_sys_global_symbol_pipe="$AWK '"\
8695 "     {last_section=section; section=\$ 3};"\
8696 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8697 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8698 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8699 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8700 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8701 "     \$ 0!~/External *\|/{next};"\
8702 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8703 "     {if(hide[section]) next};"\
8704 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8705 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8706 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8707 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8708 "     ' prfx=^$ac_symprfx"
8709   else
8710     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8711   fi
8712   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8713
8714   # Check to see that the pipe works correctly.
8715   pipe_works=no
8716
8717   rm -f conftest*
8718   cat > conftest.$ac_ext <<_LT_EOF
8719 #ifdef __cplusplus
8720 extern "C" {
8721 #endif
8722 char nm_test_var;
8723 void nm_test_func(void);
8724 void nm_test_func(void){}
8725 #ifdef __cplusplus
8726 }
8727 #endif
8728 int main(){nm_test_var='a';nm_test_func();return(0);}
8729 _LT_EOF
8730
8731   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8732   (eval $ac_compile) 2>&5
8733   ac_status=$?
8734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8735   test $ac_status = 0; }; then
8736     # Now try to grab the symbols.
8737     nlist=conftest.nm
8738     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8739   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8740   ac_status=$?
8741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8742   test $ac_status = 0; } && test -s "$nlist"; then
8743       # Try sorting and uniquifying the output.
8744       if sort "$nlist" | uniq > "$nlist"T; then
8745         mv -f "$nlist"T "$nlist"
8746       else
8747         rm -f "$nlist"T
8748       fi
8749
8750       # Make sure that we snagged all the symbols we need.
8751       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8752         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8753           cat <<_LT_EOF > conftest.$ac_ext
8754 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8755 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8756 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8757    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8758 # define LT_DLSYM_CONST
8759 #elif defined __osf__
8760 /* This system does not cope well with relocations in const data.  */
8761 # define LT_DLSYM_CONST
8762 #else
8763 # define LT_DLSYM_CONST const
8764 #endif
8765
8766 #ifdef __cplusplus
8767 extern "C" {
8768 #endif
8769
8770 _LT_EOF
8771           # Now generate the symbol file.
8772           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8773
8774           cat <<_LT_EOF >> conftest.$ac_ext
8775
8776 /* The mapping between symbol names and symbols.  */
8777 LT_DLSYM_CONST struct {
8778   const char *name;
8779   void       *address;
8780 }
8781 lt__PROGRAM__LTX_preloaded_symbols[] =
8782 {
8783   { "@PROGRAM@", (void *) 0 },
8784 _LT_EOF
8785           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8786           cat <<\_LT_EOF >> conftest.$ac_ext
8787   {0, (void *) 0}
8788 };
8789
8790 /* This works around a problem in FreeBSD linker */
8791 #ifdef FREEBSD_WORKAROUND
8792 static const void *lt_preloaded_setup() {
8793   return lt__PROGRAM__LTX_preloaded_symbols;
8794 }
8795 #endif
8796
8797 #ifdef __cplusplus
8798 }
8799 #endif
8800 _LT_EOF
8801           # Now try linking the two files.
8802           mv conftest.$ac_objext conftstm.$ac_objext
8803           lt_globsym_save_LIBS=$LIBS
8804           lt_globsym_save_CFLAGS=$CFLAGS
8805           LIBS=conftstm.$ac_objext
8806           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8807           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8808   (eval $ac_link) 2>&5
8809   ac_status=$?
8810   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8811   test $ac_status = 0; } && test -s conftest$ac_exeext; then
8812             pipe_works=yes
8813           fi
8814           LIBS=$lt_globsym_save_LIBS
8815           CFLAGS=$lt_globsym_save_CFLAGS
8816         else
8817           echo "cannot find nm_test_func in $nlist" >&5
8818         fi
8819       else
8820         echo "cannot find nm_test_var in $nlist" >&5
8821       fi
8822     else
8823       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8824     fi
8825   else
8826     echo "$progname: failed program was:" >&5
8827     cat conftest.$ac_ext >&5
8828   fi
8829   rm -rf conftest* conftst*
8830
8831   # Do not use the global_symbol_pipe unless it works.
8832   if test yes = "$pipe_works"; then
8833     break
8834   else
8835     lt_cv_sys_global_symbol_pipe=
8836   fi
8837 done
8838
8839 fi
8840
8841 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8842   lt_cv_sys_global_symbol_to_cdecl=
8843 fi
8844 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8846 $as_echo "failed" >&6; }
8847 else
8848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8849 $as_echo "ok" >&6; }
8850 fi
8851
8852 # Response file support.
8853 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8854   nm_file_list_spec='@'
8855 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8856   nm_file_list_spec='@'
8857 fi
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8896 $as_echo_n "checking for sysroot... " >&6; }
8897
8898 # Check whether --with-sysroot was given.
8899 if test "${with_sysroot+set}" = set; then :
8900   withval=$with_sysroot;
8901 else
8902   with_sysroot=no
8903 fi
8904
8905
8906 lt_sysroot=
8907 case $with_sysroot in #(
8908  yes)
8909    if test yes = "$GCC"; then
8910      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8911    fi
8912    ;; #(
8913  /*)
8914    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8915    ;; #(
8916  no|'')
8917    ;; #(
8918  *)
8919    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8920 $as_echo "$with_sysroot" >&6; }
8921    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8922    ;;
8923 esac
8924
8925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8926 $as_echo "${lt_sysroot:-no}" >&6; }
8927
8928
8929
8930
8931
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8933 $as_echo_n "checking for a working dd... " >&6; }
8934 if ${ac_cv_path_lt_DD+:} false; then :
8935   $as_echo_n "(cached) " >&6
8936 else
8937   printf 0123456789abcdef0123456789abcdef >conftest.i
8938 cat conftest.i conftest.i >conftest2.i
8939 : ${lt_DD:=$DD}
8940 if test -z "$lt_DD"; then
8941   ac_path_lt_DD_found=false
8942   # Loop through the user's path and test for each of PROGNAME-LIST
8943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8944 for as_dir in $PATH
8945 do
8946   IFS=$as_save_IFS
8947   test -z "$as_dir" && as_dir=.
8948     for ac_prog in dd; do
8949     for ac_exec_ext in '' $ac_executable_extensions; do
8950       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8951       as_fn_executable_p "$ac_path_lt_DD" || continue
8952 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8953   cmp -s conftest.i conftest.out \
8954   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8955 fi
8956       $ac_path_lt_DD_found && break 3
8957     done
8958   done
8959   done
8960 IFS=$as_save_IFS
8961   if test -z "$ac_cv_path_lt_DD"; then
8962     :
8963   fi
8964 else
8965   ac_cv_path_lt_DD=$lt_DD
8966 fi
8967
8968 rm -f conftest.i conftest2.i conftest.out
8969 fi
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8971 $as_echo "$ac_cv_path_lt_DD" >&6; }
8972
8973
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8975 $as_echo_n "checking how to truncate binary pipes... " >&6; }
8976 if ${lt_cv_truncate_bin+:} false; then :
8977   $as_echo_n "(cached) " >&6
8978 else
8979   printf 0123456789abcdef0123456789abcdef >conftest.i
8980 cat conftest.i conftest.i >conftest2.i
8981 lt_cv_truncate_bin=
8982 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8983   cmp -s conftest.i conftest.out \
8984   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8985 fi
8986 rm -f conftest.i conftest2.i conftest.out
8987 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8988 fi
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8990 $as_echo "$lt_cv_truncate_bin" >&6; }
8991
8992
8993
8994
8995
8996
8997
8998 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8999 func_cc_basename ()
9000 {
9001     for cc_temp in $*""; do
9002       case $cc_temp in
9003         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9004         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9005         \-*) ;;
9006         *) break;;
9007       esac
9008     done
9009     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9010 }
9011
9012 # Check whether --enable-libtool-lock was given.
9013 if test "${enable_libtool_lock+set}" = set; then :
9014   enableval=$enable_libtool_lock;
9015 fi
9016
9017 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9018
9019 # Some flags need to be propagated to the compiler or linker for good
9020 # libtool support.
9021 case $host in
9022 ia64-*-hpux*)
9023   # Find out what ABI is being produced by ac_compile, and set mode
9024   # options accordingly.
9025   echo 'int i;' > conftest.$ac_ext
9026   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9027   (eval $ac_compile) 2>&5
9028   ac_status=$?
9029   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9030   test $ac_status = 0; }; then
9031     case `/usr/bin/file conftest.$ac_objext` in
9032       *ELF-32*)
9033         HPUX_IA64_MODE=32
9034         ;;
9035       *ELF-64*)
9036         HPUX_IA64_MODE=64
9037         ;;
9038     esac
9039   fi
9040   rm -rf conftest*
9041   ;;
9042 *-*-irix6*)
9043   # Find out what ABI is being produced by ac_compile, and set linker
9044   # options accordingly.
9045   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9046   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9047   (eval $ac_compile) 2>&5
9048   ac_status=$?
9049   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9050   test $ac_status = 0; }; then
9051     if test yes = "$lt_cv_prog_gnu_ld"; then
9052       case `/usr/bin/file conftest.$ac_objext` in
9053         *32-bit*)
9054           LD="${LD-ld} -melf32bsmip"
9055           ;;
9056         *N32*)
9057           LD="${LD-ld} -melf32bmipn32"
9058           ;;
9059         *64-bit*)
9060           LD="${LD-ld} -melf64bmip"
9061         ;;
9062       esac
9063     else
9064       case `/usr/bin/file conftest.$ac_objext` in
9065         *32-bit*)
9066           LD="${LD-ld} -32"
9067           ;;
9068         *N32*)
9069           LD="${LD-ld} -n32"
9070           ;;
9071         *64-bit*)
9072           LD="${LD-ld} -64"
9073           ;;
9074       esac
9075     fi
9076   fi
9077   rm -rf conftest*
9078   ;;
9079
9080 mips64*-*linux*)
9081   # Find out what ABI is being produced by ac_compile, and set linker
9082   # options accordingly.
9083   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9084   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9085   (eval $ac_compile) 2>&5
9086   ac_status=$?
9087   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9088   test $ac_status = 0; }; then
9089     emul=elf
9090     case `/usr/bin/file conftest.$ac_objext` in
9091       *32-bit*)
9092         emul="${emul}32"
9093         ;;
9094       *64-bit*)
9095         emul="${emul}64"
9096         ;;
9097     esac
9098     case `/usr/bin/file conftest.$ac_objext` in
9099       *MSB*)
9100         emul="${emul}btsmip"
9101         ;;
9102       *LSB*)
9103         emul="${emul}ltsmip"
9104         ;;
9105     esac
9106     case `/usr/bin/file conftest.$ac_objext` in
9107       *N32*)
9108         emul="${emul}n32"
9109         ;;
9110     esac
9111     LD="${LD-ld} -m $emul"
9112   fi
9113   rm -rf conftest*
9114   ;;
9115
9116 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9117 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9118   # Find out what ABI is being produced by ac_compile, and set linker
9119   # options accordingly.  Note that the listed cases only cover the
9120   # situations where additional linker options are needed (such as when
9121   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9122   # vice versa); the common cases where no linker options are needed do
9123   # not appear in the list.
9124   echo 'int i;' > conftest.$ac_ext
9125   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9126   (eval $ac_compile) 2>&5
9127   ac_status=$?
9128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9129   test $ac_status = 0; }; then
9130     case `/usr/bin/file conftest.o` in
9131       *32-bit*)
9132         case $host in
9133           x86_64-*kfreebsd*-gnu)
9134             LD="${LD-ld} -m elf_i386_fbsd"
9135             ;;
9136           x86_64-*linux*)
9137             case `/usr/bin/file conftest.o` in
9138               *x86-64*)
9139                 LD="${LD-ld} -m elf32_x86_64"
9140                 ;;
9141               *)
9142                 LD="${LD-ld} -m elf_i386"
9143                 ;;
9144             esac
9145             ;;
9146           powerpc64le-*linux*)
9147             LD="${LD-ld} -m elf32lppclinux"
9148             ;;
9149           powerpc64-*linux*)
9150             LD="${LD-ld} -m elf32ppclinux"
9151             ;;
9152           s390x-*linux*)
9153             LD="${LD-ld} -m elf_s390"
9154             ;;
9155           sparc64-*linux*)
9156             LD="${LD-ld} -m elf32_sparc"
9157             ;;
9158         esac
9159         ;;
9160       *64-bit*)
9161         case $host in
9162           x86_64-*kfreebsd*-gnu)
9163             LD="${LD-ld} -m elf_x86_64_fbsd"
9164             ;;
9165           x86_64-*linux*)
9166             LD="${LD-ld} -m elf_x86_64"
9167             ;;
9168           powerpcle-*linux*)
9169             LD="${LD-ld} -m elf64lppc"
9170             ;;
9171           powerpc-*linux*)
9172             LD="${LD-ld} -m elf64ppc"
9173             ;;
9174           s390*-*linux*|s390*-*tpf*)
9175             LD="${LD-ld} -m elf64_s390"
9176             ;;
9177           sparc*-*linux*)
9178             LD="${LD-ld} -m elf64_sparc"
9179             ;;
9180         esac
9181         ;;
9182     esac
9183   fi
9184   rm -rf conftest*
9185   ;;
9186
9187 *-*-sco3.2v5*)
9188   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9189   SAVE_CFLAGS=$CFLAGS
9190   CFLAGS="$CFLAGS -belf"
9191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9192 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9193 if ${lt_cv_cc_needs_belf+:} false; then :
9194   $as_echo_n "(cached) " >&6
9195 else
9196   ac_ext=c
9197 ac_cpp='$CPP $CPPFLAGS'
9198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9201
9202      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9203 /* end confdefs.h.  */
9204
9205 int
9206 main ()
9207 {
9208
9209   ;
9210   return 0;
9211 }
9212 _ACEOF
9213 if ac_fn_c_try_link "$LINENO"; then :
9214   lt_cv_cc_needs_belf=yes
9215 else
9216   lt_cv_cc_needs_belf=no
9217 fi
9218 rm -f core conftest.err conftest.$ac_objext \
9219     conftest$ac_exeext conftest.$ac_ext
9220      ac_ext=c
9221 ac_cpp='$CPP $CPPFLAGS'
9222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9225
9226 fi
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9228 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9229   if test yes != "$lt_cv_cc_needs_belf"; then
9230     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9231     CFLAGS=$SAVE_CFLAGS
9232   fi
9233   ;;
9234 *-*solaris*)
9235   # Find out what ABI is being produced by ac_compile, and set linker
9236   # options accordingly.
9237   echo 'int i;' > conftest.$ac_ext
9238   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9239   (eval $ac_compile) 2>&5
9240   ac_status=$?
9241   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9242   test $ac_status = 0; }; then
9243     case `/usr/bin/file conftest.o` in
9244     *64-bit*)
9245       case $lt_cv_prog_gnu_ld in
9246       yes*)
9247         case $host in
9248         i?86-*-solaris*|x86_64-*-solaris*)
9249           LD="${LD-ld} -m elf_x86_64"
9250           ;;
9251         sparc*-*-solaris*)
9252           LD="${LD-ld} -m elf64_sparc"
9253           ;;
9254         esac
9255         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9256         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9257           LD=${LD-ld}_sol2
9258         fi
9259         ;;
9260       *)
9261         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9262           LD="${LD-ld} -64"
9263         fi
9264         ;;
9265       esac
9266       ;;
9267     esac
9268   fi
9269   rm -rf conftest*
9270   ;;
9271 esac
9272
9273 need_locks=$enable_libtool_lock
9274
9275 if test -n "$ac_tool_prefix"; then
9276   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9277 set dummy ${ac_tool_prefix}mt; ac_word=$2
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9279 $as_echo_n "checking for $ac_word... " >&6; }
9280 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9281   $as_echo_n "(cached) " >&6
9282 else
9283   if test -n "$MANIFEST_TOOL"; then
9284   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9285 else
9286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9287 for as_dir in $PATH
9288 do
9289   IFS=$as_save_IFS
9290   test -z "$as_dir" && as_dir=.
9291     for ac_exec_ext in '' $ac_executable_extensions; do
9292   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9293     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9295     break 2
9296   fi
9297 done
9298   done
9299 IFS=$as_save_IFS
9300
9301 fi
9302 fi
9303 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9304 if test -n "$MANIFEST_TOOL"; then
9305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9306 $as_echo "$MANIFEST_TOOL" >&6; }
9307 else
9308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9309 $as_echo "no" >&6; }
9310 fi
9311
9312
9313 fi
9314 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9315   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9316   # Extract the first word of "mt", so it can be a program name with args.
9317 set dummy mt; ac_word=$2
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9319 $as_echo_n "checking for $ac_word... " >&6; }
9320 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9321   $as_echo_n "(cached) " >&6
9322 else
9323   if test -n "$ac_ct_MANIFEST_TOOL"; then
9324   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9325 else
9326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9327 for as_dir in $PATH
9328 do
9329   IFS=$as_save_IFS
9330   test -z "$as_dir" && as_dir=.
9331     for ac_exec_ext in '' $ac_executable_extensions; do
9332   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9333     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9335     break 2
9336   fi
9337 done
9338   done
9339 IFS=$as_save_IFS
9340
9341 fi
9342 fi
9343 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9344 if test -n "$ac_ct_MANIFEST_TOOL"; then
9345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9346 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9347 else
9348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9349 $as_echo "no" >&6; }
9350 fi
9351
9352   if test "x$ac_ct_MANIFEST_TOOL" = x; then
9353     MANIFEST_TOOL=":"
9354   else
9355     case $cross_compiling:$ac_tool_warned in
9356 yes:)
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9359 ac_tool_warned=yes ;;
9360 esac
9361     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9362   fi
9363 else
9364   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9365 fi
9366
9367 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9369 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9370 if ${lt_cv_path_mainfest_tool+:} false; then :
9371   $as_echo_n "(cached) " >&6
9372 else
9373   lt_cv_path_mainfest_tool=no
9374   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9375   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9376   cat conftest.err >&5
9377   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9378     lt_cv_path_mainfest_tool=yes
9379   fi
9380   rm -f conftest*
9381 fi
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9383 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9384 if test yes != "$lt_cv_path_mainfest_tool"; then
9385   MANIFEST_TOOL=:
9386 fi
9387
9388
9389
9390
9391
9392
9393   case $host_os in
9394     rhapsody* | darwin*)
9395     if test -n "$ac_tool_prefix"; then
9396   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9397 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9399 $as_echo_n "checking for $ac_word... " >&6; }
9400 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9401   $as_echo_n "(cached) " >&6
9402 else
9403   if test -n "$DSYMUTIL"; then
9404   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9405 else
9406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9407 for as_dir in $PATH
9408 do
9409   IFS=$as_save_IFS
9410   test -z "$as_dir" && as_dir=.
9411     for ac_exec_ext in '' $ac_executable_extensions; do
9412   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9413     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9415     break 2
9416   fi
9417 done
9418   done
9419 IFS=$as_save_IFS
9420
9421 fi
9422 fi
9423 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9424 if test -n "$DSYMUTIL"; then
9425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9426 $as_echo "$DSYMUTIL" >&6; }
9427 else
9428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9429 $as_echo "no" >&6; }
9430 fi
9431
9432
9433 fi
9434 if test -z "$ac_cv_prog_DSYMUTIL"; then
9435   ac_ct_DSYMUTIL=$DSYMUTIL
9436   # Extract the first word of "dsymutil", so it can be a program name with args.
9437 set dummy dsymutil; ac_word=$2
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9439 $as_echo_n "checking for $ac_word... " >&6; }
9440 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9441   $as_echo_n "(cached) " >&6
9442 else
9443   if test -n "$ac_ct_DSYMUTIL"; then
9444   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9445 else
9446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9447 for as_dir in $PATH
9448 do
9449   IFS=$as_save_IFS
9450   test -z "$as_dir" && as_dir=.
9451     for ac_exec_ext in '' $ac_executable_extensions; do
9452   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9453     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9455     break 2
9456   fi
9457 done
9458   done
9459 IFS=$as_save_IFS
9460
9461 fi
9462 fi
9463 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9464 if test -n "$ac_ct_DSYMUTIL"; then
9465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9466 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9467 else
9468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9469 $as_echo "no" >&6; }
9470 fi
9471
9472   if test "x$ac_ct_DSYMUTIL" = x; then
9473     DSYMUTIL=":"
9474   else
9475     case $cross_compiling:$ac_tool_warned in
9476 yes:)
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9479 ac_tool_warned=yes ;;
9480 esac
9481     DSYMUTIL=$ac_ct_DSYMUTIL
9482   fi
9483 else
9484   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9485 fi
9486
9487     if test -n "$ac_tool_prefix"; then
9488   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9489 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9491 $as_echo_n "checking for $ac_word... " >&6; }
9492 if ${ac_cv_prog_NMEDIT+:} false; then :
9493   $as_echo_n "(cached) " >&6
9494 else
9495   if test -n "$NMEDIT"; then
9496   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9497 else
9498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9499 for as_dir in $PATH
9500 do
9501   IFS=$as_save_IFS
9502   test -z "$as_dir" && as_dir=.
9503     for ac_exec_ext in '' $ac_executable_extensions; do
9504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9505     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9507     break 2
9508   fi
9509 done
9510   done
9511 IFS=$as_save_IFS
9512
9513 fi
9514 fi
9515 NMEDIT=$ac_cv_prog_NMEDIT
9516 if test -n "$NMEDIT"; then
9517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9518 $as_echo "$NMEDIT" >&6; }
9519 else
9520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9521 $as_echo "no" >&6; }
9522 fi
9523
9524
9525 fi
9526 if test -z "$ac_cv_prog_NMEDIT"; then
9527   ac_ct_NMEDIT=$NMEDIT
9528   # Extract the first word of "nmedit", so it can be a program name with args.
9529 set dummy nmedit; ac_word=$2
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9531 $as_echo_n "checking for $ac_word... " >&6; }
9532 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9533   $as_echo_n "(cached) " >&6
9534 else
9535   if test -n "$ac_ct_NMEDIT"; then
9536   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9537 else
9538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9539 for as_dir in $PATH
9540 do
9541   IFS=$as_save_IFS
9542   test -z "$as_dir" && as_dir=.
9543     for ac_exec_ext in '' $ac_executable_extensions; do
9544   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9545     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9547     break 2
9548   fi
9549 done
9550   done
9551 IFS=$as_save_IFS
9552
9553 fi
9554 fi
9555 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9556 if test -n "$ac_ct_NMEDIT"; then
9557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9558 $as_echo "$ac_ct_NMEDIT" >&6; }
9559 else
9560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561 $as_echo "no" >&6; }
9562 fi
9563
9564   if test "x$ac_ct_NMEDIT" = x; then
9565     NMEDIT=":"
9566   else
9567     case $cross_compiling:$ac_tool_warned in
9568 yes:)
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9571 ac_tool_warned=yes ;;
9572 esac
9573     NMEDIT=$ac_ct_NMEDIT
9574   fi
9575 else
9576   NMEDIT="$ac_cv_prog_NMEDIT"
9577 fi
9578
9579     if test -n "$ac_tool_prefix"; then
9580   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9581 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9583 $as_echo_n "checking for $ac_word... " >&6; }
9584 if ${ac_cv_prog_LIPO+:} false; then :
9585   $as_echo_n "(cached) " >&6
9586 else
9587   if test -n "$LIPO"; then
9588   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9589 else
9590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9591 for as_dir in $PATH
9592 do
9593   IFS=$as_save_IFS
9594   test -z "$as_dir" && as_dir=.
9595     for ac_exec_ext in '' $ac_executable_extensions; do
9596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9597     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9599     break 2
9600   fi
9601 done
9602   done
9603 IFS=$as_save_IFS
9604
9605 fi
9606 fi
9607 LIPO=$ac_cv_prog_LIPO
9608 if test -n "$LIPO"; then
9609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9610 $as_echo "$LIPO" >&6; }
9611 else
9612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9613 $as_echo "no" >&6; }
9614 fi
9615
9616
9617 fi
9618 if test -z "$ac_cv_prog_LIPO"; then
9619   ac_ct_LIPO=$LIPO
9620   # Extract the first word of "lipo", so it can be a program name with args.
9621 set dummy lipo; ac_word=$2
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9623 $as_echo_n "checking for $ac_word... " >&6; }
9624 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9625   $as_echo_n "(cached) " >&6
9626 else
9627   if test -n "$ac_ct_LIPO"; then
9628   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9629 else
9630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9631 for as_dir in $PATH
9632 do
9633   IFS=$as_save_IFS
9634   test -z "$as_dir" && as_dir=.
9635     for ac_exec_ext in '' $ac_executable_extensions; do
9636   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9637     ac_cv_prog_ac_ct_LIPO="lipo"
9638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9639     break 2
9640   fi
9641 done
9642   done
9643 IFS=$as_save_IFS
9644
9645 fi
9646 fi
9647 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9648 if test -n "$ac_ct_LIPO"; then
9649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9650 $as_echo "$ac_ct_LIPO" >&6; }
9651 else
9652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9653 $as_echo "no" >&6; }
9654 fi
9655
9656   if test "x$ac_ct_LIPO" = x; then
9657     LIPO=":"
9658   else
9659     case $cross_compiling:$ac_tool_warned in
9660 yes:)
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9663 ac_tool_warned=yes ;;
9664 esac
9665     LIPO=$ac_ct_LIPO
9666   fi
9667 else
9668   LIPO="$ac_cv_prog_LIPO"
9669 fi
9670
9671     if test -n "$ac_tool_prefix"; then
9672   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9673 set dummy ${ac_tool_prefix}otool; ac_word=$2
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9675 $as_echo_n "checking for $ac_word... " >&6; }
9676 if ${ac_cv_prog_OTOOL+:} false; then :
9677   $as_echo_n "(cached) " >&6
9678 else
9679   if test -n "$OTOOL"; then
9680   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9681 else
9682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9683 for as_dir in $PATH
9684 do
9685   IFS=$as_save_IFS
9686   test -z "$as_dir" && as_dir=.
9687     for ac_exec_ext in '' $ac_executable_extensions; do
9688   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9689     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9691     break 2
9692   fi
9693 done
9694   done
9695 IFS=$as_save_IFS
9696
9697 fi
9698 fi
9699 OTOOL=$ac_cv_prog_OTOOL
9700 if test -n "$OTOOL"; then
9701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9702 $as_echo "$OTOOL" >&6; }
9703 else
9704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9705 $as_echo "no" >&6; }
9706 fi
9707
9708
9709 fi
9710 if test -z "$ac_cv_prog_OTOOL"; then
9711   ac_ct_OTOOL=$OTOOL
9712   # Extract the first word of "otool", so it can be a program name with args.
9713 set dummy otool; ac_word=$2
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9715 $as_echo_n "checking for $ac_word... " >&6; }
9716 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9717   $as_echo_n "(cached) " >&6
9718 else
9719   if test -n "$ac_ct_OTOOL"; then
9720   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9721 else
9722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9723 for as_dir in $PATH
9724 do
9725   IFS=$as_save_IFS
9726   test -z "$as_dir" && as_dir=.
9727     for ac_exec_ext in '' $ac_executable_extensions; do
9728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9729     ac_cv_prog_ac_ct_OTOOL="otool"
9730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9731     break 2
9732   fi
9733 done
9734   done
9735 IFS=$as_save_IFS
9736
9737 fi
9738 fi
9739 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9740 if test -n "$ac_ct_OTOOL"; then
9741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9742 $as_echo "$ac_ct_OTOOL" >&6; }
9743 else
9744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9745 $as_echo "no" >&6; }
9746 fi
9747
9748   if test "x$ac_ct_OTOOL" = x; then
9749     OTOOL=":"
9750   else
9751     case $cross_compiling:$ac_tool_warned in
9752 yes:)
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9755 ac_tool_warned=yes ;;
9756 esac
9757     OTOOL=$ac_ct_OTOOL
9758   fi
9759 else
9760   OTOOL="$ac_cv_prog_OTOOL"
9761 fi
9762
9763     if test -n "$ac_tool_prefix"; then
9764   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9765 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9767 $as_echo_n "checking for $ac_word... " >&6; }
9768 if ${ac_cv_prog_OTOOL64+:} false; then :
9769   $as_echo_n "(cached) " >&6
9770 else
9771   if test -n "$OTOOL64"; then
9772   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9773 else
9774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9775 for as_dir in $PATH
9776 do
9777   IFS=$as_save_IFS
9778   test -z "$as_dir" && as_dir=.
9779     for ac_exec_ext in '' $ac_executable_extensions; do
9780   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9781     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9783     break 2
9784   fi
9785 done
9786   done
9787 IFS=$as_save_IFS
9788
9789 fi
9790 fi
9791 OTOOL64=$ac_cv_prog_OTOOL64
9792 if test -n "$OTOOL64"; then
9793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9794 $as_echo "$OTOOL64" >&6; }
9795 else
9796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9797 $as_echo "no" >&6; }
9798 fi
9799
9800
9801 fi
9802 if test -z "$ac_cv_prog_OTOOL64"; then
9803   ac_ct_OTOOL64=$OTOOL64
9804   # Extract the first word of "otool64", so it can be a program name with args.
9805 set dummy otool64; ac_word=$2
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9807 $as_echo_n "checking for $ac_word... " >&6; }
9808 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9809   $as_echo_n "(cached) " >&6
9810 else
9811   if test -n "$ac_ct_OTOOL64"; then
9812   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9813 else
9814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9815 for as_dir in $PATH
9816 do
9817   IFS=$as_save_IFS
9818   test -z "$as_dir" && as_dir=.
9819     for ac_exec_ext in '' $ac_executable_extensions; do
9820   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9821     ac_cv_prog_ac_ct_OTOOL64="otool64"
9822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9823     break 2
9824   fi
9825 done
9826   done
9827 IFS=$as_save_IFS
9828
9829 fi
9830 fi
9831 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9832 if test -n "$ac_ct_OTOOL64"; then
9833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9834 $as_echo "$ac_ct_OTOOL64" >&6; }
9835 else
9836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9837 $as_echo "no" >&6; }
9838 fi
9839
9840   if test "x$ac_ct_OTOOL64" = x; then
9841     OTOOL64=":"
9842   else
9843     case $cross_compiling:$ac_tool_warned in
9844 yes:)
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9847 ac_tool_warned=yes ;;
9848 esac
9849     OTOOL64=$ac_ct_OTOOL64
9850   fi
9851 else
9852   OTOOL64="$ac_cv_prog_OTOOL64"
9853 fi
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9882 $as_echo_n "checking for -single_module linker flag... " >&6; }
9883 if ${lt_cv_apple_cc_single_mod+:} false; then :
9884   $as_echo_n "(cached) " >&6
9885 else
9886   lt_cv_apple_cc_single_mod=no
9887       if test -z "$LT_MULTI_MODULE"; then
9888         # By default we will add the -single_module flag. You can override
9889         # by either setting the environment variable LT_MULTI_MODULE
9890         # non-empty at configure time, or by adding -multi_module to the
9891         # link flags.
9892         rm -rf libconftest.dylib*
9893         echo "int foo(void){return 1;}" > conftest.c
9894         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9895 -dynamiclib -Wl,-single_module conftest.c" >&5
9896         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9897           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9898         _lt_result=$?
9899         # If there is a non-empty error log, and "single_module"
9900         # appears in it, assume the flag caused a linker warning
9901         if test -s conftest.err && $GREP single_module conftest.err; then
9902           cat conftest.err >&5
9903         # Otherwise, if the output was created with a 0 exit code from
9904         # the compiler, it worked.
9905         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9906           lt_cv_apple_cc_single_mod=yes
9907         else
9908           cat conftest.err >&5
9909         fi
9910         rm -rf libconftest.dylib*
9911         rm -f conftest.*
9912       fi
9913 fi
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9915 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9916
9917     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9918 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9919 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9920   $as_echo_n "(cached) " >&6
9921 else
9922   lt_cv_ld_exported_symbols_list=no
9923       save_LDFLAGS=$LDFLAGS
9924       echo "_main" > conftest.sym
9925       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9926       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h.  */
9928
9929 int
9930 main ()
9931 {
9932
9933   ;
9934   return 0;
9935 }
9936 _ACEOF
9937 if ac_fn_c_try_link "$LINENO"; then :
9938   lt_cv_ld_exported_symbols_list=yes
9939 else
9940   lt_cv_ld_exported_symbols_list=no
9941 fi
9942 rm -f core conftest.err conftest.$ac_objext \
9943     conftest$ac_exeext conftest.$ac_ext
9944         LDFLAGS=$save_LDFLAGS
9945
9946 fi
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9948 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9949
9950     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9951 $as_echo_n "checking for -force_load linker flag... " >&6; }
9952 if ${lt_cv_ld_force_load+:} false; then :
9953   $as_echo_n "(cached) " >&6
9954 else
9955   lt_cv_ld_force_load=no
9956       cat > conftest.c << _LT_EOF
9957 int forced_loaded() { return 2;}
9958 _LT_EOF
9959       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9960       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9961       echo "$AR cru libconftest.a conftest.o" >&5
9962       $AR cru libconftest.a conftest.o 2>&5
9963       echo "$RANLIB libconftest.a" >&5
9964       $RANLIB libconftest.a 2>&5
9965       cat > conftest.c << _LT_EOF
9966 int main() { return 0;}
9967 _LT_EOF
9968       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9969       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9970       _lt_result=$?
9971       if test -s conftest.err && $GREP force_load conftest.err; then
9972         cat conftest.err >&5
9973       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9974         lt_cv_ld_force_load=yes
9975       else
9976         cat conftest.err >&5
9977       fi
9978         rm -f conftest.err libconftest.a conftest conftest.c
9979         rm -rf conftest.dSYM
9980
9981 fi
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9983 $as_echo "$lt_cv_ld_force_load" >&6; }
9984     case $host_os in
9985     rhapsody* | darwin1.[012])
9986       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9987     darwin1.*)
9988       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9989     darwin*) # darwin 5.x on
9990       # if running on 10.5 or later, the deployment target defaults
9991       # to the OS version, if on x86, and 10.4, the deployment
9992       # target defaults to 10.4. Don't you love it?
9993       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9994         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9995           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9996         10.[012][,.]*)
9997           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9998         10.*)
9999           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10000       esac
10001     ;;
10002   esac
10003     if test yes = "$lt_cv_apple_cc_single_mod"; then
10004       _lt_dar_single_mod='$single_module'
10005     fi
10006     if test yes = "$lt_cv_ld_exported_symbols_list"; then
10007       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10008     else
10009       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10010     fi
10011     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10012       _lt_dsymutil='~$DSYMUTIL $lib || :'
10013     else
10014       _lt_dsymutil=
10015     fi
10016     ;;
10017   esac
10018
10019 # func_munge_path_list VARIABLE PATH
10020 # -----------------------------------
10021 # VARIABLE is name of variable containing _space_ separated list of
10022 # directories to be munged by the contents of PATH, which is string
10023 # having a format:
10024 # "DIR[:DIR]:"
10025 #       string "DIR[ DIR]" will be prepended to VARIABLE
10026 # ":DIR[:DIR]"
10027 #       string "DIR[ DIR]" will be appended to VARIABLE
10028 # "DIRP[:DIRP]::[DIRA:]DIRA"
10029 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10030 #       "DIRA[ DIRA]" will be appended to VARIABLE
10031 # "DIR[:DIR]"
10032 #       VARIABLE will be replaced by "DIR[ DIR]"
10033 func_munge_path_list ()
10034 {
10035     case x$2 in
10036     x)
10037         ;;
10038     *:)
10039         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10040         ;;
10041     x:*)
10042         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10043         ;;
10044     *::*)
10045         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10046         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10047         ;;
10048     *)
10049         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10050         ;;
10051     esac
10052 }
10053
10054 for ac_header in dlfcn.h
10055 do :
10056   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10057 "
10058 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10059   cat >>confdefs.h <<_ACEOF
10060 #define HAVE_DLFCN_H 1
10061 _ACEOF
10062
10063 fi
10064
10065 done
10066
10067
10068
10069
10070
10071 # Set options
10072
10073
10074
10075         enable_dlopen=no
10076
10077
10078   enable_win32_dll=no
10079
10080
10081             # Check whether --enable-shared was given.
10082 if test "${enable_shared+set}" = set; then :
10083   enableval=$enable_shared; p=${PACKAGE-default}
10084     case $enableval in
10085     yes) enable_shared=yes ;;
10086     no) enable_shared=no ;;
10087     *)
10088       enable_shared=no
10089       # Look at the argument we got.  We use all the common list separators.
10090       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10091       for pkg in $enableval; do
10092         IFS=$lt_save_ifs
10093         if test "X$pkg" = "X$p"; then
10094           enable_shared=yes
10095         fi
10096       done
10097       IFS=$lt_save_ifs
10098       ;;
10099     esac
10100 else
10101   enable_shared=yes
10102 fi
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114 # Check whether --with-pic was given.
10115 if test "${with_pic+set}" = set; then :
10116   withval=$with_pic; lt_p=${PACKAGE-default}
10117     case $withval in
10118     yes|no) pic_mode=$withval ;;
10119     *)
10120       pic_mode=default
10121       # Look at the argument we got.  We use all the common list separators.
10122       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10123       for lt_pkg in $withval; do
10124         IFS=$lt_save_ifs
10125         if test "X$lt_pkg" = "X$lt_p"; then
10126           pic_mode=yes
10127         fi
10128       done
10129       IFS=$lt_save_ifs
10130       ;;
10131     esac
10132 else
10133   pic_mode=default
10134 fi
10135
10136
10137
10138
10139
10140
10141
10142
10143   # Check whether --enable-fast-install was given.
10144 if test "${enable_fast_install+set}" = set; then :
10145   enableval=$enable_fast_install; p=${PACKAGE-default}
10146     case $enableval in
10147     yes) enable_fast_install=yes ;;
10148     no) enable_fast_install=no ;;
10149     *)
10150       enable_fast_install=no
10151       # Look at the argument we got.  We use all the common list separators.
10152       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10153       for pkg in $enableval; do
10154         IFS=$lt_save_ifs
10155         if test "X$pkg" = "X$p"; then
10156           enable_fast_install=yes
10157         fi
10158       done
10159       IFS=$lt_save_ifs
10160       ;;
10161     esac
10162 else
10163   enable_fast_install=yes
10164 fi
10165
10166
10167
10168
10169
10170
10171
10172
10173   shared_archive_member_spec=
10174 case $host,$enable_shared in
10175 power*-*-aix[5-9]*,yes)
10176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10177 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10178
10179 # Check whether --with-aix-soname was given.
10180 if test "${with_aix_soname+set}" = set; then :
10181   withval=$with_aix_soname; case $withval in
10182     aix|svr4|both)
10183       ;;
10184     *)
10185       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10186       ;;
10187     esac
10188     lt_cv_with_aix_soname=$with_aix_soname
10189 else
10190   if ${lt_cv_with_aix_soname+:} false; then :
10191   $as_echo_n "(cached) " >&6
10192 else
10193   lt_cv_with_aix_soname=aix
10194 fi
10195
10196     with_aix_soname=$lt_cv_with_aix_soname
10197 fi
10198
10199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10200 $as_echo "$with_aix_soname" >&6; }
10201   if test aix != "$with_aix_soname"; then
10202     # For the AIX way of multilib, we name the shared archive member
10203     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10204     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10205     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10206     # the AIX toolchain works better with OBJECT_MODE set (default 32).
10207     if test 64 = "${OBJECT_MODE-32}"; then
10208       shared_archive_member_spec=shr_64
10209     else
10210       shared_archive_member_spec=shr
10211     fi
10212   fi
10213   ;;
10214 *)
10215   with_aix_soname=aix
10216   ;;
10217 esac
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228 # This can be used to rebuild libtool when needed
10229 LIBTOOL_DEPS=$ltmain
10230
10231 # Always use our own libtool.
10232 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263 test -z "$LN_S" && LN_S="ln -s"
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278 if test -n "${ZSH_VERSION+set}"; then
10279    setopt NO_GLOB_SUBST
10280 fi
10281
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10283 $as_echo_n "checking for objdir... " >&6; }
10284 if ${lt_cv_objdir+:} false; then :
10285   $as_echo_n "(cached) " >&6
10286 else
10287   rm -f .libs 2>/dev/null
10288 mkdir .libs 2>/dev/null
10289 if test -d .libs; then
10290   lt_cv_objdir=.libs
10291 else
10292   # MS-DOS does not allow filenames that begin with a dot.
10293   lt_cv_objdir=_libs
10294 fi
10295 rmdir .libs 2>/dev/null
10296 fi
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10298 $as_echo "$lt_cv_objdir" >&6; }
10299 objdir=$lt_cv_objdir
10300
10301
10302
10303
10304
10305 cat >>confdefs.h <<_ACEOF
10306 #define LT_OBJDIR "$lt_cv_objdir/"
10307 _ACEOF
10308
10309
10310
10311
10312 case $host_os in
10313 aix3*)
10314   # AIX sometimes has problems with the GCC collect2 program.  For some
10315   # reason, if we set the COLLECT_NAMES environment variable, the problems
10316   # vanish in a puff of smoke.
10317   if test set != "${COLLECT_NAMES+set}"; then
10318     COLLECT_NAMES=
10319     export COLLECT_NAMES
10320   fi
10321   ;;
10322 esac
10323
10324 # Global variables:
10325 ofile=libtool
10326 can_build_shared=yes
10327
10328 # All known linkers require a '.a' archive for static linking (except MSVC,
10329 # which needs '.lib').
10330 libext=a
10331
10332 with_gnu_ld=$lt_cv_prog_gnu_ld
10333
10334 old_CC=$CC
10335 old_CFLAGS=$CFLAGS
10336
10337 # Set sane defaults for various variables
10338 test -z "$CC" && CC=cc
10339 test -z "$LTCC" && LTCC=$CC
10340 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10341 test -z "$LD" && LD=ld
10342 test -z "$ac_objext" && ac_objext=o
10343
10344 func_cc_basename $compiler
10345 cc_basename=$func_cc_basename_result
10346
10347
10348 # Only perform the check for file, if the check method requires it
10349 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10350 case $deplibs_check_method in
10351 file_magic*)
10352   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10353     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10354 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10355 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10356   $as_echo_n "(cached) " >&6
10357 else
10358   case $MAGIC_CMD in
10359 [\\/*] |  ?:[\\/]*)
10360   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10361   ;;
10362 *)
10363   lt_save_MAGIC_CMD=$MAGIC_CMD
10364   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10365   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10366   for ac_dir in $ac_dummy; do
10367     IFS=$lt_save_ifs
10368     test -z "$ac_dir" && ac_dir=.
10369     if test -f "$ac_dir/${ac_tool_prefix}file"; then
10370       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10371       if test -n "$file_magic_test_file"; then
10372         case $deplibs_check_method in
10373         "file_magic "*)
10374           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10375           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10376           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10377             $EGREP "$file_magic_regex" > /dev/null; then
10378             :
10379           else
10380             cat <<_LT_EOF 1>&2
10381
10382 *** Warning: the command libtool uses to detect shared libraries,
10383 *** $file_magic_cmd, produces output that libtool cannot recognize.
10384 *** The result is that libtool may fail to recognize shared libraries
10385 *** as such.  This will affect the creation of libtool libraries that
10386 *** depend on shared libraries, but programs linked with such libtool
10387 *** libraries will work regardless of this problem.  Nevertheless, you
10388 *** may want to report the problem to your system manager and/or to
10389 *** bug-libtool@gnu.org
10390
10391 _LT_EOF
10392           fi ;;
10393         esac
10394       fi
10395       break
10396     fi
10397   done
10398   IFS=$lt_save_ifs
10399   MAGIC_CMD=$lt_save_MAGIC_CMD
10400   ;;
10401 esac
10402 fi
10403
10404 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10405 if test -n "$MAGIC_CMD"; then
10406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10407 $as_echo "$MAGIC_CMD" >&6; }
10408 else
10409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10410 $as_echo "no" >&6; }
10411 fi
10412
10413
10414
10415
10416
10417 if test -z "$lt_cv_path_MAGIC_CMD"; then
10418   if test -n "$ac_tool_prefix"; then
10419     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10420 $as_echo_n "checking for file... " >&6; }
10421 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10422   $as_echo_n "(cached) " >&6
10423 else
10424   case $MAGIC_CMD in
10425 [\\/*] |  ?:[\\/]*)
10426   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10427   ;;
10428 *)
10429   lt_save_MAGIC_CMD=$MAGIC_CMD
10430   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10431   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10432   for ac_dir in $ac_dummy; do
10433     IFS=$lt_save_ifs
10434     test -z "$ac_dir" && ac_dir=.
10435     if test -f "$ac_dir/file"; then
10436       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10437       if test -n "$file_magic_test_file"; then
10438         case $deplibs_check_method in
10439         "file_magic "*)
10440           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10441           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10442           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10443             $EGREP "$file_magic_regex" > /dev/null; then
10444             :
10445           else
10446             cat <<_LT_EOF 1>&2
10447
10448 *** Warning: the command libtool uses to detect shared libraries,
10449 *** $file_magic_cmd, produces output that libtool cannot recognize.
10450 *** The result is that libtool may fail to recognize shared libraries
10451 *** as such.  This will affect the creation of libtool libraries that
10452 *** depend on shared libraries, but programs linked with such libtool
10453 *** libraries will work regardless of this problem.  Nevertheless, you
10454 *** may want to report the problem to your system manager and/or to
10455 *** bug-libtool@gnu.org
10456
10457 _LT_EOF
10458           fi ;;
10459         esac
10460       fi
10461       break
10462     fi
10463   done
10464   IFS=$lt_save_ifs
10465   MAGIC_CMD=$lt_save_MAGIC_CMD
10466   ;;
10467 esac
10468 fi
10469
10470 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10471 if test -n "$MAGIC_CMD"; then
10472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10473 $as_echo "$MAGIC_CMD" >&6; }
10474 else
10475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10476 $as_echo "no" >&6; }
10477 fi
10478
10479
10480   else
10481     MAGIC_CMD=:
10482   fi
10483 fi
10484
10485   fi
10486   ;;
10487 esac
10488
10489 # Use C for the default configuration in the libtool script
10490
10491 lt_save_CC=$CC
10492 ac_ext=c
10493 ac_cpp='$CPP $CPPFLAGS'
10494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10497
10498
10499 # Source file extension for C test sources.
10500 ac_ext=c
10501
10502 # Object file extension for compiled C test sources.
10503 objext=o
10504 objext=$objext
10505
10506 # Code to be used in simple compile tests
10507 lt_simple_compile_test_code="int some_variable = 0;"
10508
10509 # Code to be used in simple link tests
10510 lt_simple_link_test_code='int main(){return(0);}'
10511
10512
10513
10514
10515
10516
10517
10518 # If no C compiler was specified, use CC.
10519 LTCC=${LTCC-"$CC"}
10520
10521 # If no C compiler flags were specified, use CFLAGS.
10522 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10523
10524 # Allow CC to be a program name with arguments.
10525 compiler=$CC
10526
10527 # Save the default compiler, since it gets overwritten when the other
10528 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10529 compiler_DEFAULT=$CC
10530
10531 # save warnings/boilerplate of simple test code
10532 ac_outfile=conftest.$ac_objext
10533 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10534 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10535 _lt_compiler_boilerplate=`cat conftest.err`
10536 $RM conftest*
10537
10538 ac_outfile=conftest.$ac_objext
10539 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10540 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10541 _lt_linker_boilerplate=`cat conftest.err`
10542 $RM -r conftest*
10543
10544
10545 ## CAVEAT EMPTOR:
10546 ## There is no encapsulation within the following macros, do not change
10547 ## the running order or otherwise move them around unless you know exactly
10548 ## what you are doing...
10549 if test -n "$compiler"; then
10550
10551 lt_prog_compiler_no_builtin_flag=
10552
10553 if test yes = "$GCC"; then
10554   case $cc_basename in
10555   nvcc*)
10556     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10557   *)
10558     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10559   esac
10560
10561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10562 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10563 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10564   $as_echo_n "(cached) " >&6
10565 else
10566   lt_cv_prog_compiler_rtti_exceptions=no
10567    ac_outfile=conftest.$ac_objext
10568    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10569    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10570    # Insert the option either (1) after the last *FLAGS variable, or
10571    # (2) before a word containing "conftest.", or (3) at the end.
10572    # Note that $ac_compile itself does not contain backslashes and begins
10573    # with a dollar sign (not a hyphen), so the echo should work correctly.
10574    # The option is referenced via a variable to avoid confusing sed.
10575    lt_compile=`echo "$ac_compile" | $SED \
10576    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10577    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10578    -e 's:$: $lt_compiler_flag:'`
10579    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10580    (eval "$lt_compile" 2>conftest.err)
10581    ac_status=$?
10582    cat conftest.err >&5
10583    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584    if (exit $ac_status) && test -s "$ac_outfile"; then
10585      # The compiler can only warn and ignore the option if not recognized
10586      # So say no if there are warnings other than the usual output.
10587      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10588      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10589      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10590        lt_cv_prog_compiler_rtti_exceptions=yes
10591      fi
10592    fi
10593    $RM conftest*
10594
10595 fi
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10597 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10598
10599 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10600     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10601 else
10602     :
10603 fi
10604
10605 fi
10606
10607
10608
10609
10610
10611
10612   lt_prog_compiler_wl=
10613 lt_prog_compiler_pic=
10614 lt_prog_compiler_static=
10615
10616
10617   if test yes = "$GCC"; then
10618     lt_prog_compiler_wl='-Wl,'
10619     lt_prog_compiler_static='-static'
10620
10621     case $host_os in
10622       aix*)
10623       # All AIX code is PIC.
10624       if test ia64 = "$host_cpu"; then
10625         # AIX 5 now supports IA64 processor
10626         lt_prog_compiler_static='-Bstatic'
10627       fi
10628       lt_prog_compiler_pic='-fPIC'
10629       ;;
10630
10631     amigaos*)
10632       case $host_cpu in
10633       powerpc)
10634             # see comment about AmigaOS4 .so support
10635             lt_prog_compiler_pic='-fPIC'
10636         ;;
10637       m68k)
10638             # FIXME: we need at least 68020 code to build shared libraries, but
10639             # adding the '-m68020' flag to GCC prevents building anything better,
10640             # like '-m68040'.
10641             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10642         ;;
10643       esac
10644       ;;
10645
10646     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10647       # PIC is the default for these OSes.
10648       ;;
10649
10650     mingw* | cygwin* | pw32* | os2* | cegcc*)
10651       # This hack is so that the source file can tell whether it is being
10652       # built for inclusion in a dll (and should export symbols for example).
10653       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10654       # (--disable-auto-import) libraries
10655       lt_prog_compiler_pic='-DDLL_EXPORT'
10656       case $host_os in
10657       os2*)
10658         lt_prog_compiler_static='$wl-static'
10659         ;;
10660       esac
10661       ;;
10662
10663     darwin* | rhapsody*)
10664       # PIC is the default on this platform
10665       # Common symbols not allowed in MH_DYLIB files
10666       lt_prog_compiler_pic='-fno-common'
10667       ;;
10668
10669     haiku*)
10670       # PIC is the default for Haiku.
10671       # The "-static" flag exists, but is broken.
10672       lt_prog_compiler_static=
10673       ;;
10674
10675     hpux*)
10676       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10677       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10678       # sets the default TLS model and affects inlining.
10679       case $host_cpu in
10680       hppa*64*)
10681         # +Z the default
10682         ;;
10683       *)
10684         lt_prog_compiler_pic='-fPIC'
10685         ;;
10686       esac
10687       ;;
10688
10689     interix[3-9]*)
10690       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10691       # Instead, we relocate shared libraries at runtime.
10692       ;;
10693
10694     msdosdjgpp*)
10695       # Just because we use GCC doesn't mean we suddenly get shared libraries
10696       # on systems that don't support them.
10697       lt_prog_compiler_can_build_shared=no
10698       enable_shared=no
10699       ;;
10700
10701     *nto* | *qnx*)
10702       # QNX uses GNU C++, but need to define -shared option too, otherwise
10703       # it will coredump.
10704       lt_prog_compiler_pic='-fPIC -shared'
10705       ;;
10706
10707     sysv4*MP*)
10708       if test -d /usr/nec; then
10709         lt_prog_compiler_pic=-Kconform_pic
10710       fi
10711       ;;
10712
10713     *)
10714       lt_prog_compiler_pic='-fPIC'
10715       ;;
10716     esac
10717
10718     case $cc_basename in
10719     nvcc*) # Cuda Compiler Driver 2.2
10720       lt_prog_compiler_wl='-Xlinker '
10721       if test -n "$lt_prog_compiler_pic"; then
10722         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10723       fi
10724       ;;
10725     esac
10726   else
10727     # PORTME Check for flag to pass linker flags through the system compiler.
10728     case $host_os in
10729     aix*)
10730       lt_prog_compiler_wl='-Wl,'
10731       if test ia64 = "$host_cpu"; then
10732         # AIX 5 now supports IA64 processor
10733         lt_prog_compiler_static='-Bstatic'
10734       else
10735         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10736       fi
10737       ;;
10738
10739     darwin* | rhapsody*)
10740       # PIC is the default on this platform
10741       # Common symbols not allowed in MH_DYLIB files
10742       lt_prog_compiler_pic='-fno-common'
10743       case $cc_basename in
10744       nagfor*)
10745         # NAG Fortran compiler
10746         lt_prog_compiler_wl='-Wl,-Wl,,'
10747         lt_prog_compiler_pic='-PIC'
10748         lt_prog_compiler_static='-Bstatic'
10749         ;;
10750       esac
10751       ;;
10752
10753     mingw* | cygwin* | pw32* | os2* | cegcc*)
10754       # This hack is so that the source file can tell whether it is being
10755       # built for inclusion in a dll (and should export symbols for example).
10756       lt_prog_compiler_pic='-DDLL_EXPORT'
10757       case $host_os in
10758       os2*)
10759         lt_prog_compiler_static='$wl-static'
10760         ;;
10761       esac
10762       ;;
10763
10764     hpux9* | hpux10* | hpux11*)
10765       lt_prog_compiler_wl='-Wl,'
10766       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10767       # not for PA HP-UX.
10768       case $host_cpu in
10769       hppa*64*|ia64*)
10770         # +Z the default
10771         ;;
10772       *)
10773         lt_prog_compiler_pic='+Z'
10774         ;;
10775       esac
10776       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10777       lt_prog_compiler_static='$wl-a ${wl}archive'
10778       ;;
10779
10780     irix5* | irix6* | nonstopux*)
10781       lt_prog_compiler_wl='-Wl,'
10782       # PIC (with -KPIC) is the default.
10783       lt_prog_compiler_static='-non_shared'
10784       ;;
10785
10786     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10787       case $cc_basename in
10788       # old Intel for x86_64, which still supported -KPIC.
10789       ecc*)
10790         lt_prog_compiler_wl='-Wl,'
10791         lt_prog_compiler_pic='-KPIC'
10792         lt_prog_compiler_static='-static'
10793         ;;
10794       # icc used to be incompatible with GCC.
10795       # ICC 10 doesn't accept -KPIC any more.
10796       icc* | ifort*)
10797         lt_prog_compiler_wl='-Wl,'
10798         lt_prog_compiler_pic='-fPIC'
10799         lt_prog_compiler_static='-static'
10800         ;;
10801       # Lahey Fortran 8.1.
10802       lf95*)
10803         lt_prog_compiler_wl='-Wl,'
10804         lt_prog_compiler_pic='--shared'
10805         lt_prog_compiler_static='--static'
10806         ;;
10807       nagfor*)
10808         # NAG Fortran compiler
10809         lt_prog_compiler_wl='-Wl,-Wl,,'
10810         lt_prog_compiler_pic='-PIC'
10811         lt_prog_compiler_static='-Bstatic'
10812         ;;
10813       tcc*)
10814         # Fabrice Bellard et al's Tiny C Compiler
10815         lt_prog_compiler_wl='-Wl,'
10816         lt_prog_compiler_pic='-fPIC'
10817         lt_prog_compiler_static='-static'
10818         ;;
10819       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10820         # Portland Group compilers (*not* the Pentium gcc compiler,
10821         # which looks to be a dead project)
10822         lt_prog_compiler_wl='-Wl,'
10823         lt_prog_compiler_pic='-fpic'
10824         lt_prog_compiler_static='-Bstatic'
10825         ;;
10826       ccc*)
10827         lt_prog_compiler_wl='-Wl,'
10828         # All Alpha code is PIC.
10829         lt_prog_compiler_static='-non_shared'
10830         ;;
10831       xl* | bgxl* | bgf* | mpixl*)
10832         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10833         lt_prog_compiler_wl='-Wl,'
10834         lt_prog_compiler_pic='-qpic'
10835         lt_prog_compiler_static='-qstaticlink'
10836         ;;
10837       *)
10838         case `$CC -V 2>&1 | sed 5q` in
10839         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10840           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10841           lt_prog_compiler_pic='-KPIC'
10842           lt_prog_compiler_static='-Bstatic'
10843           lt_prog_compiler_wl=''
10844           ;;
10845         *Sun\ F* | *Sun*Fortran*)
10846           lt_prog_compiler_pic='-KPIC'
10847           lt_prog_compiler_static='-Bstatic'
10848           lt_prog_compiler_wl='-Qoption ld '
10849           ;;
10850         *Sun\ C*)
10851           # Sun C 5.9
10852           lt_prog_compiler_pic='-KPIC'
10853           lt_prog_compiler_static='-Bstatic'
10854           lt_prog_compiler_wl='-Wl,'
10855           ;;
10856         *Intel*\ [CF]*Compiler*)
10857           lt_prog_compiler_wl='-Wl,'
10858           lt_prog_compiler_pic='-fPIC'
10859           lt_prog_compiler_static='-static'
10860           ;;
10861         *Portland\ Group*)
10862           lt_prog_compiler_wl='-Wl,'
10863           lt_prog_compiler_pic='-fpic'
10864           lt_prog_compiler_static='-Bstatic'
10865           ;;
10866         esac
10867         ;;
10868       esac
10869       ;;
10870
10871     newsos6)
10872       lt_prog_compiler_pic='-KPIC'
10873       lt_prog_compiler_static='-Bstatic'
10874       ;;
10875
10876     *nto* | *qnx*)
10877       # QNX uses GNU C++, but need to define -shared option too, otherwise
10878       # it will coredump.
10879       lt_prog_compiler_pic='-fPIC -shared'
10880       ;;
10881
10882     osf3* | osf4* | osf5*)
10883       lt_prog_compiler_wl='-Wl,'
10884       # All OSF/1 code is PIC.
10885       lt_prog_compiler_static='-non_shared'
10886       ;;
10887
10888     rdos*)
10889       lt_prog_compiler_static='-non_shared'
10890       ;;
10891
10892     solaris*)
10893       lt_prog_compiler_pic='-KPIC'
10894       lt_prog_compiler_static='-Bstatic'
10895       case $cc_basename in
10896       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10897         lt_prog_compiler_wl='-Qoption ld ';;
10898       *)
10899         lt_prog_compiler_wl='-Wl,';;
10900       esac
10901       ;;
10902
10903     sunos4*)
10904       lt_prog_compiler_wl='-Qoption ld '
10905       lt_prog_compiler_pic='-PIC'
10906       lt_prog_compiler_static='-Bstatic'
10907       ;;
10908
10909     sysv4 | sysv4.2uw2* | sysv4.3*)
10910       lt_prog_compiler_wl='-Wl,'
10911       lt_prog_compiler_pic='-KPIC'
10912       lt_prog_compiler_static='-Bstatic'
10913       ;;
10914
10915     sysv4*MP*)
10916       if test -d /usr/nec; then
10917         lt_prog_compiler_pic='-Kconform_pic'
10918         lt_prog_compiler_static='-Bstatic'
10919       fi
10920       ;;
10921
10922     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10923       lt_prog_compiler_wl='-Wl,'
10924       lt_prog_compiler_pic='-KPIC'
10925       lt_prog_compiler_static='-Bstatic'
10926       ;;
10927
10928     unicos*)
10929       lt_prog_compiler_wl='-Wl,'
10930       lt_prog_compiler_can_build_shared=no
10931       ;;
10932
10933     uts4*)
10934       lt_prog_compiler_pic='-pic'
10935       lt_prog_compiler_static='-Bstatic'
10936       ;;
10937
10938     *)
10939       lt_prog_compiler_can_build_shared=no
10940       ;;
10941     esac
10942   fi
10943
10944 case $host_os in
10945   # For platforms that do not support PIC, -DPIC is meaningless:
10946   *djgpp*)
10947     lt_prog_compiler_pic=
10948     ;;
10949   *)
10950     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10951     ;;
10952 esac
10953
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10955 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10956 if ${lt_cv_prog_compiler_pic+:} false; then :
10957   $as_echo_n "(cached) " >&6
10958 else
10959   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10960 fi
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10962 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10963 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10964
10965 #
10966 # Check to make sure the PIC flag actually works.
10967 #
10968 if test -n "$lt_prog_compiler_pic"; then
10969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10970 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10971 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10972   $as_echo_n "(cached) " >&6
10973 else
10974   lt_cv_prog_compiler_pic_works=no
10975    ac_outfile=conftest.$ac_objext
10976    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10977    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10978    # Insert the option either (1) after the last *FLAGS variable, or
10979    # (2) before a word containing "conftest.", or (3) at the end.
10980    # Note that $ac_compile itself does not contain backslashes and begins
10981    # with a dollar sign (not a hyphen), so the echo should work correctly.
10982    # The option is referenced via a variable to avoid confusing sed.
10983    lt_compile=`echo "$ac_compile" | $SED \
10984    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10985    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10986    -e 's:$: $lt_compiler_flag:'`
10987    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10988    (eval "$lt_compile" 2>conftest.err)
10989    ac_status=$?
10990    cat conftest.err >&5
10991    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992    if (exit $ac_status) && test -s "$ac_outfile"; then
10993      # The compiler can only warn and ignore the option if not recognized
10994      # So say no if there are warnings other than the usual output.
10995      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10996      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10997      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10998        lt_cv_prog_compiler_pic_works=yes
10999      fi
11000    fi
11001    $RM conftest*
11002
11003 fi
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11005 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11006
11007 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11008     case $lt_prog_compiler_pic in
11009      "" | " "*) ;;
11010      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11011      esac
11012 else
11013     lt_prog_compiler_pic=
11014      lt_prog_compiler_can_build_shared=no
11015 fi
11016
11017 fi
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029 #
11030 # Check to make sure the static flag actually works.
11031 #
11032 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11034 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11035 if ${lt_cv_prog_compiler_static_works+:} false; then :
11036   $as_echo_n "(cached) " >&6
11037 else
11038   lt_cv_prog_compiler_static_works=no
11039    save_LDFLAGS=$LDFLAGS
11040    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11041    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11042    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11043      # The linker can only warn and ignore the option if not recognized
11044      # So say no if there are warnings
11045      if test -s conftest.err; then
11046        # Append any errors to the config.log.
11047        cat conftest.err 1>&5
11048        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11049        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11050        if diff conftest.exp conftest.er2 >/dev/null; then
11051          lt_cv_prog_compiler_static_works=yes
11052        fi
11053      else
11054        lt_cv_prog_compiler_static_works=yes
11055      fi
11056    fi
11057    $RM -r conftest*
11058    LDFLAGS=$save_LDFLAGS
11059
11060 fi
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11062 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11063
11064 if test yes = "$lt_cv_prog_compiler_static_works"; then
11065     :
11066 else
11067     lt_prog_compiler_static=
11068 fi
11069
11070
11071
11072
11073
11074
11075
11076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11077 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11078 if ${lt_cv_prog_compiler_c_o+:} false; then :
11079   $as_echo_n "(cached) " >&6
11080 else
11081   lt_cv_prog_compiler_c_o=no
11082    $RM -r conftest 2>/dev/null
11083    mkdir conftest
11084    cd conftest
11085    mkdir out
11086    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11087
11088    lt_compiler_flag="-o out/conftest2.$ac_objext"
11089    # Insert the option either (1) after the last *FLAGS variable, or
11090    # (2) before a word containing "conftest.", or (3) at the end.
11091    # Note that $ac_compile itself does not contain backslashes and begins
11092    # with a dollar sign (not a hyphen), so the echo should work correctly.
11093    lt_compile=`echo "$ac_compile" | $SED \
11094    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11095    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11096    -e 's:$: $lt_compiler_flag:'`
11097    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11098    (eval "$lt_compile" 2>out/conftest.err)
11099    ac_status=$?
11100    cat out/conftest.err >&5
11101    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11103    then
11104      # The compiler can only warn and ignore the option if not recognized
11105      # So say no if there are warnings
11106      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11107      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11108      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11109        lt_cv_prog_compiler_c_o=yes
11110      fi
11111    fi
11112    chmod u+w . 2>&5
11113    $RM conftest*
11114    # SGI C++ compiler will create directory out/ii_files/ for
11115    # template instantiation
11116    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11117    $RM out/* && rmdir out
11118    cd ..
11119    $RM -r conftest
11120    $RM conftest*
11121
11122 fi
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11124 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11125
11126
11127
11128
11129
11130
11131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11132 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11133 if ${lt_cv_prog_compiler_c_o+:} false; then :
11134   $as_echo_n "(cached) " >&6
11135 else
11136   lt_cv_prog_compiler_c_o=no
11137    $RM -r conftest 2>/dev/null
11138    mkdir conftest
11139    cd conftest
11140    mkdir out
11141    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11142
11143    lt_compiler_flag="-o out/conftest2.$ac_objext"
11144    # Insert the option either (1) after the last *FLAGS variable, or
11145    # (2) before a word containing "conftest.", or (3) at the end.
11146    # Note that $ac_compile itself does not contain backslashes and begins
11147    # with a dollar sign (not a hyphen), so the echo should work correctly.
11148    lt_compile=`echo "$ac_compile" | $SED \
11149    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11150    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11151    -e 's:$: $lt_compiler_flag:'`
11152    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11153    (eval "$lt_compile" 2>out/conftest.err)
11154    ac_status=$?
11155    cat out/conftest.err >&5
11156    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11158    then
11159      # The compiler can only warn and ignore the option if not recognized
11160      # So say no if there are warnings
11161      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11162      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11163      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11164        lt_cv_prog_compiler_c_o=yes
11165      fi
11166    fi
11167    chmod u+w . 2>&5
11168    $RM conftest*
11169    # SGI C++ compiler will create directory out/ii_files/ for
11170    # template instantiation
11171    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11172    $RM out/* && rmdir out
11173    cd ..
11174    $RM -r conftest
11175    $RM conftest*
11176
11177 fi
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11179 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11180
11181
11182
11183
11184 hard_links=nottested
11185 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11186   # do not overwrite the value of need_locks provided by the user
11187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11188 $as_echo_n "checking if we can lock with hard links... " >&6; }
11189   hard_links=yes
11190   $RM conftest*
11191   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11192   touch conftest.a
11193   ln conftest.a conftest.b 2>&5 || hard_links=no
11194   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11196 $as_echo "$hard_links" >&6; }
11197   if test no = "$hard_links"; then
11198     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11199 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11200     need_locks=warn
11201   fi
11202 else
11203   need_locks=no
11204 fi
11205
11206
11207
11208
11209
11210
11211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11212 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11213
11214   runpath_var=
11215   allow_undefined_flag=
11216   always_export_symbols=no
11217   archive_cmds=
11218   archive_expsym_cmds=
11219   compiler_needs_object=no
11220   enable_shared_with_static_runtimes=no
11221   export_dynamic_flag_spec=
11222   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11223   hardcode_automatic=no
11224   hardcode_direct=no
11225   hardcode_direct_absolute=no
11226   hardcode_libdir_flag_spec=
11227   hardcode_libdir_separator=
11228   hardcode_minus_L=no
11229   hardcode_shlibpath_var=unsupported
11230   inherit_rpath=no
11231   link_all_deplibs=unknown
11232   module_cmds=
11233   module_expsym_cmds=
11234   old_archive_from_new_cmds=
11235   old_archive_from_expsyms_cmds=
11236   thread_safe_flag_spec=
11237   whole_archive_flag_spec=
11238   # include_expsyms should be a list of space-separated symbols to be *always*
11239   # included in the symbol list
11240   include_expsyms=
11241   # exclude_expsyms can be an extended regexp of symbols to exclude
11242   # it will be wrapped by ' (' and ')$', so one must not match beginning or
11243   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11244   # as well as any symbol that contains 'd'.
11245   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11246   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11247   # platforms (ab)use it in PIC code, but their linkers get confused if
11248   # the symbol is explicitly referenced.  Since portable code cannot
11249   # rely on this symbol name, it's probably fine to never include it in
11250   # preloaded symbol tables.
11251   # Exclude shared library initialization/finalization symbols.
11252   extract_expsyms_cmds=
11253
11254   case $host_os in
11255   cygwin* | mingw* | pw32* | cegcc*)
11256     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11257     # When not using gcc, we currently assume that we are using
11258     # Microsoft Visual C++.
11259     if test yes != "$GCC"; then
11260       with_gnu_ld=no
11261     fi
11262     ;;
11263   interix*)
11264     # we just hope/assume this is gcc and not c89 (= MSVC++)
11265     with_gnu_ld=yes
11266     ;;
11267   openbsd* | bitrig*)
11268     with_gnu_ld=no
11269     ;;
11270   linux* | k*bsd*-gnu | gnu*)
11271     link_all_deplibs=no
11272     ;;
11273   esac
11274
11275   ld_shlibs=yes
11276
11277   # On some targets, GNU ld is compatible enough with the native linker
11278   # that we're better off using the native interface for both.
11279   lt_use_gnu_ld_interface=no
11280   if test yes = "$with_gnu_ld"; then
11281     case $host_os in
11282       aix*)
11283         # The AIX port of GNU ld has always aspired to compatibility
11284         # with the native linker.  However, as the warning in the GNU ld
11285         # block says, versions before 2.19.5* couldn't really create working
11286         # shared libraries, regardless of the interface used.
11287         case `$LD -v 2>&1` in
11288           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11289           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11290           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11291           *)
11292             lt_use_gnu_ld_interface=yes
11293             ;;
11294         esac
11295         ;;
11296       *)
11297         lt_use_gnu_ld_interface=yes
11298         ;;
11299     esac
11300   fi
11301
11302   if test yes = "$lt_use_gnu_ld_interface"; then
11303     # If archive_cmds runs LD, not CC, wlarc should be empty
11304     wlarc='$wl'
11305
11306     # Set some defaults for GNU ld with shared library support. These
11307     # are reset later if shared libraries are not supported. Putting them
11308     # here allows them to be overridden if necessary.
11309     runpath_var=LD_RUN_PATH
11310     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11311     export_dynamic_flag_spec='$wl--export-dynamic'
11312     # ancient GNU ld didn't support --whole-archive et. al.
11313     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11314       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11315     else
11316       whole_archive_flag_spec=
11317     fi
11318     supports_anon_versioning=no
11319     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11320       *GNU\ gold*) supports_anon_versioning=yes ;;
11321       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11322       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11323       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11324       *\ 2.11.*) ;; # other 2.11 versions
11325       *) supports_anon_versioning=yes ;;
11326     esac
11327
11328     # See if GNU ld supports shared libraries.
11329     case $host_os in
11330     aix[3-9]*)
11331       # On AIX/PPC, the GNU linker is very broken
11332       if test ia64 != "$host_cpu"; then
11333         ld_shlibs=no
11334         cat <<_LT_EOF 1>&2
11335
11336 *** Warning: the GNU linker, at least up to release 2.19, is reported
11337 *** to be unable to reliably create shared libraries on AIX.
11338 *** Therefore, libtool is disabling shared libraries support.  If you
11339 *** really care for shared libraries, you may want to install binutils
11340 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11341 *** You will then need to restart the configuration process.
11342
11343 _LT_EOF
11344       fi
11345       ;;
11346
11347     amigaos*)
11348       case $host_cpu in
11349       powerpc)
11350             # see comment about AmigaOS4 .so support
11351             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11352             archive_expsym_cmds=''
11353         ;;
11354       m68k)
11355             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)'
11356             hardcode_libdir_flag_spec='-L$libdir'
11357             hardcode_minus_L=yes
11358         ;;
11359       esac
11360       ;;
11361
11362     beos*)
11363       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11364         allow_undefined_flag=unsupported
11365         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11366         # support --undefined.  This deserves some investigation.  FIXME
11367         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11368       else
11369         ld_shlibs=no
11370       fi
11371       ;;
11372
11373     cygwin* | mingw* | pw32* | cegcc*)
11374       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11375       # as there is no search path for DLLs.
11376       hardcode_libdir_flag_spec='-L$libdir'
11377       export_dynamic_flag_spec='$wl--export-all-symbols'
11378       allow_undefined_flag=unsupported
11379       always_export_symbols=no
11380       enable_shared_with_static_runtimes=yes
11381       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'
11382       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11383
11384       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11385         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11386         # If the export-symbols file already is a .def file, use it as
11387         # is; otherwise, prepend EXPORTS...
11388         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11389           cp $export_symbols $output_objdir/$soname.def;
11390         else
11391           echo EXPORTS > $output_objdir/$soname.def;
11392           cat $export_symbols >> $output_objdir/$soname.def;
11393         fi~
11394         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11395       else
11396         ld_shlibs=no
11397       fi
11398       ;;
11399
11400     haiku*)
11401       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11402       link_all_deplibs=yes
11403       ;;
11404
11405     os2*)
11406       hardcode_libdir_flag_spec='-L$libdir'
11407       hardcode_minus_L=yes
11408       allow_undefined_flag=unsupported
11409       shrext_cmds=.dll
11410       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11411         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11412         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11413         $ECHO EXPORTS >> $output_objdir/$libname.def~
11414         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11415         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11416         emximp -o $lib $output_objdir/$libname.def'
11417       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11418         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11419         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11420         $ECHO EXPORTS >> $output_objdir/$libname.def~
11421         prefix_cmds="$SED"~
11422         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11423           prefix_cmds="$prefix_cmds -e 1d";
11424         fi~
11425         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11426         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11427         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11428         emximp -o $lib $output_objdir/$libname.def'
11429       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11430       enable_shared_with_static_runtimes=yes
11431       ;;
11432
11433     interix[3-9]*)
11434       hardcode_direct=no
11435       hardcode_shlibpath_var=no
11436       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11437       export_dynamic_flag_spec='$wl-E'
11438       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11439       # Instead, shared libraries are loaded at an image base (0x10000000 by
11440       # default) and relocated if they conflict, which is a slow very memory
11441       # consuming and fragmenting process.  To avoid this, we pick a random,
11442       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11443       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11444       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11445       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'
11446       ;;
11447
11448     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11449       tmp_diet=no
11450       if test linux-dietlibc = "$host_os"; then
11451         case $cc_basename in
11452           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11453         esac
11454       fi
11455       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11456          && test no = "$tmp_diet"
11457       then
11458         tmp_addflag=' $pic_flag'
11459         tmp_sharedflag='-shared'
11460         case $cc_basename,$host_cpu in
11461         pgcc*)                          # Portland Group C compiler
11462           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'
11463           tmp_addflag=' $pic_flag'
11464           ;;
11465         pgf77* | pgf90* | pgf95* | pgfortran*)
11466                                         # Portland Group f77 and f90 compilers
11467           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'
11468           tmp_addflag=' $pic_flag -Mnomain' ;;
11469         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11470           tmp_addflag=' -i_dynamic' ;;
11471         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11472           tmp_addflag=' -i_dynamic -nofor_main' ;;
11473         ifc* | ifort*)                  # Intel Fortran compiler
11474           tmp_addflag=' -nofor_main' ;;
11475         lf95*)                          # Lahey Fortran 8.1
11476           whole_archive_flag_spec=
11477           tmp_sharedflag='--shared' ;;
11478         nagfor*)                        # NAGFOR 5.3
11479           tmp_sharedflag='-Wl,-shared' ;;
11480         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11481           tmp_sharedflag='-qmkshrobj'
11482           tmp_addflag= ;;
11483         nvcc*)  # Cuda Compiler Driver 2.2
11484           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'
11485           compiler_needs_object=yes
11486           ;;
11487         esac
11488         case `$CC -V 2>&1 | sed 5q` in
11489         *Sun\ C*)                       # Sun C 5.9
11490           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'
11491           compiler_needs_object=yes
11492           tmp_sharedflag='-G' ;;
11493         *Sun\ F*)                       # Sun Fortran 8.3
11494           tmp_sharedflag='-G' ;;
11495         esac
11496         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11497
11498         if test yes = "$supports_anon_versioning"; then
11499           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11500             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11501             echo "local: *; };" >> $output_objdir/$libname.ver~
11502             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11503         fi
11504
11505         case $cc_basename in
11506         tcc*)
11507           export_dynamic_flag_spec='-rdynamic'
11508           ;;
11509         xlf* | bgf* | bgxlf* | mpixlf*)
11510           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11511           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11512           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11513           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11514           if test yes = "$supports_anon_versioning"; then
11515             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11516               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11517               echo "local: *; };" >> $output_objdir/$libname.ver~
11518               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11519           fi
11520           ;;
11521         esac
11522       else
11523         ld_shlibs=no
11524       fi
11525       ;;
11526
11527     netbsd* | netbsdelf*-gnu)
11528       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11529         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11530         wlarc=
11531       else
11532         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11533         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11534       fi
11535       ;;
11536
11537     solaris*)
11538       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11539         ld_shlibs=no
11540         cat <<_LT_EOF 1>&2
11541
11542 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11543 *** create shared libraries on Solaris systems.  Therefore, libtool
11544 *** is disabling shared libraries support.  We urge you to upgrade GNU
11545 *** binutils to release 2.9.1 or newer.  Another option is to modify
11546 *** your PATH or compiler configuration so that the native linker is
11547 *** used, and then restart.
11548
11549 _LT_EOF
11550       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11551         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11552         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11553       else
11554         ld_shlibs=no
11555       fi
11556       ;;
11557
11558     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11559       case `$LD -v 2>&1` in
11560         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11561         ld_shlibs=no
11562         cat <<_LT_EOF 1>&2
11563
11564 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11565 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11566 *** is disabling shared libraries support.  We urge you to upgrade GNU
11567 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11568 *** your PATH or compiler configuration so that the native linker is
11569 *** used, and then restart.
11570
11571 _LT_EOF
11572         ;;
11573         *)
11574           # For security reasons, it is highly recommended that you always
11575           # use absolute paths for naming shared libraries, and exclude the
11576           # DT_RUNPATH tag from executables and libraries.  But doing so
11577           # requires that you compile everything twice, which is a pain.
11578           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11579             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11580             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11581             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11582           else
11583             ld_shlibs=no
11584           fi
11585         ;;
11586       esac
11587       ;;
11588
11589     sunos4*)
11590       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11591       wlarc=
11592       hardcode_direct=yes
11593       hardcode_shlibpath_var=no
11594       ;;
11595
11596     *)
11597       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11598         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11599         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11600       else
11601         ld_shlibs=no
11602       fi
11603       ;;
11604     esac
11605
11606     if test no = "$ld_shlibs"; then
11607       runpath_var=
11608       hardcode_libdir_flag_spec=
11609       export_dynamic_flag_spec=
11610       whole_archive_flag_spec=
11611     fi
11612   else
11613     # PORTME fill in a description of your system's linker (not GNU ld)
11614     case $host_os in
11615     aix3*)
11616       allow_undefined_flag=unsupported
11617       always_export_symbols=yes
11618       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'
11619       # Note: this linker hardcodes the directories in LIBPATH if there
11620       # are no directories specified by -L.
11621       hardcode_minus_L=yes
11622       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11623         # Neither direct hardcoding nor static linking is supported with a
11624         # broken collect2.
11625         hardcode_direct=unsupported
11626       fi
11627       ;;
11628
11629     aix[4-9]*)
11630       if test ia64 = "$host_cpu"; then
11631         # On IA64, the linker does run time linking by default, so we don't
11632         # have to do anything special.
11633         aix_use_runtimelinking=no
11634         exp_sym_flag='-Bexport'
11635         no_entry_flag=
11636       else
11637         # If we're using GNU nm, then we don't want the "-C" option.
11638         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11639         # Without the "-l" option, or with the "-B" option, AIX nm treats
11640         # weak defined symbols like other global defined symbols, whereas
11641         # GNU nm marks them as "W".
11642         # While the 'weak' keyword is ignored in the Export File, we need
11643         # it in the Import File for the 'aix-soname' feature, so we have
11644         # to replace the "-B" option with "-P" for AIX nm.
11645         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11646           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11647         else
11648           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11649         fi
11650         aix_use_runtimelinking=no
11651
11652         # Test if we are trying to use run time linking or normal
11653         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11654         # have runtime linking enabled, and use it for executables.
11655         # For shared libraries, we enable/disable runtime linking
11656         # depending on the kind of the shared library created -
11657         # when "with_aix_soname,aix_use_runtimelinking" is:
11658         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11659         # "aix,yes"  lib.so          shared, rtl:yes, for executables
11660         #            lib.a           static archive
11661         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
11662         #            lib.a(lib.so.V) shared, rtl:no,  for executables
11663         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11664         #            lib.a(lib.so.V) shared, rtl:no
11665         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11666         #            lib.a           static archive
11667         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11668           for ld_flag in $LDFLAGS; do
11669           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11670             aix_use_runtimelinking=yes
11671             break
11672           fi
11673           done
11674           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11675             # With aix-soname=svr4, we create the lib.so.V shared archives only,
11676             # so we don't have lib.a shared libs to link our executables.
11677             # We have to force runtime linking in this case.
11678             aix_use_runtimelinking=yes
11679             LDFLAGS="$LDFLAGS -Wl,-brtl"
11680           fi
11681           ;;
11682         esac
11683
11684         exp_sym_flag='-bexport'
11685         no_entry_flag='-bnoentry'
11686       fi
11687
11688       # When large executables or shared objects are built, AIX ld can
11689       # have problems creating the table of contents.  If linking a library
11690       # or program results in "error TOC overflow" add -mminimal-toc to
11691       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11692       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11693
11694       archive_cmds=''
11695       hardcode_direct=yes
11696       hardcode_direct_absolute=yes
11697       hardcode_libdir_separator=':'
11698       link_all_deplibs=yes
11699       file_list_spec='$wl-f,'
11700       case $with_aix_soname,$aix_use_runtimelinking in
11701       aix,*) ;; # traditional, no import file
11702       svr4,* | *,yes) # use import file
11703         # The Import File defines what to hardcode.
11704         hardcode_direct=no
11705         hardcode_direct_absolute=no
11706         ;;
11707       esac
11708
11709       if test yes = "$GCC"; then
11710         case $host_os in aix4.[012]|aix4.[012].*)
11711         # We only want to do this on AIX 4.2 and lower, the check
11712         # below for broken collect2 doesn't work under 4.3+
11713           collect2name=`$CC -print-prog-name=collect2`
11714           if test -f "$collect2name" &&
11715            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11716           then
11717           # We have reworked collect2
11718           :
11719           else
11720           # We have old collect2
11721           hardcode_direct=unsupported
11722           # It fails to find uninstalled libraries when the uninstalled
11723           # path is not listed in the libpath.  Setting hardcode_minus_L
11724           # to unsupported forces relinking
11725           hardcode_minus_L=yes
11726           hardcode_libdir_flag_spec='-L$libdir'
11727           hardcode_libdir_separator=
11728           fi
11729           ;;
11730         esac
11731         shared_flag='-shared'
11732         if test yes = "$aix_use_runtimelinking"; then
11733           shared_flag="$shared_flag "'$wl-G'
11734         fi
11735         # Need to ensure runtime linking is disabled for the traditional
11736         # shared library, or the linker may eventually find shared libraries
11737         # /with/ Import File - we do not want to mix them.
11738         shared_flag_aix='-shared'
11739         shared_flag_svr4='-shared $wl-G'
11740       else
11741         # not using gcc
11742         if test ia64 = "$host_cpu"; then
11743         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11744         # chokes on -Wl,-G. The following line is correct:
11745           shared_flag='-G'
11746         else
11747           if test yes = "$aix_use_runtimelinking"; then
11748             shared_flag='$wl-G'
11749           else
11750             shared_flag='$wl-bM:SRE'
11751           fi
11752           shared_flag_aix='$wl-bM:SRE'
11753           shared_flag_svr4='$wl-G'
11754         fi
11755       fi
11756
11757       export_dynamic_flag_spec='$wl-bexpall'
11758       # It seems that -bexpall does not export symbols beginning with
11759       # underscore (_), so it is better to generate a list of symbols to export.
11760       always_export_symbols=yes
11761       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11762         # Warning - without using the other runtime loading flags (-brtl),
11763         # -berok will link without error, but may produce a broken library.
11764         allow_undefined_flag='-berok'
11765         # Determine the default libpath from the value encoded in an
11766         # empty executable.
11767         if test set = "${lt_cv_aix_libpath+set}"; then
11768   aix_libpath=$lt_cv_aix_libpath
11769 else
11770   if ${lt_cv_aix_libpath_+:} false; then :
11771   $as_echo_n "(cached) " >&6
11772 else
11773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11774 /* end confdefs.h.  */
11775
11776 int
11777 main ()
11778 {
11779
11780   ;
11781   return 0;
11782 }
11783 _ACEOF
11784 if ac_fn_c_try_link "$LINENO"; then :
11785
11786   lt_aix_libpath_sed='
11787       /Import File Strings/,/^$/ {
11788           /^0/ {
11789               s/^0  *\([^ ]*\) *$/\1/
11790               p
11791           }
11792       }'
11793   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11794   # Check for a 64-bit object if we didn't find anything.
11795   if test -z "$lt_cv_aix_libpath_"; then
11796     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11797   fi
11798 fi
11799 rm -f core conftest.err conftest.$ac_objext \
11800     conftest$ac_exeext conftest.$ac_ext
11801   if test -z "$lt_cv_aix_libpath_"; then
11802     lt_cv_aix_libpath_=/usr/lib:/lib
11803   fi
11804
11805 fi
11806
11807   aix_libpath=$lt_cv_aix_libpath_
11808 fi
11809
11810         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11811         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11812       else
11813         if test ia64 = "$host_cpu"; then
11814           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11815           allow_undefined_flag="-z nodefs"
11816           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"
11817         else
11818          # Determine the default libpath from the value encoded in an
11819          # empty executable.
11820          if test set = "${lt_cv_aix_libpath+set}"; then
11821   aix_libpath=$lt_cv_aix_libpath
11822 else
11823   if ${lt_cv_aix_libpath_+:} false; then :
11824   $as_echo_n "(cached) " >&6
11825 else
11826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11827 /* end confdefs.h.  */
11828
11829 int
11830 main ()
11831 {
11832
11833   ;
11834   return 0;
11835 }
11836 _ACEOF
11837 if ac_fn_c_try_link "$LINENO"; then :
11838
11839   lt_aix_libpath_sed='
11840       /Import File Strings/,/^$/ {
11841           /^0/ {
11842               s/^0  *\([^ ]*\) *$/\1/
11843               p
11844           }
11845       }'
11846   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11847   # Check for a 64-bit object if we didn't find anything.
11848   if test -z "$lt_cv_aix_libpath_"; then
11849     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11850   fi
11851 fi
11852 rm -f core conftest.err conftest.$ac_objext \
11853     conftest$ac_exeext conftest.$ac_ext
11854   if test -z "$lt_cv_aix_libpath_"; then
11855     lt_cv_aix_libpath_=/usr/lib:/lib
11856   fi
11857
11858 fi
11859
11860   aix_libpath=$lt_cv_aix_libpath_
11861 fi
11862
11863          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11864           # Warning - without using the other run time loading flags,
11865           # -berok will link without error, but may produce a broken library.
11866           no_undefined_flag=' $wl-bernotok'
11867           allow_undefined_flag=' $wl-berok'
11868           if test yes = "$with_gnu_ld"; then
11869             # We only use this code for GNU lds that support --whole-archive.
11870             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11871           else
11872             # Exported symbols can be pulled into shared objects from archives
11873             whole_archive_flag_spec='$convenience'
11874           fi
11875           archive_cmds_need_lc=yes
11876           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11877           # -brtl affects multiple linker settings, -berok does not and is overridden later
11878           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11879           if test svr4 != "$with_aix_soname"; then
11880             # This is similar to how AIX traditionally builds its shared libraries.
11881             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11882           fi
11883           if test aix != "$with_aix_soname"; then
11884             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11885           else
11886             # used by -dlpreopen to get the symbols
11887             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11888           fi
11889           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11890         fi
11891       fi
11892       ;;
11893
11894     amigaos*)
11895       case $host_cpu in
11896       powerpc)
11897             # see comment about AmigaOS4 .so support
11898             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11899             archive_expsym_cmds=''
11900         ;;
11901       m68k)
11902             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)'
11903             hardcode_libdir_flag_spec='-L$libdir'
11904             hardcode_minus_L=yes
11905         ;;
11906       esac
11907       ;;
11908
11909     bsdi[45]*)
11910       export_dynamic_flag_spec=-rdynamic
11911       ;;
11912
11913     cygwin* | mingw* | pw32* | cegcc*)
11914       # When not using gcc, we currently assume that we are using
11915       # Microsoft Visual C++.
11916       # hardcode_libdir_flag_spec is actually meaningless, as there is
11917       # no search path for DLLs.
11918       case $cc_basename in
11919       cl*)
11920         # Native MSVC
11921         hardcode_libdir_flag_spec=' '
11922         allow_undefined_flag=unsupported
11923         always_export_symbols=yes
11924         file_list_spec='@'
11925         # Tell ltmain to make .lib files, not .a files.
11926         libext=lib
11927         # Tell ltmain to make .dll files, not .so files.
11928         shrext_cmds=.dll
11929         # FIXME: Setting linknames here is a bad hack.
11930         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11931         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11932             cp "$export_symbols" "$output_objdir/$soname.def";
11933             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11934           else
11935             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11936           fi~
11937           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11938           linknames='
11939         # The linker will not automatically build a static lib if we build a DLL.
11940         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11941         enable_shared_with_static_runtimes=yes
11942         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11943         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11944         # Don't use ranlib
11945         old_postinstall_cmds='chmod 644 $oldlib'
11946         postlink_cmds='lt_outputfile="@OUTPUT@"~
11947           lt_tool_outputfile="@TOOL_OUTPUT@"~
11948           case $lt_outputfile in
11949             *.exe|*.EXE) ;;
11950             *)
11951               lt_outputfile=$lt_outputfile.exe
11952               lt_tool_outputfile=$lt_tool_outputfile.exe
11953               ;;
11954           esac~
11955           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11956             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11957             $RM "$lt_outputfile.manifest";
11958           fi'
11959         ;;
11960       *)
11961         # Assume MSVC wrapper
11962         hardcode_libdir_flag_spec=' '
11963         allow_undefined_flag=unsupported
11964         # Tell ltmain to make .lib files, not .a files.
11965         libext=lib
11966         # Tell ltmain to make .dll files, not .so files.
11967         shrext_cmds=.dll
11968         # FIXME: Setting linknames here is a bad hack.
11969         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11970         # The linker will automatically build a .lib file if we build a DLL.
11971         old_archive_from_new_cmds='true'
11972         # FIXME: Should let the user specify the lib program.
11973         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11974         enable_shared_with_static_runtimes=yes
11975         ;;
11976       esac
11977       ;;
11978
11979     darwin* | rhapsody*)
11980
11981
11982   archive_cmds_need_lc=no
11983   hardcode_direct=no
11984   hardcode_automatic=yes
11985   hardcode_shlibpath_var=unsupported
11986   if test yes = "$lt_cv_ld_force_load"; then
11987     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\"`'
11988
11989   else
11990     whole_archive_flag_spec=''
11991   fi
11992   link_all_deplibs=yes
11993   allow_undefined_flag=$_lt_dar_allow_undefined
11994   case $cc_basename in
11995      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11996      *) _lt_dar_can_shared=$GCC ;;
11997   esac
11998   if test yes = "$_lt_dar_can_shared"; then
11999     output_verbose_link_cmd=func_echo_all
12000     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12001     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12002     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"
12003     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"
12004
12005   else
12006   ld_shlibs=no
12007   fi
12008
12009       ;;
12010
12011     dgux*)
12012       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12013       hardcode_libdir_flag_spec='-L$libdir'
12014       hardcode_shlibpath_var=no
12015       ;;
12016
12017     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12018     # support.  Future versions do this automatically, but an explicit c++rt0.o
12019     # does not break anything, and helps significantly (at the cost of a little
12020     # extra space).
12021     freebsd2.2*)
12022       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12023       hardcode_libdir_flag_spec='-R$libdir'
12024       hardcode_direct=yes
12025       hardcode_shlibpath_var=no
12026       ;;
12027
12028     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12029     freebsd2.*)
12030       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12031       hardcode_direct=yes
12032       hardcode_minus_L=yes
12033       hardcode_shlibpath_var=no
12034       ;;
12035
12036     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12037     freebsd* | dragonfly*)
12038       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12039       hardcode_libdir_flag_spec='-R$libdir'
12040       hardcode_direct=yes
12041       hardcode_shlibpath_var=no
12042       ;;
12043
12044     hpux9*)
12045       if test yes = "$GCC"; then
12046         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12047       else
12048         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12049       fi
12050       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12051       hardcode_libdir_separator=:
12052       hardcode_direct=yes
12053
12054       # hardcode_minus_L: Not really in the search PATH,
12055       # but as the default location of the library.
12056       hardcode_minus_L=yes
12057       export_dynamic_flag_spec='$wl-E'
12058       ;;
12059
12060     hpux10*)
12061       if test yes,no = "$GCC,$with_gnu_ld"; then
12062         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12063       else
12064         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12065       fi
12066       if test no = "$with_gnu_ld"; then
12067         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12068         hardcode_libdir_separator=:
12069         hardcode_direct=yes
12070         hardcode_direct_absolute=yes
12071         export_dynamic_flag_spec='$wl-E'
12072         # hardcode_minus_L: Not really in the search PATH,
12073         # but as the default location of the library.
12074         hardcode_minus_L=yes
12075       fi
12076       ;;
12077
12078     hpux11*)
12079       if test yes,no = "$GCC,$with_gnu_ld"; then
12080         case $host_cpu in
12081         hppa*64*)
12082           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12083           ;;
12084         ia64*)
12085           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12086           ;;
12087         *)
12088           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12089           ;;
12090         esac
12091       else
12092         case $host_cpu in
12093         hppa*64*)
12094           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12095           ;;
12096         ia64*)
12097           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12098           ;;
12099         *)
12100
12101           # Older versions of the 11.00 compiler do not understand -b yet
12102           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12103           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12104 $as_echo_n "checking if $CC understands -b... " >&6; }
12105 if ${lt_cv_prog_compiler__b+:} false; then :
12106   $as_echo_n "(cached) " >&6
12107 else
12108   lt_cv_prog_compiler__b=no
12109    save_LDFLAGS=$LDFLAGS
12110    LDFLAGS="$LDFLAGS -b"
12111    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12112    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12113      # The linker can only warn and ignore the option if not recognized
12114      # So say no if there are warnings
12115      if test -s conftest.err; then
12116        # Append any errors to the config.log.
12117        cat conftest.err 1>&5
12118        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12119        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12120        if diff conftest.exp conftest.er2 >/dev/null; then
12121          lt_cv_prog_compiler__b=yes
12122        fi
12123      else
12124        lt_cv_prog_compiler__b=yes
12125      fi
12126    fi
12127    $RM -r conftest*
12128    LDFLAGS=$save_LDFLAGS
12129
12130 fi
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12132 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12133
12134 if test yes = "$lt_cv_prog_compiler__b"; then
12135     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12136 else
12137     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12138 fi
12139
12140           ;;
12141         esac
12142       fi
12143       if test no = "$with_gnu_ld"; then
12144         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12145         hardcode_libdir_separator=:
12146
12147         case $host_cpu in
12148         hppa*64*|ia64*)
12149           hardcode_direct=no
12150           hardcode_shlibpath_var=no
12151           ;;
12152         *)
12153           hardcode_direct=yes
12154           hardcode_direct_absolute=yes
12155           export_dynamic_flag_spec='$wl-E'
12156
12157           # hardcode_minus_L: Not really in the search PATH,
12158           # but as the default location of the library.
12159           hardcode_minus_L=yes
12160           ;;
12161         esac
12162       fi
12163       ;;
12164
12165     irix5* | irix6* | nonstopux*)
12166       if test yes = "$GCC"; then
12167         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'
12168         # Try to use the -exported_symbol ld option, if it does not
12169         # work, assume that -exports_file does not work either and
12170         # implicitly export all symbols.
12171         # This should be the same for all languages, so no per-tag cache variable.
12172         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12173 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12174 if ${lt_cv_irix_exported_symbol+:} false; then :
12175   $as_echo_n "(cached) " >&6
12176 else
12177   save_LDFLAGS=$LDFLAGS
12178            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12179            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12180 /* end confdefs.h.  */
12181 int foo (void) { return 0; }
12182 _ACEOF
12183 if ac_fn_c_try_link "$LINENO"; then :
12184   lt_cv_irix_exported_symbol=yes
12185 else
12186   lt_cv_irix_exported_symbol=no
12187 fi
12188 rm -f core conftest.err conftest.$ac_objext \
12189     conftest$ac_exeext conftest.$ac_ext
12190            LDFLAGS=$save_LDFLAGS
12191 fi
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12193 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12194         if test yes = "$lt_cv_irix_exported_symbol"; then
12195           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'
12196         fi
12197         link_all_deplibs=no
12198       else
12199         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'
12200         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'
12201       fi
12202       archive_cmds_need_lc='no'
12203       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12204       hardcode_libdir_separator=:
12205       inherit_rpath=yes
12206       link_all_deplibs=yes
12207       ;;
12208
12209     linux*)
12210       case $cc_basename in
12211       tcc*)
12212         # Fabrice Bellard et al's Tiny C Compiler
12213         ld_shlibs=yes
12214         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12215         ;;
12216       esac
12217       ;;
12218
12219     netbsd* | netbsdelf*-gnu)
12220       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12221         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12222       else
12223         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12224       fi
12225       hardcode_libdir_flag_spec='-R$libdir'
12226       hardcode_direct=yes
12227       hardcode_shlibpath_var=no
12228       ;;
12229
12230     newsos6)
12231       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12232       hardcode_direct=yes
12233       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12234       hardcode_libdir_separator=:
12235       hardcode_shlibpath_var=no
12236       ;;
12237
12238     *nto* | *qnx*)
12239       ;;
12240
12241     openbsd* | bitrig*)
12242       if test -f /usr/libexec/ld.so; then
12243         hardcode_direct=yes
12244         hardcode_shlibpath_var=no
12245         hardcode_direct_absolute=yes
12246         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12247           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12248           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12249           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12250           export_dynamic_flag_spec='$wl-E'
12251         else
12252           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12253           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12254         fi
12255       else
12256         ld_shlibs=no
12257       fi
12258       ;;
12259
12260     os2*)
12261       hardcode_libdir_flag_spec='-L$libdir'
12262       hardcode_minus_L=yes
12263       allow_undefined_flag=unsupported
12264       shrext_cmds=.dll
12265       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12266         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12267         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12268         $ECHO EXPORTS >> $output_objdir/$libname.def~
12269         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12270         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12271         emximp -o $lib $output_objdir/$libname.def'
12272       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12273         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12274         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12275         $ECHO EXPORTS >> $output_objdir/$libname.def~
12276         prefix_cmds="$SED"~
12277         if test EXPORTS = "`$SED 1q $export_symbols`"; then
12278           prefix_cmds="$prefix_cmds -e 1d";
12279         fi~
12280         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12281         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12282         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12283         emximp -o $lib $output_objdir/$libname.def'
12284       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12285       enable_shared_with_static_runtimes=yes
12286       ;;
12287
12288     osf3*)
12289       if test yes = "$GCC"; then
12290         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12291         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'
12292       else
12293         allow_undefined_flag=' -expect_unresolved \*'
12294         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'
12295       fi
12296       archive_cmds_need_lc='no'
12297       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12298       hardcode_libdir_separator=:
12299       ;;
12300
12301     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12302       if test yes = "$GCC"; then
12303         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12304         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'
12305         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12306       else
12307         allow_undefined_flag=' -expect_unresolved \*'
12308         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'
12309         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~
12310           $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'
12311
12312         # Both c and cxx compiler support -rpath directly
12313         hardcode_libdir_flag_spec='-rpath $libdir'
12314       fi
12315       archive_cmds_need_lc='no'
12316       hardcode_libdir_separator=:
12317       ;;
12318
12319     solaris*)
12320       no_undefined_flag=' -z defs'
12321       if test yes = "$GCC"; then
12322         wlarc='$wl'
12323         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12324         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12325           $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'
12326       else
12327         case `$CC -V 2>&1` in
12328         *"Compilers 5.0"*)
12329           wlarc=''
12330           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12331           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12332             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12333           ;;
12334         *)
12335           wlarc='$wl'
12336           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12337           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12338             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12339           ;;
12340         esac
12341       fi
12342       hardcode_libdir_flag_spec='-R$libdir'
12343       hardcode_shlibpath_var=no
12344       case $host_os in
12345       solaris2.[0-5] | solaris2.[0-5].*) ;;
12346       *)
12347         # The compiler driver will combine and reorder linker options,
12348         # but understands '-z linker_flag'.  GCC discards it without '$wl',
12349         # but is careful enough not to reorder.
12350         # Supported since Solaris 2.6 (maybe 2.5.1?)
12351         if test yes = "$GCC"; then
12352           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12353         else
12354           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12355         fi
12356         ;;
12357       esac
12358       link_all_deplibs=yes
12359       ;;
12360
12361     sunos4*)
12362       if test sequent = "$host_vendor"; then
12363         # Use $CC to link under sequent, because it throws in some extra .o
12364         # files that make .init and .fini sections work.
12365         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12366       else
12367         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12368       fi
12369       hardcode_libdir_flag_spec='-L$libdir'
12370       hardcode_direct=yes
12371       hardcode_minus_L=yes
12372       hardcode_shlibpath_var=no
12373       ;;
12374
12375     sysv4)
12376       case $host_vendor in
12377         sni)
12378           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12379           hardcode_direct=yes # is this really true???
12380         ;;
12381         siemens)
12382           ## LD is ld it makes a PLAMLIB
12383           ## CC just makes a GrossModule.
12384           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12385           reload_cmds='$CC -r -o $output$reload_objs'
12386           hardcode_direct=no
12387         ;;
12388         motorola)
12389           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12390           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12391         ;;
12392       esac
12393       runpath_var='LD_RUN_PATH'
12394       hardcode_shlibpath_var=no
12395       ;;
12396
12397     sysv4.3*)
12398       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12399       hardcode_shlibpath_var=no
12400       export_dynamic_flag_spec='-Bexport'
12401       ;;
12402
12403     sysv4*MP*)
12404       if test -d /usr/nec; then
12405         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12406         hardcode_shlibpath_var=no
12407         runpath_var=LD_RUN_PATH
12408         hardcode_runpath_var=yes
12409         ld_shlibs=yes
12410       fi
12411       ;;
12412
12413     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12414       no_undefined_flag='$wl-z,text'
12415       archive_cmds_need_lc=no
12416       hardcode_shlibpath_var=no
12417       runpath_var='LD_RUN_PATH'
12418
12419       if test yes = "$GCC"; then
12420         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12421         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12422       else
12423         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12424         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12425       fi
12426       ;;
12427
12428     sysv5* | sco3.2v5* | sco5v6*)
12429       # Note: We CANNOT use -z defs as we might desire, because we do not
12430       # link with -lc, and that would cause any symbols used from libc to
12431       # always be unresolved, which means just about no library would
12432       # ever link correctly.  If we're not using GNU ld we use -z text
12433       # though, which does catch some bad symbols but isn't as heavy-handed
12434       # as -z defs.
12435       no_undefined_flag='$wl-z,text'
12436       allow_undefined_flag='$wl-z,nodefs'
12437       archive_cmds_need_lc=no
12438       hardcode_shlibpath_var=no
12439       hardcode_libdir_flag_spec='$wl-R,$libdir'
12440       hardcode_libdir_separator=':'
12441       link_all_deplibs=yes
12442       export_dynamic_flag_spec='$wl-Bexport'
12443       runpath_var='LD_RUN_PATH'
12444
12445       if test yes = "$GCC"; then
12446         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12447         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12448       else
12449         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12450         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12451       fi
12452       ;;
12453
12454     uts4*)
12455       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12456       hardcode_libdir_flag_spec='-L$libdir'
12457       hardcode_shlibpath_var=no
12458       ;;
12459
12460     *)
12461       ld_shlibs=no
12462       ;;
12463     esac
12464
12465     if test sni = "$host_vendor"; then
12466       case $host in
12467       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12468         export_dynamic_flag_spec='$wl-Blargedynsym'
12469         ;;
12470       esac
12471     fi
12472   fi
12473
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12475 $as_echo "$ld_shlibs" >&6; }
12476 test no = "$ld_shlibs" && can_build_shared=no
12477
12478 with_gnu_ld=$with_gnu_ld
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494 #
12495 # Do we need to explicitly link libc?
12496 #
12497 case "x$archive_cmds_need_lc" in
12498 x|xyes)
12499   # Assume -lc should be added
12500   archive_cmds_need_lc=yes
12501
12502   if test yes,yes = "$GCC,$enable_shared"; then
12503     case $archive_cmds in
12504     *'~'*)
12505       # FIXME: we may have to deal with multi-command sequences.
12506       ;;
12507     '$CC '*)
12508       # Test whether the compiler implicitly links with -lc since on some
12509       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12510       # to ld, don't add -lc before -lgcc.
12511       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12512 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12513 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12514   $as_echo_n "(cached) " >&6
12515 else
12516   $RM conftest*
12517         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12518
12519         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12520   (eval $ac_compile) 2>&5
12521   ac_status=$?
12522   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12523   test $ac_status = 0; } 2>conftest.err; then
12524           soname=conftest
12525           lib=conftest
12526           libobjs=conftest.$ac_objext
12527           deplibs=
12528           wl=$lt_prog_compiler_wl
12529           pic_flag=$lt_prog_compiler_pic
12530           compiler_flags=-v
12531           linker_flags=-v
12532           verstring=
12533           output_objdir=.
12534           libname=conftest
12535           lt_save_allow_undefined_flag=$allow_undefined_flag
12536           allow_undefined_flag=
12537           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12538   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12539   ac_status=$?
12540   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12541   test $ac_status = 0; }
12542           then
12543             lt_cv_archive_cmds_need_lc=no
12544           else
12545             lt_cv_archive_cmds_need_lc=yes
12546           fi
12547           allow_undefined_flag=$lt_save_allow_undefined_flag
12548         else
12549           cat conftest.err 1>&5
12550         fi
12551         $RM conftest*
12552
12553 fi
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12555 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12556       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12557       ;;
12558     esac
12559   fi
12560   ;;
12561 esac
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12715 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12716
12717 if test yes = "$GCC"; then
12718   case $host_os in
12719     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12720     *) lt_awk_arg='/^libraries:/' ;;
12721   esac
12722   case $host_os in
12723     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12724     *) lt_sed_strip_eq='s|=/|/|g' ;;
12725   esac
12726   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12727   case $lt_search_path_spec in
12728   *\;*)
12729     # if the path contains ";" then we assume it to be the separator
12730     # otherwise default to the standard path separator (i.e. ":") - it is
12731     # assumed that no part of a normal pathname contains ";" but that should
12732     # okay in the real world where ";" in dirpaths is itself problematic.
12733     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12734     ;;
12735   *)
12736     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12737     ;;
12738   esac
12739   # Ok, now we have the path, separated by spaces, we can step through it
12740   # and add multilib dir if necessary...
12741   lt_tmp_lt_search_path_spec=
12742   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12743   # ...but if some path component already ends with the multilib dir we assume
12744   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12745   case "$lt_multi_os_dir; $lt_search_path_spec " in
12746   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12747     lt_multi_os_dir=
12748     ;;
12749   esac
12750   for lt_sys_path in $lt_search_path_spec; do
12751     if test -d "$lt_sys_path$lt_multi_os_dir"; then
12752       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12753     elif test -n "$lt_multi_os_dir"; then
12754       test -d "$lt_sys_path" && \
12755         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12756     fi
12757   done
12758   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12759 BEGIN {RS = " "; FS = "/|\n";} {
12760   lt_foo = "";
12761   lt_count = 0;
12762   for (lt_i = NF; lt_i > 0; lt_i--) {
12763     if ($lt_i != "" && $lt_i != ".") {
12764       if ($lt_i == "..") {
12765         lt_count++;
12766       } else {
12767         if (lt_count == 0) {
12768           lt_foo = "/" $lt_i lt_foo;
12769         } else {
12770           lt_count--;
12771         }
12772       }
12773     }
12774   }
12775   if (lt_foo != "") { lt_freq[lt_foo]++; }
12776   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12777 }'`
12778   # AWK program above erroneously prepends '/' to C:/dos/paths
12779   # for these hosts.
12780   case $host_os in
12781     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12782       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12783   esac
12784   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12785 else
12786   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12787 fi
12788 library_names_spec=
12789 libname_spec='lib$name'
12790 soname_spec=
12791 shrext_cmds=.so
12792 postinstall_cmds=
12793 postuninstall_cmds=
12794 finish_cmds=
12795 finish_eval=
12796 shlibpath_var=
12797 shlibpath_overrides_runpath=unknown
12798 version_type=none
12799 dynamic_linker="$host_os ld.so"
12800 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12801 need_lib_prefix=unknown
12802 hardcode_into_libs=no
12803
12804 # when you set need_version to no, make sure it does not cause -set_version
12805 # flags to be left without arguments
12806 need_version=unknown
12807
12808
12809
12810 case $host_os in
12811 aix3*)
12812   version_type=linux # correct to gnu/linux during the next big refactor
12813   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12814   shlibpath_var=LIBPATH
12815
12816   # AIX 3 has no versioning support, so we append a major version to the name.
12817   soname_spec='$libname$release$shared_ext$major'
12818   ;;
12819
12820 aix[4-9]*)
12821   version_type=linux # correct to gnu/linux during the next big refactor
12822   need_lib_prefix=no
12823   need_version=no
12824   hardcode_into_libs=yes
12825   if test ia64 = "$host_cpu"; then
12826     # AIX 5 supports IA64
12827     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12828     shlibpath_var=LD_LIBRARY_PATH
12829   else
12830     # With GCC up to 2.95.x, collect2 would create an import file
12831     # for dependence libraries.  The import file would start with
12832     # the line '#! .'.  This would cause the generated library to
12833     # depend on '.', always an invalid library.  This was fixed in
12834     # development snapshots of GCC prior to 3.0.
12835     case $host_os in
12836       aix4 | aix4.[01] | aix4.[01].*)
12837       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12838            echo ' yes '
12839            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12840         :
12841       else
12842         can_build_shared=no
12843       fi
12844       ;;
12845     esac
12846     # Using Import Files as archive members, it is possible to support
12847     # filename-based versioning of shared library archives on AIX. While
12848     # this would work for both with and without runtime linking, it will
12849     # prevent static linking of such archives. So we do filename-based
12850     # shared library versioning with .so extension only, which is used
12851     # when both runtime linking and shared linking is enabled.
12852     # Unfortunately, runtime linking may impact performance, so we do
12853     # not want this to be the default eventually. Also, we use the
12854     # versioned .so libs for executables only if there is the -brtl
12855     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12856     # To allow for filename-based versioning support, we need to create
12857     # libNAME.so.V as an archive file, containing:
12858     # *) an Import File, referring to the versioned filename of the
12859     #    archive as well as the shared archive member, telling the
12860     #    bitwidth (32 or 64) of that shared object, and providing the
12861     #    list of exported symbols of that shared object, eventually
12862     #    decorated with the 'weak' keyword
12863     # *) the shared object with the F_LOADONLY flag set, to really avoid
12864     #    it being seen by the linker.
12865     # At run time we better use the real file rather than another symlink,
12866     # but for link time we create the symlink libNAME.so -> libNAME.so.V
12867
12868     case $with_aix_soname,$aix_use_runtimelinking in
12869     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12870     # soname into executable. Probably we can add versioning support to
12871     # collect2, so additional links can be useful in future.
12872     aix,yes) # traditional libtool
12873       dynamic_linker='AIX unversionable lib.so'
12874       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12875       # instead of lib<name>.a to let people know that these are not
12876       # typical AIX shared libraries.
12877       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12878       ;;
12879     aix,no) # traditional AIX only
12880       dynamic_linker='AIX lib.a(lib.so.V)'
12881       # We preserve .a as extension for shared libraries through AIX4.2
12882       # and later when we are not doing run time linking.
12883       library_names_spec='$libname$release.a $libname.a'
12884       soname_spec='$libname$release$shared_ext$major'
12885       ;;
12886     svr4,*) # full svr4 only
12887       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12888       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12889       # We do not specify a path in Import Files, so LIBPATH fires.
12890       shlibpath_overrides_runpath=yes
12891       ;;
12892     *,yes) # both, prefer svr4
12893       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12894       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12895       # unpreferred sharedlib libNAME.a needs extra handling
12896       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12897       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12898       # We do not specify a path in Import Files, so LIBPATH fires.
12899       shlibpath_overrides_runpath=yes
12900       ;;
12901     *,no) # both, prefer aix
12902       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12903       library_names_spec='$libname$release.a $libname.a'
12904       soname_spec='$libname$release$shared_ext$major'
12905       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12906       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12907       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12908       ;;
12909     esac
12910     shlibpath_var=LIBPATH
12911   fi
12912   ;;
12913
12914 amigaos*)
12915   case $host_cpu in
12916   powerpc)
12917     # Since July 2007 AmigaOS4 officially supports .so libraries.
12918     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12919     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12920     ;;
12921   m68k)
12922     library_names_spec='$libname.ixlibrary $libname.a'
12923     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12924     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12925     ;;
12926   esac
12927   ;;
12928
12929 beos*)
12930   library_names_spec='$libname$shared_ext'
12931   dynamic_linker="$host_os ld.so"
12932   shlibpath_var=LIBRARY_PATH
12933   ;;
12934
12935 bsdi[45]*)
12936   version_type=linux # correct to gnu/linux during the next big refactor
12937   need_version=no
12938   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12939   soname_spec='$libname$release$shared_ext$major'
12940   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12941   shlibpath_var=LD_LIBRARY_PATH
12942   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12943   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12944   # the default ld.so.conf also contains /usr/contrib/lib and
12945   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12946   # libtool to hard-code these into programs
12947   ;;
12948
12949 cygwin* | mingw* | pw32* | cegcc*)
12950   version_type=windows
12951   shrext_cmds=.dll
12952   need_version=no
12953   need_lib_prefix=no
12954
12955   case $GCC,$cc_basename in
12956   yes,*)
12957     # gcc
12958     library_names_spec='$libname.dll.a'
12959     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12960     postinstall_cmds='base_file=`basename \$file`~
12961       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12962       dldir=$destdir/`dirname \$dlpath`~
12963       test -d \$dldir || mkdir -p \$dldir~
12964       $install_prog $dir/$dlname \$dldir/$dlname~
12965       chmod a+x \$dldir/$dlname~
12966       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12967         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12968       fi'
12969     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12970       dlpath=$dir/\$dldll~
12971        $RM \$dlpath'
12972     shlibpath_overrides_runpath=yes
12973
12974     case $host_os in
12975     cygwin*)
12976       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12977       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12978
12979       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12980       ;;
12981     mingw* | cegcc*)
12982       # MinGW DLLs use traditional 'lib' prefix
12983       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12984       ;;
12985     pw32*)
12986       # pw32 DLLs use 'pw' prefix rather than 'lib'
12987       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12988       ;;
12989     esac
12990     dynamic_linker='Win32 ld.exe'
12991     ;;
12992
12993   *,cl*)
12994     # Native MSVC
12995     libname_spec='$name'
12996     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12997     library_names_spec='$libname.dll.lib'
12998
12999     case $build_os in
13000     mingw*)
13001       sys_lib_search_path_spec=
13002       lt_save_ifs=$IFS
13003       IFS=';'
13004       for lt_path in $LIB
13005       do
13006         IFS=$lt_save_ifs
13007         # Let DOS variable expansion print the short 8.3 style file name.
13008         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13009         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13010       done
13011       IFS=$lt_save_ifs
13012       # Convert to MSYS style.
13013       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13014       ;;
13015     cygwin*)
13016       # Convert to unix form, then to dos form, then back to unix form
13017       # but this time dos style (no spaces!) so that the unix form looks
13018       # like /cygdrive/c/PROGRA~1:/cygdr...
13019       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13020       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13021       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13022       ;;
13023     *)
13024       sys_lib_search_path_spec=$LIB
13025       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13026         # It is most probably a Windows format PATH.
13027         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13028       else
13029         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13030       fi
13031       # FIXME: find the short name or the path components, as spaces are
13032       # common. (e.g. "Program Files" -> "PROGRA~1")
13033       ;;
13034     esac
13035
13036     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13037     postinstall_cmds='base_file=`basename \$file`~
13038       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13039       dldir=$destdir/`dirname \$dlpath`~
13040       test -d \$dldir || mkdir -p \$dldir~
13041       $install_prog $dir/$dlname \$dldir/$dlname'
13042     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13043       dlpath=$dir/\$dldll~
13044        $RM \$dlpath'
13045     shlibpath_overrides_runpath=yes
13046     dynamic_linker='Win32 link.exe'
13047     ;;
13048
13049   *)
13050     # Assume MSVC wrapper
13051     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13052     dynamic_linker='Win32 ld.exe'
13053     ;;
13054   esac
13055   # FIXME: first we should search . and the directory the executable is in
13056   shlibpath_var=PATH
13057   ;;
13058
13059 darwin* | rhapsody*)
13060   dynamic_linker="$host_os dyld"
13061   version_type=darwin
13062   need_lib_prefix=no
13063   need_version=no
13064   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13065   soname_spec='$libname$release$major$shared_ext'
13066   shlibpath_overrides_runpath=yes
13067   shlibpath_var=DYLD_LIBRARY_PATH
13068   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13069
13070   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13071   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13072   ;;
13073
13074 dgux*)
13075   version_type=linux # correct to gnu/linux during the next big refactor
13076   need_lib_prefix=no
13077   need_version=no
13078   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13079   soname_spec='$libname$release$shared_ext$major'
13080   shlibpath_var=LD_LIBRARY_PATH
13081   ;;
13082
13083 freebsd* | dragonfly*)
13084   # DragonFly does not have aout.  When/if they implement a new
13085   # versioning mechanism, adjust this.
13086   if test -x /usr/bin/objformat; then
13087     objformat=`/usr/bin/objformat`
13088   else
13089     case $host_os in
13090     freebsd[23].*) objformat=aout ;;
13091     *) objformat=elf ;;
13092     esac
13093   fi
13094   version_type=freebsd-$objformat
13095   case $version_type in
13096     freebsd-elf*)
13097       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13098       soname_spec='$libname$release$shared_ext$major'
13099       need_version=no
13100       need_lib_prefix=no
13101       ;;
13102     freebsd-*)
13103       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13104       need_version=yes
13105       ;;
13106   esac
13107   shlibpath_var=LD_LIBRARY_PATH
13108   case $host_os in
13109   freebsd2.*)
13110     shlibpath_overrides_runpath=yes
13111     ;;
13112   freebsd3.[01]* | freebsdelf3.[01]*)
13113     shlibpath_overrides_runpath=yes
13114     hardcode_into_libs=yes
13115     ;;
13116   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13117   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13118     shlibpath_overrides_runpath=no
13119     hardcode_into_libs=yes
13120     ;;
13121   *) # from 4.6 on, and DragonFly
13122     shlibpath_overrides_runpath=yes
13123     hardcode_into_libs=yes
13124     ;;
13125   esac
13126   ;;
13127
13128 haiku*)
13129   version_type=linux # correct to gnu/linux during the next big refactor
13130   need_lib_prefix=no
13131   need_version=no
13132   dynamic_linker="$host_os runtime_loader"
13133   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13134   soname_spec='$libname$release$shared_ext$major'
13135   shlibpath_var=LIBRARY_PATH
13136   shlibpath_overrides_runpath=no
13137   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13138   hardcode_into_libs=yes
13139   ;;
13140
13141 hpux9* | hpux10* | hpux11*)
13142   # Give a soname corresponding to the major version so that dld.sl refuses to
13143   # link against other versions.
13144   version_type=sunos
13145   need_lib_prefix=no
13146   need_version=no
13147   case $host_cpu in
13148   ia64*)
13149     shrext_cmds='.so'
13150     hardcode_into_libs=yes
13151     dynamic_linker="$host_os dld.so"
13152     shlibpath_var=LD_LIBRARY_PATH
13153     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13154     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13155     soname_spec='$libname$release$shared_ext$major'
13156     if test 32 = "$HPUX_IA64_MODE"; then
13157       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13158       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13159     else
13160       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13161       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13162     fi
13163     ;;
13164   hppa*64*)
13165     shrext_cmds='.sl'
13166     hardcode_into_libs=yes
13167     dynamic_linker="$host_os dld.sl"
13168     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13169     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13170     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13171     soname_spec='$libname$release$shared_ext$major'
13172     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13173     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13174     ;;
13175   *)
13176     shrext_cmds='.sl'
13177     dynamic_linker="$host_os dld.sl"
13178     shlibpath_var=SHLIB_PATH
13179     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13180     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13181     soname_spec='$libname$release$shared_ext$major'
13182     ;;
13183   esac
13184   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13185   postinstall_cmds='chmod 555 $lib'
13186   # or fails outright, so override atomically:
13187   install_override_mode=555
13188   ;;
13189
13190 interix[3-9]*)
13191   version_type=linux # correct to gnu/linux during the next big refactor
13192   need_lib_prefix=no
13193   need_version=no
13194   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13195   soname_spec='$libname$release$shared_ext$major'
13196   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13197   shlibpath_var=LD_LIBRARY_PATH
13198   shlibpath_overrides_runpath=no
13199   hardcode_into_libs=yes
13200   ;;
13201
13202 irix5* | irix6* | nonstopux*)
13203   case $host_os in
13204     nonstopux*) version_type=nonstopux ;;
13205     *)
13206         if test yes = "$lt_cv_prog_gnu_ld"; then
13207                 version_type=linux # correct to gnu/linux during the next big refactor
13208         else
13209                 version_type=irix
13210         fi ;;
13211   esac
13212   need_lib_prefix=no
13213   need_version=no
13214   soname_spec='$libname$release$shared_ext$major'
13215   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13216   case $host_os in
13217   irix5* | nonstopux*)
13218     libsuff= shlibsuff=
13219     ;;
13220   *)
13221     case $LD in # libtool.m4 will add one of these switches to LD
13222     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13223       libsuff= shlibsuff= libmagic=32-bit;;
13224     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13225       libsuff=32 shlibsuff=N32 libmagic=N32;;
13226     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13227       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13228     *) libsuff= shlibsuff= libmagic=never-match;;
13229     esac
13230     ;;
13231   esac
13232   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13233   shlibpath_overrides_runpath=no
13234   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13235   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13236   hardcode_into_libs=yes
13237   ;;
13238
13239 # No shared lib support for Linux oldld, aout, or coff.
13240 linux*oldld* | linux*aout* | linux*coff*)
13241   dynamic_linker=no
13242   ;;
13243
13244 linux*android*)
13245   version_type=none # Android doesn't support versioned libraries.
13246   need_lib_prefix=no
13247   need_version=no
13248   library_names_spec='$libname$release$shared_ext'
13249   soname_spec='$libname$release$shared_ext'
13250   finish_cmds=
13251   shlibpath_var=LD_LIBRARY_PATH
13252   shlibpath_overrides_runpath=yes
13253
13254   # This implies no fast_install, which is unacceptable.
13255   # Some rework will be needed to allow for fast_install
13256   # before this can be enabled.
13257   hardcode_into_libs=yes
13258
13259   dynamic_linker='Android linker'
13260   # Don't embed -rpath directories since the linker doesn't support them.
13261   hardcode_libdir_flag_spec='-L$libdir'
13262   ;;
13263
13264 # This must be glibc/ELF.
13265 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13266   version_type=linux # correct to gnu/linux during the next big refactor
13267   need_lib_prefix=no
13268   need_version=no
13269   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13270   soname_spec='$libname$release$shared_ext$major'
13271   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13272   shlibpath_var=LD_LIBRARY_PATH
13273   shlibpath_overrides_runpath=no
13274
13275   # Some binutils ld are patched to set DT_RUNPATH
13276   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13277   $as_echo_n "(cached) " >&6
13278 else
13279   lt_cv_shlibpath_overrides_runpath=no
13280     save_LDFLAGS=$LDFLAGS
13281     save_libdir=$libdir
13282     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13283          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13284     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285 /* end confdefs.h.  */
13286
13287 int
13288 main ()
13289 {
13290
13291   ;
13292   return 0;
13293 }
13294 _ACEOF
13295 if ac_fn_c_try_link "$LINENO"; then :
13296   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13297   lt_cv_shlibpath_overrides_runpath=yes
13298 fi
13299 fi
13300 rm -f core conftest.err conftest.$ac_objext \
13301     conftest$ac_exeext conftest.$ac_ext
13302     LDFLAGS=$save_LDFLAGS
13303     libdir=$save_libdir
13304
13305 fi
13306
13307   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13308
13309   # This implies no fast_install, which is unacceptable.
13310   # Some rework will be needed to allow for fast_install
13311   # before this can be enabled.
13312   hardcode_into_libs=yes
13313
13314   # Ideally, we could use ldconfig to report *all* directores which are
13315   # searched for libraries, however this is still not possible.  Aside from not
13316   # being certain /sbin/ldconfig is available, command
13317   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13318   # even though it is searched at run-time.  Try to do the best guess by
13319   # appending ld.so.conf contents (and includes) to the search path.
13320   if test -f /etc/ld.so.conf; then
13321     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' ' '`
13322     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13323   fi
13324
13325   # We used to test for /lib/ld.so.1 and disable shared libraries on
13326   # powerpc, because MkLinux only supported shared libraries with the
13327   # GNU dynamic linker.  Since this was broken with cross compilers,
13328   # most powerpc-linux boxes support dynamic linking these days and
13329   # people can always --disable-shared, the test was removed, and we
13330   # assume the GNU/Linux dynamic linker is in use.
13331   dynamic_linker='GNU/Linux ld.so'
13332   ;;
13333
13334 netbsdelf*-gnu)
13335   version_type=linux
13336   need_lib_prefix=no
13337   need_version=no
13338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13339   soname_spec='${libname}${release}${shared_ext}$major'
13340   shlibpath_var=LD_LIBRARY_PATH
13341   shlibpath_overrides_runpath=no
13342   hardcode_into_libs=yes
13343   dynamic_linker='NetBSD ld.elf_so'
13344   ;;
13345
13346 netbsd*)
13347   version_type=sunos
13348   need_lib_prefix=no
13349   need_version=no
13350   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13351     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13352     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13353     dynamic_linker='NetBSD (a.out) ld.so'
13354   else
13355     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13356     soname_spec='$libname$release$shared_ext$major'
13357     dynamic_linker='NetBSD ld.elf_so'
13358   fi
13359   shlibpath_var=LD_LIBRARY_PATH
13360   shlibpath_overrides_runpath=yes
13361   hardcode_into_libs=yes
13362   ;;
13363
13364 newsos6)
13365   version_type=linux # correct to gnu/linux during the next big refactor
13366   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13367   shlibpath_var=LD_LIBRARY_PATH
13368   shlibpath_overrides_runpath=yes
13369   ;;
13370
13371 *nto* | *qnx*)
13372   version_type=qnx
13373   need_lib_prefix=no
13374   need_version=no
13375   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13376   soname_spec='$libname$release$shared_ext$major'
13377   shlibpath_var=LD_LIBRARY_PATH
13378   shlibpath_overrides_runpath=no
13379   hardcode_into_libs=yes
13380   dynamic_linker='ldqnx.so'
13381   ;;
13382
13383 openbsd* | bitrig*)
13384   version_type=sunos
13385   sys_lib_dlsearch_path_spec=/usr/lib
13386   need_lib_prefix=no
13387   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13388     need_version=no
13389   else
13390     need_version=yes
13391   fi
13392   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13393   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13394   shlibpath_var=LD_LIBRARY_PATH
13395   shlibpath_overrides_runpath=yes
13396   ;;
13397
13398 os2*)
13399   libname_spec='$name'
13400   version_type=windows
13401   shrext_cmds=.dll
13402   need_version=no
13403   need_lib_prefix=no
13404   # OS/2 can only load a DLL with a base name of 8 characters or less.
13405   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13406     v=$($ECHO $release$versuffix | tr -d .-);
13407     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13408     $ECHO $n$v`$shared_ext'
13409   library_names_spec='${libname}_dll.$libext'
13410   dynamic_linker='OS/2 ld.exe'
13411   shlibpath_var=BEGINLIBPATH
13412   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13413   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13414   postinstall_cmds='base_file=`basename \$file`~
13415     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13416     dldir=$destdir/`dirname \$dlpath`~
13417     test -d \$dldir || mkdir -p \$dldir~
13418     $install_prog $dir/$dlname \$dldir/$dlname~
13419     chmod a+x \$dldir/$dlname~
13420     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13421       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13422     fi'
13423   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13424     dlpath=$dir/\$dldll~
13425     $RM \$dlpath'
13426   ;;
13427
13428 osf3* | osf4* | osf5*)
13429   version_type=osf
13430   need_lib_prefix=no
13431   need_version=no
13432   soname_spec='$libname$release$shared_ext$major'
13433   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13434   shlibpath_var=LD_LIBRARY_PATH
13435   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13436   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13437   ;;
13438
13439 rdos*)
13440   dynamic_linker=no
13441   ;;
13442
13443 solaris*)
13444   version_type=linux # correct to gnu/linux during the next big refactor
13445   need_lib_prefix=no
13446   need_version=no
13447   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13448   soname_spec='$libname$release$shared_ext$major'
13449   shlibpath_var=LD_LIBRARY_PATH
13450   shlibpath_overrides_runpath=yes
13451   hardcode_into_libs=yes
13452   # ldd complains unless libraries are executable
13453   postinstall_cmds='chmod +x $lib'
13454   ;;
13455
13456 sunos4*)
13457   version_type=sunos
13458   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13459   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13460   shlibpath_var=LD_LIBRARY_PATH
13461   shlibpath_overrides_runpath=yes
13462   if test yes = "$with_gnu_ld"; then
13463     need_lib_prefix=no
13464   fi
13465   need_version=yes
13466   ;;
13467
13468 sysv4 | sysv4.3*)
13469   version_type=linux # correct to gnu/linux during the next big refactor
13470   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13471   soname_spec='$libname$release$shared_ext$major'
13472   shlibpath_var=LD_LIBRARY_PATH
13473   case $host_vendor in
13474     sni)
13475       shlibpath_overrides_runpath=no
13476       need_lib_prefix=no
13477       runpath_var=LD_RUN_PATH
13478       ;;
13479     siemens)
13480       need_lib_prefix=no
13481       ;;
13482     motorola)
13483       need_lib_prefix=no
13484       need_version=no
13485       shlibpath_overrides_runpath=no
13486       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13487       ;;
13488   esac
13489   ;;
13490
13491 sysv4*MP*)
13492   if test -d /usr/nec; then
13493     version_type=linux # correct to gnu/linux during the next big refactor
13494     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13495     soname_spec='$libname$shared_ext.$major'
13496     shlibpath_var=LD_LIBRARY_PATH
13497   fi
13498   ;;
13499
13500 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13501   version_type=sco
13502   need_lib_prefix=no
13503   need_version=no
13504   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13505   soname_spec='$libname$release$shared_ext$major'
13506   shlibpath_var=LD_LIBRARY_PATH
13507   shlibpath_overrides_runpath=yes
13508   hardcode_into_libs=yes
13509   if test yes = "$with_gnu_ld"; then
13510     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13511   else
13512     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13513     case $host_os in
13514       sco3.2v5*)
13515         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13516         ;;
13517     esac
13518   fi
13519   sys_lib_dlsearch_path_spec='/usr/lib'
13520   ;;
13521
13522 tpf*)
13523   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13524   version_type=linux # correct to gnu/linux during the next big refactor
13525   need_lib_prefix=no
13526   need_version=no
13527   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13528   shlibpath_var=LD_LIBRARY_PATH
13529   shlibpath_overrides_runpath=no
13530   hardcode_into_libs=yes
13531   ;;
13532
13533 uts4*)
13534   version_type=linux # correct to gnu/linux during the next big refactor
13535   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13536   soname_spec='$libname$release$shared_ext$major'
13537   shlibpath_var=LD_LIBRARY_PATH
13538   ;;
13539
13540 *)
13541   dynamic_linker=no
13542   ;;
13543 esac
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13545 $as_echo "$dynamic_linker" >&6; }
13546 test no = "$dynamic_linker" && can_build_shared=no
13547
13548 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13549 if test yes = "$GCC"; then
13550   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13551 fi
13552
13553 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13554   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13555 fi
13556
13557 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13558   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13559 fi
13560
13561 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13562 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13563
13564 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13565 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13566
13567 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13568 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13667 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13668 hardcode_action=
13669 if test -n "$hardcode_libdir_flag_spec" ||
13670    test -n "$runpath_var" ||
13671    test yes = "$hardcode_automatic"; then
13672
13673   # We can hardcode non-existent directories.
13674   if test no != "$hardcode_direct" &&
13675      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13676      # have to relink, otherwise we might link with an installed library
13677      # when we should be linking with a yet-to-be-installed one
13678      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13679      test no != "$hardcode_minus_L"; then
13680     # Linking always hardcodes the temporary library directory.
13681     hardcode_action=relink
13682   else
13683     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13684     hardcode_action=immediate
13685   fi
13686 else
13687   # We cannot hardcode anything, or else we can only hardcode existing
13688   # directories.
13689   hardcode_action=unsupported
13690 fi
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13692 $as_echo "$hardcode_action" >&6; }
13693
13694 if test relink = "$hardcode_action" ||
13695    test yes = "$inherit_rpath"; then
13696   # Fast installation is not supported
13697   enable_fast_install=no
13698 elif test yes = "$shlibpath_overrides_runpath" ||
13699      test no = "$enable_shared"; then
13700   # Fast installation is not necessary
13701   enable_fast_install=needless
13702 fi
13703
13704
13705
13706
13707
13708
13709   if test yes != "$enable_dlopen"; then
13710   enable_dlopen=unknown
13711   enable_dlopen_self=unknown
13712   enable_dlopen_self_static=unknown
13713 else
13714   lt_cv_dlopen=no
13715   lt_cv_dlopen_libs=
13716
13717   case $host_os in
13718   beos*)
13719     lt_cv_dlopen=load_add_on
13720     lt_cv_dlopen_libs=
13721     lt_cv_dlopen_self=yes
13722     ;;
13723
13724   mingw* | pw32* | cegcc*)
13725     lt_cv_dlopen=LoadLibrary
13726     lt_cv_dlopen_libs=
13727     ;;
13728
13729   cygwin*)
13730     lt_cv_dlopen=dlopen
13731     lt_cv_dlopen_libs=
13732     ;;
13733
13734   darwin*)
13735     # if libdl is installed we need to link against it
13736     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13737 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13738 if ${ac_cv_lib_dl_dlopen+:} false; then :
13739   $as_echo_n "(cached) " >&6
13740 else
13741   ac_check_lib_save_LIBS=$LIBS
13742 LIBS="-ldl  $LIBS"
13743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744 /* end confdefs.h.  */
13745
13746 /* Override any GCC internal prototype to avoid an error.
13747    Use char because int might match the return type of a GCC
13748    builtin and then its argument prototype would still apply.  */
13749 #ifdef __cplusplus
13750 extern "C"
13751 #endif
13752 char dlopen ();
13753 int
13754 main ()
13755 {
13756 return dlopen ();
13757   ;
13758   return 0;
13759 }
13760 _ACEOF
13761 if ac_fn_c_try_link "$LINENO"; then :
13762   ac_cv_lib_dl_dlopen=yes
13763 else
13764   ac_cv_lib_dl_dlopen=no
13765 fi
13766 rm -f core conftest.err conftest.$ac_objext \
13767     conftest$ac_exeext conftest.$ac_ext
13768 LIBS=$ac_check_lib_save_LIBS
13769 fi
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13771 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13772 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13773   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13774 else
13775
13776     lt_cv_dlopen=dyld
13777     lt_cv_dlopen_libs=
13778     lt_cv_dlopen_self=yes
13779
13780 fi
13781
13782     ;;
13783
13784   tpf*)
13785     # Don't try to run any link tests for TPF.  We know it's impossible
13786     # because TPF is a cross-compiler, and we know how we open DSOs.
13787     lt_cv_dlopen=dlopen
13788     lt_cv_dlopen_libs=
13789     lt_cv_dlopen_self=no
13790     ;;
13791
13792   *)
13793     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13794 if test "x$ac_cv_func_shl_load" = xyes; then :
13795   lt_cv_dlopen=shl_load
13796 else
13797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13798 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13799 if ${ac_cv_lib_dld_shl_load+:} false; then :
13800   $as_echo_n "(cached) " >&6
13801 else
13802   ac_check_lib_save_LIBS=$LIBS
13803 LIBS="-ldld  $LIBS"
13804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13805 /* end confdefs.h.  */
13806
13807 /* Override any GCC internal prototype to avoid an error.
13808    Use char because int might match the return type of a GCC
13809    builtin and then its argument prototype would still apply.  */
13810 #ifdef __cplusplus
13811 extern "C"
13812 #endif
13813 char shl_load ();
13814 int
13815 main ()
13816 {
13817 return shl_load ();
13818   ;
13819   return 0;
13820 }
13821 _ACEOF
13822 if ac_fn_c_try_link "$LINENO"; then :
13823   ac_cv_lib_dld_shl_load=yes
13824 else
13825   ac_cv_lib_dld_shl_load=no
13826 fi
13827 rm -f core conftest.err conftest.$ac_objext \
13828     conftest$ac_exeext conftest.$ac_ext
13829 LIBS=$ac_check_lib_save_LIBS
13830 fi
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13832 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13833 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13834   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13835 else
13836   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13837 if test "x$ac_cv_func_dlopen" = xyes; then :
13838   lt_cv_dlopen=dlopen
13839 else
13840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13841 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13842 if ${ac_cv_lib_dl_dlopen+:} false; then :
13843   $as_echo_n "(cached) " >&6
13844 else
13845   ac_check_lib_save_LIBS=$LIBS
13846 LIBS="-ldl  $LIBS"
13847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13848 /* end confdefs.h.  */
13849
13850 /* Override any GCC internal prototype to avoid an error.
13851    Use char because int might match the return type of a GCC
13852    builtin and then its argument prototype would still apply.  */
13853 #ifdef __cplusplus
13854 extern "C"
13855 #endif
13856 char dlopen ();
13857 int
13858 main ()
13859 {
13860 return dlopen ();
13861   ;
13862   return 0;
13863 }
13864 _ACEOF
13865 if ac_fn_c_try_link "$LINENO"; then :
13866   ac_cv_lib_dl_dlopen=yes
13867 else
13868   ac_cv_lib_dl_dlopen=no
13869 fi
13870 rm -f core conftest.err conftest.$ac_objext \
13871     conftest$ac_exeext conftest.$ac_ext
13872 LIBS=$ac_check_lib_save_LIBS
13873 fi
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13875 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13876 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13877   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13878 else
13879   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13880 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13881 if ${ac_cv_lib_svld_dlopen+:} false; then :
13882   $as_echo_n "(cached) " >&6
13883 else
13884   ac_check_lib_save_LIBS=$LIBS
13885 LIBS="-lsvld  $LIBS"
13886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13887 /* end confdefs.h.  */
13888
13889 /* Override any GCC internal prototype to avoid an error.
13890    Use char because int might match the return type of a GCC
13891    builtin and then its argument prototype would still apply.  */
13892 #ifdef __cplusplus
13893 extern "C"
13894 #endif
13895 char dlopen ();
13896 int
13897 main ()
13898 {
13899 return dlopen ();
13900   ;
13901   return 0;
13902 }
13903 _ACEOF
13904 if ac_fn_c_try_link "$LINENO"; then :
13905   ac_cv_lib_svld_dlopen=yes
13906 else
13907   ac_cv_lib_svld_dlopen=no
13908 fi
13909 rm -f core conftest.err conftest.$ac_objext \
13910     conftest$ac_exeext conftest.$ac_ext
13911 LIBS=$ac_check_lib_save_LIBS
13912 fi
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13914 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13915 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13916   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13917 else
13918   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13919 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13920 if ${ac_cv_lib_dld_dld_link+:} false; then :
13921   $as_echo_n "(cached) " >&6
13922 else
13923   ac_check_lib_save_LIBS=$LIBS
13924 LIBS="-ldld  $LIBS"
13925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13926 /* end confdefs.h.  */
13927
13928 /* Override any GCC internal prototype to avoid an error.
13929    Use char because int might match the return type of a GCC
13930    builtin and then its argument prototype would still apply.  */
13931 #ifdef __cplusplus
13932 extern "C"
13933 #endif
13934 char dld_link ();
13935 int
13936 main ()
13937 {
13938 return dld_link ();
13939   ;
13940   return 0;
13941 }
13942 _ACEOF
13943 if ac_fn_c_try_link "$LINENO"; then :
13944   ac_cv_lib_dld_dld_link=yes
13945 else
13946   ac_cv_lib_dld_dld_link=no
13947 fi
13948 rm -f core conftest.err conftest.$ac_objext \
13949     conftest$ac_exeext conftest.$ac_ext
13950 LIBS=$ac_check_lib_save_LIBS
13951 fi
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13953 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13954 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13955   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13956 fi
13957
13958
13959 fi
13960
13961
13962 fi
13963
13964
13965 fi
13966
13967
13968 fi
13969
13970
13971 fi
13972
13973     ;;
13974   esac
13975
13976   if test no = "$lt_cv_dlopen"; then
13977     enable_dlopen=no
13978   else
13979     enable_dlopen=yes
13980   fi
13981
13982   case $lt_cv_dlopen in
13983   dlopen)
13984     save_CPPFLAGS=$CPPFLAGS
13985     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13986
13987     save_LDFLAGS=$LDFLAGS
13988     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13989
13990     save_LIBS=$LIBS
13991     LIBS="$lt_cv_dlopen_libs $LIBS"
13992
13993     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13994 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13995 if ${lt_cv_dlopen_self+:} false; then :
13996   $as_echo_n "(cached) " >&6
13997 else
13998           if test yes = "$cross_compiling"; then :
13999   lt_cv_dlopen_self=cross
14000 else
14001   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14002   lt_status=$lt_dlunknown
14003   cat > conftest.$ac_ext <<_LT_EOF
14004 #line $LINENO "configure"
14005 #include "confdefs.h"
14006
14007 #if HAVE_DLFCN_H
14008 #include <dlfcn.h>
14009 #endif
14010
14011 #include <stdio.h>
14012
14013 #ifdef RTLD_GLOBAL
14014 #  define LT_DLGLOBAL           RTLD_GLOBAL
14015 #else
14016 #  ifdef DL_GLOBAL
14017 #    define LT_DLGLOBAL         DL_GLOBAL
14018 #  else
14019 #    define LT_DLGLOBAL         0
14020 #  endif
14021 #endif
14022
14023 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14024    find out it does not work in some platform. */
14025 #ifndef LT_DLLAZY_OR_NOW
14026 #  ifdef RTLD_LAZY
14027 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14028 #  else
14029 #    ifdef DL_LAZY
14030 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14031 #    else
14032 #      ifdef RTLD_NOW
14033 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14034 #      else
14035 #        ifdef DL_NOW
14036 #          define LT_DLLAZY_OR_NOW      DL_NOW
14037 #        else
14038 #          define LT_DLLAZY_OR_NOW      0
14039 #        endif
14040 #      endif
14041 #    endif
14042 #  endif
14043 #endif
14044
14045 /* When -fvisibility=hidden is used, assume the code has been annotated
14046    correspondingly for the symbols needed.  */
14047 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14048 int fnord () __attribute__((visibility("default")));
14049 #endif
14050
14051 int fnord () { return 42; }
14052 int main ()
14053 {
14054   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14055   int status = $lt_dlunknown;
14056
14057   if (self)
14058     {
14059       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14060       else
14061         {
14062           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14063           else puts (dlerror ());
14064         }
14065       /* dlclose (self); */
14066     }
14067   else
14068     puts (dlerror ());
14069
14070   return status;
14071 }
14072 _LT_EOF
14073   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14074   (eval $ac_link) 2>&5
14075   ac_status=$?
14076   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14077   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14078     (./conftest; exit; ) >&5 2>/dev/null
14079     lt_status=$?
14080     case x$lt_status in
14081       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14082       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14083       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14084     esac
14085   else :
14086     # compilation failed
14087     lt_cv_dlopen_self=no
14088   fi
14089 fi
14090 rm -fr conftest*
14091
14092
14093 fi
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14095 $as_echo "$lt_cv_dlopen_self" >&6; }
14096
14097     if test yes = "$lt_cv_dlopen_self"; then
14098       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14099       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14100 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14101 if ${lt_cv_dlopen_self_static+:} false; then :
14102   $as_echo_n "(cached) " >&6
14103 else
14104           if test yes = "$cross_compiling"; then :
14105   lt_cv_dlopen_self_static=cross
14106 else
14107   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14108   lt_status=$lt_dlunknown
14109   cat > conftest.$ac_ext <<_LT_EOF
14110 #line $LINENO "configure"
14111 #include "confdefs.h"
14112
14113 #if HAVE_DLFCN_H
14114 #include <dlfcn.h>
14115 #endif
14116
14117 #include <stdio.h>
14118
14119 #ifdef RTLD_GLOBAL
14120 #  define LT_DLGLOBAL           RTLD_GLOBAL
14121 #else
14122 #  ifdef DL_GLOBAL
14123 #    define LT_DLGLOBAL         DL_GLOBAL
14124 #  else
14125 #    define LT_DLGLOBAL         0
14126 #  endif
14127 #endif
14128
14129 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14130    find out it does not work in some platform. */
14131 #ifndef LT_DLLAZY_OR_NOW
14132 #  ifdef RTLD_LAZY
14133 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14134 #  else
14135 #    ifdef DL_LAZY
14136 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14137 #    else
14138 #      ifdef RTLD_NOW
14139 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14140 #      else
14141 #        ifdef DL_NOW
14142 #          define LT_DLLAZY_OR_NOW      DL_NOW
14143 #        else
14144 #          define LT_DLLAZY_OR_NOW      0
14145 #        endif
14146 #      endif
14147 #    endif
14148 #  endif
14149 #endif
14150
14151 /* When -fvisibility=hidden is used, assume the code has been annotated
14152    correspondingly for the symbols needed.  */
14153 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14154 int fnord () __attribute__((visibility("default")));
14155 #endif
14156
14157 int fnord () { return 42; }
14158 int main ()
14159 {
14160   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14161   int status = $lt_dlunknown;
14162
14163   if (self)
14164     {
14165       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14166       else
14167         {
14168           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14169           else puts (dlerror ());
14170         }
14171       /* dlclose (self); */
14172     }
14173   else
14174     puts (dlerror ());
14175
14176   return status;
14177 }
14178 _LT_EOF
14179   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14180   (eval $ac_link) 2>&5
14181   ac_status=$?
14182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14183   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14184     (./conftest; exit; ) >&5 2>/dev/null
14185     lt_status=$?
14186     case x$lt_status in
14187       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14188       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14189       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14190     esac
14191   else :
14192     # compilation failed
14193     lt_cv_dlopen_self_static=no
14194   fi
14195 fi
14196 rm -fr conftest*
14197
14198
14199 fi
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14201 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14202     fi
14203
14204     CPPFLAGS=$save_CPPFLAGS
14205     LDFLAGS=$save_LDFLAGS
14206     LIBS=$save_LIBS
14207     ;;
14208   esac
14209
14210   case $lt_cv_dlopen_self in
14211   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14212   *) enable_dlopen_self=unknown ;;
14213   esac
14214
14215   case $lt_cv_dlopen_self_static in
14216   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14217   *) enable_dlopen_self_static=unknown ;;
14218   esac
14219 fi
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237 striplib=
14238 old_striplib=
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14240 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14241 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14242   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14243   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14245 $as_echo "yes" >&6; }
14246 else
14247 # FIXME - insert some real tests, host_os isn't really good enough
14248   case $host_os in
14249   darwin*)
14250     if test -n "$STRIP"; then
14251       striplib="$STRIP -x"
14252       old_striplib="$STRIP -S"
14253       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14254 $as_echo "yes" >&6; }
14255     else
14256       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14257 $as_echo "no" >&6; }
14258     fi
14259     ;;
14260   *)
14261     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14262 $as_echo "no" >&6; }
14263     ;;
14264   esac
14265 fi
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278   # Report what library types will actually be built
14279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14280 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14282 $as_echo "$can_build_shared" >&6; }
14283
14284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14285 $as_echo_n "checking whether to build shared libraries... " >&6; }
14286   test no = "$can_build_shared" && enable_shared=no
14287
14288   # On AIX, shared libraries and static libraries use the same namespace, and
14289   # are all built from PIC.
14290   case $host_os in
14291   aix3*)
14292     test yes = "$enable_shared" && enable_static=no
14293     if test -n "$RANLIB"; then
14294       archive_cmds="$archive_cmds~\$RANLIB \$lib"
14295       postinstall_cmds='$RANLIB $lib'
14296     fi
14297     ;;
14298
14299   aix[4-9]*)
14300     if test ia64 != "$host_cpu"; then
14301       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14302       yes,aix,yes) ;;                   # shared object as lib.so file only
14303       yes,svr4,*) ;;                    # shared object as lib.so archive member only
14304       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
14305       esac
14306     fi
14307     ;;
14308   esac
14309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14310 $as_echo "$enable_shared" >&6; }
14311
14312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14313 $as_echo_n "checking whether to build static libraries... " >&6; }
14314   # Make sure either enable_shared or enable_static is yes.
14315   test yes = "$enable_shared" || enable_static=yes
14316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14317 $as_echo "$enable_static" >&6; }
14318
14319
14320
14321
14322 fi
14323 ac_ext=c
14324 ac_cpp='$CPP $CPPFLAGS'
14325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14328
14329 CC=$lt_save_CC
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345         ac_config_commands="$ac_config_commands libtool"
14346
14347
14348
14349
14350 # Only expand once:
14351
14352
14353
14354 rra_lib_arch_name=lib
14355  # The cast to long int works around a bug in the HP C Compiler
14356 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14357 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14358 # This bug is HP SR number 8606223364.
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14360 $as_echo_n "checking size of long... " >&6; }
14361 if ${ac_cv_sizeof_long+:} false; then :
14362   $as_echo_n "(cached) " >&6
14363 else
14364   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
14365
14366 else
14367   if test "$ac_cv_type_long" = yes; then
14368      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14370 as_fn_error 77 "cannot compute sizeof (long)
14371 See \`config.log' for more details" "$LINENO" 5; }
14372    else
14373      ac_cv_sizeof_long=0
14374    fi
14375 fi
14376
14377 fi
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14379 $as_echo "$ac_cv_sizeof_long" >&6; }
14380
14381
14382
14383 cat >>confdefs.h <<_ACEOF
14384 #define SIZEOF_LONG $ac_cv_sizeof_long
14385 _ACEOF
14386
14387
14388  if test "$ac_cv_sizeof_long" -eq 4 && test -d /usr/lib32; then :
14389   rra_lib_arch_name=lib32
14390 else
14391   if test "$ac_cv_sizeof_long" -eq 8 && test -d /usr/lib64; then :
14392   rra_lib_arch_name=lib64
14393 fi
14394 fi
14395 rra_CDB_root=
14396  rra_CDB_libdir=
14397  rra_CDB_includedir=
14398  rra_use_CDB=
14399  CDB_CPPFLAGS=
14400  CDB_LDFLAGS=
14401  CDB_LIBS=
14402
14403
14404
14405
14406 # Check whether --with-tinycdb was given.
14407 if test "${with_tinycdb+set}" = set; then :
14408   withval=$with_tinycdb; if test x"$withval" = xno; then :
14409   rra_use_CDB=false
14410 else
14411   if test x"$withval" != xyes; then :
14412   rra_CDB_root="$withval"
14413 fi
14414          rra_use_CDB=true
14415 fi
14416 fi
14417
14418
14419 # Check whether --with-tinycdb-include was given.
14420 if test "${with_tinycdb_include+set}" = set; then :
14421   withval=$with_tinycdb_include; if test x"$withval" != xyes && test x"$withval" != xno; then :
14422   rra_CDB_includedir="$withval"
14423 fi
14424 fi
14425
14426
14427 # Check whether --with-tinycdb-lib was given.
14428 if test "${with_tinycdb_lib+set}" = set; then :
14429   withval=$with_tinycdb_lib; if test x"$withval" != xyes && test x"$withval" != xno; then :
14430   rra_CDB_libdir="$withval"
14431 fi
14432 fi
14433
14434  if test x"$rra_use_CDB" != xfalse; then :
14435   if test x"$rra_use_CDB" = xtrue; then :
14436   if test x"$rra_CDB_libdir" != x; then :
14437   CDB_LDFLAGS="-L$rra_CDB_libdir"
14438 else
14439   if test x"$rra_CDB_root" != x; then :
14440
14441  if test -d "${rra_CDB_root}/$rra_lib_arch_name"; then :
14442   if test x"" = x; then :
14443   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/${rra_lib_arch_name}"
14444 else
14445   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/${rra_lib_arch_name}/"
14446 fi
14447 else
14448   if test x"" = x; then :
14449   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/lib"
14450 else
14451   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/lib/"
14452 fi
14453 fi
14454  CDB_LDFLAGS=`echo "$CDB_LDFLAGS" | sed -e 's/^ *//'`
14455 fi
14456 fi
14457  if test x"$rra_CDB_includedir" != x; then :
14458   CDB_CPPFLAGS="-I$rra_CDB_includedir"
14459 else
14460   if test x"$rra_CDB_root" != x; then :
14461   if test x"$rra_CDB_root" != x/usr; then :
14462   CDB_CPPFLAGS="-I${rra_CDB_root}/include"
14463 fi
14464 fi
14465 fi
14466  rra_CDB_save_CPPFLAGS="$CPPFLAGS"
14467  rra_CDB_save_LDFLAGS="$LDFLAGS"
14468  rra_CDB_save_LIBS="$LIBS"
14469  CPPFLAGS="$CDB_CPPFLAGS $CPPFLAGS"
14470  LDFLAGS="$CDB_LDFLAGS $LDFLAGS"
14471  LIBS="$CDB_LIBS $LIBS"
14472  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cdb_init in -lcdb" >&5
14473 $as_echo_n "checking for cdb_init in -lcdb... " >&6; }
14474 if ${ac_cv_lib_cdb_cdb_init+:} false; then :
14475   $as_echo_n "(cached) " >&6
14476 else
14477   ac_check_lib_save_LIBS=$LIBS
14478 LIBS="-lcdb  $LIBS"
14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480 /* end confdefs.h.  */
14481
14482 /* Override any GCC internal prototype to avoid an error.
14483    Use char because int might match the return type of a GCC
14484    builtin and then its argument prototype would still apply.  */
14485 #ifdef __cplusplus
14486 extern "C"
14487 #endif
14488 char cdb_init ();
14489 int
14490 main ()
14491 {
14492 return cdb_init ();
14493   ;
14494   return 0;
14495 }
14496 _ACEOF
14497 if ac_fn_c_try_link "$LINENO"; then :
14498   ac_cv_lib_cdb_cdb_init=yes
14499 else
14500   ac_cv_lib_cdb_cdb_init=no
14501 fi
14502 rm -f core conftest.err conftest.$ac_objext \
14503     conftest$ac_exeext conftest.$ac_ext
14504 LIBS=$ac_check_lib_save_LIBS
14505 fi
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdb_cdb_init" >&5
14507 $as_echo "$ac_cv_lib_cdb_cdb_init" >&6; }
14508 if test "x$ac_cv_lib_cdb_cdb_init" = xyes; then :
14509   CDB_LIBS=-lcdb
14510 else
14511   if test x"true" = xtrue; then :
14512   as_fn_error $? "cannot find usable TinyCDB library" "$LINENO" 5
14513 fi
14514 fi
14515
14516  for ac_header in cdb.h
14517 do :
14518   ac_fn_c_check_header_mongrel "$LINENO" "cdb.h" "ac_cv_header_cdb_h" "$ac_includes_default"
14519 if test "x$ac_cv_header_cdb_h" = xyes; then :
14520   cat >>confdefs.h <<_ACEOF
14521 #define HAVE_CDB_H 1
14522 _ACEOF
14523
14524 fi
14525
14526 done
14527
14528  CPPFLAGS="$rra_CDB_save_CPPFLAGS"
14529  LDFLAGS="$rra_CDB_save_LDFLAGS"
14530  LIBS="$rra_CDB_save_LIBS"
14531 else
14532   if test x"$rra_CDB_libdir" != x; then :
14533   CDB_LDFLAGS="-L$rra_CDB_libdir"
14534 else
14535   if test x"$rra_CDB_root" != x; then :
14536
14537  if test -d "${rra_CDB_root}/$rra_lib_arch_name"; then :
14538   if test x"" = x; then :
14539   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/${rra_lib_arch_name}"
14540 else
14541   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/${rra_lib_arch_name}/"
14542 fi
14543 else
14544   if test x"" = x; then :
14545   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/lib"
14546 else
14547   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/lib/"
14548 fi
14549 fi
14550  CDB_LDFLAGS=`echo "$CDB_LDFLAGS" | sed -e 's/^ *//'`
14551 fi
14552 fi
14553  if test x"$rra_CDB_includedir" != x; then :
14554   CDB_CPPFLAGS="-I$rra_CDB_includedir"
14555 else
14556   if test x"$rra_CDB_root" != x; then :
14557   if test x"$rra_CDB_root" != x/usr; then :
14558   CDB_CPPFLAGS="-I${rra_CDB_root}/include"
14559 fi
14560 fi
14561 fi
14562  rra_CDB_save_CPPFLAGS="$CPPFLAGS"
14563  rra_CDB_save_LDFLAGS="$LDFLAGS"
14564  rra_CDB_save_LIBS="$LIBS"
14565  CPPFLAGS="$CDB_CPPFLAGS $CPPFLAGS"
14566  LDFLAGS="$CDB_LDFLAGS $LDFLAGS"
14567  LIBS="$CDB_LIBS $LIBS"
14568  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cdb_init in -lcdb" >&5
14569 $as_echo_n "checking for cdb_init in -lcdb... " >&6; }
14570 if ${ac_cv_lib_cdb_cdb_init+:} false; then :
14571   $as_echo_n "(cached) " >&6
14572 else
14573   ac_check_lib_save_LIBS=$LIBS
14574 LIBS="-lcdb  $LIBS"
14575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14576 /* end confdefs.h.  */
14577
14578 /* Override any GCC internal prototype to avoid an error.
14579    Use char because int might match the return type of a GCC
14580    builtin and then its argument prototype would still apply.  */
14581 #ifdef __cplusplus
14582 extern "C"
14583 #endif
14584 char cdb_init ();
14585 int
14586 main ()
14587 {
14588 return cdb_init ();
14589   ;
14590   return 0;
14591 }
14592 _ACEOF
14593 if ac_fn_c_try_link "$LINENO"; then :
14594   ac_cv_lib_cdb_cdb_init=yes
14595 else
14596   ac_cv_lib_cdb_cdb_init=no
14597 fi
14598 rm -f core conftest.err conftest.$ac_objext \
14599     conftest$ac_exeext conftest.$ac_ext
14600 LIBS=$ac_check_lib_save_LIBS
14601 fi
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdb_cdb_init" >&5
14603 $as_echo "$ac_cv_lib_cdb_cdb_init" >&6; }
14604 if test "x$ac_cv_lib_cdb_cdb_init" = xyes; then :
14605   CDB_LIBS=-lcdb
14606 else
14607   if test x"false" = xtrue; then :
14608   as_fn_error $? "cannot find usable TinyCDB library" "$LINENO" 5
14609 fi
14610 fi
14611
14612  for ac_header in cdb.h
14613 do :
14614   ac_fn_c_check_header_mongrel "$LINENO" "cdb.h" "ac_cv_header_cdb_h" "$ac_includes_default"
14615 if test "x$ac_cv_header_cdb_h" = xyes; then :
14616   cat >>confdefs.h <<_ACEOF
14617 #define HAVE_CDB_H 1
14618 _ACEOF
14619
14620 fi
14621
14622 done
14623
14624  CPPFLAGS="$rra_CDB_save_CPPFLAGS"
14625  LDFLAGS="$rra_CDB_save_LDFLAGS"
14626  LIBS="$rra_CDB_save_LIBS"
14627 fi
14628 fi
14629  if test x"$CDB_LIBS" != x; then :
14630   rra_use_CDB=true
14631
14632 $as_echo "#define HAVE_CDB 1" >>confdefs.h
14633
14634 fi
14635 rra_system_cracklib=
14636  rra_cracklib_root=
14637  rra_cracklib_libdir=
14638  rra_cracklib_includedir=
14639  CRACKLIB_CPPFLAGS=
14640  CRACKLIB_LDFLAGS=
14641  CRACKLIB_LIBS=
14642
14643
14644
14645
14646
14647 # Check whether --with-cracklib was given.
14648 if test "${with_cracklib+set}" = set; then :
14649   withval=$with_cracklib; if test x"$withval" != xno; then :
14650   rra_system_cracklib=yes
14651 fi
14652      if test x"$withval" != xyes && test x"$withval" != xno; then :
14653   rra_cracklib_root="$withval"
14654 fi
14655 fi
14656
14657
14658 # Check whether --with-cracklib-include was given.
14659 if test "${with_cracklib_include+set}" = set; then :
14660   withval=$with_cracklib_include; if test x"$withval" != xyes && test x"$withval" != xno; then :
14661   rra_cracklib_includedir="$withval"
14662 fi
14663 fi
14664
14665
14666 # Check whether --with-cracklib-lib was given.
14667 if test "${with_cracklib_lib+set}" = set; then :
14668   withval=$with_cracklib_lib; if test x"$withval" != xyes && test x"$withval" != xno; then :
14669   rra_cracklib_libdir="$withval"
14670 fi
14671 fi
14672
14673
14674   if test x"$rra_system_cracklib" != xyes; then
14675   EMBEDDED_CRACKLIB_TRUE=
14676   EMBEDDED_CRACKLIB_FALSE='#'
14677 else
14678   EMBEDDED_CRACKLIB_TRUE='#'
14679   EMBEDDED_CRACKLIB_FALSE=
14680 fi
14681
14682  if test x"$rra_system_cracklib" = xyes; then :
14683   if test x"$rra_cracklib_libdir" != x; then :
14684   CRACKLIB_LDFLAGS="-L$rra_cracklib_libdir"
14685 else
14686   if test x"$rra_cracklib_root" != x; then :
14687
14688  if test -d "$rra_cracklib_root/$rra_lib_arch_name"; then :
14689   if test x"" = x; then :
14690   CRACKLIB_LDFLAGS="$CRACKLIB_LDFLAGS -L$rra_cracklib_root/${rra_lib_arch_name}"
14691 else
14692   CRACKLIB_LDFLAGS="$CRACKLIB_LDFLAGS -L$rra_cracklib_root/${rra_lib_arch_name}/"
14693 fi
14694 else
14695   if test x"" = x; then :
14696   CRACKLIB_LDFLAGS="$CRACKLIB_LDFLAGS -L$rra_cracklib_root/lib"
14697 else
14698   CRACKLIB_LDFLAGS="$CRACKLIB_LDFLAGS -L$rra_cracklib_root/lib/"
14699 fi
14700 fi
14701  CRACKLIB_LDFLAGS=`echo "$CRACKLIB_LDFLAGS" | sed -e 's/^ *//'`
14702 fi
14703 fi
14704  if test x"$rra_cracklib_includedir" != x; then :
14705   CRACKLIB_CPPFLAGS="-I$rra_cracklib_includedir"
14706 else
14707   if test x"$rra_cracklib_root" != x; then :
14708   if test x"$rra_cracklib_root" != x/usr; then :
14709   CRACKLIB_CPPFLAGS="-I${rra_cracklib_root}/include"
14710 fi
14711 fi
14712 fi
14713       CRACKLIB_LIBS="-lcrack"
14714       rra_cracklib_save_CPPFLAGS="$CPPFLAGS"
14715  rra_cracklib_save_LDFLAGS="$LDFLAGS"
14716  rra_cracklib_save_LIBS="$LIBS"
14717  CPPFLAGS="$CRACKLIB_CPPFLAGS $CPPFLAGS"
14718  LDFLAGS="$CRACKLIB_LDFLAGS $LDFLAGS"
14719  LIBS="$CRACKLIB_LIBS $LIBS"
14720  ac_fn_c_check_func "$LINENO" "FascistCheck" "ac_cv_func_FascistCheck"
14721 if test "x$ac_cv_func_FascistCheck" = xyes; then :
14722
14723 else
14724   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14726 as_fn_error $? "unable to link with CrackLib library
14727 See \`config.log' for more details" "$LINENO" 5; }
14728 fi
14729
14730  CPPFLAGS="$rra_cracklib_save_CPPFLAGS"
14731  LDFLAGS="$rra_cracklib_save_LDFLAGS"
14732  LIBS="$rra_cracklib_save_LIBS"
14733 fi
14734 if test x"$rra_system_cracklib" = xyes; then :
14735   rra_cracklib_save_CPPFLAGS="$CPPFLAGS"
14736  rra_cracklib_save_LDFLAGS="$LDFLAGS"
14737  rra_cracklib_save_LIBS="$LIBS"
14738  CPPFLAGS="$CRACKLIB_CPPFLAGS $CPPFLAGS"
14739  LDFLAGS="$CRACKLIB_LDFLAGS $LDFLAGS"
14740  LIBS="$CRACKLIB_LIBS $LIBS"
14741      for ac_header in crack.h
14742 do :
14743   ac_fn_c_check_header_mongrel "$LINENO" "crack.h" "ac_cv_header_crack_h" "$ac_includes_default"
14744 if test "x$ac_cv_header_crack_h" = xyes; then :
14745   cat >>confdefs.h <<_ACEOF
14746 #define HAVE_CRACK_H 1
14747 _ACEOF
14748
14749 fi
14750
14751 done
14752
14753      CPPFLAGS="$rra_cracklib_save_CPPFLAGS"
14754  LDFLAGS="$rra_cracklib_save_LDFLAGS"
14755  LIBS="$rra_cracklib_save_LIBS"
14756 fi
14757 rra_reduced_depends=false
14758 # Check whether --enable-reduced-depends was given.
14759 if test "${enable_reduced_depends+set}" = set; then :
14760   enableval=$enable_reduced_depends; if test x"$enableval" = xyes; then :
14761   rra_reduced_depends=true
14762 fi
14763 fi
14764
14765
14766  # Extract the first word of "krb5-config", so it can be a program name with args.
14767 set dummy krb5-config; ac_word=$2
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14769 $as_echo_n "checking for $ac_word... " >&6; }
14770 if ${ac_cv_path_PATH_KRB5_CONFIG+:} false; then :
14771   $as_echo_n "(cached) " >&6
14772 else
14773   case $PATH_KRB5_CONFIG in
14774   [\\/]* | ?:[\\/]*)
14775   ac_cv_path_PATH_KRB5_CONFIG="$PATH_KRB5_CONFIG" # Let the user override the test with a path.
14776   ;;
14777   *)
14778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14779 as_dummy="${PATH}:/usr/kerberos/bin"
14780 for as_dir in $as_dummy
14781 do
14782   IFS=$as_save_IFS
14783   test -z "$as_dir" && as_dir=.
14784     for ac_exec_ext in '' $ac_executable_extensions; do
14785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14786     ac_cv_path_PATH_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14788     break 2
14789   fi
14790 done
14791   done
14792 IFS=$as_save_IFS
14793
14794   ;;
14795 esac
14796 fi
14797 PATH_KRB5_CONFIG=$ac_cv_path_PATH_KRB5_CONFIG
14798 if test -n "$PATH_KRB5_CONFIG"; then
14799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_KRB5_CONFIG" >&5
14800 $as_echo "$PATH_KRB5_CONFIG" >&6; }
14801 else
14802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14803 $as_echo "no" >&6; }
14804 fi
14805
14806
14807 rra_krb5_root=
14808  rra_krb5_libdir=
14809  rra_krb5_includedir=
14810  rra_use_KRB5=true
14811
14812
14813 # Check whether --with-krb5 was given.
14814 if test "${with_krb5+set}" = set; then :
14815   withval=$with_krb5; if test x"$withval" != xyes && test x"$withval" != xno; then :
14816   rra_krb5_root="$withval"
14817 fi
14818 fi
14819
14820
14821 # Check whether --with-krb5-include was given.
14822 if test "${with_krb5_include+set}" = set; then :
14823   withval=$with_krb5_include; if test x"$withval" != xyes && test x"$withval" != xno; then :
14824   rra_krb5_includedir="$withval"
14825 fi
14826 fi
14827
14828
14829 # Check whether --with-krb5-lib was given.
14830 if test "${with_krb5_lib+set}" = set; then :
14831   withval=$with_krb5_lib; if test x"$withval" != xyes && test x"$withval" != xno; then :
14832   rra_krb5_libdir="$withval"
14833 fi
14834 fi
14835
14836
14837  rra_krb5_incroot=
14838
14839
14840
14841
14842  if test x"$rra_krb5_includedir" != x; then :
14843   rra_krb5_incroot="$rra_krb5_includedir"
14844 else
14845   if test x"$rra_krb5_root" != x; then :
14846   rra_krb5_incroot="${rra_krb5_root}/include"
14847 fi
14848 fi
14849  if test x"$rra_reduced_depends" = xtrue; then :
14850   if test x"$rra_krb5_libdir" != x; then :
14851   KRB5_LDFLAGS="-L$rra_krb5_libdir"
14852 else
14853   if test x"$rra_krb5_root" != x; then :
14854
14855  if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
14856   if test x"" = x; then :
14857   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
14858 else
14859   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
14860 fi
14861 else
14862   if test x"" = x; then :
14863   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
14864 else
14865   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
14866 fi
14867 fi
14868  KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
14869 fi
14870 fi
14871  if test x"$rra_krb5_includedir" != x; then :
14872   KRB5_CPPFLAGS="-I$rra_krb5_includedir"
14873 else
14874   if test x"$rra_krb5_root" != x; then :
14875   if test x"$rra_krb5_root" != x/usr; then :
14876   KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
14877 fi
14878 fi
14879 fi
14880      rra_krb5_save_CPPFLAGS="$CPPFLAGS"
14881  rra_krb5_save_LDFLAGS="$LDFLAGS"
14882  rra_krb5_save_LIBS="$LIBS"
14883  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
14884  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
14885  LIBS="$KRB5_LIBS $LIBS"
14886  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14887 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14888 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
14889   $as_echo_n "(cached) " >&6
14890 else
14891   ac_check_lib_save_LIBS=$LIBS
14892 LIBS="-lkrb5  $LIBS"
14893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14894 /* end confdefs.h.  */
14895
14896 /* Override any GCC internal prototype to avoid an error.
14897    Use char because int might match the return type of a GCC
14898    builtin and then its argument prototype would still apply.  */
14899 #ifdef __cplusplus
14900 extern "C"
14901 #endif
14902 char krb5_init_context ();
14903 int
14904 main ()
14905 {
14906 return krb5_init_context ();
14907   ;
14908   return 0;
14909 }
14910 _ACEOF
14911 if ac_fn_c_try_link "$LINENO"; then :
14912   ac_cv_lib_krb5_krb5_init_context=yes
14913 else
14914   ac_cv_lib_krb5_krb5_init_context=no
14915 fi
14916 rm -f core conftest.err conftest.$ac_objext \
14917     conftest$ac_exeext conftest.$ac_ext
14918 LIBS=$ac_check_lib_save_LIBS
14919 fi
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14921 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14922 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
14923   KRB5_LIBS="-lkrb5"
14924 else
14925   if test x"true" = xtrue; then :
14926   as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
14927 fi
14928 fi
14929
14930  LIBS="$KRB5_LIBS $LIBS"
14931  if test x"$rra_krb5_incroot" = x; then :
14932   for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
14933 do :
14934   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14935 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14936 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14937   cat >>confdefs.h <<_ACEOF
14938 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14939 _ACEOF
14940
14941 fi
14942
14943 done
14944
14945 else
14946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
14947 $as_echo_n "checking for krb5.h... " >&6; }
14948  if test -f "${rra_krb5_incroot}/krb5.h"; then :
14949
14950 cat >>confdefs.h <<_ACEOF
14951 #define HAVE_KRB5_H 1
14952 _ACEOF
14953
14954      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14955 $as_echo "yes" >&6; }
14956 else
14957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14958 $as_echo "no" >&6; }
14959 fi
14960       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
14961 $as_echo_n "checking for kerberosv5/krb5.h... " >&6; }
14962  if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"; then :
14963
14964 cat >>confdefs.h <<_ACEOF
14965 #define HAVE_KERBEROSV5_KRB5_H 1
14966 _ACEOF
14967
14968      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14969 $as_echo "yes" >&6; }
14970 else
14971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14972 $as_echo "no" >&6; }
14973 fi
14974       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
14975 $as_echo_n "checking for krb5/krb5.h... " >&6; }
14976  if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
14977
14978 cat >>confdefs.h <<_ACEOF
14979 #define HAVE_KRB5_KRB5_H 1
14980 _ACEOF
14981
14982      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14983 $as_echo "yes" >&6; }
14984 else
14985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14986 $as_echo "no" >&6; }
14987 fi
14988 fi
14989  for ac_func in krb5_get_error_message
14990 do :
14991   ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
14992 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
14993   cat >>confdefs.h <<_ACEOF
14994 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
14995 _ACEOF
14996  for ac_func in krb5_free_error_message
14997 do :
14998   ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
14999 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
15000   cat >>confdefs.h <<_ACEOF
15001 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
15002 _ACEOF
15003
15004 fi
15005 done
15006
15007 else
15008   for ac_func in krb5_get_error_string
15009 do :
15010   ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
15011 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
15012   cat >>confdefs.h <<_ACEOF
15013 #define HAVE_KRB5_GET_ERROR_STRING 1
15014 _ACEOF
15015
15016 else
15017   for ac_func in krb5_get_err_txt
15018 do :
15019   ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
15020 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
15021   cat >>confdefs.h <<_ACEOF
15022 #define HAVE_KRB5_GET_ERR_TXT 1
15023 _ACEOF
15024
15025 else
15026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
15027 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
15028 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
15029   $as_echo_n "(cached) " >&6
15030 else
15031   ac_check_lib_save_LIBS=$LIBS
15032 LIBS="-lksvc  $LIBS"
15033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15034 /* end confdefs.h.  */
15035
15036 /* Override any GCC internal prototype to avoid an error.
15037    Use char because int might match the return type of a GCC
15038    builtin and then its argument prototype would still apply.  */
15039 #ifdef __cplusplus
15040 extern "C"
15041 #endif
15042 char krb5_svc_get_msg ();
15043 int
15044 main ()
15045 {
15046 return krb5_svc_get_msg ();
15047   ;
15048   return 0;
15049 }
15050 _ACEOF
15051 if ac_fn_c_try_link "$LINENO"; then :
15052   ac_cv_lib_ksvc_krb5_svc_get_msg=yes
15053 else
15054   ac_cv_lib_ksvc_krb5_svc_get_msg=no
15055 fi
15056 rm -f core conftest.err conftest.$ac_objext \
15057     conftest$ac_exeext conftest.$ac_ext
15058 LIBS=$ac_check_lib_save_LIBS
15059 fi
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
15061 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
15062 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
15063   KRB5_LIBS="$KRB5_LIBS -lksvc"
15064                   $as_echo "#define HAVE_KRB5_SVC_GET_MSG 1" >>confdefs.h
15065
15066                   for ac_header in ibm_svc/krb5_svc.h
15067 do :
15068   ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
15069 #if HAVE_KRB5_H
15070 # include <krb5.h>
15071 #elif HAVE_KERBEROSV5_KRB5_H
15072 # include <kerberosv5/krb5.h>
15073 #else
15074 # include <krb5/krb5.h>
15075 #endif
15076
15077 "
15078 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
15079   cat >>confdefs.h <<_ACEOF
15080 #define HAVE_IBM_SVC_KRB5_SVC_H 1
15081 _ACEOF
15082
15083 fi
15084
15085 done
15086
15087 else
15088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15089 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15090 if ${ac_cv_lib_com_err_com_err+:} false; then :
15091   $as_echo_n "(cached) " >&6
15092 else
15093   ac_check_lib_save_LIBS=$LIBS
15094 LIBS="-lcom_err  $LIBS"
15095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15096 /* end confdefs.h.  */
15097
15098 /* Override any GCC internal prototype to avoid an error.
15099    Use char because int might match the return type of a GCC
15100    builtin and then its argument prototype would still apply.  */
15101 #ifdef __cplusplus
15102 extern "C"
15103 #endif
15104 char com_err ();
15105 int
15106 main ()
15107 {
15108 return com_err ();
15109   ;
15110   return 0;
15111 }
15112 _ACEOF
15113 if ac_fn_c_try_link "$LINENO"; then :
15114   ac_cv_lib_com_err_com_err=yes
15115 else
15116   ac_cv_lib_com_err_com_err=no
15117 fi
15118 rm -f core conftest.err conftest.$ac_objext \
15119     conftest$ac_exeext conftest.$ac_ext
15120 LIBS=$ac_check_lib_save_LIBS
15121 fi
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15123 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15124 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
15125   KRB5_LIBS="$KRB5_LIBS -lcom_err"
15126 else
15127   if test x"true" = xtrue; then :
15128   as_fn_error $? "cannot find usable com_err library" "$LINENO" 5
15129 else
15130   KRB5_LIBS=""
15131 fi
15132 fi
15133
15134                   if test x"$rra_krb5_incroot" = x; then :
15135   for ac_header in et/com_err.h kerberosv5/com_err.h
15136 do :
15137   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15138 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15139 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15140   cat >>confdefs.h <<_ACEOF
15141 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15142 _ACEOF
15143
15144 fi
15145
15146 done
15147
15148 else
15149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
15150 $as_echo_n "checking for et/com_err.h... " >&6; }
15151  if test -f "${rra_krb5_incroot}/et/com_err.h"; then :
15152
15153 cat >>confdefs.h <<_ACEOF
15154 #define HAVE_ET_COM_ERR_H 1
15155 _ACEOF
15156
15157      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15158 $as_echo "yes" >&6; }
15159 else
15160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15161 $as_echo "no" >&6; }
15162 fi
15163          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
15164 $as_echo_n "checking for kerberosv5/com_err.h... " >&6; }
15165  if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"; then :
15166
15167 cat >>confdefs.h <<_ACEOF
15168 #define HAVE_KERBEROSV5_COM_ERR_H 1
15169 _ACEOF
15170
15171      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15172 $as_echo "yes" >&6; }
15173 else
15174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15175 $as_echo "no" >&6; }
15176 fi
15177 fi
15178 fi
15179
15180 fi
15181 done
15182
15183 fi
15184 done
15185
15186 fi
15187 done
15188
15189  CPPFLAGS="$rra_krb5_save_CPPFLAGS"
15190  LDFLAGS="$rra_krb5_save_LDFLAGS"
15191  LIBS="$rra_krb5_save_LIBS"
15192 else
15193   if test x"$rra_krb5_includedir" = x && test x"$rra_krb5_libdir" = x; then :
15194
15195  rra_krb5_config_KRB5=
15196  rra_krb5_config_KRB5_ok=
15197  if test x"${rra_krb5_root}" != x && test -x "${rra_krb5_root}/bin/krb5-config"; then :
15198   rra_krb5_config_KRB5="${rra_krb5_root}/bin/krb5-config"
15199 else
15200   rra_krb5_config_KRB5="$PATH_KRB5_CONFIG"
15201 fi
15202  if test x"$rra_krb5_config_KRB5" != x && test -x "$rra_krb5_config_KRB5"; then :
15203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5 support in krb5-config" >&5
15204 $as_echo_n "checking for krb5 support in krb5-config... " >&6; }
15205 if ${rra_cv_lib_KRB5_config+:} false; then :
15206   $as_echo_n "(cached) " >&6
15207 else
15208   if "$rra_krb5_config_KRB5" 2>&1 | grep krb5 >/dev/null 2>&1; then :
15209   rra_cv_lib_KRB5_config=yes
15210 else
15211   rra_cv_lib_KRB5_config=no
15212 fi
15213 fi
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_lib_KRB5_config" >&5
15215 $as_echo "$rra_cv_lib_KRB5_config" >&6; }
15216      if test "$rra_cv_lib_KRB5_config" = yes; then :
15217   KRB5_CPPFLAGS=`"$rra_krb5_config_KRB5" --cflags krb5 2>/dev/null`
15218
15219
15220
15221  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --deps support in krb5-config" >&5
15222 $as_echo_n "checking for --deps support in krb5-config... " >&6; }
15223 if ${rra_cv_krb5_config_deps+:} false; then :
15224   $as_echo_n "(cached) " >&6
15225 else
15226   if "$rra_krb5_config_KRB5" 2>&1 | grep deps >/dev/null 2>&1; then :
15227   rra_cv_krb5_config_deps=yes
15228 else
15229   rra_cv_krb5_config_deps=no
15230 fi
15231 fi
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_krb5_config_deps" >&5
15233 $as_echo "$rra_cv_krb5_config_deps" >&6; }
15234  if test x"$rra_reduced_depends" = xfalse \
15235         && test x"$rra_cv_krb5_config_deps" = xyes; then :
15236   KRB5_LIBS=`"$rra_krb5_config_KRB5" --deps --libs krb5 2>/dev/null`
15237 else
15238   KRB5_LIBS=`"$rra_krb5_config_KRB5" --libs krb5 2>/dev/null`
15239 fi
15240          rra_krb5_config_KRB5_ok=yes
15241 else
15242   if test x"krb5" = xkrb5; then :
15243   KRB5_CPPFLAGS=`"$rra_krb5_config_KRB5" --cflags 2>/dev/null`
15244              KRB5_LIBS=`"$rra_krb5_config_KRB5" --libs krb5 2>/dev/null`
15245              rra_krb5_config_KRB5_ok=yes
15246 fi
15247 fi
15248 fi
15249  if test x"$rra_krb5_config_KRB5_ok" = xyes; then :
15250   KRB5_CPPFLAGS=`echo "$KRB5_CPPFLAGS" | sed 's%-I/usr/include %%'`
15251      KRB5_CPPFLAGS=`echo "$KRB5_CPPFLAGS" | sed 's%-I/usr/include$%%'`
15252      rra_krb5_save_CPPFLAGS="$CPPFLAGS"
15253  rra_krb5_save_LDFLAGS="$LDFLAGS"
15254  rra_krb5_save_LIBS="$LIBS"
15255  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
15256  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
15257  LIBS="$KRB5_LIBS $LIBS"
15258  ac_fn_c_check_func "$LINENO" "krb5_init_context" "ac_cv_func_krb5_init_context"
15259 if test "x$ac_cv_func_krb5_init_context" = xyes; then :
15260   CPPFLAGS="$rra_krb5_save_CPPFLAGS"
15261  LDFLAGS="$rra_krb5_save_LDFLAGS"
15262  LIBS="$rra_krb5_save_LIBS"
15263 else
15264   CPPFLAGS="$rra_krb5_save_CPPFLAGS"
15265  LDFLAGS="$rra_krb5_save_LDFLAGS"
15266  LIBS="$rra_krb5_save_LIBS"
15267      KRB5_CPPFLAGS=
15268      KRB5_LIBS=
15269      if test x"$rra_krb5_libdir" != x; then :
15270   KRB5_LDFLAGS="-L$rra_krb5_libdir"
15271 else
15272   if test x"$rra_krb5_root" != x; then :
15273
15274  if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
15275   if test x"" = x; then :
15276   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
15277 else
15278   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
15279 fi
15280 else
15281   if test x"" = x; then :
15282   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
15283 else
15284   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
15285 fi
15286 fi
15287  KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
15288 fi
15289 fi
15290  if test x"$rra_krb5_includedir" != x; then :
15291   KRB5_CPPFLAGS="-I$rra_krb5_includedir"
15292 else
15293   if test x"$rra_krb5_root" != x; then :
15294   if test x"$rra_krb5_root" != x/usr; then :
15295   KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
15296 fi
15297 fi
15298 fi
15299      rra_krb5_save_CPPFLAGS="$CPPFLAGS"
15300  rra_krb5_save_LDFLAGS="$LDFLAGS"
15301  rra_krb5_save_LIBS="$LIBS"
15302  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
15303  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
15304  LIBS="$KRB5_LIBS $LIBS"
15305  rra_krb5_extra=
15306  LIBS=
15307  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
15308 $as_echo_n "checking for library containing res_search... " >&6; }
15309 if ${ac_cv_search_res_search+:} false; then :
15310   $as_echo_n "(cached) " >&6
15311 else
15312   ac_func_search_save_LIBS=$LIBS
15313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15314 /* end confdefs.h.  */
15315
15316 /* Override any GCC internal prototype to avoid an error.
15317    Use char because int might match the return type of a GCC
15318    builtin and then its argument prototype would still apply.  */
15319 #ifdef __cplusplus
15320 extern "C"
15321 #endif
15322 char res_search ();
15323 int
15324 main ()
15325 {
15326 return res_search ();
15327   ;
15328   return 0;
15329 }
15330 _ACEOF
15331 for ac_lib in '' resolv; do
15332   if test -z "$ac_lib"; then
15333     ac_res="none required"
15334   else
15335     ac_res=-l$ac_lib
15336     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15337   fi
15338   if ac_fn_c_try_link "$LINENO"; then :
15339   ac_cv_search_res_search=$ac_res
15340 fi
15341 rm -f core conftest.err conftest.$ac_objext \
15342     conftest$ac_exeext
15343   if ${ac_cv_search_res_search+:} false; then :
15344   break
15345 fi
15346 done
15347 if ${ac_cv_search_res_search+:} false; then :
15348
15349 else
15350   ac_cv_search_res_search=no
15351 fi
15352 rm conftest.$ac_ext
15353 LIBS=$ac_func_search_save_LIBS
15354 fi
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
15356 $as_echo "$ac_cv_search_res_search" >&6; }
15357 ac_res=$ac_cv_search_res_search
15358 if test "$ac_res" != no; then :
15359   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15360
15361 else
15362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
15363 $as_echo_n "checking for library containing __res_search... " >&6; }
15364 if ${ac_cv_search___res_search+:} false; then :
15365   $as_echo_n "(cached) " >&6
15366 else
15367   ac_func_search_save_LIBS=$LIBS
15368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15369 /* end confdefs.h.  */
15370
15371 /* Override any GCC internal prototype to avoid an error.
15372    Use char because int might match the return type of a GCC
15373    builtin and then its argument prototype would still apply.  */
15374 #ifdef __cplusplus
15375 extern "C"
15376 #endif
15377 char __res_search ();
15378 int
15379 main ()
15380 {
15381 return __res_search ();
15382   ;
15383   return 0;
15384 }
15385 _ACEOF
15386 for ac_lib in '' resolv; do
15387   if test -z "$ac_lib"; then
15388     ac_res="none required"
15389   else
15390     ac_res=-l$ac_lib
15391     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15392   fi
15393   if ac_fn_c_try_link "$LINENO"; then :
15394   ac_cv_search___res_search=$ac_res
15395 fi
15396 rm -f core conftest.err conftest.$ac_objext \
15397     conftest$ac_exeext
15398   if ${ac_cv_search___res_search+:} false; then :
15399   break
15400 fi
15401 done
15402 if ${ac_cv_search___res_search+:} false; then :
15403
15404 else
15405   ac_cv_search___res_search=no
15406 fi
15407 rm conftest.$ac_ext
15408 LIBS=$ac_func_search_save_LIBS
15409 fi
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
15411 $as_echo "$ac_cv_search___res_search" >&6; }
15412 ac_res=$ac_cv_search___res_search
15413 if test "$ac_res" != no; then :
15414   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15415
15416 fi
15417
15418 fi
15419
15420  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
15421 $as_echo_n "checking for library containing gethostbyname... " >&6; }
15422 if ${ac_cv_search_gethostbyname+:} false; then :
15423   $as_echo_n "(cached) " >&6
15424 else
15425   ac_func_search_save_LIBS=$LIBS
15426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15427 /* end confdefs.h.  */
15428
15429 /* Override any GCC internal prototype to avoid an error.
15430    Use char because int might match the return type of a GCC
15431    builtin and then its argument prototype would still apply.  */
15432 #ifdef __cplusplus
15433 extern "C"
15434 #endif
15435 char gethostbyname ();
15436 int
15437 main ()
15438 {
15439 return gethostbyname ();
15440   ;
15441   return 0;
15442 }
15443 _ACEOF
15444 for ac_lib in '' nsl; do
15445   if test -z "$ac_lib"; then
15446     ac_res="none required"
15447   else
15448     ac_res=-l$ac_lib
15449     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15450   fi
15451   if ac_fn_c_try_link "$LINENO"; then :
15452   ac_cv_search_gethostbyname=$ac_res
15453 fi
15454 rm -f core conftest.err conftest.$ac_objext \
15455     conftest$ac_exeext
15456   if ${ac_cv_search_gethostbyname+:} false; then :
15457   break
15458 fi
15459 done
15460 if ${ac_cv_search_gethostbyname+:} false; then :
15461
15462 else
15463   ac_cv_search_gethostbyname=no
15464 fi
15465 rm conftest.$ac_ext
15466 LIBS=$ac_func_search_save_LIBS
15467 fi
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
15469 $as_echo "$ac_cv_search_gethostbyname" >&6; }
15470 ac_res=$ac_cv_search_gethostbyname
15471 if test "$ac_res" != no; then :
15472   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15473
15474 fi
15475
15476  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
15477 $as_echo_n "checking for library containing socket... " >&6; }
15478 if ${ac_cv_search_socket+:} false; then :
15479   $as_echo_n "(cached) " >&6
15480 else
15481   ac_func_search_save_LIBS=$LIBS
15482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15483 /* end confdefs.h.  */
15484
15485 /* Override any GCC internal prototype to avoid an error.
15486    Use char because int might match the return type of a GCC
15487    builtin and then its argument prototype would still apply.  */
15488 #ifdef __cplusplus
15489 extern "C"
15490 #endif
15491 char socket ();
15492 int
15493 main ()
15494 {
15495 return socket ();
15496   ;
15497   return 0;
15498 }
15499 _ACEOF
15500 for ac_lib in '' socket; do
15501   if test -z "$ac_lib"; then
15502     ac_res="none required"
15503   else
15504     ac_res=-l$ac_lib
15505     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15506   fi
15507   if ac_fn_c_try_link "$LINENO"; then :
15508   ac_cv_search_socket=$ac_res
15509 fi
15510 rm -f core conftest.err conftest.$ac_objext \
15511     conftest$ac_exeext
15512   if ${ac_cv_search_socket+:} false; then :
15513   break
15514 fi
15515 done
15516 if ${ac_cv_search_socket+:} false; then :
15517
15518 else
15519   ac_cv_search_socket=no
15520 fi
15521 rm conftest.$ac_ext
15522 LIBS=$ac_func_search_save_LIBS
15523 fi
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
15525 $as_echo "$ac_cv_search_socket" >&6; }
15526 ac_res=$ac_cv_search_socket
15527 if test "$ac_res" != no; then :
15528   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15529
15530 else
15531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
15532 $as_echo_n "checking for socket in -lnsl... " >&6; }
15533 if ${ac_cv_lib_nsl_socket+:} false; then :
15534   $as_echo_n "(cached) " >&6
15535 else
15536   ac_check_lib_save_LIBS=$LIBS
15537 LIBS="-lnsl -lsocket $LIBS"
15538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15539 /* end confdefs.h.  */
15540
15541 /* Override any GCC internal prototype to avoid an error.
15542    Use char because int might match the return type of a GCC
15543    builtin and then its argument prototype would still apply.  */
15544 #ifdef __cplusplus
15545 extern "C"
15546 #endif
15547 char socket ();
15548 int
15549 main ()
15550 {
15551 return socket ();
15552   ;
15553   return 0;
15554 }
15555 _ACEOF
15556 if ac_fn_c_try_link "$LINENO"; then :
15557   ac_cv_lib_nsl_socket=yes
15558 else
15559   ac_cv_lib_nsl_socket=no
15560 fi
15561 rm -f core conftest.err conftest.$ac_objext \
15562     conftest$ac_exeext conftest.$ac_ext
15563 LIBS=$ac_check_lib_save_LIBS
15564 fi
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
15566 $as_echo "$ac_cv_lib_nsl_socket" >&6; }
15567 if test "x$ac_cv_lib_nsl_socket" = xyes; then :
15568   LIBS="-lnsl -lsocket $LIBS"
15569 fi
15570
15571 fi
15572
15573  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
15574 $as_echo_n "checking for library containing crypt... " >&6; }
15575 if ${ac_cv_search_crypt+:} false; then :
15576   $as_echo_n "(cached) " >&6
15577 else
15578   ac_func_search_save_LIBS=$LIBS
15579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15580 /* end confdefs.h.  */
15581
15582 /* Override any GCC internal prototype to avoid an error.
15583    Use char because int might match the return type of a GCC
15584    builtin and then its argument prototype would still apply.  */
15585 #ifdef __cplusplus
15586 extern "C"
15587 #endif
15588 char crypt ();
15589 int
15590 main ()
15591 {
15592 return crypt ();
15593   ;
15594   return 0;
15595 }
15596 _ACEOF
15597 for ac_lib in '' crypt; do
15598   if test -z "$ac_lib"; then
15599     ac_res="none required"
15600   else
15601     ac_res=-l$ac_lib
15602     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15603   fi
15604   if ac_fn_c_try_link "$LINENO"; then :
15605   ac_cv_search_crypt=$ac_res
15606 fi
15607 rm -f core conftest.err conftest.$ac_objext \
15608     conftest$ac_exeext
15609   if ${ac_cv_search_crypt+:} false; then :
15610   break
15611 fi
15612 done
15613 if ${ac_cv_search_crypt+:} false; then :
15614
15615 else
15616   ac_cv_search_crypt=no
15617 fi
15618 rm conftest.$ac_ext
15619 LIBS=$ac_func_search_save_LIBS
15620 fi
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
15622 $as_echo "$ac_cv_search_crypt" >&6; }
15623 ac_res=$ac_cv_search_crypt
15624 if test "$ac_res" != no; then :
15625   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15626
15627 fi
15628
15629  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
15630 $as_echo_n "checking for library containing roken_concat... " >&6; }
15631 if ${ac_cv_search_roken_concat+:} false; then :
15632   $as_echo_n "(cached) " >&6
15633 else
15634   ac_func_search_save_LIBS=$LIBS
15635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15636 /* end confdefs.h.  */
15637
15638 /* Override any GCC internal prototype to avoid an error.
15639    Use char because int might match the return type of a GCC
15640    builtin and then its argument prototype would still apply.  */
15641 #ifdef __cplusplus
15642 extern "C"
15643 #endif
15644 char roken_concat ();
15645 int
15646 main ()
15647 {
15648 return roken_concat ();
15649   ;
15650   return 0;
15651 }
15652 _ACEOF
15653 for ac_lib in '' roken; do
15654   if test -z "$ac_lib"; then
15655     ac_res="none required"
15656   else
15657     ac_res=-l$ac_lib
15658     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15659   fi
15660   if ac_fn_c_try_link "$LINENO"; then :
15661   ac_cv_search_roken_concat=$ac_res
15662 fi
15663 rm -f core conftest.err conftest.$ac_objext \
15664     conftest$ac_exeext
15665   if ${ac_cv_search_roken_concat+:} false; then :
15666   break
15667 fi
15668 done
15669 if ${ac_cv_search_roken_concat+:} false; then :
15670
15671 else
15672   ac_cv_search_roken_concat=no
15673 fi
15674 rm conftest.$ac_ext
15675 LIBS=$ac_func_search_save_LIBS
15676 fi
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
15678 $as_echo "$ac_cv_search_roken_concat" >&6; }
15679 ac_res=$ac_cv_search_roken_concat
15680 if test "$ac_res" != no; then :
15681   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15682
15683 fi
15684
15685  rra_krb5_extra="$LIBS"
15686  LIBS="$rra_krb5_save_LIBS"
15687  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15688 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15689 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
15690   $as_echo_n "(cached) " >&6
15691 else
15692   ac_check_lib_save_LIBS=$LIBS
15693 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
15694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15695 /* end confdefs.h.  */
15696
15697 /* Override any GCC internal prototype to avoid an error.
15698    Use char because int might match the return type of a GCC
15699    builtin and then its argument prototype would still apply.  */
15700 #ifdef __cplusplus
15701 extern "C"
15702 #endif
15703 char krb5_init_context ();
15704 int
15705 main ()
15706 {
15707 return krb5_init_context ();
15708   ;
15709   return 0;
15710 }
15711 _ACEOF
15712 if ac_fn_c_try_link "$LINENO"; then :
15713   ac_cv_lib_krb5_krb5_init_context=yes
15714 else
15715   ac_cv_lib_krb5_krb5_init_context=no
15716 fi
15717 rm -f core conftest.err conftest.$ac_objext \
15718     conftest$ac_exeext conftest.$ac_ext
15719 LIBS=$ac_check_lib_save_LIBS
15720 fi
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15722 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15723 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
15724   KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
15725 else
15726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
15727 $as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
15728 if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
15729   $as_echo_n "(cached) " >&6
15730 else
15731   ac_check_lib_save_LIBS=$LIBS
15732 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
15733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15734 /* end confdefs.h.  */
15735
15736 /* Override any GCC internal prototype to avoid an error.
15737    Use char because int might match the return type of a GCC
15738    builtin and then its argument prototype would still apply.  */
15739 #ifdef __cplusplus
15740 extern "C"
15741 #endif
15742 char krb5int_getspecific ();
15743 int
15744 main ()
15745 {
15746 return krb5int_getspecific ();
15747   ;
15748   return 0;
15749 }
15750 _ACEOF
15751 if ac_fn_c_try_link "$LINENO"; then :
15752   ac_cv_lib_krb5support_krb5int_getspecific=yes
15753 else
15754   ac_cv_lib_krb5support_krb5int_getspecific=no
15755 fi
15756 rm -f core conftest.err conftest.$ac_objext \
15757     conftest$ac_exeext conftest.$ac_ext
15758 LIBS=$ac_check_lib_save_LIBS
15759 fi
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
15761 $as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
15762 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
15763   rra_krb5_extra="-lkrb5support $rra_krb5_extra"
15764 else
15765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
15766 $as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; }
15767 if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then :
15768   $as_echo_n "(cached) " >&6
15769 else
15770   ac_check_lib_save_LIBS=$LIBS
15771 LIBS="-lpthreads  $LIBS"
15772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15773 /* end confdefs.h.  */
15774
15775 /* Override any GCC internal prototype to avoid an error.
15776    Use char because int might match the return type of a GCC
15777    builtin and then its argument prototype would still apply.  */
15778 #ifdef __cplusplus
15779 extern "C"
15780 #endif
15781 char pthread_setspecific ();
15782 int
15783 main ()
15784 {
15785 return pthread_setspecific ();
15786   ;
15787   return 0;
15788 }
15789 _ACEOF
15790 if ac_fn_c_try_link "$LINENO"; then :
15791   ac_cv_lib_pthreads_pthread_setspecific=yes
15792 else
15793   ac_cv_lib_pthreads_pthread_setspecific=no
15794 fi
15795 rm -f core conftest.err conftest.$ac_objext \
15796     conftest$ac_exeext conftest.$ac_ext
15797 LIBS=$ac_check_lib_save_LIBS
15798 fi
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
15800 $as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
15801 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then :
15802   rra_krb5_pthread="-lpthreads"
15803 else
15804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
15805 $as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; }
15806 if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then :
15807   $as_echo_n "(cached) " >&6
15808 else
15809   ac_check_lib_save_LIBS=$LIBS
15810 LIBS="-lpthread  $LIBS"
15811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15812 /* end confdefs.h.  */
15813
15814 /* Override any GCC internal prototype to avoid an error.
15815    Use char because int might match the return type of a GCC
15816    builtin and then its argument prototype would still apply.  */
15817 #ifdef __cplusplus
15818 extern "C"
15819 #endif
15820 char pthread_setspecific ();
15821 int
15822 main ()
15823 {
15824 return pthread_setspecific ();
15825   ;
15826   return 0;
15827 }
15828 _ACEOF
15829 if ac_fn_c_try_link "$LINENO"; then :
15830   ac_cv_lib_pthread_pthread_setspecific=yes
15831 else
15832   ac_cv_lib_pthread_pthread_setspecific=no
15833 fi
15834 rm -f core conftest.err conftest.$ac_objext \
15835     conftest$ac_exeext conftest.$ac_ext
15836 LIBS=$ac_check_lib_save_LIBS
15837 fi
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
15839 $as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
15840 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then :
15841   rra_krb5_pthread="-lpthread"
15842 fi
15843
15844 fi
15845
15846          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
15847 $as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; }
15848 if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then :
15849   $as_echo_n "(cached) " >&6
15850 else
15851   ac_check_lib_save_LIBS=$LIBS
15852 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
15853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15854 /* end confdefs.h.  */
15855
15856 /* Override any GCC internal prototype to avoid an error.
15857    Use char because int might match the return type of a GCC
15858    builtin and then its argument prototype would still apply.  */
15859 #ifdef __cplusplus
15860 extern "C"
15861 #endif
15862 char krb5int_setspecific ();
15863 int
15864 main ()
15865 {
15866 return krb5int_setspecific ();
15867   ;
15868   return 0;
15869 }
15870 _ACEOF
15871 if ac_fn_c_try_link "$LINENO"; then :
15872   ac_cv_lib_krb5support_krb5int_setspecific=yes
15873 else
15874   ac_cv_lib_krb5support_krb5int_setspecific=no
15875 fi
15876 rm -f core conftest.err conftest.$ac_objext \
15877     conftest$ac_exeext conftest.$ac_ext
15878 LIBS=$ac_check_lib_save_LIBS
15879 fi
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
15881 $as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
15882 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then :
15883   rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
15884 fi
15885
15886 fi
15887
15888      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
15889 $as_echo_n "checking for error_message in -lcom_err... " >&6; }
15890 if ${ac_cv_lib_com_err_error_message+:} false; then :
15891   $as_echo_n "(cached) " >&6
15892 else
15893   ac_check_lib_save_LIBS=$LIBS
15894 LIBS="-lcom_err $rra_krb5_extra $LIBS"
15895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15896 /* end confdefs.h.  */
15897
15898 /* Override any GCC internal prototype to avoid an error.
15899    Use char because int might match the return type of a GCC
15900    builtin and then its argument prototype would still apply.  */
15901 #ifdef __cplusplus
15902 extern "C"
15903 #endif
15904 char error_message ();
15905 int
15906 main ()
15907 {
15908 return error_message ();
15909   ;
15910   return 0;
15911 }
15912 _ACEOF
15913 if ac_fn_c_try_link "$LINENO"; then :
15914   ac_cv_lib_com_err_error_message=yes
15915 else
15916   ac_cv_lib_com_err_error_message=no
15917 fi
15918 rm -f core conftest.err conftest.$ac_objext \
15919     conftest$ac_exeext conftest.$ac_ext
15920 LIBS=$ac_check_lib_save_LIBS
15921 fi
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
15923 $as_echo "$ac_cv_lib_com_err_error_message" >&6; }
15924 if test "x$ac_cv_lib_com_err_error_message" = xyes; then :
15925   rra_krb5_extra="-lcom_err $rra_krb5_extra"
15926 fi
15927
15928      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
15929 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
15930 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
15931   $as_echo_n "(cached) " >&6
15932 else
15933   ac_check_lib_save_LIBS=$LIBS
15934 LIBS="-lksvc $rra_krb5_extra $LIBS"
15935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15936 /* end confdefs.h.  */
15937
15938 /* Override any GCC internal prototype to avoid an error.
15939    Use char because int might match the return type of a GCC
15940    builtin and then its argument prototype would still apply.  */
15941 #ifdef __cplusplus
15942 extern "C"
15943 #endif
15944 char krb5_svc_get_msg ();
15945 int
15946 main ()
15947 {
15948 return krb5_svc_get_msg ();
15949   ;
15950   return 0;
15951 }
15952 _ACEOF
15953 if ac_fn_c_try_link "$LINENO"; then :
15954   ac_cv_lib_ksvc_krb5_svc_get_msg=yes
15955 else
15956   ac_cv_lib_ksvc_krb5_svc_get_msg=no
15957 fi
15958 rm -f core conftest.err conftest.$ac_objext \
15959     conftest$ac_exeext conftest.$ac_ext
15960 LIBS=$ac_check_lib_save_LIBS
15961 fi
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
15963 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
15964 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
15965   rra_krb5_extra="-lksvc $rra_krb5_extra"
15966 fi
15967
15968      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
15969 $as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
15970 if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then :
15971   $as_echo_n "(cached) " >&6
15972 else
15973   ac_check_lib_save_LIBS=$LIBS
15974 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
15975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15976 /* end confdefs.h.  */
15977
15978 /* Override any GCC internal prototype to avoid an error.
15979    Use char because int might match the return type of a GCC
15980    builtin and then its argument prototype would still apply.  */
15981 #ifdef __cplusplus
15982 extern "C"
15983 #endif
15984 char krb5int_hash_md5 ();
15985 int
15986 main ()
15987 {
15988 return krb5int_hash_md5 ();
15989   ;
15990   return 0;
15991 }
15992 _ACEOF
15993 if ac_fn_c_try_link "$LINENO"; then :
15994   ac_cv_lib_k5crypto_krb5int_hash_md5=yes
15995 else
15996   ac_cv_lib_k5crypto_krb5int_hash_md5=no
15997 fi
15998 rm -f core conftest.err conftest.$ac_objext \
15999     conftest$ac_exeext conftest.$ac_ext
16000 LIBS=$ac_check_lib_save_LIBS
16001 fi
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
16003 $as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
16004 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then :
16005   rra_krb5_extra="-lk5crypto $rra_krb5_extra"
16006 fi
16007
16008      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
16009 $as_echo_n "checking for profile_get_values in -lk5profile... " >&6; }
16010 if ${ac_cv_lib_k5profile_profile_get_values+:} false; then :
16011   $as_echo_n "(cached) " >&6
16012 else
16013   ac_check_lib_save_LIBS=$LIBS
16014 LIBS="-lk5profile $rra_krb5_extra $LIBS"
16015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16016 /* end confdefs.h.  */
16017
16018 /* Override any GCC internal prototype to avoid an error.
16019    Use char because int might match the return type of a GCC
16020    builtin and then its argument prototype would still apply.  */
16021 #ifdef __cplusplus
16022 extern "C"
16023 #endif
16024 char profile_get_values ();
16025 int
16026 main ()
16027 {
16028 return profile_get_values ();
16029   ;
16030   return 0;
16031 }
16032 _ACEOF
16033 if ac_fn_c_try_link "$LINENO"; then :
16034   ac_cv_lib_k5profile_profile_get_values=yes
16035 else
16036   ac_cv_lib_k5profile_profile_get_values=no
16037 fi
16038 rm -f core conftest.err conftest.$ac_objext \
16039     conftest$ac_exeext conftest.$ac_ext
16040 LIBS=$ac_check_lib_save_LIBS
16041 fi
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
16043 $as_echo "$ac_cv_lib_k5profile_profile_get_values" >&6; }
16044 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes; then :
16045   rra_krb5_extra="-lk5profile $rra_krb5_extra"
16046 fi
16047
16048      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
16049 $as_echo_n "checking for krb5_cc_default in -lkrb5... " >&6; }
16050 if ${ac_cv_lib_krb5_krb5_cc_default+:} false; then :
16051   $as_echo_n "(cached) " >&6
16052 else
16053   ac_check_lib_save_LIBS=$LIBS
16054 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
16055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16056 /* end confdefs.h.  */
16057
16058 /* Override any GCC internal prototype to avoid an error.
16059    Use char because int might match the return type of a GCC
16060    builtin and then its argument prototype would still apply.  */
16061 #ifdef __cplusplus
16062 extern "C"
16063 #endif
16064 char krb5_cc_default ();
16065 int
16066 main ()
16067 {
16068 return krb5_cc_default ();
16069   ;
16070   return 0;
16071 }
16072 _ACEOF
16073 if ac_fn_c_try_link "$LINENO"; then :
16074   ac_cv_lib_krb5_krb5_cc_default=yes
16075 else
16076   ac_cv_lib_krb5_krb5_cc_default=no
16077 fi
16078 rm -f core conftest.err conftest.$ac_objext \
16079     conftest$ac_exeext conftest.$ac_ext
16080 LIBS=$ac_check_lib_save_LIBS
16081 fi
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
16083 $as_echo "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
16084 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes; then :
16085   KRB5_LIBS="-lkrb5 $rra_krb5_extra"
16086 else
16087   if test x"true" = xtrue; then :
16088   as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
16089 fi
16090 fi
16091
16092 fi
16093
16094  LIBS="$KRB5_LIBS $LIBS"
16095  if test x"$rra_krb5_incroot" = x; then :
16096   for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
16097 do :
16098   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16099 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16100 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16101   cat >>confdefs.h <<_ACEOF
16102 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16103 _ACEOF
16104
16105 fi
16106
16107 done
16108
16109 else
16110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
16111 $as_echo_n "checking for krb5.h... " >&6; }
16112  if test -f "${rra_krb5_incroot}/krb5.h"; then :
16113
16114 cat >>confdefs.h <<_ACEOF
16115 #define HAVE_KRB5_H 1
16116 _ACEOF
16117
16118      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16119 $as_echo "yes" >&6; }
16120 else
16121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16122 $as_echo "no" >&6; }
16123 fi
16124       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
16125 $as_echo_n "checking for kerberosv5/krb5.h... " >&6; }
16126  if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"; then :
16127
16128 cat >>confdefs.h <<_ACEOF
16129 #define HAVE_KERBEROSV5_KRB5_H 1
16130 _ACEOF
16131
16132      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16133 $as_echo "yes" >&6; }
16134 else
16135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16136 $as_echo "no" >&6; }
16137 fi
16138       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
16139 $as_echo_n "checking for krb5/krb5.h... " >&6; }
16140  if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
16141
16142 cat >>confdefs.h <<_ACEOF
16143 #define HAVE_KRB5_KRB5_H 1
16144 _ACEOF
16145
16146      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16147 $as_echo "yes" >&6; }
16148 else
16149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16150 $as_echo "no" >&6; }
16151 fi
16152 fi
16153  for ac_func in krb5_get_error_message
16154 do :
16155   ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
16156 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
16157   cat >>confdefs.h <<_ACEOF
16158 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
16159 _ACEOF
16160  for ac_func in krb5_free_error_message
16161 do :
16162   ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
16163 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
16164   cat >>confdefs.h <<_ACEOF
16165 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
16166 _ACEOF
16167
16168 fi
16169 done
16170
16171 else
16172   for ac_func in krb5_get_error_string
16173 do :
16174   ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
16175 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
16176   cat >>confdefs.h <<_ACEOF
16177 #define HAVE_KRB5_GET_ERROR_STRING 1
16178 _ACEOF
16179
16180 else
16181   for ac_func in krb5_get_err_txt
16182 do :
16183   ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
16184 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
16185   cat >>confdefs.h <<_ACEOF
16186 #define HAVE_KRB5_GET_ERR_TXT 1
16187 _ACEOF
16188
16189 else
16190   for ac_func in krb5_svc_get_msg
16191 do :
16192   ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
16193 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
16194   cat >>confdefs.h <<_ACEOF
16195 #define HAVE_KRB5_SVC_GET_MSG 1
16196 _ACEOF
16197  for ac_header in ibm_svc/krb5_svc.h
16198 do :
16199   ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
16200 #if HAVE_KRB5_H
16201 # include <krb5.h>
16202 #elif HAVE_KERBEROSV5_KRB5_H
16203 # include <kerberosv5/krb5.h>
16204 #else
16205 # include <krb5/krb5.h>
16206 #endif
16207
16208 "
16209 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
16210   cat >>confdefs.h <<_ACEOF
16211 #define HAVE_IBM_SVC_KRB5_SVC_H 1
16212 _ACEOF
16213
16214 fi
16215
16216 done
16217
16218 else
16219   if test x"$rra_krb5_incroot" = x; then :
16220   for ac_header in et/com_err.h kerberosv5/com_err.h
16221 do :
16222   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16223 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16224 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16225   cat >>confdefs.h <<_ACEOF
16226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16227 _ACEOF
16228
16229 fi
16230
16231 done
16232
16233 else
16234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
16235 $as_echo_n "checking for et/com_err.h... " >&6; }
16236  if test -f "${rra_krb5_incroot}/et/com_err.h"; then :
16237
16238 cat >>confdefs.h <<_ACEOF
16239 #define HAVE_ET_COM_ERR_H 1
16240 _ACEOF
16241
16242      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16243 $as_echo "yes" >&6; }
16244 else
16245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16246 $as_echo "no" >&6; }
16247 fi
16248          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
16249 $as_echo_n "checking for kerberosv5/com_err.h... " >&6; }
16250  if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"; then :
16251
16252 cat >>confdefs.h <<_ACEOF
16253 #define HAVE_KERBEROSV5_COM_ERR_H 1
16254 _ACEOF
16255
16256      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16257 $as_echo "yes" >&6; }
16258 else
16259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16260 $as_echo "no" >&6; }
16261 fi
16262 fi
16263 fi
16264 done
16265
16266 fi
16267 done
16268
16269 fi
16270 done
16271
16272 fi
16273 done
16274
16275  CPPFLAGS="$rra_krb5_save_CPPFLAGS"
16276  LDFLAGS="$rra_krb5_save_LDFLAGS"
16277  LIBS="$rra_krb5_save_LIBS"
16278 fi
16279
16280      rra_krb5_save_CPPFLAGS="$CPPFLAGS"
16281  rra_krb5_save_LDFLAGS="$LDFLAGS"
16282  rra_krb5_save_LIBS="$LIBS"
16283  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
16284  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
16285  LIBS="$KRB5_LIBS $LIBS"
16286      if test x"$rra_krb5_incroot" = x; then :
16287   for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
16288 do :
16289   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16290 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16291 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16292   cat >>confdefs.h <<_ACEOF
16293 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16294 _ACEOF
16295
16296 fi
16297
16298 done
16299
16300 else
16301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
16302 $as_echo_n "checking for krb5.h... " >&6; }
16303  if test -f "${rra_krb5_incroot}/krb5.h"; then :
16304
16305 cat >>confdefs.h <<_ACEOF
16306 #define HAVE_KRB5_H 1
16307 _ACEOF
16308
16309      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16310 $as_echo "yes" >&6; }
16311 else
16312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16313 $as_echo "no" >&6; }
16314 fi
16315       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
16316 $as_echo_n "checking for kerberosv5/krb5.h... " >&6; }
16317  if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"; then :
16318
16319 cat >>confdefs.h <<_ACEOF
16320 #define HAVE_KERBEROSV5_KRB5_H 1
16321 _ACEOF
16322
16323      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16324 $as_echo "yes" >&6; }
16325 else
16326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16327 $as_echo "no" >&6; }
16328 fi
16329       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
16330 $as_echo_n "checking for krb5/krb5.h... " >&6; }
16331  if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
16332
16333 cat >>confdefs.h <<_ACEOF
16334 #define HAVE_KRB5_KRB5_H 1
16335 _ACEOF
16336
16337      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16338 $as_echo "yes" >&6; }
16339 else
16340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16341 $as_echo "no" >&6; }
16342 fi
16343 fi
16344      for ac_func in krb5_get_error_message
16345 do :
16346   ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
16347 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
16348   cat >>confdefs.h <<_ACEOF
16349 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
16350 _ACEOF
16351  for ac_func in krb5_free_error_message
16352 do :
16353   ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
16354 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
16355   cat >>confdefs.h <<_ACEOF
16356 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
16357 _ACEOF
16358
16359 fi
16360 done
16361
16362 else
16363   for ac_func in krb5_get_error_string
16364 do :
16365   ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
16366 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
16367   cat >>confdefs.h <<_ACEOF
16368 #define HAVE_KRB5_GET_ERROR_STRING 1
16369 _ACEOF
16370
16371 else
16372   for ac_func in krb5_get_err_txt
16373 do :
16374   ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
16375 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
16376   cat >>confdefs.h <<_ACEOF
16377 #define HAVE_KRB5_GET_ERR_TXT 1
16378 _ACEOF
16379
16380 else
16381   for ac_func in krb5_svc_get_msg
16382 do :
16383   ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
16384 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
16385   cat >>confdefs.h <<_ACEOF
16386 #define HAVE_KRB5_SVC_GET_MSG 1
16387 _ACEOF
16388  for ac_header in ibm_svc/krb5_svc.h
16389 do :
16390   ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
16391 #if HAVE_KRB5_H
16392 # include <krb5.h>
16393 #elif HAVE_KERBEROSV5_KRB5_H
16394 # include <kerberosv5/krb5.h>
16395 #else
16396 # include <krb5/krb5.h>
16397 #endif
16398
16399 "
16400 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
16401   cat >>confdefs.h <<_ACEOF
16402 #define HAVE_IBM_SVC_KRB5_SVC_H 1
16403 _ACEOF
16404
16405 fi
16406
16407 done
16408
16409 else
16410   if test x"$rra_krb5_incroot" = x; then :
16411   for ac_header in et/com_err.h kerberosv5/com_err.h
16412 do :
16413   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16414 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16415 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16416   cat >>confdefs.h <<_ACEOF
16417 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16418 _ACEOF
16419
16420 fi
16421
16422 done
16423
16424 else
16425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
16426 $as_echo_n "checking for et/com_err.h... " >&6; }
16427  if test -f "${rra_krb5_incroot}/et/com_err.h"; then :
16428
16429 cat >>confdefs.h <<_ACEOF
16430 #define HAVE_ET_COM_ERR_H 1
16431 _ACEOF
16432
16433      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16434 $as_echo "yes" >&6; }
16435 else
16436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16437 $as_echo "no" >&6; }
16438 fi
16439          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
16440 $as_echo_n "checking for kerberosv5/com_err.h... " >&6; }
16441  if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"; then :
16442
16443 cat >>confdefs.h <<_ACEOF
16444 #define HAVE_KERBEROSV5_COM_ERR_H 1
16445 _ACEOF
16446
16447      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16448 $as_echo "yes" >&6; }
16449 else
16450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16451 $as_echo "no" >&6; }
16452 fi
16453 fi
16454 fi
16455 done
16456
16457 fi
16458 done
16459
16460 fi
16461 done
16462
16463 fi
16464 done
16465
16466      CPPFLAGS="$rra_krb5_save_CPPFLAGS"
16467  LDFLAGS="$rra_krb5_save_LDFLAGS"
16468  LIBS="$rra_krb5_save_LIBS"
16469 else
16470   if test x"$rra_krb5_libdir" != x; then :
16471   KRB5_LDFLAGS="-L$rra_krb5_libdir"
16472 else
16473   if test x"$rra_krb5_root" != x; then :
16474
16475  if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
16476   if test x"" = x; then :
16477   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
16478 else
16479   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
16480 fi
16481 else
16482   if test x"" = x; then :
16483   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
16484 else
16485   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
16486 fi
16487 fi
16488  KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
16489 fi
16490 fi
16491  if test x"$rra_krb5_includedir" != x; then :
16492   KRB5_CPPFLAGS="-I$rra_krb5_includedir"
16493 else
16494   if test x"$rra_krb5_root" != x; then :
16495   if test x"$rra_krb5_root" != x/usr; then :
16496   KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
16497 fi
16498 fi
16499 fi
16500      rra_krb5_save_CPPFLAGS="$CPPFLAGS"
16501  rra_krb5_save_LDFLAGS="$LDFLAGS"
16502  rra_krb5_save_LIBS="$LIBS"
16503  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
16504  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
16505  LIBS="$KRB5_LIBS $LIBS"
16506  rra_krb5_extra=
16507  LIBS=
16508  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
16509 $as_echo_n "checking for library containing res_search... " >&6; }
16510 if ${ac_cv_search_res_search+:} false; then :
16511   $as_echo_n "(cached) " >&6
16512 else
16513   ac_func_search_save_LIBS=$LIBS
16514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16515 /* end confdefs.h.  */
16516
16517 /* Override any GCC internal prototype to avoid an error.
16518    Use char because int might match the return type of a GCC
16519    builtin and then its argument prototype would still apply.  */
16520 #ifdef __cplusplus
16521 extern "C"
16522 #endif
16523 char res_search ();
16524 int
16525 main ()
16526 {
16527 return res_search ();
16528   ;
16529   return 0;
16530 }
16531 _ACEOF
16532 for ac_lib in '' resolv; do
16533   if test -z "$ac_lib"; then
16534     ac_res="none required"
16535   else
16536     ac_res=-l$ac_lib
16537     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16538   fi
16539   if ac_fn_c_try_link "$LINENO"; then :
16540   ac_cv_search_res_search=$ac_res
16541 fi
16542 rm -f core conftest.err conftest.$ac_objext \
16543     conftest$ac_exeext
16544   if ${ac_cv_search_res_search+:} false; then :
16545   break
16546 fi
16547 done
16548 if ${ac_cv_search_res_search+:} false; then :
16549
16550 else
16551   ac_cv_search_res_search=no
16552 fi
16553 rm conftest.$ac_ext
16554 LIBS=$ac_func_search_save_LIBS
16555 fi
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
16557 $as_echo "$ac_cv_search_res_search" >&6; }
16558 ac_res=$ac_cv_search_res_search
16559 if test "$ac_res" != no; then :
16560   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16561
16562 else
16563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
16564 $as_echo_n "checking for library containing __res_search... " >&6; }
16565 if ${ac_cv_search___res_search+:} false; then :
16566   $as_echo_n "(cached) " >&6
16567 else
16568   ac_func_search_save_LIBS=$LIBS
16569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16570 /* end confdefs.h.  */
16571
16572 /* Override any GCC internal prototype to avoid an error.
16573    Use char because int might match the return type of a GCC
16574    builtin and then its argument prototype would still apply.  */
16575 #ifdef __cplusplus
16576 extern "C"
16577 #endif
16578 char __res_search ();
16579 int
16580 main ()
16581 {
16582 return __res_search ();
16583   ;
16584   return 0;
16585 }
16586 _ACEOF
16587 for ac_lib in '' resolv; do
16588   if test -z "$ac_lib"; then
16589     ac_res="none required"
16590   else
16591     ac_res=-l$ac_lib
16592     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16593   fi
16594   if ac_fn_c_try_link "$LINENO"; then :
16595   ac_cv_search___res_search=$ac_res
16596 fi
16597 rm -f core conftest.err conftest.$ac_objext \
16598     conftest$ac_exeext
16599   if ${ac_cv_search___res_search+:} false; then :
16600   break
16601 fi
16602 done
16603 if ${ac_cv_search___res_search+:} false; then :
16604
16605 else
16606   ac_cv_search___res_search=no
16607 fi
16608 rm conftest.$ac_ext
16609 LIBS=$ac_func_search_save_LIBS
16610 fi
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
16612 $as_echo "$ac_cv_search___res_search" >&6; }
16613 ac_res=$ac_cv_search___res_search
16614 if test "$ac_res" != no; then :
16615   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16616
16617 fi
16618
16619 fi
16620
16621  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
16622 $as_echo_n "checking for library containing gethostbyname... " >&6; }
16623 if ${ac_cv_search_gethostbyname+:} false; then :
16624   $as_echo_n "(cached) " >&6
16625 else
16626   ac_func_search_save_LIBS=$LIBS
16627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16628 /* end confdefs.h.  */
16629
16630 /* Override any GCC internal prototype to avoid an error.
16631    Use char because int might match the return type of a GCC
16632    builtin and then its argument prototype would still apply.  */
16633 #ifdef __cplusplus
16634 extern "C"
16635 #endif
16636 char gethostbyname ();
16637 int
16638 main ()
16639 {
16640 return gethostbyname ();
16641   ;
16642   return 0;
16643 }
16644 _ACEOF
16645 for ac_lib in '' nsl; do
16646   if test -z "$ac_lib"; then
16647     ac_res="none required"
16648   else
16649     ac_res=-l$ac_lib
16650     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16651   fi
16652   if ac_fn_c_try_link "$LINENO"; then :
16653   ac_cv_search_gethostbyname=$ac_res
16654 fi
16655 rm -f core conftest.err conftest.$ac_objext \
16656     conftest$ac_exeext
16657   if ${ac_cv_search_gethostbyname+:} false; then :
16658   break
16659 fi
16660 done
16661 if ${ac_cv_search_gethostbyname+:} false; then :
16662
16663 else
16664   ac_cv_search_gethostbyname=no
16665 fi
16666 rm conftest.$ac_ext
16667 LIBS=$ac_func_search_save_LIBS
16668 fi
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
16670 $as_echo "$ac_cv_search_gethostbyname" >&6; }
16671 ac_res=$ac_cv_search_gethostbyname
16672 if test "$ac_res" != no; then :
16673   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16674
16675 fi
16676
16677  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
16678 $as_echo_n "checking for library containing socket... " >&6; }
16679 if ${ac_cv_search_socket+:} false; then :
16680   $as_echo_n "(cached) " >&6
16681 else
16682   ac_func_search_save_LIBS=$LIBS
16683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16684 /* end confdefs.h.  */
16685
16686 /* Override any GCC internal prototype to avoid an error.
16687    Use char because int might match the return type of a GCC
16688    builtin and then its argument prototype would still apply.  */
16689 #ifdef __cplusplus
16690 extern "C"
16691 #endif
16692 char socket ();
16693 int
16694 main ()
16695 {
16696 return socket ();
16697   ;
16698   return 0;
16699 }
16700 _ACEOF
16701 for ac_lib in '' socket; do
16702   if test -z "$ac_lib"; then
16703     ac_res="none required"
16704   else
16705     ac_res=-l$ac_lib
16706     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16707   fi
16708   if ac_fn_c_try_link "$LINENO"; then :
16709   ac_cv_search_socket=$ac_res
16710 fi
16711 rm -f core conftest.err conftest.$ac_objext \
16712     conftest$ac_exeext
16713   if ${ac_cv_search_socket+:} false; then :
16714   break
16715 fi
16716 done
16717 if ${ac_cv_search_socket+:} false; then :
16718
16719 else
16720   ac_cv_search_socket=no
16721 fi
16722 rm conftest.$ac_ext
16723 LIBS=$ac_func_search_save_LIBS
16724 fi
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
16726 $as_echo "$ac_cv_search_socket" >&6; }
16727 ac_res=$ac_cv_search_socket
16728 if test "$ac_res" != no; then :
16729   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16730
16731 else
16732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
16733 $as_echo_n "checking for socket in -lnsl... " >&6; }
16734 if ${ac_cv_lib_nsl_socket+:} false; then :
16735   $as_echo_n "(cached) " >&6
16736 else
16737   ac_check_lib_save_LIBS=$LIBS
16738 LIBS="-lnsl -lsocket $LIBS"
16739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16740 /* end confdefs.h.  */
16741
16742 /* Override any GCC internal prototype to avoid an error.
16743    Use char because int might match the return type of a GCC
16744    builtin and then its argument prototype would still apply.  */
16745 #ifdef __cplusplus
16746 extern "C"
16747 #endif
16748 char socket ();
16749 int
16750 main ()
16751 {
16752 return socket ();
16753   ;
16754   return 0;
16755 }
16756 _ACEOF
16757 if ac_fn_c_try_link "$LINENO"; then :
16758   ac_cv_lib_nsl_socket=yes
16759 else
16760   ac_cv_lib_nsl_socket=no
16761 fi
16762 rm -f core conftest.err conftest.$ac_objext \
16763     conftest$ac_exeext conftest.$ac_ext
16764 LIBS=$ac_check_lib_save_LIBS
16765 fi
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
16767 $as_echo "$ac_cv_lib_nsl_socket" >&6; }
16768 if test "x$ac_cv_lib_nsl_socket" = xyes; then :
16769   LIBS="-lnsl -lsocket $LIBS"
16770 fi
16771
16772 fi
16773
16774  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
16775 $as_echo_n "checking for library containing crypt... " >&6; }
16776 if ${ac_cv_search_crypt+:} false; then :
16777   $as_echo_n "(cached) " >&6
16778 else
16779   ac_func_search_save_LIBS=$LIBS
16780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16781 /* end confdefs.h.  */
16782
16783 /* Override any GCC internal prototype to avoid an error.
16784    Use char because int might match the return type of a GCC
16785    builtin and then its argument prototype would still apply.  */
16786 #ifdef __cplusplus
16787 extern "C"
16788 #endif
16789 char crypt ();
16790 int
16791 main ()
16792 {
16793 return crypt ();
16794   ;
16795   return 0;
16796 }
16797 _ACEOF
16798 for ac_lib in '' crypt; do
16799   if test -z "$ac_lib"; then
16800     ac_res="none required"
16801   else
16802     ac_res=-l$ac_lib
16803     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16804   fi
16805   if ac_fn_c_try_link "$LINENO"; then :
16806   ac_cv_search_crypt=$ac_res
16807 fi
16808 rm -f core conftest.err conftest.$ac_objext \
16809     conftest$ac_exeext
16810   if ${ac_cv_search_crypt+:} false; then :
16811   break
16812 fi
16813 done
16814 if ${ac_cv_search_crypt+:} false; then :
16815
16816 else
16817   ac_cv_search_crypt=no
16818 fi
16819 rm conftest.$ac_ext
16820 LIBS=$ac_func_search_save_LIBS
16821 fi
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
16823 $as_echo "$ac_cv_search_crypt" >&6; }
16824 ac_res=$ac_cv_search_crypt
16825 if test "$ac_res" != no; then :
16826   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16827
16828 fi
16829
16830  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
16831 $as_echo_n "checking for library containing roken_concat... " >&6; }
16832 if ${ac_cv_search_roken_concat+:} false; then :
16833   $as_echo_n "(cached) " >&6
16834 else
16835   ac_func_search_save_LIBS=$LIBS
16836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16837 /* end confdefs.h.  */
16838
16839 /* Override any GCC internal prototype to avoid an error.
16840    Use char because int might match the return type of a GCC
16841    builtin and then its argument prototype would still apply.  */
16842 #ifdef __cplusplus
16843 extern "C"
16844 #endif
16845 char roken_concat ();
16846 int
16847 main ()
16848 {
16849 return roken_concat ();
16850   ;
16851   return 0;
16852 }
16853 _ACEOF
16854 for ac_lib in '' roken; do
16855   if test -z "$ac_lib"; then
16856     ac_res="none required"
16857   else
16858     ac_res=-l$ac_lib
16859     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16860   fi
16861   if ac_fn_c_try_link "$LINENO"; then :
16862   ac_cv_search_roken_concat=$ac_res
16863 fi
16864 rm -f core conftest.err conftest.$ac_objext \
16865     conftest$ac_exeext
16866   if ${ac_cv_search_roken_concat+:} false; then :
16867   break
16868 fi
16869 done
16870 if ${ac_cv_search_roken_concat+:} false; then :
16871
16872 else
16873   ac_cv_search_roken_concat=no
16874 fi
16875 rm conftest.$ac_ext
16876 LIBS=$ac_func_search_save_LIBS
16877 fi
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
16879 $as_echo "$ac_cv_search_roken_concat" >&6; }
16880 ac_res=$ac_cv_search_roken_concat
16881 if test "$ac_res" != no; then :
16882   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16883
16884 fi
16885
16886  rra_krb5_extra="$LIBS"
16887  LIBS="$rra_krb5_save_LIBS"
16888  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
16889 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
16890 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
16891   $as_echo_n "(cached) " >&6
16892 else
16893   ac_check_lib_save_LIBS=$LIBS
16894 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
16895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16896 /* end confdefs.h.  */
16897
16898 /* Override any GCC internal prototype to avoid an error.
16899    Use char because int might match the return type of a GCC
16900    builtin and then its argument prototype would still apply.  */
16901 #ifdef __cplusplus
16902 extern "C"
16903 #endif
16904 char krb5_init_context ();
16905 int
16906 main ()
16907 {
16908 return krb5_init_context ();
16909   ;
16910   return 0;
16911 }
16912 _ACEOF
16913 if ac_fn_c_try_link "$LINENO"; then :
16914   ac_cv_lib_krb5_krb5_init_context=yes
16915 else
16916   ac_cv_lib_krb5_krb5_init_context=no
16917 fi
16918 rm -f core conftest.err conftest.$ac_objext \
16919     conftest$ac_exeext conftest.$ac_ext
16920 LIBS=$ac_check_lib_save_LIBS
16921 fi
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
16923 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
16924 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
16925   KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
16926 else
16927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
16928 $as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
16929 if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
16930   $as_echo_n "(cached) " >&6
16931 else
16932   ac_check_lib_save_LIBS=$LIBS
16933 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
16934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16935 /* end confdefs.h.  */
16936
16937 /* Override any GCC internal prototype to avoid an error.
16938    Use char because int might match the return type of a GCC
16939    builtin and then its argument prototype would still apply.  */
16940 #ifdef __cplusplus
16941 extern "C"
16942 #endif
16943 char krb5int_getspecific ();
16944 int
16945 main ()
16946 {
16947 return krb5int_getspecific ();
16948   ;
16949   return 0;
16950 }
16951 _ACEOF
16952 if ac_fn_c_try_link "$LINENO"; then :
16953   ac_cv_lib_krb5support_krb5int_getspecific=yes
16954 else
16955   ac_cv_lib_krb5support_krb5int_getspecific=no
16956 fi
16957 rm -f core conftest.err conftest.$ac_objext \
16958     conftest$ac_exeext conftest.$ac_ext
16959 LIBS=$ac_check_lib_save_LIBS
16960 fi
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
16962 $as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
16963 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
16964   rra_krb5_extra="-lkrb5support $rra_krb5_extra"
16965 else
16966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
16967 $as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; }
16968 if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then :
16969   $as_echo_n "(cached) " >&6
16970 else
16971   ac_check_lib_save_LIBS=$LIBS
16972 LIBS="-lpthreads  $LIBS"
16973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16974 /* end confdefs.h.  */
16975
16976 /* Override any GCC internal prototype to avoid an error.
16977    Use char because int might match the return type of a GCC
16978    builtin and then its argument prototype would still apply.  */
16979 #ifdef __cplusplus
16980 extern "C"
16981 #endif
16982 char pthread_setspecific ();
16983 int
16984 main ()
16985 {
16986 return pthread_setspecific ();
16987   ;
16988   return 0;
16989 }
16990 _ACEOF
16991 if ac_fn_c_try_link "$LINENO"; then :
16992   ac_cv_lib_pthreads_pthread_setspecific=yes
16993 else
16994   ac_cv_lib_pthreads_pthread_setspecific=no
16995 fi
16996 rm -f core conftest.err conftest.$ac_objext \
16997     conftest$ac_exeext conftest.$ac_ext
16998 LIBS=$ac_check_lib_save_LIBS
16999 fi
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
17001 $as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
17002 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then :
17003   rra_krb5_pthread="-lpthreads"
17004 else
17005   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
17006 $as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; }
17007 if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then :
17008   $as_echo_n "(cached) " >&6
17009 else
17010   ac_check_lib_save_LIBS=$LIBS
17011 LIBS="-lpthread  $LIBS"
17012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17013 /* end confdefs.h.  */
17014
17015 /* Override any GCC internal prototype to avoid an error.
17016    Use char because int might match the return type of a GCC
17017    builtin and then its argument prototype would still apply.  */
17018 #ifdef __cplusplus
17019 extern "C"
17020 #endif
17021 char pthread_setspecific ();
17022 int
17023 main ()
17024 {
17025 return pthread_setspecific ();
17026   ;
17027   return 0;
17028 }
17029 _ACEOF
17030 if ac_fn_c_try_link "$LINENO"; then :
17031   ac_cv_lib_pthread_pthread_setspecific=yes
17032 else
17033   ac_cv_lib_pthread_pthread_setspecific=no
17034 fi
17035 rm -f core conftest.err conftest.$ac_objext \
17036     conftest$ac_exeext conftest.$ac_ext
17037 LIBS=$ac_check_lib_save_LIBS
17038 fi
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
17040 $as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
17041 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then :
17042   rra_krb5_pthread="-lpthread"
17043 fi
17044
17045 fi
17046
17047          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
17048 $as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; }
17049 if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then :
17050   $as_echo_n "(cached) " >&6
17051 else
17052   ac_check_lib_save_LIBS=$LIBS
17053 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
17054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17055 /* end confdefs.h.  */
17056
17057 /* Override any GCC internal prototype to avoid an error.
17058    Use char because int might match the return type of a GCC
17059    builtin and then its argument prototype would still apply.  */
17060 #ifdef __cplusplus
17061 extern "C"
17062 #endif
17063 char krb5int_setspecific ();
17064 int
17065 main ()
17066 {
17067 return krb5int_setspecific ();
17068   ;
17069   return 0;
17070 }
17071 _ACEOF
17072 if ac_fn_c_try_link "$LINENO"; then :
17073   ac_cv_lib_krb5support_krb5int_setspecific=yes
17074 else
17075   ac_cv_lib_krb5support_krb5int_setspecific=no
17076 fi
17077 rm -f core conftest.err conftest.$ac_objext \
17078     conftest$ac_exeext conftest.$ac_ext
17079 LIBS=$ac_check_lib_save_LIBS
17080 fi
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
17082 $as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
17083 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then :
17084   rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
17085 fi
17086
17087 fi
17088
17089      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
17090 $as_echo_n "checking for error_message in -lcom_err... " >&6; }
17091 if ${ac_cv_lib_com_err_error_message+:} false; then :
17092   $as_echo_n "(cached) " >&6
17093 else
17094   ac_check_lib_save_LIBS=$LIBS
17095 LIBS="-lcom_err $rra_krb5_extra $LIBS"
17096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17097 /* end confdefs.h.  */
17098
17099 /* Override any GCC internal prototype to avoid an error.
17100    Use char because int might match the return type of a GCC
17101    builtin and then its argument prototype would still apply.  */
17102 #ifdef __cplusplus
17103 extern "C"
17104 #endif
17105 char error_message ();
17106 int
17107 main ()
17108 {
17109 return error_message ();
17110   ;
17111   return 0;
17112 }
17113 _ACEOF
17114 if ac_fn_c_try_link "$LINENO"; then :
17115   ac_cv_lib_com_err_error_message=yes
17116 else
17117   ac_cv_lib_com_err_error_message=no
17118 fi
17119 rm -f core conftest.err conftest.$ac_objext \
17120     conftest$ac_exeext conftest.$ac_ext
17121 LIBS=$ac_check_lib_save_LIBS
17122 fi
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
17124 $as_echo "$ac_cv_lib_com_err_error_message" >&6; }
17125 if test "x$ac_cv_lib_com_err_error_message" = xyes; then :
17126   rra_krb5_extra="-lcom_err $rra_krb5_extra"
17127 fi
17128
17129      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
17130 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
17131 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
17132   $as_echo_n "(cached) " >&6
17133 else
17134   ac_check_lib_save_LIBS=$LIBS
17135 LIBS="-lksvc $rra_krb5_extra $LIBS"
17136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17137 /* end confdefs.h.  */
17138
17139 /* Override any GCC internal prototype to avoid an error.
17140    Use char because int might match the return type of a GCC
17141    builtin and then its argument prototype would still apply.  */
17142 #ifdef __cplusplus
17143 extern "C"
17144 #endif
17145 char krb5_svc_get_msg ();
17146 int
17147 main ()
17148 {
17149 return krb5_svc_get_msg ();
17150   ;
17151   return 0;
17152 }
17153 _ACEOF
17154 if ac_fn_c_try_link "$LINENO"; then :
17155   ac_cv_lib_ksvc_krb5_svc_get_msg=yes
17156 else
17157   ac_cv_lib_ksvc_krb5_svc_get_msg=no
17158 fi
17159 rm -f core conftest.err conftest.$ac_objext \
17160     conftest$ac_exeext conftest.$ac_ext
17161 LIBS=$ac_check_lib_save_LIBS
17162 fi
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
17164 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
17165 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
17166   rra_krb5_extra="-lksvc $rra_krb5_extra"
17167 fi
17168
17169      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
17170 $as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
17171 if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then :
17172   $as_echo_n "(cached) " >&6
17173 else
17174   ac_check_lib_save_LIBS=$LIBS
17175 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
17176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17177 /* end confdefs.h.  */
17178
17179 /* Override any GCC internal prototype to avoid an error.
17180    Use char because int might match the return type of a GCC
17181    builtin and then its argument prototype would still apply.  */
17182 #ifdef __cplusplus
17183 extern "C"
17184 #endif
17185 char krb5int_hash_md5 ();
17186 int
17187 main ()
17188 {
17189 return krb5int_hash_md5 ();
17190   ;
17191   return 0;
17192 }
17193 _ACEOF
17194 if ac_fn_c_try_link "$LINENO"; then :
17195   ac_cv_lib_k5crypto_krb5int_hash_md5=yes
17196 else
17197   ac_cv_lib_k5crypto_krb5int_hash_md5=no
17198 fi
17199 rm -f core conftest.err conftest.$ac_objext \
17200     conftest$ac_exeext conftest.$ac_ext
17201 LIBS=$ac_check_lib_save_LIBS
17202 fi
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
17204 $as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
17205 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then :
17206   rra_krb5_extra="-lk5crypto $rra_krb5_extra"
17207 fi
17208
17209      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
17210 $as_echo_n "checking for profile_get_values in -lk5profile... " >&6; }
17211 if ${ac_cv_lib_k5profile_profile_get_values+:} false; then :
17212   $as_echo_n "(cached) " >&6
17213 else
17214   ac_check_lib_save_LIBS=$LIBS
17215 LIBS="-lk5profile $rra_krb5_extra $LIBS"
17216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17217 /* end confdefs.h.  */
17218
17219 /* Override any GCC internal prototype to avoid an error.
17220    Use char because int might match the return type of a GCC
17221    builtin and then its argument prototype would still apply.  */
17222 #ifdef __cplusplus
17223 extern "C"
17224 #endif
17225 char profile_get_values ();
17226 int
17227 main ()
17228 {
17229 return profile_get_values ();
17230   ;
17231   return 0;
17232 }
17233 _ACEOF
17234 if ac_fn_c_try_link "$LINENO"; then :
17235   ac_cv_lib_k5profile_profile_get_values=yes
17236 else
17237   ac_cv_lib_k5profile_profile_get_values=no
17238 fi
17239 rm -f core conftest.err conftest.$ac_objext \
17240     conftest$ac_exeext conftest.$ac_ext
17241 LIBS=$ac_check_lib_save_LIBS
17242 fi
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
17244 $as_echo "$ac_cv_lib_k5profile_profile_get_values" >&6; }
17245 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes; then :
17246   rra_krb5_extra="-lk5profile $rra_krb5_extra"
17247 fi
17248
17249      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
17250 $as_echo_n "checking for krb5_cc_default in -lkrb5... " >&6; }
17251 if ${ac_cv_lib_krb5_krb5_cc_default+:} false; then :
17252   $as_echo_n "(cached) " >&6
17253 else
17254   ac_check_lib_save_LIBS=$LIBS
17255 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
17256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17257 /* end confdefs.h.  */
17258
17259 /* Override any GCC internal prototype to avoid an error.
17260    Use char because int might match the return type of a GCC
17261    builtin and then its argument prototype would still apply.  */
17262 #ifdef __cplusplus
17263 extern "C"
17264 #endif
17265 char krb5_cc_default ();
17266 int
17267 main ()
17268 {
17269 return krb5_cc_default ();
17270   ;
17271   return 0;
17272 }
17273 _ACEOF
17274 if ac_fn_c_try_link "$LINENO"; then :
17275   ac_cv_lib_krb5_krb5_cc_default=yes
17276 else
17277   ac_cv_lib_krb5_krb5_cc_default=no
17278 fi
17279 rm -f core conftest.err conftest.$ac_objext \
17280     conftest$ac_exeext conftest.$ac_ext
17281 LIBS=$ac_check_lib_save_LIBS
17282 fi
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
17284 $as_echo "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
17285 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes; then :
17286   KRB5_LIBS="-lkrb5 $rra_krb5_extra"
17287 else
17288   if test x"true" = xtrue; then :
17289   as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
17290 fi
17291 fi
17292
17293 fi
17294
17295  LIBS="$KRB5_LIBS $LIBS"
17296  if test x"$rra_krb5_incroot" = x; then :
17297   for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
17298 do :
17299   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17300 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17301 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17302   cat >>confdefs.h <<_ACEOF
17303 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17304 _ACEOF
17305
17306 fi
17307
17308 done
17309
17310 else
17311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
17312 $as_echo_n "checking for krb5.h... " >&6; }
17313  if test -f "${rra_krb5_incroot}/krb5.h"; then :
17314
17315 cat >>confdefs.h <<_ACEOF
17316 #define HAVE_KRB5_H 1
17317 _ACEOF
17318
17319      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17320 $as_echo "yes" >&6; }
17321 else
17322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17323 $as_echo "no" >&6; }
17324 fi
17325       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
17326 $as_echo_n "checking for kerberosv5/krb5.h... " >&6; }
17327  if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"; then :
17328
17329 cat >>confdefs.h <<_ACEOF
17330 #define HAVE_KERBEROSV5_KRB5_H 1
17331 _ACEOF
17332
17333      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17334 $as_echo "yes" >&6; }
17335 else
17336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17337 $as_echo "no" >&6; }
17338 fi
17339       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
17340 $as_echo_n "checking for krb5/krb5.h... " >&6; }
17341  if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
17342
17343 cat >>confdefs.h <<_ACEOF
17344 #define HAVE_KRB5_KRB5_H 1
17345 _ACEOF
17346
17347      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17348 $as_echo "yes" >&6; }
17349 else
17350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17351 $as_echo "no" >&6; }
17352 fi
17353 fi
17354  for ac_func in krb5_get_error_message
17355 do :
17356   ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
17357 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
17358   cat >>confdefs.h <<_ACEOF
17359 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
17360 _ACEOF
17361  for ac_func in krb5_free_error_message
17362 do :
17363   ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
17364 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
17365   cat >>confdefs.h <<_ACEOF
17366 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
17367 _ACEOF
17368
17369 fi
17370 done
17371
17372 else
17373   for ac_func in krb5_get_error_string
17374 do :
17375   ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
17376 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
17377   cat >>confdefs.h <<_ACEOF
17378 #define HAVE_KRB5_GET_ERROR_STRING 1
17379 _ACEOF
17380
17381 else
17382   for ac_func in krb5_get_err_txt
17383 do :
17384   ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
17385 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
17386   cat >>confdefs.h <<_ACEOF
17387 #define HAVE_KRB5_GET_ERR_TXT 1
17388 _ACEOF
17389
17390 else
17391   for ac_func in krb5_svc_get_msg
17392 do :
17393   ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
17394 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
17395   cat >>confdefs.h <<_ACEOF
17396 #define HAVE_KRB5_SVC_GET_MSG 1
17397 _ACEOF
17398  for ac_header in ibm_svc/krb5_svc.h
17399 do :
17400   ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
17401 #if HAVE_KRB5_H
17402 # include <krb5.h>
17403 #elif HAVE_KERBEROSV5_KRB5_H
17404 # include <kerberosv5/krb5.h>
17405 #else
17406 # include <krb5/krb5.h>
17407 #endif
17408
17409 "
17410 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
17411   cat >>confdefs.h <<_ACEOF
17412 #define HAVE_IBM_SVC_KRB5_SVC_H 1
17413 _ACEOF
17414
17415 fi
17416
17417 done
17418
17419 else
17420   if test x"$rra_krb5_incroot" = x; then :
17421   for ac_header in et/com_err.h kerberosv5/com_err.h
17422 do :
17423   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17424 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17425 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17426   cat >>confdefs.h <<_ACEOF
17427 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17428 _ACEOF
17429
17430 fi
17431
17432 done
17433
17434 else
17435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
17436 $as_echo_n "checking for et/com_err.h... " >&6; }
17437  if test -f "${rra_krb5_incroot}/et/com_err.h"; then :
17438
17439 cat >>confdefs.h <<_ACEOF
17440 #define HAVE_ET_COM_ERR_H 1
17441 _ACEOF
17442
17443      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17444 $as_echo "yes" >&6; }
17445 else
17446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17447 $as_echo "no" >&6; }
17448 fi
17449          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
17450 $as_echo_n "checking for kerberosv5/com_err.h... " >&6; }
17451  if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"; then :
17452
17453 cat >>confdefs.h <<_ACEOF
17454 #define HAVE_KERBEROSV5_COM_ERR_H 1
17455 _ACEOF
17456
17457      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17458 $as_echo "yes" >&6; }
17459 else
17460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17461 $as_echo "no" >&6; }
17462 fi
17463 fi
17464 fi
17465 done
17466
17467 fi
17468 done
17469
17470 fi
17471 done
17472
17473 fi
17474 done
17475
17476  CPPFLAGS="$rra_krb5_save_CPPFLAGS"
17477  LDFLAGS="$rra_krb5_save_LDFLAGS"
17478  LIBS="$rra_krb5_save_LIBS"
17479 fi
17480 else
17481   if test x"$rra_krb5_libdir" != x; then :
17482   KRB5_LDFLAGS="-L$rra_krb5_libdir"
17483 else
17484   if test x"$rra_krb5_root" != x; then :
17485
17486  if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
17487   if test x"" = x; then :
17488   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
17489 else
17490   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
17491 fi
17492 else
17493   if test x"" = x; then :
17494   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
17495 else
17496   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
17497 fi
17498 fi
17499  KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
17500 fi
17501 fi
17502  if test x"$rra_krb5_includedir" != x; then :
17503   KRB5_CPPFLAGS="-I$rra_krb5_includedir"
17504 else
17505   if test x"$rra_krb5_root" != x; then :
17506   if test x"$rra_krb5_root" != x/usr; then :
17507   KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
17508 fi
17509 fi
17510 fi
17511          rra_krb5_save_CPPFLAGS="$CPPFLAGS"
17512  rra_krb5_save_LDFLAGS="$LDFLAGS"
17513  rra_krb5_save_LIBS="$LIBS"
17514  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
17515  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
17516  LIBS="$KRB5_LIBS $LIBS"
17517  rra_krb5_extra=
17518  LIBS=
17519  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
17520 $as_echo_n "checking for library containing res_search... " >&6; }
17521 if ${ac_cv_search_res_search+:} false; then :
17522   $as_echo_n "(cached) " >&6
17523 else
17524   ac_func_search_save_LIBS=$LIBS
17525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17526 /* end confdefs.h.  */
17527
17528 /* Override any GCC internal prototype to avoid an error.
17529    Use char because int might match the return type of a GCC
17530    builtin and then its argument prototype would still apply.  */
17531 #ifdef __cplusplus
17532 extern "C"
17533 #endif
17534 char res_search ();
17535 int
17536 main ()
17537 {
17538 return res_search ();
17539   ;
17540   return 0;
17541 }
17542 _ACEOF
17543 for ac_lib in '' resolv; do
17544   if test -z "$ac_lib"; then
17545     ac_res="none required"
17546   else
17547     ac_res=-l$ac_lib
17548     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17549   fi
17550   if ac_fn_c_try_link "$LINENO"; then :
17551   ac_cv_search_res_search=$ac_res
17552 fi
17553 rm -f core conftest.err conftest.$ac_objext \
17554     conftest$ac_exeext
17555   if ${ac_cv_search_res_search+:} false; then :
17556   break
17557 fi
17558 done
17559 if ${ac_cv_search_res_search+:} false; then :
17560
17561 else
17562   ac_cv_search_res_search=no
17563 fi
17564 rm conftest.$ac_ext
17565 LIBS=$ac_func_search_save_LIBS
17566 fi
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
17568 $as_echo "$ac_cv_search_res_search" >&6; }
17569 ac_res=$ac_cv_search_res_search
17570 if test "$ac_res" != no; then :
17571   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17572
17573 else
17574   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
17575 $as_echo_n "checking for library containing __res_search... " >&6; }
17576 if ${ac_cv_search___res_search+:} false; then :
17577   $as_echo_n "(cached) " >&6
17578 else
17579   ac_func_search_save_LIBS=$LIBS
17580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17581 /* end confdefs.h.  */
17582
17583 /* Override any GCC internal prototype to avoid an error.
17584    Use char because int might match the return type of a GCC
17585    builtin and then its argument prototype would still apply.  */
17586 #ifdef __cplusplus
17587 extern "C"
17588 #endif
17589 char __res_search ();
17590 int
17591 main ()
17592 {
17593 return __res_search ();
17594   ;
17595   return 0;
17596 }
17597 _ACEOF
17598 for ac_lib in '' resolv; do
17599   if test -z "$ac_lib"; then
17600     ac_res="none required"
17601   else
17602     ac_res=-l$ac_lib
17603     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17604   fi
17605   if ac_fn_c_try_link "$LINENO"; then :
17606   ac_cv_search___res_search=$ac_res
17607 fi
17608 rm -f core conftest.err conftest.$ac_objext \
17609     conftest$ac_exeext
17610   if ${ac_cv_search___res_search+:} false; then :
17611   break
17612 fi
17613 done
17614 if ${ac_cv_search___res_search+:} false; then :
17615
17616 else
17617   ac_cv_search___res_search=no
17618 fi
17619 rm conftest.$ac_ext
17620 LIBS=$ac_func_search_save_LIBS
17621 fi
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
17623 $as_echo "$ac_cv_search___res_search" >&6; }
17624 ac_res=$ac_cv_search___res_search
17625 if test "$ac_res" != no; then :
17626   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17627
17628 fi
17629
17630 fi
17631
17632  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
17633 $as_echo_n "checking for library containing gethostbyname... " >&6; }
17634 if ${ac_cv_search_gethostbyname+:} false; then :
17635   $as_echo_n "(cached) " >&6
17636 else
17637   ac_func_search_save_LIBS=$LIBS
17638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17639 /* end confdefs.h.  */
17640
17641 /* Override any GCC internal prototype to avoid an error.
17642    Use char because int might match the return type of a GCC
17643    builtin and then its argument prototype would still apply.  */
17644 #ifdef __cplusplus
17645 extern "C"
17646 #endif
17647 char gethostbyname ();
17648 int
17649 main ()
17650 {
17651 return gethostbyname ();
17652   ;
17653   return 0;
17654 }
17655 _ACEOF
17656 for ac_lib in '' nsl; do
17657   if test -z "$ac_lib"; then
17658     ac_res="none required"
17659   else
17660     ac_res=-l$ac_lib
17661     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17662   fi
17663   if ac_fn_c_try_link "$LINENO"; then :
17664   ac_cv_search_gethostbyname=$ac_res
17665 fi
17666 rm -f core conftest.err conftest.$ac_objext \
17667     conftest$ac_exeext
17668   if ${ac_cv_search_gethostbyname+:} false; then :
17669   break
17670 fi
17671 done
17672 if ${ac_cv_search_gethostbyname+:} false; then :
17673
17674 else
17675   ac_cv_search_gethostbyname=no
17676 fi
17677 rm conftest.$ac_ext
17678 LIBS=$ac_func_search_save_LIBS
17679 fi
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
17681 $as_echo "$ac_cv_search_gethostbyname" >&6; }
17682 ac_res=$ac_cv_search_gethostbyname
17683 if test "$ac_res" != no; then :
17684   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17685
17686 fi
17687
17688  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
17689 $as_echo_n "checking for library containing socket... " >&6; }
17690 if ${ac_cv_search_socket+:} false; then :
17691   $as_echo_n "(cached) " >&6
17692 else
17693   ac_func_search_save_LIBS=$LIBS
17694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17695 /* end confdefs.h.  */
17696
17697 /* Override any GCC internal prototype to avoid an error.
17698    Use char because int might match the return type of a GCC
17699    builtin and then its argument prototype would still apply.  */
17700 #ifdef __cplusplus
17701 extern "C"
17702 #endif
17703 char socket ();
17704 int
17705 main ()
17706 {
17707 return socket ();
17708   ;
17709   return 0;
17710 }
17711 _ACEOF
17712 for ac_lib in '' socket; do
17713   if test -z "$ac_lib"; then
17714     ac_res="none required"
17715   else
17716     ac_res=-l$ac_lib
17717     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17718   fi
17719   if ac_fn_c_try_link "$LINENO"; then :
17720   ac_cv_search_socket=$ac_res
17721 fi
17722 rm -f core conftest.err conftest.$ac_objext \
17723     conftest$ac_exeext
17724   if ${ac_cv_search_socket+:} false; then :
17725   break
17726 fi
17727 done
17728 if ${ac_cv_search_socket+:} false; then :
17729
17730 else
17731   ac_cv_search_socket=no
17732 fi
17733 rm conftest.$ac_ext
17734 LIBS=$ac_func_search_save_LIBS
17735 fi
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
17737 $as_echo "$ac_cv_search_socket" >&6; }
17738 ac_res=$ac_cv_search_socket
17739 if test "$ac_res" != no; then :
17740   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17741
17742 else
17743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
17744 $as_echo_n "checking for socket in -lnsl... " >&6; }
17745 if ${ac_cv_lib_nsl_socket+:} false; then :
17746   $as_echo_n "(cached) " >&6
17747 else
17748   ac_check_lib_save_LIBS=$LIBS
17749 LIBS="-lnsl -lsocket $LIBS"
17750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17751 /* end confdefs.h.  */
17752
17753 /* Override any GCC internal prototype to avoid an error.
17754    Use char because int might match the return type of a GCC
17755    builtin and then its argument prototype would still apply.  */
17756 #ifdef __cplusplus
17757 extern "C"
17758 #endif
17759 char socket ();
17760 int
17761 main ()
17762 {
17763 return socket ();
17764   ;
17765   return 0;
17766 }
17767 _ACEOF
17768 if ac_fn_c_try_link "$LINENO"; then :
17769   ac_cv_lib_nsl_socket=yes
17770 else
17771   ac_cv_lib_nsl_socket=no
17772 fi
17773 rm -f core conftest.err conftest.$ac_objext \
17774     conftest$ac_exeext conftest.$ac_ext
17775 LIBS=$ac_check_lib_save_LIBS
17776 fi
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
17778 $as_echo "$ac_cv_lib_nsl_socket" >&6; }
17779 if test "x$ac_cv_lib_nsl_socket" = xyes; then :
17780   LIBS="-lnsl -lsocket $LIBS"
17781 fi
17782
17783 fi
17784
17785  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
17786 $as_echo_n "checking for library containing crypt... " >&6; }
17787 if ${ac_cv_search_crypt+:} false; then :
17788   $as_echo_n "(cached) " >&6
17789 else
17790   ac_func_search_save_LIBS=$LIBS
17791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17792 /* end confdefs.h.  */
17793
17794 /* Override any GCC internal prototype to avoid an error.
17795    Use char because int might match the return type of a GCC
17796    builtin and then its argument prototype would still apply.  */
17797 #ifdef __cplusplus
17798 extern "C"
17799 #endif
17800 char crypt ();
17801 int
17802 main ()
17803 {
17804 return crypt ();
17805   ;
17806   return 0;
17807 }
17808 _ACEOF
17809 for ac_lib in '' crypt; do
17810   if test -z "$ac_lib"; then
17811     ac_res="none required"
17812   else
17813     ac_res=-l$ac_lib
17814     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17815   fi
17816   if ac_fn_c_try_link "$LINENO"; then :
17817   ac_cv_search_crypt=$ac_res
17818 fi
17819 rm -f core conftest.err conftest.$ac_objext \
17820     conftest$ac_exeext
17821   if ${ac_cv_search_crypt+:} false; then :
17822   break
17823 fi
17824 done
17825 if ${ac_cv_search_crypt+:} false; then :
17826
17827 else
17828   ac_cv_search_crypt=no
17829 fi
17830 rm conftest.$ac_ext
17831 LIBS=$ac_func_search_save_LIBS
17832 fi
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
17834 $as_echo "$ac_cv_search_crypt" >&6; }
17835 ac_res=$ac_cv_search_crypt
17836 if test "$ac_res" != no; then :
17837   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17838
17839 fi
17840
17841  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
17842 $as_echo_n "checking for library containing roken_concat... " >&6; }
17843 if ${ac_cv_search_roken_concat+:} false; then :
17844   $as_echo_n "(cached) " >&6
17845 else
17846   ac_func_search_save_LIBS=$LIBS
17847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17848 /* end confdefs.h.  */
17849
17850 /* Override any GCC internal prototype to avoid an error.
17851    Use char because int might match the return type of a GCC
17852    builtin and then its argument prototype would still apply.  */
17853 #ifdef __cplusplus
17854 extern "C"
17855 #endif
17856 char roken_concat ();
17857 int
17858 main ()
17859 {
17860 return roken_concat ();
17861   ;
17862   return 0;
17863 }
17864 _ACEOF
17865 for ac_lib in '' roken; do
17866   if test -z "$ac_lib"; then
17867     ac_res="none required"
17868   else
17869     ac_res=-l$ac_lib
17870     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17871   fi
17872   if ac_fn_c_try_link "$LINENO"; then :
17873   ac_cv_search_roken_concat=$ac_res
17874 fi
17875 rm -f core conftest.err conftest.$ac_objext \
17876     conftest$ac_exeext
17877   if ${ac_cv_search_roken_concat+:} false; then :
17878   break
17879 fi
17880 done
17881 if ${ac_cv_search_roken_concat+:} false; then :
17882
17883 else
17884   ac_cv_search_roken_concat=no
17885 fi
17886 rm conftest.$ac_ext
17887 LIBS=$ac_func_search_save_LIBS
17888 fi
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
17890 $as_echo "$ac_cv_search_roken_concat" >&6; }
17891 ac_res=$ac_cv_search_roken_concat
17892 if test "$ac_res" != no; then :
17893   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17894
17895 fi
17896
17897  rra_krb5_extra="$LIBS"
17898  LIBS="$rra_krb5_save_LIBS"
17899  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
17900 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
17901 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
17902   $as_echo_n "(cached) " >&6
17903 else
17904   ac_check_lib_save_LIBS=$LIBS
17905 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
17906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17907 /* end confdefs.h.  */
17908
17909 /* Override any GCC internal prototype to avoid an error.
17910    Use char because int might match the return type of a GCC
17911    builtin and then its argument prototype would still apply.  */
17912 #ifdef __cplusplus
17913 extern "C"
17914 #endif
17915 char krb5_init_context ();
17916 int
17917 main ()
17918 {
17919 return krb5_init_context ();
17920   ;
17921   return 0;
17922 }
17923 _ACEOF
17924 if ac_fn_c_try_link "$LINENO"; then :
17925   ac_cv_lib_krb5_krb5_init_context=yes
17926 else
17927   ac_cv_lib_krb5_krb5_init_context=no
17928 fi
17929 rm -f core conftest.err conftest.$ac_objext \
17930     conftest$ac_exeext conftest.$ac_ext
17931 LIBS=$ac_check_lib_save_LIBS
17932 fi
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17934 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
17935 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
17936   KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
17937 else
17938   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
17939 $as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
17940 if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
17941   $as_echo_n "(cached) " >&6
17942 else
17943   ac_check_lib_save_LIBS=$LIBS
17944 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
17945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17946 /* end confdefs.h.  */
17947
17948 /* Override any GCC internal prototype to avoid an error.
17949    Use char because int might match the return type of a GCC
17950    builtin and then its argument prototype would still apply.  */
17951 #ifdef __cplusplus
17952 extern "C"
17953 #endif
17954 char krb5int_getspecific ();
17955 int
17956 main ()
17957 {
17958 return krb5int_getspecific ();
17959   ;
17960   return 0;
17961 }
17962 _ACEOF
17963 if ac_fn_c_try_link "$LINENO"; then :
17964   ac_cv_lib_krb5support_krb5int_getspecific=yes
17965 else
17966   ac_cv_lib_krb5support_krb5int_getspecific=no
17967 fi
17968 rm -f core conftest.err conftest.$ac_objext \
17969     conftest$ac_exeext conftest.$ac_ext
17970 LIBS=$ac_check_lib_save_LIBS
17971 fi
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
17973 $as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
17974 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
17975   rra_krb5_extra="-lkrb5support $rra_krb5_extra"
17976 else
17977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
17978 $as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; }
17979 if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then :
17980   $as_echo_n "(cached) " >&6
17981 else
17982   ac_check_lib_save_LIBS=$LIBS
17983 LIBS="-lpthreads  $LIBS"
17984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17985 /* end confdefs.h.  */
17986
17987 /* Override any GCC internal prototype to avoid an error.
17988    Use char because int might match the return type of a GCC
17989    builtin and then its argument prototype would still apply.  */
17990 #ifdef __cplusplus
17991 extern "C"
17992 #endif
17993 char pthread_setspecific ();
17994 int
17995 main ()
17996 {
17997 return pthread_setspecific ();
17998   ;
17999   return 0;
18000 }
18001 _ACEOF
18002 if ac_fn_c_try_link "$LINENO"; then :
18003   ac_cv_lib_pthreads_pthread_setspecific=yes
18004 else
18005   ac_cv_lib_pthreads_pthread_setspecific=no
18006 fi
18007 rm -f core conftest.err conftest.$ac_objext \
18008     conftest$ac_exeext conftest.$ac_ext
18009 LIBS=$ac_check_lib_save_LIBS
18010 fi
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
18012 $as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
18013 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then :
18014   rra_krb5_pthread="-lpthreads"
18015 else
18016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
18017 $as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; }
18018 if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then :
18019   $as_echo_n "(cached) " >&6
18020 else
18021   ac_check_lib_save_LIBS=$LIBS
18022 LIBS="-lpthread  $LIBS"
18023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18024 /* end confdefs.h.  */
18025
18026 /* Override any GCC internal prototype to avoid an error.
18027    Use char because int might match the return type of a GCC
18028    builtin and then its argument prototype would still apply.  */
18029 #ifdef __cplusplus
18030 extern "C"
18031 #endif
18032 char pthread_setspecific ();
18033 int
18034 main ()
18035 {
18036 return pthread_setspecific ();
18037   ;
18038   return 0;
18039 }
18040 _ACEOF
18041 if ac_fn_c_try_link "$LINENO"; then :
18042   ac_cv_lib_pthread_pthread_setspecific=yes
18043 else
18044   ac_cv_lib_pthread_pthread_setspecific=no
18045 fi
18046 rm -f core conftest.err conftest.$ac_objext \
18047     conftest$ac_exeext conftest.$ac_ext
18048 LIBS=$ac_check_lib_save_LIBS
18049 fi
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
18051 $as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
18052 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then :
18053   rra_krb5_pthread="-lpthread"
18054 fi
18055
18056 fi
18057
18058          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
18059 $as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; }
18060 if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then :
18061   $as_echo_n "(cached) " >&6
18062 else
18063   ac_check_lib_save_LIBS=$LIBS
18064 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
18065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18066 /* end confdefs.h.  */
18067
18068 /* Override any GCC internal prototype to avoid an error.
18069    Use char because int might match the return type of a GCC
18070    builtin and then its argument prototype would still apply.  */
18071 #ifdef __cplusplus
18072 extern "C"
18073 #endif
18074 char krb5int_setspecific ();
18075 int
18076 main ()
18077 {
18078 return krb5int_setspecific ();
18079   ;
18080   return 0;
18081 }
18082 _ACEOF
18083 if ac_fn_c_try_link "$LINENO"; then :
18084   ac_cv_lib_krb5support_krb5int_setspecific=yes
18085 else
18086   ac_cv_lib_krb5support_krb5int_setspecific=no
18087 fi
18088 rm -f core conftest.err conftest.$ac_objext \
18089     conftest$ac_exeext conftest.$ac_ext
18090 LIBS=$ac_check_lib_save_LIBS
18091 fi
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
18093 $as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
18094 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then :
18095   rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
18096 fi
18097
18098 fi
18099
18100      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
18101 $as_echo_n "checking for error_message in -lcom_err... " >&6; }
18102 if ${ac_cv_lib_com_err_error_message+:} false; then :
18103   $as_echo_n "(cached) " >&6
18104 else
18105   ac_check_lib_save_LIBS=$LIBS
18106 LIBS="-lcom_err $rra_krb5_extra $LIBS"
18107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18108 /* end confdefs.h.  */
18109
18110 /* Override any GCC internal prototype to avoid an error.
18111    Use char because int might match the return type of a GCC
18112    builtin and then its argument prototype would still apply.  */
18113 #ifdef __cplusplus
18114 extern "C"
18115 #endif
18116 char error_message ();
18117 int
18118 main ()
18119 {
18120 return error_message ();
18121   ;
18122   return 0;
18123 }
18124 _ACEOF
18125 if ac_fn_c_try_link "$LINENO"; then :
18126   ac_cv_lib_com_err_error_message=yes
18127 else
18128   ac_cv_lib_com_err_error_message=no
18129 fi
18130 rm -f core conftest.err conftest.$ac_objext \
18131     conftest$ac_exeext conftest.$ac_ext
18132 LIBS=$ac_check_lib_save_LIBS
18133 fi
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
18135 $as_echo "$ac_cv_lib_com_err_error_message" >&6; }
18136 if test "x$ac_cv_lib_com_err_error_message" = xyes; then :
18137   rra_krb5_extra="-lcom_err $rra_krb5_extra"
18138 fi
18139
18140      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
18141 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
18142 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
18143   $as_echo_n "(cached) " >&6
18144 else
18145   ac_check_lib_save_LIBS=$LIBS
18146 LIBS="-lksvc $rra_krb5_extra $LIBS"
18147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18148 /* end confdefs.h.  */
18149
18150 /* Override any GCC internal prototype to avoid an error.
18151    Use char because int might match the return type of a GCC
18152    builtin and then its argument prototype would still apply.  */
18153 #ifdef __cplusplus
18154 extern "C"
18155 #endif
18156 char krb5_svc_get_msg ();
18157 int
18158 main ()
18159 {
18160 return krb5_svc_get_msg ();
18161   ;
18162   return 0;
18163 }
18164 _ACEOF
18165 if ac_fn_c_try_link "$LINENO"; then :
18166   ac_cv_lib_ksvc_krb5_svc_get_msg=yes
18167 else
18168   ac_cv_lib_ksvc_krb5_svc_get_msg=no
18169 fi
18170 rm -f core conftest.err conftest.$ac_objext \
18171     conftest$ac_exeext conftest.$ac_ext
18172 LIBS=$ac_check_lib_save_LIBS
18173 fi
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
18175 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
18176 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
18177   rra_krb5_extra="-lksvc $rra_krb5_extra"
18178 fi
18179
18180      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
18181 $as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
18182 if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then :
18183   $as_echo_n "(cached) " >&6
18184 else
18185   ac_check_lib_save_LIBS=$LIBS
18186 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
18187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18188 /* end confdefs.h.  */
18189
18190 /* Override any GCC internal prototype to avoid an error.
18191    Use char because int might match the return type of a GCC
18192    builtin and then its argument prototype would still apply.  */
18193 #ifdef __cplusplus
18194 extern "C"
18195 #endif
18196 char krb5int_hash_md5 ();
18197 int
18198 main ()
18199 {
18200 return krb5int_hash_md5 ();
18201   ;
18202   return 0;
18203 }
18204 _ACEOF
18205 if ac_fn_c_try_link "$LINENO"; then :
18206   ac_cv_lib_k5crypto_krb5int_hash_md5=yes
18207 else
18208   ac_cv_lib_k5crypto_krb5int_hash_md5=no
18209 fi
18210 rm -f core conftest.err conftest.$ac_objext \
18211     conftest$ac_exeext conftest.$ac_ext
18212 LIBS=$ac_check_lib_save_LIBS
18213 fi
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
18215 $as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
18216 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then :
18217   rra_krb5_extra="-lk5crypto $rra_krb5_extra"
18218 fi
18219
18220      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
18221 $as_echo_n "checking for profile_get_values in -lk5profile... " >&6; }
18222 if ${ac_cv_lib_k5profile_profile_get_values+:} false; then :
18223   $as_echo_n "(cached) " >&6
18224 else
18225   ac_check_lib_save_LIBS=$LIBS
18226 LIBS="-lk5profile $rra_krb5_extra $LIBS"
18227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18228 /* end confdefs.h.  */
18229
18230 /* Override any GCC internal prototype to avoid an error.
18231    Use char because int might match the return type of a GCC
18232    builtin and then its argument prototype would still apply.  */
18233 #ifdef __cplusplus
18234 extern "C"
18235 #endif
18236 char profile_get_values ();
18237 int
18238 main ()
18239 {
18240 return profile_get_values ();
18241   ;
18242   return 0;
18243 }
18244 _ACEOF
18245 if ac_fn_c_try_link "$LINENO"; then :
18246   ac_cv_lib_k5profile_profile_get_values=yes
18247 else
18248   ac_cv_lib_k5profile_profile_get_values=no
18249 fi
18250 rm -f core conftest.err conftest.$ac_objext \
18251     conftest$ac_exeext conftest.$ac_ext
18252 LIBS=$ac_check_lib_save_LIBS
18253 fi
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
18255 $as_echo "$ac_cv_lib_k5profile_profile_get_values" >&6; }
18256 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes; then :
18257   rra_krb5_extra="-lk5profile $rra_krb5_extra"
18258 fi
18259
18260      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
18261 $as_echo_n "checking for krb5_cc_default in -lkrb5... " >&6; }
18262 if ${ac_cv_lib_krb5_krb5_cc_default+:} false; then :
18263   $as_echo_n "(cached) " >&6
18264 else
18265   ac_check_lib_save_LIBS=$LIBS
18266 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
18267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18268 /* end confdefs.h.  */
18269
18270 /* Override any GCC internal prototype to avoid an error.
18271    Use char because int might match the return type of a GCC
18272    builtin and then its argument prototype would still apply.  */
18273 #ifdef __cplusplus
18274 extern "C"
18275 #endif
18276 char krb5_cc_default ();
18277 int
18278 main ()
18279 {
18280 return krb5_cc_default ();
18281   ;
18282   return 0;
18283 }
18284 _ACEOF
18285 if ac_fn_c_try_link "$LINENO"; then :
18286   ac_cv_lib_krb5_krb5_cc_default=yes
18287 else
18288   ac_cv_lib_krb5_krb5_cc_default=no
18289 fi
18290 rm -f core conftest.err conftest.$ac_objext \
18291     conftest$ac_exeext conftest.$ac_ext
18292 LIBS=$ac_check_lib_save_LIBS
18293 fi
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
18295 $as_echo "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
18296 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes; then :
18297   KRB5_LIBS="-lkrb5 $rra_krb5_extra"
18298 else
18299   if test x"true" = xtrue; then :
18300   as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
18301 fi
18302 fi
18303
18304 fi
18305
18306  LIBS="$KRB5_LIBS $LIBS"
18307  if test x"$rra_krb5_incroot" = x; then :
18308   for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
18309 do :
18310   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18311 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18312 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18313   cat >>confdefs.h <<_ACEOF
18314 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18315 _ACEOF
18316
18317 fi
18318
18319 done
18320
18321 else
18322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
18323 $as_echo_n "checking for krb5.h... " >&6; }
18324  if test -f "${rra_krb5_incroot}/krb5.h"; then :
18325
18326 cat >>confdefs.h <<_ACEOF
18327 #define HAVE_KRB5_H 1
18328 _ACEOF
18329
18330      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18331 $as_echo "yes" >&6; }
18332 else
18333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18334 $as_echo "no" >&6; }
18335 fi
18336       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
18337 $as_echo_n "checking for kerberosv5/krb5.h... " >&6; }
18338  if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"; then :
18339
18340 cat >>confdefs.h <<_ACEOF
18341 #define HAVE_KERBEROSV5_KRB5_H 1
18342 _ACEOF
18343
18344      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18345 $as_echo "yes" >&6; }
18346 else
18347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18348 $as_echo "no" >&6; }
18349 fi
18350       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
18351 $as_echo_n "checking for krb5/krb5.h... " >&6; }
18352  if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
18353
18354 cat >>confdefs.h <<_ACEOF
18355 #define HAVE_KRB5_KRB5_H 1
18356 _ACEOF
18357
18358      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18359 $as_echo "yes" >&6; }
18360 else
18361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18362 $as_echo "no" >&6; }
18363 fi
18364 fi
18365  for ac_func in krb5_get_error_message
18366 do :
18367   ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
18368 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
18369   cat >>confdefs.h <<_ACEOF
18370 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
18371 _ACEOF
18372  for ac_func in krb5_free_error_message
18373 do :
18374   ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
18375 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
18376   cat >>confdefs.h <<_ACEOF
18377 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
18378 _ACEOF
18379
18380 fi
18381 done
18382
18383 else
18384   for ac_func in krb5_get_error_string
18385 do :
18386   ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
18387 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
18388   cat >>confdefs.h <<_ACEOF
18389 #define HAVE_KRB5_GET_ERROR_STRING 1
18390 _ACEOF
18391
18392 else
18393   for ac_func in krb5_get_err_txt
18394 do :
18395   ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
18396 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
18397   cat >>confdefs.h <<_ACEOF
18398 #define HAVE_KRB5_GET_ERR_TXT 1
18399 _ACEOF
18400
18401 else
18402   for ac_func in krb5_svc_get_msg
18403 do :
18404   ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
18405 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
18406   cat >>confdefs.h <<_ACEOF
18407 #define HAVE_KRB5_SVC_GET_MSG 1
18408 _ACEOF
18409  for ac_header in ibm_svc/krb5_svc.h
18410 do :
18411   ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
18412 #if HAVE_KRB5_H
18413 # include <krb5.h>
18414 #elif HAVE_KERBEROSV5_KRB5_H
18415 # include <kerberosv5/krb5.h>
18416 #else
18417 # include <krb5/krb5.h>
18418 #endif
18419
18420 "
18421 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
18422   cat >>confdefs.h <<_ACEOF
18423 #define HAVE_IBM_SVC_KRB5_SVC_H 1
18424 _ACEOF
18425
18426 fi
18427
18428 done
18429
18430 else
18431   if test x"$rra_krb5_incroot" = x; then :
18432   for ac_header in et/com_err.h kerberosv5/com_err.h
18433 do :
18434   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18435 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18436 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18437   cat >>confdefs.h <<_ACEOF
18438 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18439 _ACEOF
18440
18441 fi
18442
18443 done
18444
18445 else
18446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
18447 $as_echo_n "checking for et/com_err.h... " >&6; }
18448  if test -f "${rra_krb5_incroot}/et/com_err.h"; then :
18449
18450 cat >>confdefs.h <<_ACEOF
18451 #define HAVE_ET_COM_ERR_H 1
18452 _ACEOF
18453
18454      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18455 $as_echo "yes" >&6; }
18456 else
18457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18458 $as_echo "no" >&6; }
18459 fi
18460          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
18461 $as_echo_n "checking for kerberosv5/com_err.h... " >&6; }
18462  if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"; then :
18463
18464 cat >>confdefs.h <<_ACEOF
18465 #define HAVE_KERBEROSV5_COM_ERR_H 1
18466 _ACEOF
18467
18468      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18469 $as_echo "yes" >&6; }
18470 else
18471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18472 $as_echo "no" >&6; }
18473 fi
18474 fi
18475 fi
18476 done
18477
18478 fi
18479 done
18480
18481 fi
18482 done
18483
18484 fi
18485 done
18486
18487  CPPFLAGS="$rra_krb5_save_CPPFLAGS"
18488  LDFLAGS="$rra_krb5_save_LDFLAGS"
18489  LIBS="$rra_krb5_save_LIBS"
18490 fi
18491 fi
18492  rra_krb5_uses_com_err=false
18493  case $KRB5_LIBS in #(
18494   *-lcom_err*) :
18495     rra_krb5_uses_com_err=true ;; #(
18496   *) :
18497      ;;
18498 esac
18499   if test x"$rra_krb5_uses_com_err" = xtrue; then
18500   KRB5_USES_COM_ERR_TRUE=
18501   KRB5_USES_COM_ERR_FALSE='#'
18502 else
18503   KRB5_USES_COM_ERR_TRUE='#'
18504   KRB5_USES_COM_ERR_FALSE=
18505 fi
18506
18507  KRB5_CPPFLAGS_GCC=`echo "$KRB5_CPPFLAGS" | sed -e 's/-I/-isystem /g'`
18508
18509 $as_echo "#define HAVE_KRB5 1" >>confdefs.h
18510
18511 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
18512  rra_krb5_save_LDFLAGS="$LDFLAGS"
18513  rra_krb5_save_LIBS="$LIBS"
18514  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
18515  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
18516  LIBS="$KRB5_LIBS $LIBS"
18517 for ac_header in krb5/pwqual_plugin.h
18518 do :
18519   ac_fn_c_check_header_compile "$LINENO" "krb5/pwqual_plugin.h" "ac_cv_header_krb5_pwqual_plugin_h" "
18520 #if HAVE_KRB5_H
18521 # include <krb5.h>
18522 #elif HAVE_KERBEROSV5_KRB5_H
18523 # include <kerberosv5/krb5.h>
18524 #else
18525 # include <krb5/krb5.h>
18526 #endif
18527
18528 "
18529 if test "x$ac_cv_header_krb5_pwqual_plugin_h" = xyes; then :
18530   cat >>confdefs.h <<_ACEOF
18531 #define HAVE_KRB5_PWQUAL_PLUGIN_H 1
18532 _ACEOF
18533
18534 fi
18535
18536 done
18537
18538 ac_fn_c_check_type "$LINENO" "krb5_realm" "ac_cv_type_krb5_realm" "
18539 #if HAVE_KRB5_H
18540 # include <krb5.h>
18541 #elif HAVE_KERBEROSV5_KRB5_H
18542 # include <kerberosv5/krb5.h>
18543 #else
18544 # include <krb5/krb5.h>
18545 #endif
18546
18547 "
18548 if test "x$ac_cv_type_krb5_realm" = xyes; then :
18549
18550 cat >>confdefs.h <<_ACEOF
18551 #define HAVE_KRB5_REALM 1
18552 _ACEOF
18553
18554
18555 fi
18556
18557 for ac_func in krb5_free_default_realm \
18558     krb5_free_string \
18559     krb5_get_init_creds_opt_alloc \
18560     krb5_get_init_creds_opt_set_default_flags \
18561     krb5_principal_get_realm \
18562     krb5_xfree
18563 do :
18564   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18565 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18566 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18567   cat >>confdefs.h <<_ACEOF
18568 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18569 _ACEOF
18570
18571 fi
18572 done
18573
18574 for ac_func in krb5_get_init_creds_opt_free
18575 do :
18576   ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_free" "ac_cv_func_krb5_get_init_creds_opt_free"
18577 if test "x$ac_cv_func_krb5_get_init_creds_opt_free" = xyes; then :
18578   cat >>confdefs.h <<_ACEOF
18579 #define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE 1
18580 _ACEOF
18581  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if krb5_get_init_creds_opt_free takes two arguments" >&5
18582 $as_echo_n "checking if krb5_get_init_creds_opt_free takes two arguments... " >&6; }
18583 if ${rra_cv_func_krb5_get_init_creds_opt_free_args+:} false; then :
18584   $as_echo_n "(cached) " >&6
18585 else
18586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18587 /* end confdefs.h.  */
18588
18589 #if HAVE_KRB5_H
18590 # include <krb5.h>
18591 #elif HAVE_KERBEROSV5_KRB5_H
18592 # include <kerberosv5/krb5.h>
18593 #else
18594 # include <krb5/krb5.h>
18595 #endif
18596
18597 int
18598 main(void)
18599 {
18600     krb5_get_init_creds_opt *opts;
18601     krb5_context c;
18602     krb5_get_init_creds_opt_free(c, opts);
18603 }
18604
18605 _ACEOF
18606 if ac_fn_c_try_compile "$LINENO"; then :
18607   rra_cv_func_krb5_get_init_creds_opt_free_args=yes
18608 else
18609   rra_cv_func_krb5_get_init_creds_opt_free_args=no
18610 fi
18611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18612 fi
18613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_func_krb5_get_init_creds_opt_free_args" >&5
18614 $as_echo "$rra_cv_func_krb5_get_init_creds_opt_free_args" >&6; }
18615  if test $rra_cv_func_krb5_get_init_creds_opt_free_args = yes; then :
18616
18617 $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_2_ARGS 1" >>confdefs.h
18618
18619 fi
18620 fi
18621 done
18622
18623 ac_fn_c_check_decl "$LINENO" "krb5_kt_free_entry" "ac_cv_have_decl_krb5_kt_free_entry" "
18624 #if HAVE_KRB5_H
18625 # include <krb5.h>
18626 #elif HAVE_KERBEROSV5_KRB5_H
18627 # include <kerberosv5/krb5.h>
18628 #else
18629 # include <krb5/krb5.h>
18630 #endif
18631
18632 "
18633 if test "x$ac_cv_have_decl_krb5_kt_free_entry" = xyes; then :
18634   ac_have_decl=1
18635 else
18636   ac_have_decl=0
18637 fi
18638
18639 cat >>confdefs.h <<_ACEOF
18640 #define HAVE_DECL_KRB5_KT_FREE_ENTRY $ac_have_decl
18641 _ACEOF
18642
18643 case " $LIBOBJS " in
18644   *" krb5-extra.$ac_objext "* ) ;;
18645   *) LIBOBJS="$LIBOBJS krb5-extra.$ac_objext"
18646  ;;
18647 esac
18648
18649 for ac_header in kadm5/kadm5-pwcheck.h kadm5/kadm5_err.h
18650 do :
18651   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18652 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
18653 #if HAVE_KRB5_H
18654 # include <krb5.h>
18655 #elif HAVE_KERBEROSV5_KRB5_H
18656 # include <kerberosv5/krb5.h>
18657 #else
18658 # include <krb5/krb5.h>
18659 #endif
18660
18661 "
18662 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18663   cat >>confdefs.h <<_ACEOF
18664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18665 _ACEOF
18666
18667 fi
18668
18669 done
18670
18671 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
18672  LDFLAGS="$rra_krb5_save_LDFLAGS"
18673  LIBS="$rra_krb5_save_LIBS"
18674
18675
18676
18677
18678
18679
18680
18681 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18682         if test -n "$ac_tool_prefix"; then
18683   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18684 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18686 $as_echo_n "checking for $ac_word... " >&6; }
18687 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18688   $as_echo_n "(cached) " >&6
18689 else
18690   case $PKG_CONFIG in
18691   [\\/]* | ?:[\\/]*)
18692   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18693   ;;
18694   *)
18695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18696 for as_dir in $PATH
18697 do
18698   IFS=$as_save_IFS
18699   test -z "$as_dir" && as_dir=.
18700     for ac_exec_ext in '' $ac_executable_extensions; do
18701   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18702     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18704     break 2
18705   fi
18706 done
18707   done
18708 IFS=$as_save_IFS
18709
18710   ;;
18711 esac
18712 fi
18713 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18714 if test -n "$PKG_CONFIG"; then
18715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18716 $as_echo "$PKG_CONFIG" >&6; }
18717 else
18718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18719 $as_echo "no" >&6; }
18720 fi
18721
18722
18723 fi
18724 if test -z "$ac_cv_path_PKG_CONFIG"; then
18725   ac_pt_PKG_CONFIG=$PKG_CONFIG
18726   # Extract the first word of "pkg-config", so it can be a program name with args.
18727 set dummy pkg-config; ac_word=$2
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18729 $as_echo_n "checking for $ac_word... " >&6; }
18730 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18731   $as_echo_n "(cached) " >&6
18732 else
18733   case $ac_pt_PKG_CONFIG in
18734   [\\/]* | ?:[\\/]*)
18735   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18736   ;;
18737   *)
18738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18739 for as_dir in $PATH
18740 do
18741   IFS=$as_save_IFS
18742   test -z "$as_dir" && as_dir=.
18743     for ac_exec_ext in '' $ac_executable_extensions; do
18744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18745     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18747     break 2
18748   fi
18749 done
18750   done
18751 IFS=$as_save_IFS
18752
18753   ;;
18754 esac
18755 fi
18756 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18757 if test -n "$ac_pt_PKG_CONFIG"; then
18758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18759 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18760 else
18761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18762 $as_echo "no" >&6; }
18763 fi
18764
18765   if test "x$ac_pt_PKG_CONFIG" = x; then
18766     PKG_CONFIG=""
18767   else
18768     case $cross_compiling:$ac_tool_warned in
18769 yes:)
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18772 ac_tool_warned=yes ;;
18773 esac
18774     PKG_CONFIG=$ac_pt_PKG_CONFIG
18775   fi
18776 else
18777   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18778 fi
18779
18780 fi
18781 if test -n "$PKG_CONFIG"; then
18782         _pkg_min_version=0.9.0
18783         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18784 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18785         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18786                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18787 $as_echo "yes" >&6; }
18788         else
18789                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18790 $as_echo "no" >&6; }
18791                 PKG_CONFIG=""
18792         fi
18793 fi
18794 rra_SQLITE_root=
18795  rra_SQLITE_libdir=
18796  rra_SQLITE_includedir=
18797  rra_use_SQLITE=
18798  SQLITE_CPPFLAGS=
18799  SQLITE_LDFLAGS=
18800  SQLITE_LIBS=
18801
18802
18803
18804
18805 # Check whether --with-sqlite was given.
18806 if test "${with_sqlite+set}" = set; then :
18807   withval=$with_sqlite; if test x"$withval" = xno; then :
18808   rra_use_SQLITE=false
18809 else
18810   if test x"$withval" != xyes; then :
18811   rra_SQLITE_root="$withval"
18812 fi
18813          rra_use_SQLITE=true
18814 fi
18815 fi
18816
18817
18818 # Check whether --with-sqlite-include was given.
18819 if test "${with_sqlite_include+set}" = set; then :
18820   withval=$with_sqlite_include; if test x"$withval" != xyes && test x"$withval" != xno; then :
18821   rra_SQLITE_includedir="$withval"
18822 fi
18823 fi
18824
18825
18826 # Check whether --with-sqlite-lib was given.
18827 if test "${with_sqlite_lib+set}" = set; then :
18828   withval=$with_sqlite_lib; if test x"$withval" != xyes && test x"$withval" != xno; then :
18829   rra_SQLITE_libdir="$withval"
18830 fi
18831 fi
18832
18833  if test x"$rra_use_SQLITE" != xfalse; then :
18834   if test x"$rra_use_SQLITE" = xtrue; then :
18835   if test x"$rra_SQLITE_libdir" != x; then :
18836   SQLITE_LDFLAGS="-L$rra_SQLITE_libdir"
18837 else
18838   if test x"$rra_SQLITE_root" != x; then :
18839
18840  if test -d "${rra_SQLITE_root}/$rra_lib_arch_name"; then :
18841   if test x"" = x; then :
18842   SQLITE_LDFLAGS="$SQLITE_LDFLAGS -L${rra_SQLITE_root}/${rra_lib_arch_name}"
18843 else
18844   SQLITE_LDFLAGS="$SQLITE_LDFLAGS -L${rra_SQLITE_root}/${rra_lib_arch_name}/"
18845 fi
18846 else
18847   if test x"" = x; then :
18848   SQLITE_LDFLAGS="$SQLITE_LDFLAGS -L${rra_SQLITE_root}/lib"
18849 else
18850   SQLITE_LDFLAGS="$SQLITE_LDFLAGS -L${rra_SQLITE_root}/lib/"
18851 fi
18852 fi
18853  SQLITE_LDFLAGS=`echo "$SQLITE_LDFLAGS" | sed -e 's/^ *//'`
18854 fi
18855 fi
18856  if test x"$rra_SQLITE_includedir" != x; then :
18857   SQLITE_CPPFLAGS="-I$rra_SQLITE_includedir"
18858 else
18859   if test x"$rra_SQLITE_root" != x; then :
18860   if test x"$rra_SQLITE_root" != x/usr; then :
18861   SQLITE_CPPFLAGS="-I${rra_SQLITE_root}/include"
18862 fi
18863 fi
18864 fi
18865  if test x"$SQLITE_CPPFLAGS" = x && test x"$SQLITE_LDFLAGS" = x; then :
18866   if test -n "$PKG_CONFIG" && \
18867     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
18868   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
18869   ac_status=$?
18870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18871   test $ac_status = 0; }; then
18872
18873 pkg_failed=no
18874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
18875 $as_echo_n "checking for SQLITE... " >&6; }
18876
18877 if test -n "$SQLITE_CFLAGS"; then
18878     pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
18879  elif test -n "$PKG_CONFIG"; then
18880     if test -n "$PKG_CONFIG" && \
18881     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
18882   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
18883   ac_status=$?
18884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18885   test $ac_status = 0; }; then
18886   pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
18887                       test "x$?" != "x0" && pkg_failed=yes
18888 else
18889   pkg_failed=yes
18890 fi
18891  else
18892     pkg_failed=untried
18893 fi
18894 if test -n "$SQLITE_LIBS"; then
18895     pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
18896  elif test -n "$PKG_CONFIG"; then
18897     if test -n "$PKG_CONFIG" && \
18898     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
18899   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
18900   ac_status=$?
18901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18902   test $ac_status = 0; }; then
18903   pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
18904                       test "x$?" != "x0" && pkg_failed=yes
18905 else
18906   pkg_failed=yes
18907 fi
18908  else
18909     pkg_failed=untried
18910 fi
18911
18912
18913
18914 if test $pkg_failed = yes; then
18915         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18916 $as_echo "no" >&6; }
18917
18918 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18919         _pkg_short_errors_supported=yes
18920 else
18921         _pkg_short_errors_supported=no
18922 fi
18923         if test $_pkg_short_errors_supported = yes; then
18924                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1`
18925         else
18926                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1`
18927         fi
18928         # Put the nasty error message in config.log where it belongs
18929         echo "$SQLITE_PKG_ERRORS" >&5
18930
18931         as_fn_error $? "Package requirements (sqlite3) were not met:
18932
18933 $SQLITE_PKG_ERRORS
18934
18935 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18936 installed software in a non-standard prefix.
18937
18938 Alternatively, you may set the environment variables SQLITE_CFLAGS
18939 and SQLITE_LIBS to avoid the need to call pkg-config.
18940 See the pkg-config man page for more details." "$LINENO" 5
18941 elif test $pkg_failed = untried; then
18942         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18943 $as_echo "no" >&6; }
18944         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18946 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18947 is in your PATH or set the PKG_CONFIG environment variable to the full
18948 path to pkg-config.
18949
18950 Alternatively, you may set the environment variables SQLITE_CFLAGS
18951 and SQLITE_LIBS to avoid the need to call pkg-config.
18952 See the pkg-config man page for more details.
18953
18954 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18955 See \`config.log' for more details" "$LINENO" 5; }
18956 else
18957         SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
18958         SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
18959         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18960 $as_echo "yes" >&6; }
18961
18962 fi
18963          SQLITE_CPPFLAGS="$SQLITE_CFLAGS"
18964 fi
18965 fi
18966  if test x"$SQLITE_LIBS" = x; then :
18967   rra_SQLITE_save_CPPFLAGS="$CPPFLAGS"
18968  rra_SQLITE_save_LDFLAGS="$LDFLAGS"
18969  rra_SQLITE_save_LIBS="$LIBS"
18970  CPPFLAGS="$SQLITE_CPPFLAGS $CPPFLAGS"
18971  LDFLAGS="$SQLITE_LDFLAGS $LDFLAGS"
18972  LIBS="$SQLITE_LIBS $LIBS"
18973      LIBS=
18974      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqlite3_open_v2" >&5
18975 $as_echo_n "checking for library containing sqlite3_open_v2... " >&6; }
18976 if ${ac_cv_search_sqlite3_open_v2+:} false; then :
18977   $as_echo_n "(cached) " >&6
18978 else
18979   ac_func_search_save_LIBS=$LIBS
18980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18981 /* end confdefs.h.  */
18982
18983 /* Override any GCC internal prototype to avoid an error.
18984    Use char because int might match the return type of a GCC
18985    builtin and then its argument prototype would still apply.  */
18986 #ifdef __cplusplus
18987 extern "C"
18988 #endif
18989 char sqlite3_open_v2 ();
18990 int
18991 main ()
18992 {
18993 return sqlite3_open_v2 ();
18994   ;
18995   return 0;
18996 }
18997 _ACEOF
18998 for ac_lib in '' sqlite3; do
18999   if test -z "$ac_lib"; then
19000     ac_res="none required"
19001   else
19002     ac_res=-l$ac_lib
19003     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19004   fi
19005   if ac_fn_c_try_link "$LINENO"; then :
19006   ac_cv_search_sqlite3_open_v2=$ac_res
19007 fi
19008 rm -f core conftest.err conftest.$ac_objext \
19009     conftest$ac_exeext
19010   if ${ac_cv_search_sqlite3_open_v2+:} false; then :
19011   break
19012 fi
19013 done
19014 if ${ac_cv_search_sqlite3_open_v2+:} false; then :
19015
19016 else
19017   ac_cv_search_sqlite3_open_v2=no
19018 fi
19019 rm conftest.$ac_ext
19020 LIBS=$ac_func_search_save_LIBS
19021 fi
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqlite3_open_v2" >&5
19023 $as_echo "$ac_cv_search_sqlite3_open_v2" >&6; }
19024 ac_res=$ac_cv_search_sqlite3_open_v2
19025 if test "$ac_res" != no; then :
19026   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19027   SQLITE_LIBS="$LIBS"
19028 else
19029   if test x"true" = xtrue; then :
19030   as_fn_error $? "cannot find usable SQLite library" "$LINENO" 5
19031 fi
19032 fi
19033
19034      CPPFLAGS="$rra_SQLITE_save_CPPFLAGS"
19035  LDFLAGS="$rra_SQLITE_save_LDFLAGS"
19036  LIBS="$rra_SQLITE_save_LIBS"
19037 fi
19038  rra_SQLITE_save_CPPFLAGS="$CPPFLAGS"
19039  rra_SQLITE_save_LDFLAGS="$LDFLAGS"
19040  rra_SQLITE_save_LIBS="$LIBS"
19041  CPPFLAGS="$SQLITE_CPPFLAGS $CPPFLAGS"
19042  LDFLAGS="$SQLITE_LDFLAGS $LDFLAGS"
19043  LIBS="$SQLITE_LIBS $LIBS"
19044  for ac_header in sqlite3.h
19045 do :
19046   ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
19047 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
19048   cat >>confdefs.h <<_ACEOF
19049 #define HAVE_SQLITE3_H 1
19050 _ACEOF
19051
19052 fi
19053
19054 done
19055
19056  CPPFLAGS="$rra_SQLITE_save_CPPFLAGS"
19057  LDFLAGS="$rra_SQLITE_save_LDFLAGS"
19058  LIBS="$rra_SQLITE_save_LIBS"
19059 else
19060   if test x"$rra_SQLITE_libdir" != x; then :
19061   SQLITE_LDFLAGS="-L$rra_SQLITE_libdir"
19062 else
19063   if test x"$rra_SQLITE_root" != x; then :
19064
19065  if test -d "${rra_SQLITE_root}/$rra_lib_arch_name"; then :
19066   if test x"" = x; then :
19067   SQLITE_LDFLAGS="$SQLITE_LDFLAGS -L${rra_SQLITE_root}/${rra_lib_arch_name}"
19068 else
19069   SQLITE_LDFLAGS="$SQLITE_LDFLAGS -L${rra_SQLITE_root}/${rra_lib_arch_name}/"
19070 fi
19071 else
19072   if test x"" = x; then :
19073   SQLITE_LDFLAGS="$SQLITE_LDFLAGS -L${rra_SQLITE_root}/lib"
19074 else
19075   SQLITE_LDFLAGS="$SQLITE_LDFLAGS -L${rra_SQLITE_root}/lib/"
19076 fi
19077 fi
19078  SQLITE_LDFLAGS=`echo "$SQLITE_LDFLAGS" | sed -e 's/^ *//'`
19079 fi
19080 fi
19081  if test x"$rra_SQLITE_includedir" != x; then :
19082   SQLITE_CPPFLAGS="-I$rra_SQLITE_includedir"
19083 else
19084   if test x"$rra_SQLITE_root" != x; then :
19085   if test x"$rra_SQLITE_root" != x/usr; then :
19086   SQLITE_CPPFLAGS="-I${rra_SQLITE_root}/include"
19087 fi
19088 fi
19089 fi
19090  if test x"$SQLITE_CPPFLAGS" = x && test x"$SQLITE_LDFLAGS" = x; then :
19091   if test -n "$PKG_CONFIG" && \
19092     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
19093   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
19094   ac_status=$?
19095   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19096   test $ac_status = 0; }; then
19097
19098 pkg_failed=no
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
19100 $as_echo_n "checking for SQLITE... " >&6; }
19101
19102 if test -n "$SQLITE_CFLAGS"; then
19103     pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
19104  elif test -n "$PKG_CONFIG"; then
19105     if test -n "$PKG_CONFIG" && \
19106     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
19107   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
19108   ac_status=$?
19109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19110   test $ac_status = 0; }; then
19111   pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
19112                       test "x$?" != "x0" && pkg_failed=yes
19113 else
19114   pkg_failed=yes
19115 fi
19116  else
19117     pkg_failed=untried
19118 fi
19119 if test -n "$SQLITE_LIBS"; then
19120     pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
19121  elif test -n "$PKG_CONFIG"; then
19122     if test -n "$PKG_CONFIG" && \
19123     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
19124   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
19125   ac_status=$?
19126   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19127   test $ac_status = 0; }; then
19128   pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
19129                       test "x$?" != "x0" && pkg_failed=yes
19130 else
19131   pkg_failed=yes
19132 fi
19133  else
19134     pkg_failed=untried
19135 fi
19136
19137
19138
19139 if test $pkg_failed = yes; then
19140         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19141 $as_echo "no" >&6; }
19142
19143 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19144         _pkg_short_errors_supported=yes
19145 else
19146         _pkg_short_errors_supported=no
19147 fi
19148         if test $_pkg_short_errors_supported = yes; then
19149                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1`
19150         else
19151                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1`
19152         fi
19153         # Put the nasty error message in config.log where it belongs
19154         echo "$SQLITE_PKG_ERRORS" >&5
19155
19156         as_fn_error $? "Package requirements (sqlite3) were not met:
19157
19158 $SQLITE_PKG_ERRORS
19159
19160 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19161 installed software in a non-standard prefix.
19162
19163 Alternatively, you may set the environment variables SQLITE_CFLAGS
19164 and SQLITE_LIBS to avoid the need to call pkg-config.
19165 See the pkg-config man page for more details." "$LINENO" 5
19166 elif test $pkg_failed = untried; then
19167         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19168 $as_echo "no" >&6; }
19169         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19171 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19172 is in your PATH or set the PKG_CONFIG environment variable to the full
19173 path to pkg-config.
19174
19175 Alternatively, you may set the environment variables SQLITE_CFLAGS
19176 and SQLITE_LIBS to avoid the need to call pkg-config.
19177 See the pkg-config man page for more details.
19178
19179 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19180 See \`config.log' for more details" "$LINENO" 5; }
19181 else
19182         SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
19183         SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
19184         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19185 $as_echo "yes" >&6; }
19186
19187 fi
19188          SQLITE_CPPFLAGS="$SQLITE_CFLAGS"
19189 fi
19190 fi
19191  if test x"$SQLITE_LIBS" = x; then :
19192   rra_SQLITE_save_CPPFLAGS="$CPPFLAGS"
19193  rra_SQLITE_save_LDFLAGS="$LDFLAGS"
19194  rra_SQLITE_save_LIBS="$LIBS"
19195  CPPFLAGS="$SQLITE_CPPFLAGS $CPPFLAGS"
19196  LDFLAGS="$SQLITE_LDFLAGS $LDFLAGS"
19197  LIBS="$SQLITE_LIBS $LIBS"
19198      LIBS=
19199      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqlite3_open_v2" >&5
19200 $as_echo_n "checking for library containing sqlite3_open_v2... " >&6; }
19201 if ${ac_cv_search_sqlite3_open_v2+:} false; then :
19202   $as_echo_n "(cached) " >&6
19203 else
19204   ac_func_search_save_LIBS=$LIBS
19205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19206 /* end confdefs.h.  */
19207
19208 /* Override any GCC internal prototype to avoid an error.
19209    Use char because int might match the return type of a GCC
19210    builtin and then its argument prototype would still apply.  */
19211 #ifdef __cplusplus
19212 extern "C"
19213 #endif
19214 char sqlite3_open_v2 ();
19215 int
19216 main ()
19217 {
19218 return sqlite3_open_v2 ();
19219   ;
19220   return 0;
19221 }
19222 _ACEOF
19223 for ac_lib in '' sqlite3; do
19224   if test -z "$ac_lib"; then
19225     ac_res="none required"
19226   else
19227     ac_res=-l$ac_lib
19228     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19229   fi
19230   if ac_fn_c_try_link "$LINENO"; then :
19231   ac_cv_search_sqlite3_open_v2=$ac_res
19232 fi
19233 rm -f core conftest.err conftest.$ac_objext \
19234     conftest$ac_exeext
19235   if ${ac_cv_search_sqlite3_open_v2+:} false; then :
19236   break
19237 fi
19238 done
19239 if ${ac_cv_search_sqlite3_open_v2+:} false; then :
19240
19241 else
19242   ac_cv_search_sqlite3_open_v2=no
19243 fi
19244 rm conftest.$ac_ext
19245 LIBS=$ac_func_search_save_LIBS
19246 fi
19247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqlite3_open_v2" >&5
19248 $as_echo "$ac_cv_search_sqlite3_open_v2" >&6; }
19249 ac_res=$ac_cv_search_sqlite3_open_v2
19250 if test "$ac_res" != no; then :
19251   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19252   SQLITE_LIBS="$LIBS"
19253 else
19254   if test x"false" = xtrue; then :
19255   as_fn_error $? "cannot find usable SQLite library" "$LINENO" 5
19256 fi
19257 fi
19258
19259      CPPFLAGS="$rra_SQLITE_save_CPPFLAGS"
19260  LDFLAGS="$rra_SQLITE_save_LDFLAGS"
19261  LIBS="$rra_SQLITE_save_LIBS"
19262 fi
19263  rra_SQLITE_save_CPPFLAGS="$CPPFLAGS"
19264  rra_SQLITE_save_LDFLAGS="$LDFLAGS"
19265  rra_SQLITE_save_LIBS="$LIBS"
19266  CPPFLAGS="$SQLITE_CPPFLAGS $CPPFLAGS"
19267  LDFLAGS="$SQLITE_LDFLAGS $LDFLAGS"
19268  LIBS="$SQLITE_LIBS $LIBS"
19269  for ac_header in sqlite3.h
19270 do :
19271   ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
19272 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
19273   cat >>confdefs.h <<_ACEOF
19274 #define HAVE_SQLITE3_H 1
19275 _ACEOF
19276
19277 fi
19278
19279 done
19280
19281  CPPFLAGS="$rra_SQLITE_save_CPPFLAGS"
19282  LDFLAGS="$rra_SQLITE_save_LDFLAGS"
19283  LIBS="$rra_SQLITE_save_LIBS"
19284 fi
19285 fi
19286  if test x"$SQLITE_LIBS" != x; then :
19287   rra_use_SQLITE=true
19288
19289 $as_echo "#define HAVE_SQLITE 1" >>confdefs.h
19290
19291 fi
19292
19293 save_LIBS="$LIBS"
19294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19295 $as_echo_n "checking for library containing dlopen... " >&6; }
19296 if ${ac_cv_search_dlopen+:} false; then :
19297   $as_echo_n "(cached) " >&6
19298 else
19299   ac_func_search_save_LIBS=$LIBS
19300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19301 /* end confdefs.h.  */
19302
19303 /* Override any GCC internal prototype to avoid an error.
19304    Use char because int might match the return type of a GCC
19305    builtin and then its argument prototype would still apply.  */
19306 #ifdef __cplusplus
19307 extern "C"
19308 #endif
19309 char dlopen ();
19310 int
19311 main ()
19312 {
19313 return dlopen ();
19314   ;
19315   return 0;
19316 }
19317 _ACEOF
19318 for ac_lib in '' dl; do
19319   if test -z "$ac_lib"; then
19320     ac_res="none required"
19321   else
19322     ac_res=-l$ac_lib
19323     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19324   fi
19325   if ac_fn_c_try_link "$LINENO"; then :
19326   ac_cv_search_dlopen=$ac_res
19327 fi
19328 rm -f core conftest.err conftest.$ac_objext \
19329     conftest$ac_exeext
19330   if ${ac_cv_search_dlopen+:} false; then :
19331   break
19332 fi
19333 done
19334 if ${ac_cv_search_dlopen+:} false; then :
19335
19336 else
19337   ac_cv_search_dlopen=no
19338 fi
19339 rm conftest.$ac_ext
19340 LIBS=$ac_func_search_save_LIBS
19341 fi
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19343 $as_echo "$ac_cv_search_dlopen" >&6; }
19344 ac_res=$ac_cv_search_dlopen
19345 if test "$ac_res" != no; then :
19346   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19347   DL_LIBS="$LIBS"
19348 fi
19349
19350 LIBS="$save_LIBS"
19351
19352
19353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19354 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19355 if ${ac_cv_header_stdbool_h+:} false; then :
19356   $as_echo_n "(cached) " >&6
19357 else
19358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19359 /* end confdefs.h.  */
19360
19361              #include <stdbool.h>
19362              #ifndef bool
19363               "error: bool is not defined"
19364              #endif
19365              #ifndef false
19366               "error: false is not defined"
19367              #endif
19368              #if false
19369               "error: false is not 0"
19370              #endif
19371              #ifndef true
19372               "error: true is not defined"
19373              #endif
19374              #if true != 1
19375               "error: true is not 1"
19376              #endif
19377              #ifndef __bool_true_false_are_defined
19378               "error: __bool_true_false_are_defined is not defined"
19379              #endif
19380
19381              struct s { _Bool s: 1; _Bool t; } s;
19382
19383              char a[true == 1 ? 1 : -1];
19384              char b[false == 0 ? 1 : -1];
19385              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19386              char d[(bool) 0.5 == true ? 1 : -1];
19387              /* See body of main program for 'e'.  */
19388              char f[(_Bool) 0.0 == false ? 1 : -1];
19389              char g[true];
19390              char h[sizeof (_Bool)];
19391              char i[sizeof s.t];
19392              enum { j = false, k = true, l = false * true, m = true * 256 };
19393              /* The following fails for
19394                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19395              _Bool n[m];
19396              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19397              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19398              /* Catch a bug in an HP-UX C compiler.  See
19399                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19400                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19401               */
19402              _Bool q = true;
19403              _Bool *pq = &q;
19404
19405 int
19406 main ()
19407 {
19408
19409              bool e = &s;
19410              *pq |= q;
19411              *pq |= ! q;
19412              /* Refer to every declared value, to avoid compiler optimizations.  */
19413              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19414                      + !m + !n + !o + !p + !q + !pq);
19415
19416   ;
19417   return 0;
19418 }
19419 _ACEOF
19420 if ac_fn_c_try_compile "$LINENO"; then :
19421   ac_cv_header_stdbool_h=yes
19422 else
19423   ac_cv_header_stdbool_h=no
19424 fi
19425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19426 fi
19427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19428 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19429    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19430 if test "x$ac_cv_type__Bool" = xyes; then :
19431
19432 cat >>confdefs.h <<_ACEOF
19433 #define HAVE__BOOL 1
19434 _ACEOF
19435
19436
19437 fi
19438
19439
19440 if test $ac_cv_header_stdbool_h = yes; then
19441
19442 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
19443
19444 fi
19445
19446 for ac_header in sys/bittypes.h sys/select.h sys/time.h syslog.h
19447 do :
19448   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19449 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19450 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19451   cat >>confdefs.h <<_ACEOF
19452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19453 _ACEOF
19454
19455 fi
19456
19457 done
19458
19459 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
19460 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
19461   ac_have_decl=1
19462 else
19463   ac_have_decl=0
19464 fi
19465
19466 cat >>confdefs.h <<_ACEOF
19467 #define HAVE_DECL_SNPRINTF $ac_have_decl
19468 _ACEOF
19469 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
19470 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
19471   ac_have_decl=1
19472 else
19473   ac_have_decl=0
19474 fi
19475
19476 cat >>confdefs.h <<_ACEOF
19477 #define HAVE_DECL_VSNPRINTF $ac_have_decl
19478 _ACEOF
19479
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 variadic macros" >&5
19481 $as_echo_n "checking for C99 variadic macros... " >&6; }
19482 if ${rra_cv_c_c99_vamacros+:} false; then :
19483   $as_echo_n "(cached) " >&6
19484 else
19485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19486 /* end confdefs.h.  */
19487
19488 #include <stdio.h>
19489 #define error(...) fprintf(stderr, __VA_ARGS__)
19490
19491 int
19492 main(void) {
19493     error("foo");
19494     error("foo %d", 0);
19495     return 0;
19496 }
19497
19498 _ACEOF
19499 if ac_fn_c_try_compile "$LINENO"; then :
19500   rra_cv_c_c99_vamacros=yes
19501 else
19502   rra_cv_c_c99_vamacros=no
19503 fi
19504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19505 fi
19506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_c_c99_vamacros" >&5
19507 $as_echo "$rra_cv_c_c99_vamacros" >&6; }
19508  if test x"$rra_cv_c_c99_vamacros" = xyes; then :
19509
19510 $as_echo "#define HAVE_C99_VAMACROS 1" >>confdefs.h
19511
19512 fi
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU-style variadic macros" >&5
19514 $as_echo_n "checking for GNU-style variadic macros... " >&6; }
19515 if ${rra_cv_c_gnu_vamacros+:} false; then :
19516   $as_echo_n "(cached) " >&6
19517 else
19518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19519 /* end confdefs.h.  */
19520
19521 #include <stdio.h>
19522 #define error(args...) fprintf(stderr, args)
19523
19524 int
19525 main(void) {
19526     error("foo");
19527     error("foo %d", 0);
19528     return 0;
19529 }
19530
19531 _ACEOF
19532 if ac_fn_c_try_compile "$LINENO"; then :
19533   rra_cv_c_gnu_vamacros=yes
19534 else
19535   rra_cv_c_gnu_vamacros=no
19536 fi
19537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19538 fi
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_c_gnu_vamacros" >&5
19540 $as_echo "$rra_cv_c_gnu_vamacros" >&6; }
19541  if test x"$rra_cv_c_gnu_vamacros" = xyes; then :
19542
19543 $as_echo "#define HAVE_GNU_VAMACROS 1" >>confdefs.h
19544
19545 fi
19546
19547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
19548 $as_echo_n "checking for unsigned long long int... " >&6; }
19549 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
19550   $as_echo_n "(cached) " >&6
19551 else
19552   ac_cv_type_unsigned_long_long_int=yes
19553      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
19554        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19555 /* end confdefs.h.  */
19556
19557   /* For now, do not test the preprocessor; as of 2007 there are too many
19558          implementations with broken preprocessors.  Perhaps this can
19559          be revisited in 2012.  In the meantime, code should not expect
19560          #if to work with literals wider than 32 bits.  */
19561       /* Test literals.  */
19562       long long int ll = 9223372036854775807ll;
19563       long long int nll = -9223372036854775807LL;
19564       unsigned long long int ull = 18446744073709551615ULL;
19565       /* Test constant expressions.   */
19566       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
19567                      ? 1 : -1)];
19568       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
19569                      ? 1 : -1)];
19570       int i = 63;
19571 int
19572 main ()
19573 {
19574 /* Test availability of runtime routines for shift and division.  */
19575       long long int llmax = 9223372036854775807ll;
19576       unsigned long long int ullmax = 18446744073709551615ull;
19577       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
19578               | (llmax / ll) | (llmax % ll)
19579               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
19580               | (ullmax / ull) | (ullmax % ull));
19581   ;
19582   return 0;
19583 }
19584
19585 _ACEOF
19586 if ac_fn_c_try_link "$LINENO"; then :
19587
19588 else
19589   ac_cv_type_unsigned_long_long_int=no
19590 fi
19591 rm -f core conftest.err conftest.$ac_objext \
19592     conftest$ac_exeext conftest.$ac_ext
19593      fi
19594 fi
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
19596 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
19597   if test $ac_cv_type_unsigned_long_long_int = yes; then
19598
19599 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
19600
19601   fi
19602
19603
19604
19605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
19606 $as_echo_n "checking for long long int... " >&6; }
19607 if ${ac_cv_type_long_long_int+:} false; then :
19608   $as_echo_n "(cached) " >&6
19609 else
19610   ac_cv_type_long_long_int=yes
19611       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
19612         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
19613         if test $ac_cv_type_long_long_int = yes; then
19614                                         if test "$cross_compiling" = yes; then :
19615   :
19616 else
19617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19618 /* end confdefs.h.  */
19619 #include <limits.h>
19620                  #ifndef LLONG_MAX
19621                  # define HALF \
19622                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
19623                  # define LLONG_MAX (HALF - 1 + HALF)
19624                  #endif
19625 int
19626 main ()
19627 {
19628 long long int n = 1;
19629                  int i;
19630                  for (i = 0; ; i++)
19631                    {
19632                      long long int m = n << i;
19633                      if (m >> i != n)
19634                        return 1;
19635                      if (LLONG_MAX / 2 < m)
19636                        break;
19637                    }
19638                  return 0;
19639   ;
19640   return 0;
19641 }
19642 _ACEOF
19643 if ac_fn_c_try_run "$LINENO"; then :
19644
19645 else
19646   ac_cv_type_long_long_int=no
19647 fi
19648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19649   conftest.$ac_objext conftest.beam conftest.$ac_ext
19650 fi
19651
19652         fi
19653       fi
19654 fi
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
19656 $as_echo "$ac_cv_type_long_long_int" >&6; }
19657   if test $ac_cv_type_long_long_int = yes; then
19658
19659 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
19660
19661   fi
19662
19663 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
19664 case $ac_cv_c_uint8_t in #(
19665   no|yes) ;; #(
19666   *)
19667
19668 $as_echo "#define _UINT8_T 1" >>confdefs.h
19669
19670
19671 cat >>confdefs.h <<_ACEOF
19672 #define uint8_t $ac_cv_c_uint8_t
19673 _ACEOF
19674 ;;
19675   esac
19676
19677 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
19678 case $ac_cv_c_uint16_t in #(
19679   no|yes) ;; #(
19680   *)
19681
19682
19683 cat >>confdefs.h <<_ACEOF
19684 #define uint16_t $ac_cv_c_uint16_t
19685 _ACEOF
19686 ;;
19687   esac
19688
19689 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
19690 case $ac_cv_c_uint32_t in #(
19691   no|yes) ;; #(
19692   *)
19693
19694 $as_echo "#define _UINT32_T 1" >>confdefs.h
19695
19696
19697 cat >>confdefs.h <<_ACEOF
19698 #define uint32_t $ac_cv_c_uint32_t
19699 _ACEOF
19700 ;;
19701   esac
19702
19703 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
19704 "
19705 if test "x$ac_cv_type_ssize_t" = xyes; then :
19706
19707 cat >>confdefs.h <<_ACEOF
19708 #define HAVE_SSIZE_T 1
19709 _ACEOF
19710
19711
19712 fi
19713
19714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working snprintf" >&5
19715 $as_echo_n "checking for working snprintf... " >&6; }
19716 if ${rra_cv_func_snprintf_works+:} false; then :
19717   $as_echo_n "(cached) " >&6
19718 else
19719   if test "$cross_compiling" = yes; then :
19720   rra_cv_func_snprintf_works=no
19721 else
19722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19723 /* end confdefs.h.  */
19724
19725 #include <stdio.h>
19726 #include <stdarg.h>
19727
19728 char buf[2];
19729
19730 int
19731 test(char *format, ...)
19732 {
19733     va_list args;
19734     int count;
19735
19736     va_start(args, format);
19737     count = vsnprintf(buf, sizeof buf, format, args);
19738     va_end(args);
19739     return count;
19740 }
19741
19742 int
19743 main()
19744 {
19745     return ((test("%s", "abcd") == 4 && buf[0] == 'a' && buf[1] == '\0'
19746              && snprintf(NULL, 0, "%s", "abcd") == 4) ? 0 : 1);
19747 }
19748
19749 _ACEOF
19750 if ac_fn_c_try_run "$LINENO"; then :
19751   rra_cv_func_snprintf_works=yes
19752 else
19753   rra_cv_func_snprintf_works=no
19754 fi
19755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19756   conftest.$ac_objext conftest.beam conftest.$ac_ext
19757 fi
19758
19759 fi
19760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_func_snprintf_works" >&5
19761 $as_echo "$rra_cv_func_snprintf_works" >&6; }
19762  if test x"$rra_cv_func_snprintf_works" = xyes; then :
19763
19764 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
19765
19766 else
19767   case " $LIBOBJS " in
19768   *" snprintf.$ac_objext "* ) ;;
19769   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
19770  ;;
19771 esac
19772
19773 fi
19774 for ac_func in setrlimit
19775 do :
19776   ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
19777 if test "x$ac_cv_func_setrlimit" = xyes; then :
19778   cat >>confdefs.h <<_ACEOF
19779 #define HAVE_SETRLIMIT 1
19780 _ACEOF
19781
19782 fi
19783 done
19784
19785 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
19786 if test "x$ac_cv_func_asprintf" = xyes; then :
19787   $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
19788
19789 else
19790   case " $LIBOBJS " in
19791   *" asprintf.$ac_objext "* ) ;;
19792   *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
19793  ;;
19794 esac
19795
19796 fi
19797
19798 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
19799 if test "x$ac_cv_func_mkstemp" = xyes; then :
19800   $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
19801
19802 else
19803   case " $LIBOBJS " in
19804   *" mkstemp.$ac_objext "* ) ;;
19805   *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
19806  ;;
19807 esac
19808
19809 fi
19810
19811 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
19812 if test "x$ac_cv_func_reallocarray" = xyes; then :
19813   $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
19814
19815 else
19816   case " $LIBOBJS " in
19817   *" reallocarray.$ac_objext "* ) ;;
19818   *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
19819  ;;
19820 esac
19821
19822 fi
19823
19824 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
19825 if test "x$ac_cv_func_strndup" = xyes; then :
19826   $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
19827
19828 else
19829   case " $LIBOBJS " in
19830   *" strndup.$ac_objext "* ) ;;
19831   *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
19832  ;;
19833 esac
19834
19835 fi
19836
19837
19838
19839 ac_config_files="$ac_config_files Makefile"
19840
19841 ac_config_headers="$ac_config_headers config.h"
19842
19843 cat >confcache <<\_ACEOF
19844 # This file is a shell script that caches the results of configure
19845 # tests run on this system so they can be shared between configure
19846 # scripts and configure runs, see configure's option --config-cache.
19847 # It is not useful on other systems.  If it contains results you don't
19848 # want to keep, you may remove or edit it.
19849 #
19850 # config.status only pays attention to the cache file if you give it
19851 # the --recheck option to rerun configure.
19852 #
19853 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19854 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19855 # following values.
19856
19857 _ACEOF
19858
19859 # The following way of writing the cache mishandles newlines in values,
19860 # but we know of no workaround that is simple, portable, and efficient.
19861 # So, we kill variables containing newlines.
19862 # Ultrix sh set writes to stderr and can't be redirected directly,
19863 # and sets the high bit in the cache file unless we assign to the vars.
19864 (
19865   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19866     eval ac_val=\$$ac_var
19867     case $ac_val in #(
19868     *${as_nl}*)
19869       case $ac_var in #(
19870       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19871 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19872       esac
19873       case $ac_var in #(
19874       _ | IFS | as_nl) ;; #(
19875       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19876       *) { eval $ac_var=; unset $ac_var;} ;;
19877       esac ;;
19878     esac
19879   done
19880
19881   (set) 2>&1 |
19882     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19883     *${as_nl}ac_space=\ *)
19884       # `set' does not quote correctly, so add quotes: double-quote
19885       # substitution turns \\\\ into \\, and sed turns \\ into \.
19886       sed -n \
19887         "s/'/'\\\\''/g;
19888           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19889       ;; #(
19890     *)
19891       # `set' quotes correctly as required by POSIX, so do not add quotes.
19892       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19893       ;;
19894     esac |
19895     sort
19896 ) |
19897   sed '
19898      /^ac_cv_env_/b end
19899      t clear
19900      :clear
19901      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19902      t end
19903      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19904      :end' >>confcache
19905 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19906   if test -w "$cache_file"; then
19907     if test "x$cache_file" != "x/dev/null"; then
19908       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19909 $as_echo "$as_me: updating cache $cache_file" >&6;}
19910       if test ! -f "$cache_file" || test -h "$cache_file"; then
19911         cat confcache >"$cache_file"
19912       else
19913         case $cache_file in #(
19914         */* | ?:*)
19915           mv -f confcache "$cache_file"$$ &&
19916           mv -f "$cache_file"$$ "$cache_file" ;; #(
19917         *)
19918           mv -f confcache "$cache_file" ;;
19919         esac
19920       fi
19921     fi
19922   else
19923     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19924 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19925   fi
19926 fi
19927 rm -f confcache
19928
19929 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19930 # Let make expand exec_prefix.
19931 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19932
19933 DEFS=-DHAVE_CONFIG_H
19934
19935 ac_libobjs=
19936 ac_ltlibobjs=
19937 U=
19938 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19939   # 1. Remove the extension, and $U if already installed.
19940   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19941   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19942   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19943   #    will be set to the directory where LIBOBJS objects are built.
19944   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19945   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19946 done
19947 LIBOBJS=$ac_libobjs
19948
19949 LTLIBOBJS=$ac_ltlibobjs
19950
19951
19952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19953 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19954    if test -n "$am_sleep_pid"; then
19955      # Hide warnings about reused PIDs.
19956      wait $am_sleep_pid 2>/dev/null
19957    fi
19958    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19959 $as_echo "done" >&6; }
19960  if test -n "$EXEEXT"; then
19961   am__EXEEXT_TRUE=
19962   am__EXEEXT_FALSE='#'
19963 else
19964   am__EXEEXT_TRUE='#'
19965   am__EXEEXT_FALSE=
19966 fi
19967
19968 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19969   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19971 fi
19972 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19973   as_fn_error $? "conditional \"AMDEP\" was never defined.
19974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19975 fi
19976 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19977   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19979 fi
19980 if test -z "${EMBEDDED_CRACKLIB_TRUE}" && test -z "${EMBEDDED_CRACKLIB_FALSE}"; then
19981   as_fn_error $? "conditional \"EMBEDDED_CRACKLIB\" was never defined.
19982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19983 fi
19984 if test -z "${KRB5_USES_COM_ERR_TRUE}" && test -z "${KRB5_USES_COM_ERR_FALSE}"; then
19985   as_fn_error $? "conditional \"KRB5_USES_COM_ERR\" was never defined.
19986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19987 fi
19988
19989 : "${CONFIG_STATUS=./config.status}"
19990 ac_write_fail=0
19991 ac_clean_files_save=$ac_clean_files
19992 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19993 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19994 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19995 as_write_fail=0
19996 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19997 #! $SHELL
19998 # Generated by $as_me.
19999 # Run this file to recreate the current configuration.
20000 # Compiler output produced by configure, useful for debugging
20001 # configure, is in config.log if it exists.
20002
20003 debug=false
20004 ac_cs_recheck=false
20005 ac_cs_silent=false
20006
20007 SHELL=\${CONFIG_SHELL-$SHELL}
20008 export SHELL
20009 _ASEOF
20010 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20011 ## -------------------- ##
20012 ## M4sh Initialization. ##
20013 ## -------------------- ##
20014
20015 # Be more Bourne compatible
20016 DUALCASE=1; export DUALCASE # for MKS sh
20017 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20018   emulate sh
20019   NULLCMD=:
20020   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20021   # is contrary to our usage.  Disable this feature.
20022   alias -g '${1+"$@"}'='"$@"'
20023   setopt NO_GLOB_SUBST
20024 else
20025   case `(set -o) 2>/dev/null` in #(
20026   *posix*) :
20027     set -o posix ;; #(
20028   *) :
20029      ;;
20030 esac
20031 fi
20032
20033
20034 as_nl='
20035 '
20036 export as_nl
20037 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20038 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20039 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20040 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20041 # Prefer a ksh shell builtin over an external printf program on Solaris,
20042 # but without wasting forks for bash or zsh.
20043 if test -z "$BASH_VERSION$ZSH_VERSION" \
20044     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20045   as_echo='print -r --'
20046   as_echo_n='print -rn --'
20047 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20048   as_echo='printf %s\n'
20049   as_echo_n='printf %s'
20050 else
20051   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20052     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20053     as_echo_n='/usr/ucb/echo -n'
20054   else
20055     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20056     as_echo_n_body='eval
20057       arg=$1;
20058       case $arg in #(
20059       *"$as_nl"*)
20060         expr "X$arg" : "X\\(.*\\)$as_nl";
20061         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20062       esac;
20063       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20064     '
20065     export as_echo_n_body
20066     as_echo_n='sh -c $as_echo_n_body as_echo'
20067   fi
20068   export as_echo_body
20069   as_echo='sh -c $as_echo_body as_echo'
20070 fi
20071
20072 # The user is always right.
20073 if test "${PATH_SEPARATOR+set}" != set; then
20074   PATH_SEPARATOR=:
20075   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20076     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20077       PATH_SEPARATOR=';'
20078   }
20079 fi
20080
20081
20082 # IFS
20083 # We need space, tab and new line, in precisely that order.  Quoting is
20084 # there to prevent editors from complaining about space-tab.
20085 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20086 # splitting by setting IFS to empty value.)
20087 IFS=" ""        $as_nl"
20088
20089 # Find who we are.  Look in the path if we contain no directory separator.
20090 as_myself=
20091 case $0 in #((
20092   *[\\/]* ) as_myself=$0 ;;
20093   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20094 for as_dir in $PATH
20095 do
20096   IFS=$as_save_IFS
20097   test -z "$as_dir" && as_dir=.
20098     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20099   done
20100 IFS=$as_save_IFS
20101
20102      ;;
20103 esac
20104 # We did not find ourselves, most probably we were run as `sh COMMAND'
20105 # in which case we are not to be found in the path.
20106 if test "x$as_myself" = x; then
20107   as_myself=$0
20108 fi
20109 if test ! -f "$as_myself"; then
20110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20111   exit 1
20112 fi
20113
20114 # Unset variables that we do not need and which cause bugs (e.g. in
20115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20116 # suppresses any "Segmentation fault" message there.  '((' could
20117 # trigger a bug in pdksh 5.2.14.
20118 for as_var in BASH_ENV ENV MAIL MAILPATH
20119 do eval test x\${$as_var+set} = xset \
20120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20121 done
20122 PS1='$ '
20123 PS2='> '
20124 PS4='+ '
20125
20126 # NLS nuisances.
20127 LC_ALL=C
20128 export LC_ALL
20129 LANGUAGE=C
20130 export LANGUAGE
20131
20132 # CDPATH.
20133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20134
20135
20136 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20137 # ----------------------------------------
20138 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20139 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20140 # script with STATUS, using 1 if that was 0.
20141 as_fn_error ()
20142 {
20143   as_status=$1; test $as_status -eq 0 && as_status=1
20144   if test "$4"; then
20145     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20146     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20147   fi
20148   $as_echo "$as_me: error: $2" >&2
20149   as_fn_exit $as_status
20150 } # as_fn_error
20151
20152
20153 # as_fn_set_status STATUS
20154 # -----------------------
20155 # Set $? to STATUS, without forking.
20156 as_fn_set_status ()
20157 {
20158   return $1
20159 } # as_fn_set_status
20160
20161 # as_fn_exit STATUS
20162 # -----------------
20163 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20164 as_fn_exit ()
20165 {
20166   set +e
20167   as_fn_set_status $1
20168   exit $1
20169 } # as_fn_exit
20170
20171 # as_fn_unset VAR
20172 # ---------------
20173 # Portably unset VAR.
20174 as_fn_unset ()
20175 {
20176   { eval $1=; unset $1;}
20177 }
20178 as_unset=as_fn_unset
20179 # as_fn_append VAR VALUE
20180 # ----------------------
20181 # Append the text in VALUE to the end of the definition contained in VAR. Take
20182 # advantage of any shell optimizations that allow amortized linear growth over
20183 # repeated appends, instead of the typical quadratic growth present in naive
20184 # implementations.
20185 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20186   eval 'as_fn_append ()
20187   {
20188     eval $1+=\$2
20189   }'
20190 else
20191   as_fn_append ()
20192   {
20193     eval $1=\$$1\$2
20194   }
20195 fi # as_fn_append
20196
20197 # as_fn_arith ARG...
20198 # ------------------
20199 # Perform arithmetic evaluation on the ARGs, and store the result in the
20200 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20201 # must be portable across $(()) and expr.
20202 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20203   eval 'as_fn_arith ()
20204   {
20205     as_val=$(( $* ))
20206   }'
20207 else
20208   as_fn_arith ()
20209   {
20210     as_val=`expr "$@" || test $? -eq 1`
20211   }
20212 fi # as_fn_arith
20213
20214
20215 if expr a : '\(a\)' >/dev/null 2>&1 &&
20216    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20217   as_expr=expr
20218 else
20219   as_expr=false
20220 fi
20221
20222 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20223   as_basename=basename
20224 else
20225   as_basename=false
20226 fi
20227
20228 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20229   as_dirname=dirname
20230 else
20231   as_dirname=false
20232 fi
20233
20234 as_me=`$as_basename -- "$0" ||
20235 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20236          X"$0" : 'X\(//\)$' \| \
20237          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20238 $as_echo X/"$0" |
20239     sed '/^.*\/\([^/][^/]*\)\/*$/{
20240             s//\1/
20241             q
20242           }
20243           /^X\/\(\/\/\)$/{
20244             s//\1/
20245             q
20246           }
20247           /^X\/\(\/\).*/{
20248             s//\1/
20249             q
20250           }
20251           s/.*/./; q'`
20252
20253 # Avoid depending upon Character Ranges.
20254 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20255 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20256 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20257 as_cr_digits='0123456789'
20258 as_cr_alnum=$as_cr_Letters$as_cr_digits
20259
20260 ECHO_C= ECHO_N= ECHO_T=
20261 case `echo -n x` in #(((((
20262 -n*)
20263   case `echo 'xy\c'` in
20264   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20265   xy)  ECHO_C='\c';;
20266   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20267        ECHO_T=' ';;
20268   esac;;
20269 *)
20270   ECHO_N='-n';;
20271 esac
20272
20273 rm -f conf$$ conf$$.exe conf$$.file
20274 if test -d conf$$.dir; then
20275   rm -f conf$$.dir/conf$$.file
20276 else
20277   rm -f conf$$.dir
20278   mkdir conf$$.dir 2>/dev/null
20279 fi
20280 if (echo >conf$$.file) 2>/dev/null; then
20281   if ln -s conf$$.file conf$$ 2>/dev/null; then
20282     as_ln_s='ln -s'
20283     # ... but there are two gotchas:
20284     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20285     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20286     # In both cases, we have to default to `cp -pR'.
20287     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20288       as_ln_s='cp -pR'
20289   elif ln conf$$.file conf$$ 2>/dev/null; then
20290     as_ln_s=ln
20291   else
20292     as_ln_s='cp -pR'
20293   fi
20294 else
20295   as_ln_s='cp -pR'
20296 fi
20297 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20298 rmdir conf$$.dir 2>/dev/null
20299
20300
20301 # as_fn_mkdir_p
20302 # -------------
20303 # Create "$as_dir" as a directory, including parents if necessary.
20304 as_fn_mkdir_p ()
20305 {
20306
20307   case $as_dir in #(
20308   -*) as_dir=./$as_dir;;
20309   esac
20310   test -d "$as_dir" || eval $as_mkdir_p || {
20311     as_dirs=
20312     while :; do
20313       case $as_dir in #(
20314       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20315       *) as_qdir=$as_dir;;
20316       esac
20317       as_dirs="'$as_qdir' $as_dirs"
20318       as_dir=`$as_dirname -- "$as_dir" ||
20319 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20320          X"$as_dir" : 'X\(//\)[^/]' \| \
20321          X"$as_dir" : 'X\(//\)$' \| \
20322          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20323 $as_echo X"$as_dir" |
20324     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20325             s//\1/
20326             q
20327           }
20328           /^X\(\/\/\)[^/].*/{
20329             s//\1/
20330             q
20331           }
20332           /^X\(\/\/\)$/{
20333             s//\1/
20334             q
20335           }
20336           /^X\(\/\).*/{
20337             s//\1/
20338             q
20339           }
20340           s/.*/./; q'`
20341       test -d "$as_dir" && break
20342     done
20343     test -z "$as_dirs" || eval "mkdir $as_dirs"
20344   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20345
20346
20347 } # as_fn_mkdir_p
20348 if mkdir -p . 2>/dev/null; then
20349   as_mkdir_p='mkdir -p "$as_dir"'
20350 else
20351   test -d ./-p && rmdir ./-p
20352   as_mkdir_p=false
20353 fi
20354
20355
20356 # as_fn_executable_p FILE
20357 # -----------------------
20358 # Test if FILE is an executable regular file.
20359 as_fn_executable_p ()
20360 {
20361   test -f "$1" && test -x "$1"
20362 } # as_fn_executable_p
20363 as_test_x='test -x'
20364 as_executable_p=as_fn_executable_p
20365
20366 # Sed expression to map a string onto a valid CPP name.
20367 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20368
20369 # Sed expression to map a string onto a valid variable name.
20370 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20371
20372
20373 exec 6>&1
20374 ## ----------------------------------- ##
20375 ## Main body of $CONFIG_STATUS script. ##
20376 ## ----------------------------------- ##
20377 _ASEOF
20378 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20379
20380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20381 # Save the log message, to keep $0 and so on meaningful, and to
20382 # report actual input values of CONFIG_FILES etc. instead of their
20383 # values after options handling.
20384 ac_log="
20385 This file was extended by krb5-strength $as_me 3.1, which was
20386 generated by GNU Autoconf 2.69.  Invocation command line was
20387
20388   CONFIG_FILES    = $CONFIG_FILES
20389   CONFIG_HEADERS  = $CONFIG_HEADERS
20390   CONFIG_LINKS    = $CONFIG_LINKS
20391   CONFIG_COMMANDS = $CONFIG_COMMANDS
20392   $ $0 $@
20393
20394 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20395 "
20396
20397 _ACEOF
20398
20399 case $ac_config_files in *"
20400 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20401 esac
20402
20403 case $ac_config_headers in *"
20404 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20405 esac
20406
20407
20408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20409 # Files that config.status was made for.
20410 config_files="$ac_config_files"
20411 config_headers="$ac_config_headers"
20412 config_commands="$ac_config_commands"
20413
20414 _ACEOF
20415
20416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20417 ac_cs_usage="\
20418 \`$as_me' instantiates files and other configuration actions
20419 from templates according to the current configuration.  Unless the files
20420 and actions are specified as TAGs, all are instantiated by default.
20421
20422 Usage: $0 [OPTION]... [TAG]...
20423
20424   -h, --help       print this help, then exit
20425   -V, --version    print version number and configuration settings, then exit
20426       --config     print configuration, then exit
20427   -q, --quiet, --silent
20428                    do not print progress messages
20429   -d, --debug      don't remove temporary files
20430       --recheck    update $as_me by reconfiguring in the same conditions
20431       --file=FILE[:TEMPLATE]
20432                    instantiate the configuration file FILE
20433       --header=FILE[:TEMPLATE]
20434                    instantiate the configuration header FILE
20435
20436 Configuration files:
20437 $config_files
20438
20439 Configuration headers:
20440 $config_headers
20441
20442 Configuration commands:
20443 $config_commands
20444
20445 Report bugs to <eagle@eyrie.org>."
20446
20447 _ACEOF
20448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20449 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20450 ac_cs_version="\\
20451 krb5-strength config.status 3.1
20452 configured by $0, generated by GNU Autoconf 2.69,
20453   with options \\"\$ac_cs_config\\"
20454
20455 Copyright (C) 2012 Free Software Foundation, Inc.
20456 This config.status script is free software; the Free Software Foundation
20457 gives unlimited permission to copy, distribute and modify it."
20458
20459 ac_pwd='$ac_pwd'
20460 srcdir='$srcdir'
20461 INSTALL='$INSTALL'
20462 MKDIR_P='$MKDIR_P'
20463 AWK='$AWK'
20464 test -n "\$AWK" || AWK=awk
20465 _ACEOF
20466
20467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20468 # The default lists apply if the user does not specify any file.
20469 ac_need_defaults=:
20470 while test $# != 0
20471 do
20472   case $1 in
20473   --*=?*)
20474     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20475     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20476     ac_shift=:
20477     ;;
20478   --*=)
20479     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20480     ac_optarg=
20481     ac_shift=:
20482     ;;
20483   *)
20484     ac_option=$1
20485     ac_optarg=$2
20486     ac_shift=shift
20487     ;;
20488   esac
20489
20490   case $ac_option in
20491   # Handling of the options.
20492   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20493     ac_cs_recheck=: ;;
20494   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20495     $as_echo "$ac_cs_version"; exit ;;
20496   --config | --confi | --conf | --con | --co | --c )
20497     $as_echo "$ac_cs_config"; exit ;;
20498   --debug | --debu | --deb | --de | --d | -d )
20499     debug=: ;;
20500   --file | --fil | --fi | --f )
20501     $ac_shift
20502     case $ac_optarg in
20503     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20504     '') as_fn_error $? "missing file argument" ;;
20505     esac
20506     as_fn_append CONFIG_FILES " '$ac_optarg'"
20507     ac_need_defaults=false;;
20508   --header | --heade | --head | --hea )
20509     $ac_shift
20510     case $ac_optarg in
20511     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20512     esac
20513     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20514     ac_need_defaults=false;;
20515   --he | --h)
20516     # Conflict between --help and --header
20517     as_fn_error $? "ambiguous option: \`$1'
20518 Try \`$0 --help' for more information.";;
20519   --help | --hel | -h )
20520     $as_echo "$ac_cs_usage"; exit ;;
20521   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20522   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20523     ac_cs_silent=: ;;
20524
20525   # This is an error.
20526   -*) as_fn_error $? "unrecognized option: \`$1'
20527 Try \`$0 --help' for more information." ;;
20528
20529   *) as_fn_append ac_config_targets " $1"
20530      ac_need_defaults=false ;;
20531
20532   esac
20533   shift
20534 done
20535
20536 ac_configure_extra_args=
20537
20538 if $ac_cs_silent; then
20539   exec 6>/dev/null
20540   ac_configure_extra_args="$ac_configure_extra_args --silent"
20541 fi
20542
20543 _ACEOF
20544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20545 if \$ac_cs_recheck; then
20546   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20547   shift
20548   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20549   CONFIG_SHELL='$SHELL'
20550   export CONFIG_SHELL
20551   exec "\$@"
20552 fi
20553
20554 _ACEOF
20555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20556 exec 5>>config.log
20557 {
20558   echo
20559   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20560 ## Running $as_me. ##
20561 _ASBOX
20562   $as_echo "$ac_log"
20563 } >&5
20564
20565 _ACEOF
20566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20567 #
20568 # INIT-COMMANDS
20569 #
20570 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20571
20572
20573 # The HP-UX ksh and POSIX shell print the target directory to stdout
20574 # if CDPATH is set.
20575 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20576
20577 sed_quote_subst='$sed_quote_subst'
20578 double_quote_subst='$double_quote_subst'
20579 delay_variable_subst='$delay_variable_subst'
20580 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20581 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20582 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20583 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20584 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20585 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20586 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20587 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20588 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20589 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20590 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20591 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20592 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20593 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20594 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20595 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20596 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20597 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20598 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20599 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20600 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20601 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20602 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20603 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20604 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20605 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20606 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20607 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20608 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20609 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20610 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20611 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20612 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20613 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20614 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20615 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20616 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20617 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20618 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20619 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20620 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20621 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20622 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20623 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20624 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20625 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20626 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20627 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20628 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20629 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20630 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20631 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20632 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20633 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20634 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20635 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20636 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20637 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20638 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"`'
20639 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20640 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20641 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20642 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20643 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20644 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20645 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20646 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20647 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20648 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20649 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20650 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20651 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20652 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20653 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20654 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20655 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20656 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20657 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20658 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20659 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20660 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20661 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20662 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20663 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20664 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20665 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20666 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20667 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20668 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20669 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20670 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20671 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20672 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20673 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20674 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20675 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20676 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20677 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20678 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20679 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20680 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20681 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20682 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20683 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20684 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20685 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20686 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20687 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20688 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20689 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20690 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20691 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20692 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20693 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20694 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20695 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20696 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20697 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20698 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20699 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20700 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20701 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20702 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20703 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20704 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20705 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20706 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20707 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20708 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20709 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20710 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20711 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20712 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20713 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20714 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20715
20716 LTCC='$LTCC'
20717 LTCFLAGS='$LTCFLAGS'
20718 compiler='$compiler_DEFAULT'
20719
20720 # A function that is used when there is no print builtin or printf.
20721 func_fallback_echo ()
20722 {
20723   eval 'cat <<_LTECHO_EOF
20724 \$1
20725 _LTECHO_EOF'
20726 }
20727
20728 # Quote evaled strings.
20729 for var in SHELL \
20730 ECHO \
20731 PATH_SEPARATOR \
20732 SED \
20733 GREP \
20734 EGREP \
20735 FGREP \
20736 LD \
20737 NM \
20738 LN_S \
20739 lt_SP2NL \
20740 lt_NL2SP \
20741 reload_flag \
20742 OBJDUMP \
20743 deplibs_check_method \
20744 file_magic_cmd \
20745 file_magic_glob \
20746 want_nocaseglob \
20747 DLLTOOL \
20748 sharedlib_from_linklib_cmd \
20749 AR \
20750 AR_FLAGS \
20751 archiver_list_spec \
20752 STRIP \
20753 RANLIB \
20754 CC \
20755 CFLAGS \
20756 compiler \
20757 lt_cv_sys_global_symbol_pipe \
20758 lt_cv_sys_global_symbol_to_cdecl \
20759 lt_cv_sys_global_symbol_to_import \
20760 lt_cv_sys_global_symbol_to_c_name_address \
20761 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20762 lt_cv_nm_interface \
20763 nm_file_list_spec \
20764 lt_cv_truncate_bin \
20765 lt_prog_compiler_no_builtin_flag \
20766 lt_prog_compiler_pic \
20767 lt_prog_compiler_wl \
20768 lt_prog_compiler_static \
20769 lt_cv_prog_compiler_c_o \
20770 need_locks \
20771 MANIFEST_TOOL \
20772 DSYMUTIL \
20773 NMEDIT \
20774 LIPO \
20775 OTOOL \
20776 OTOOL64 \
20777 shrext_cmds \
20778 export_dynamic_flag_spec \
20779 whole_archive_flag_spec \
20780 compiler_needs_object \
20781 with_gnu_ld \
20782 allow_undefined_flag \
20783 no_undefined_flag \
20784 hardcode_libdir_flag_spec \
20785 hardcode_libdir_separator \
20786 exclude_expsyms \
20787 include_expsyms \
20788 file_list_spec \
20789 variables_saved_for_relink \
20790 libname_spec \
20791 library_names_spec \
20792 soname_spec \
20793 install_override_mode \
20794 finish_eval \
20795 old_striplib \
20796 striplib; do
20797     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20798     *[\\\\\\\`\\"\\\$]*)
20799       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20800       ;;
20801     *)
20802       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20803       ;;
20804     esac
20805 done
20806
20807 # Double-quote double-evaled strings.
20808 for var in reload_cmds \
20809 old_postinstall_cmds \
20810 old_postuninstall_cmds \
20811 old_archive_cmds \
20812 extract_expsyms_cmds \
20813 old_archive_from_new_cmds \
20814 old_archive_from_expsyms_cmds \
20815 archive_cmds \
20816 archive_expsym_cmds \
20817 module_cmds \
20818 module_expsym_cmds \
20819 export_symbols_cmds \
20820 prelink_cmds \
20821 postlink_cmds \
20822 postinstall_cmds \
20823 postuninstall_cmds \
20824 finish_cmds \
20825 sys_lib_search_path_spec \
20826 configure_time_dlsearch_path \
20827 configure_time_lt_sys_library_path; do
20828     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20829     *[\\\\\\\`\\"\\\$]*)
20830       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20831       ;;
20832     *)
20833       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20834       ;;
20835     esac
20836 done
20837
20838 ac_aux_dir='$ac_aux_dir'
20839
20840 # See if we are running on zsh, and set the options that allow our
20841 # commands through without removal of \ escapes INIT.
20842 if test -n "\${ZSH_VERSION+set}"; then
20843    setopt NO_GLOB_SUBST
20844 fi
20845
20846
20847     PACKAGE='$PACKAGE'
20848     VERSION='$VERSION'
20849     RM='$RM'
20850     ofile='$ofile'
20851
20852
20853
20854
20855 _ACEOF
20856
20857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20858
20859 # Handling of arguments.
20860 for ac_config_target in $ac_config_targets
20861 do
20862   case $ac_config_target in
20863     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20864     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20865     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20866     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20867
20868   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20869   esac
20870 done
20871
20872
20873 # If the user did not use the arguments to specify the items to instantiate,
20874 # then the envvar interface is used.  Set only those that are not.
20875 # We use the long form for the default assignment because of an extremely
20876 # bizarre bug on SunOS 4.1.3.
20877 if $ac_need_defaults; then
20878   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20879   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20880   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20881 fi
20882
20883 # Have a temporary directory for convenience.  Make it in the build tree
20884 # simply because there is no reason against having it here, and in addition,
20885 # creating and moving files from /tmp can sometimes cause problems.
20886 # Hook for its removal unless debugging.
20887 # Note that there is a small window in which the directory will not be cleaned:
20888 # after its creation but before its name has been assigned to `$tmp'.
20889 $debug ||
20890 {
20891   tmp= ac_tmp=
20892   trap 'exit_status=$?
20893   : "${ac_tmp:=$tmp}"
20894   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20895 ' 0
20896   trap 'as_fn_exit 1' 1 2 13 15
20897 }
20898 # Create a (secure) tmp directory for tmp files.
20899
20900 {
20901   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20902   test -d "$tmp"
20903 }  ||
20904 {
20905   tmp=./conf$$-$RANDOM
20906   (umask 077 && mkdir "$tmp")
20907 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20908 ac_tmp=$tmp
20909
20910 # Set up the scripts for CONFIG_FILES section.
20911 # No need to generate them if there are no CONFIG_FILES.
20912 # This happens for instance with `./config.status config.h'.
20913 if test -n "$CONFIG_FILES"; then
20914
20915
20916 ac_cr=`echo X | tr X '\015'`
20917 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20918 # But we know of no other shell where ac_cr would be empty at this
20919 # point, so we can use a bashism as a fallback.
20920 if test "x$ac_cr" = x; then
20921   eval ac_cr=\$\'\\r\'
20922 fi
20923 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20924 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20925   ac_cs_awk_cr='\\r'
20926 else
20927   ac_cs_awk_cr=$ac_cr
20928 fi
20929
20930 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20931 _ACEOF
20932
20933
20934 {
20935   echo "cat >conf$$subs.awk <<_ACEOF" &&
20936   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20937   echo "_ACEOF"
20938 } >conf$$subs.sh ||
20939   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20940 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20941 ac_delim='%!_!# '
20942 for ac_last_try in false false false false false :; do
20943   . ./conf$$subs.sh ||
20944     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20945
20946   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20947   if test $ac_delim_n = $ac_delim_num; then
20948     break
20949   elif $ac_last_try; then
20950     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20951   else
20952     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20953   fi
20954 done
20955 rm -f conf$$subs.sh
20956
20957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20958 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20959 _ACEOF
20960 sed -n '
20961 h
20962 s/^/S["/; s/!.*/"]=/
20963 p
20964 g
20965 s/^[^!]*!//
20966 :repl
20967 t repl
20968 s/'"$ac_delim"'$//
20969 t delim
20970 :nl
20971 h
20972 s/\(.\{148\}\)..*/\1/
20973 t more1
20974 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20975 p
20976 n
20977 b repl
20978 :more1
20979 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20980 p
20981 g
20982 s/.\{148\}//
20983 t nl
20984 :delim
20985 h
20986 s/\(.\{148\}\)..*/\1/
20987 t more2
20988 s/["\\]/\\&/g; s/^/"/; s/$/"/
20989 p
20990 b
20991 :more2
20992 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20993 p
20994 g
20995 s/.\{148\}//
20996 t delim
20997 ' <conf$$subs.awk | sed '
20998 /^[^""]/{
20999   N
21000   s/\n//
21001 }
21002 ' >>$CONFIG_STATUS || ac_write_fail=1
21003 rm -f conf$$subs.awk
21004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21005 _ACAWK
21006 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21007   for (key in S) S_is_set[key] = 1
21008   FS = "\a"
21009
21010 }
21011 {
21012   line = $ 0
21013   nfields = split(line, field, "@")
21014   substed = 0
21015   len = length(field[1])
21016   for (i = 2; i < nfields; i++) {
21017     key = field[i]
21018     keylen = length(key)
21019     if (S_is_set[key]) {
21020       value = S[key]
21021       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21022       len += length(value) + length(field[++i])
21023       substed = 1
21024     } else
21025       len += 1 + keylen
21026   }
21027
21028   print line
21029 }
21030
21031 _ACAWK
21032 _ACEOF
21033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21034 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21035   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21036 else
21037   cat
21038 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21039   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21040 _ACEOF
21041
21042 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21043 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21044 # trailing colons and then remove the whole line if VPATH becomes empty
21045 # (actually we leave an empty line to preserve line numbers).
21046 if test "x$srcdir" = x.; then
21047   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
21048 h
21049 s///
21050 s/^/:/
21051 s/[      ]*$/:/
21052 s/:\$(srcdir):/:/g
21053 s/:\${srcdir}:/:/g
21054 s/:@srcdir@:/:/g
21055 s/^:*//
21056 s/:*$//
21057 x
21058 s/\(=[   ]*\).*/\1/
21059 G
21060 s/\n//
21061 s/^[^=]*=[       ]*$//
21062 }'
21063 fi
21064
21065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21066 fi # test -n "$CONFIG_FILES"
21067
21068 # Set up the scripts for CONFIG_HEADERS section.
21069 # No need to generate them if there are no CONFIG_HEADERS.
21070 # This happens for instance with `./config.status Makefile'.
21071 if test -n "$CONFIG_HEADERS"; then
21072 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21073 BEGIN {
21074 _ACEOF
21075
21076 # Transform confdefs.h into an awk script `defines.awk', embedded as
21077 # here-document in config.status, that substitutes the proper values into
21078 # config.h.in to produce config.h.
21079
21080 # Create a delimiter string that does not exist in confdefs.h, to ease
21081 # handling of long lines.
21082 ac_delim='%!_!# '
21083 for ac_last_try in false false :; do
21084   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21085   if test -z "$ac_tt"; then
21086     break
21087   elif $ac_last_try; then
21088     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21089   else
21090     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21091   fi
21092 done
21093
21094 # For the awk script, D is an array of macro values keyed by name,
21095 # likewise P contains macro parameters if any.  Preserve backslash
21096 # newline sequences.
21097
21098 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21099 sed -n '
21100 s/.\{148\}/&'"$ac_delim"'/g
21101 t rset
21102 :rset
21103 s/^[     ]*#[    ]*define[       ][      ]*/ /
21104 t def
21105 d
21106 :def
21107 s/\\$//
21108 t bsnl
21109 s/["\\]/\\&/g
21110 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21111 D["\1"]=" \3"/p
21112 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
21113 d
21114 :bsnl
21115 s/["\\]/\\&/g
21116 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21117 D["\1"]=" \3\\\\\\n"\\/p
21118 t cont
21119 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21120 t cont
21121 d
21122 :cont
21123 n
21124 s/.\{148\}/&'"$ac_delim"'/g
21125 t clear
21126 :clear
21127 s/\\$//
21128 t bsnlc
21129 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21130 d
21131 :bsnlc
21132 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21133 b cont
21134 ' <confdefs.h | sed '
21135 s/'"$ac_delim"'/"\\\
21136 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21137
21138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21139   for (key in D) D_is_set[key] = 1
21140   FS = "\a"
21141 }
21142 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21143   line = \$ 0
21144   split(line, arg, " ")
21145   if (arg[1] == "#") {
21146     defundef = arg[2]
21147     mac1 = arg[3]
21148   } else {
21149     defundef = substr(arg[1], 2)
21150     mac1 = arg[2]
21151   }
21152   split(mac1, mac2, "(") #)
21153   macro = mac2[1]
21154   prefix = substr(line, 1, index(line, defundef) - 1)
21155   if (D_is_set[macro]) {
21156     # Preserve the white space surrounding the "#".
21157     print prefix "define", macro P[macro] D[macro]
21158     next
21159   } else {
21160     # Replace #undef with comments.  This is necessary, for example,
21161     # in the case of _POSIX_SOURCE, which is predefined and required
21162     # on some systems where configure will not decide to define it.
21163     if (defundef == "undef") {
21164       print "/*", prefix defundef, macro, "*/"
21165       next
21166     }
21167   }
21168 }
21169 { print }
21170 _ACAWK
21171 _ACEOF
21172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21173   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21174 fi # test -n "$CONFIG_HEADERS"
21175
21176
21177 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21178 shift
21179 for ac_tag
21180 do
21181   case $ac_tag in
21182   :[FHLC]) ac_mode=$ac_tag; continue;;
21183   esac
21184   case $ac_mode$ac_tag in
21185   :[FHL]*:*);;
21186   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21187   :[FH]-) ac_tag=-:-;;
21188   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21189   esac
21190   ac_save_IFS=$IFS
21191   IFS=:
21192   set x $ac_tag
21193   IFS=$ac_save_IFS
21194   shift
21195   ac_file=$1
21196   shift
21197
21198   case $ac_mode in
21199   :L) ac_source=$1;;
21200   :[FH])
21201     ac_file_inputs=
21202     for ac_f
21203     do
21204       case $ac_f in
21205       -) ac_f="$ac_tmp/stdin";;
21206       *) # Look for the file first in the build tree, then in the source tree
21207          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21208          # because $ac_f cannot contain `:'.
21209          test -f "$ac_f" ||
21210            case $ac_f in
21211            [\\/$]*) false;;
21212            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21213            esac ||
21214            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21215       esac
21216       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21217       as_fn_append ac_file_inputs " '$ac_f'"
21218     done
21219
21220     # Let's still pretend it is `configure' which instantiates (i.e., don't
21221     # use $as_me), people would be surprised to read:
21222     #    /* config.h.  Generated by config.status.  */
21223     configure_input='Generated from '`
21224           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21225         `' by configure.'
21226     if test x"$ac_file" != x-; then
21227       configure_input="$ac_file.  $configure_input"
21228       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21229 $as_echo "$as_me: creating $ac_file" >&6;}
21230     fi
21231     # Neutralize special characters interpreted by sed in replacement strings.
21232     case $configure_input in #(
21233     *\&* | *\|* | *\\* )
21234        ac_sed_conf_input=`$as_echo "$configure_input" |
21235        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21236     *) ac_sed_conf_input=$configure_input;;
21237     esac
21238
21239     case $ac_tag in
21240     *:-:* | *:-) cat >"$ac_tmp/stdin" \
21241       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21242     esac
21243     ;;
21244   esac
21245
21246   ac_dir=`$as_dirname -- "$ac_file" ||
21247 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21248          X"$ac_file" : 'X\(//\)[^/]' \| \
21249          X"$ac_file" : 'X\(//\)$' \| \
21250          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21251 $as_echo X"$ac_file" |
21252     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21253             s//\1/
21254             q
21255           }
21256           /^X\(\/\/\)[^/].*/{
21257             s//\1/
21258             q
21259           }
21260           /^X\(\/\/\)$/{
21261             s//\1/
21262             q
21263           }
21264           /^X\(\/\).*/{
21265             s//\1/
21266             q
21267           }
21268           s/.*/./; q'`
21269   as_dir="$ac_dir"; as_fn_mkdir_p
21270   ac_builddir=.
21271
21272 case "$ac_dir" in
21273 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21274 *)
21275   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21276   # A ".." for each directory in $ac_dir_suffix.
21277   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21278   case $ac_top_builddir_sub in
21279   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21280   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21281   esac ;;
21282 esac
21283 ac_abs_top_builddir=$ac_pwd
21284 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21285 # for backward compatibility:
21286 ac_top_builddir=$ac_top_build_prefix
21287
21288 case $srcdir in
21289   .)  # We are building in place.
21290     ac_srcdir=.
21291     ac_top_srcdir=$ac_top_builddir_sub
21292     ac_abs_top_srcdir=$ac_pwd ;;
21293   [\\/]* | ?:[\\/]* )  # Absolute name.
21294     ac_srcdir=$srcdir$ac_dir_suffix;
21295     ac_top_srcdir=$srcdir
21296     ac_abs_top_srcdir=$srcdir ;;
21297   *) # Relative name.
21298     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21299     ac_top_srcdir=$ac_top_build_prefix$srcdir
21300     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21301 esac
21302 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21303
21304
21305   case $ac_mode in
21306   :F)
21307   #
21308   # CONFIG_FILE
21309   #
21310
21311   case $INSTALL in
21312   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21313   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21314   esac
21315   ac_MKDIR_P=$MKDIR_P
21316   case $MKDIR_P in
21317   [\\/$]* | ?:[\\/]* ) ;;
21318   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21319   esac
21320 _ACEOF
21321
21322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21323 # If the template does not know about datarootdir, expand it.
21324 # FIXME: This hack should be removed a few years after 2.60.
21325 ac_datarootdir_hack=; ac_datarootdir_seen=
21326 ac_sed_dataroot='
21327 /datarootdir/ {
21328   p
21329   q
21330 }
21331 /@datadir@/p
21332 /@docdir@/p
21333 /@infodir@/p
21334 /@localedir@/p
21335 /@mandir@/p'
21336 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21337 *datarootdir*) ac_datarootdir_seen=yes;;
21338 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21339   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21340 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21341 _ACEOF
21342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21343   ac_datarootdir_hack='
21344   s&@datadir@&$datadir&g
21345   s&@docdir@&$docdir&g
21346   s&@infodir@&$infodir&g
21347   s&@localedir@&$localedir&g
21348   s&@mandir@&$mandir&g
21349   s&\\\${datarootdir}&$datarootdir&g' ;;
21350 esac
21351 _ACEOF
21352
21353 # Neutralize VPATH when `$srcdir' = `.'.
21354 # Shell code in configure.ac might set extrasub.
21355 # FIXME: do we really want to maintain this feature?
21356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21357 ac_sed_extra="$ac_vpsub
21358 $extrasub
21359 _ACEOF
21360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21361 :t
21362 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21363 s|@configure_input@|$ac_sed_conf_input|;t t
21364 s&@top_builddir@&$ac_top_builddir_sub&;t t
21365 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21366 s&@srcdir@&$ac_srcdir&;t t
21367 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21368 s&@top_srcdir@&$ac_top_srcdir&;t t
21369 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21370 s&@builddir@&$ac_builddir&;t t
21371 s&@abs_builddir@&$ac_abs_builddir&;t t
21372 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21373 s&@INSTALL@&$ac_INSTALL&;t t
21374 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21375 $ac_datarootdir_hack
21376 "
21377 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21378   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21379
21380 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21381   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21382   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
21383       "$ac_tmp/out"`; test -z "$ac_out"; } &&
21384   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21385 which seems to be undefined.  Please make sure it is defined" >&5
21386 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21387 which seems to be undefined.  Please make sure it is defined" >&2;}
21388
21389   rm -f "$ac_tmp/stdin"
21390   case $ac_file in
21391   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21392   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21393   esac \
21394   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21395  ;;
21396   :H)
21397   #
21398   # CONFIG_HEADER
21399   #
21400   if test x"$ac_file" != x-; then
21401     {
21402       $as_echo "/* $configure_input  */" \
21403       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21404     } >"$ac_tmp/config.h" \
21405       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21406     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21407       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21408 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21409     else
21410       rm -f "$ac_file"
21411       mv "$ac_tmp/config.h" "$ac_file" \
21412         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21413     fi
21414   else
21415     $as_echo "/* $configure_input  */" \
21416       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21417       || as_fn_error $? "could not create -" "$LINENO" 5
21418   fi
21419 # Compute "$ac_file"'s index in $config_headers.
21420 _am_arg="$ac_file"
21421 _am_stamp_count=1
21422 for _am_header in $config_headers :; do
21423   case $_am_header in
21424     $_am_arg | $_am_arg:* )
21425       break ;;
21426     * )
21427       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21428   esac
21429 done
21430 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21431 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21432          X"$_am_arg" : 'X\(//\)[^/]' \| \
21433          X"$_am_arg" : 'X\(//\)$' \| \
21434          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21435 $as_echo X"$_am_arg" |
21436     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21437             s//\1/
21438             q
21439           }
21440           /^X\(\/\/\)[^/].*/{
21441             s//\1/
21442             q
21443           }
21444           /^X\(\/\/\)$/{
21445             s//\1/
21446             q
21447           }
21448           /^X\(\/\).*/{
21449             s//\1/
21450             q
21451           }
21452           s/.*/./; q'`/stamp-h$_am_stamp_count
21453  ;;
21454
21455   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21456 $as_echo "$as_me: executing $ac_file commands" >&6;}
21457  ;;
21458   esac
21459
21460
21461   case $ac_file$ac_mode in
21462     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21463   # Older Autoconf quotes --file arguments for eval, but not when files
21464   # are listed without --file.  Let's play safe and only enable the eval
21465   # if we detect the quoting.
21466   case $CONFIG_FILES in
21467   *\'*) eval set x "$CONFIG_FILES" ;;
21468   *)   set x $CONFIG_FILES ;;
21469   esac
21470   shift
21471   for mf
21472   do
21473     # Strip MF so we end up with the name of the file.
21474     mf=`echo "$mf" | sed -e 's/:.*$//'`
21475     # Check whether this is an Automake generated Makefile or not.
21476     # We used to match only the files named 'Makefile.in', but
21477     # some people rename them; so instead we look at the file content.
21478     # Grep'ing the first line is not enough: some people post-process
21479     # each Makefile.in and add a new line on top of each file to say so.
21480     # Grep'ing the whole file is not good either: AIX grep has a line
21481     # limit of 2048, but all sed's we know have understand at least 4000.
21482     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21483       dirpart=`$as_dirname -- "$mf" ||
21484 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21485          X"$mf" : 'X\(//\)[^/]' \| \
21486          X"$mf" : 'X\(//\)$' \| \
21487          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21488 $as_echo X"$mf" |
21489     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21490             s//\1/
21491             q
21492           }
21493           /^X\(\/\/\)[^/].*/{
21494             s//\1/
21495             q
21496           }
21497           /^X\(\/\/\)$/{
21498             s//\1/
21499             q
21500           }
21501           /^X\(\/\).*/{
21502             s//\1/
21503             q
21504           }
21505           s/.*/./; q'`
21506     else
21507       continue
21508     fi
21509     # Extract the definition of DEPDIR, am__include, and am__quote
21510     # from the Makefile without running 'make'.
21511     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21512     test -z "$DEPDIR" && continue
21513     am__include=`sed -n 's/^am__include = //p' < "$mf"`
21514     test -z "$am__include" && continue
21515     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21516     # Find all dependency output files, they are included files with
21517     # $(DEPDIR) in their names.  We invoke sed twice because it is the
21518     # simplest approach to changing $(DEPDIR) to its actual value in the
21519     # expansion.
21520     for file in `sed -n "
21521       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21522          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21523       # Make sure the directory exists.
21524       test -f "$dirpart/$file" && continue
21525       fdir=`$as_dirname -- "$file" ||
21526 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21527          X"$file" : 'X\(//\)[^/]' \| \
21528          X"$file" : 'X\(//\)$' \| \
21529          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21530 $as_echo X"$file" |
21531     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21532             s//\1/
21533             q
21534           }
21535           /^X\(\/\/\)[^/].*/{
21536             s//\1/
21537             q
21538           }
21539           /^X\(\/\/\)$/{
21540             s//\1/
21541             q
21542           }
21543           /^X\(\/\).*/{
21544             s//\1/
21545             q
21546           }
21547           s/.*/./; q'`
21548       as_dir=$dirpart/$fdir; as_fn_mkdir_p
21549       # echo "creating $dirpart/$file"
21550       echo '# dummy' > "$dirpart/$file"
21551     done
21552   done
21553 }
21554  ;;
21555     "libtool":C)
21556
21557     # See if we are running on zsh, and set the options that allow our
21558     # commands through without removal of \ escapes.
21559     if test -n "${ZSH_VERSION+set}"; then
21560       setopt NO_GLOB_SUBST
21561     fi
21562
21563     cfgfile=${ofile}T
21564     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21565     $RM "$cfgfile"
21566
21567     cat <<_LT_EOF >> "$cfgfile"
21568 #! $SHELL
21569 # Generated automatically by $as_me ($PACKAGE) $VERSION
21570 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21571
21572 # Provide generalized library-building support services.
21573 # Written by Gordon Matzigkeit, 1996
21574
21575 # Copyright (C) 2014 Free Software Foundation, Inc.
21576 # This is free software; see the source for copying conditions.  There is NO
21577 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21578
21579 # GNU Libtool is free software; you can redistribute it and/or modify
21580 # it under the terms of the GNU General Public License as published by
21581 # the Free Software Foundation; either version 2 of of the License, or
21582 # (at your option) any later version.
21583 #
21584 # As a special exception to the GNU General Public License, if you
21585 # distribute this file as part of a program or library that is built
21586 # using GNU Libtool, you may include this file under the  same
21587 # distribution terms that you use for the rest of that program.
21588 #
21589 # GNU Libtool is distributed in the hope that it will be useful, but
21590 # WITHOUT ANY WARRANTY; without even the implied warranty of
21591 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21592 # GNU General Public License for more details.
21593 #
21594 # You should have received a copy of the GNU General Public License
21595 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
21596
21597
21598 # The names of the tagged configurations supported by this script.
21599 available_tags=''
21600
21601 # Configured defaults for sys_lib_dlsearch_path munging.
21602 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21603
21604 # ### BEGIN LIBTOOL CONFIG
21605
21606 # Whether or not to build static libraries.
21607 build_old_libs=$enable_static
21608
21609 # Which release of libtool.m4 was used?
21610 macro_version=$macro_version
21611 macro_revision=$macro_revision
21612
21613 # Whether or not to build shared libraries.
21614 build_libtool_libs=$enable_shared
21615
21616 # What type of objects to build.
21617 pic_mode=$pic_mode
21618
21619 # Whether or not to optimize for fast installation.
21620 fast_install=$enable_fast_install
21621
21622 # Shared archive member basename,for filename based shared library versioning on AIX.
21623 shared_archive_member_spec=$shared_archive_member_spec
21624
21625 # Shell to use when invoking shell scripts.
21626 SHELL=$lt_SHELL
21627
21628 # An echo program that protects backslashes.
21629 ECHO=$lt_ECHO
21630
21631 # The PATH separator for the build system.
21632 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21633
21634 # The host system.
21635 host_alias=$host_alias
21636 host=$host
21637 host_os=$host_os
21638
21639 # The build system.
21640 build_alias=$build_alias
21641 build=$build
21642 build_os=$build_os
21643
21644 # A sed program that does not truncate output.
21645 SED=$lt_SED
21646
21647 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21648 Xsed="\$SED -e 1s/^X//"
21649
21650 # A grep program that handles long lines.
21651 GREP=$lt_GREP
21652
21653 # An ERE matcher.
21654 EGREP=$lt_EGREP
21655
21656 # A literal string matcher.
21657 FGREP=$lt_FGREP
21658
21659 # A BSD- or MS-compatible name lister.
21660 NM=$lt_NM
21661
21662 # Whether we need soft or hard links.
21663 LN_S=$lt_LN_S
21664
21665 # What is the maximum length of a command?
21666 max_cmd_len=$max_cmd_len
21667
21668 # Object file suffix (normally "o").
21669 objext=$ac_objext
21670
21671 # Executable file suffix (normally "").
21672 exeext=$exeext
21673
21674 # whether the shell understands "unset".
21675 lt_unset=$lt_unset
21676
21677 # turn spaces into newlines.
21678 SP2NL=$lt_lt_SP2NL
21679
21680 # turn newlines into spaces.
21681 NL2SP=$lt_lt_NL2SP
21682
21683 # convert \$build file names to \$host format.
21684 to_host_file_cmd=$lt_cv_to_host_file_cmd
21685
21686 # convert \$build files to toolchain format.
21687 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21688
21689 # An object symbol dumper.
21690 OBJDUMP=$lt_OBJDUMP
21691
21692 # Method to check whether dependent libraries are shared objects.
21693 deplibs_check_method=$lt_deplibs_check_method
21694
21695 # Command to use when deplibs_check_method = "file_magic".
21696 file_magic_cmd=$lt_file_magic_cmd
21697
21698 # How to find potential files when deplibs_check_method = "file_magic".
21699 file_magic_glob=$lt_file_magic_glob
21700
21701 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21702 want_nocaseglob=$lt_want_nocaseglob
21703
21704 # DLL creation program.
21705 DLLTOOL=$lt_DLLTOOL
21706
21707 # Command to associate shared and link libraries.
21708 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21709
21710 # The archiver.
21711 AR=$lt_AR
21712
21713 # Flags to create an archive.
21714 AR_FLAGS=$lt_AR_FLAGS
21715
21716 # How to feed a file listing to the archiver.
21717 archiver_list_spec=$lt_archiver_list_spec
21718
21719 # A symbol stripping program.
21720 STRIP=$lt_STRIP
21721
21722 # Commands used to install an old-style archive.
21723 RANLIB=$lt_RANLIB
21724 old_postinstall_cmds=$lt_old_postinstall_cmds
21725 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21726
21727 # Whether to use a lock for old archive extraction.
21728 lock_old_archive_extraction=$lock_old_archive_extraction
21729
21730 # A C compiler.
21731 LTCC=$lt_CC
21732
21733 # LTCC compiler flags.
21734 LTCFLAGS=$lt_CFLAGS
21735
21736 # Take the output of nm and produce a listing of raw symbols and C names.
21737 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21738
21739 # Transform the output of nm in a proper C declaration.
21740 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21741
21742 # Transform the output of nm into a list of symbols to manually relocate.
21743 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21744
21745 # Transform the output of nm in a C name address pair.
21746 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21747
21748 # Transform the output of nm in a C name address pair when lib prefix is needed.
21749 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21750
21751 # The name lister interface.
21752 nm_interface=$lt_lt_cv_nm_interface
21753
21754 # Specify filename containing input files for \$NM.
21755 nm_file_list_spec=$lt_nm_file_list_spec
21756
21757 # The root where to search for dependent libraries,and where our libraries should be installed.
21758 lt_sysroot=$lt_sysroot
21759
21760 # Command to truncate a binary pipe.
21761 lt_truncate_bin=$lt_lt_cv_truncate_bin
21762
21763 # The name of the directory that contains temporary libtool files.
21764 objdir=$objdir
21765
21766 # Used to examine libraries when file_magic_cmd begins with "file".
21767 MAGIC_CMD=$MAGIC_CMD
21768
21769 # Must we lock files when doing compilation?
21770 need_locks=$lt_need_locks
21771
21772 # Manifest tool.
21773 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21774
21775 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21776 DSYMUTIL=$lt_DSYMUTIL
21777
21778 # Tool to change global to local symbols on Mac OS X.
21779 NMEDIT=$lt_NMEDIT
21780
21781 # Tool to manipulate fat objects and archives on Mac OS X.
21782 LIPO=$lt_LIPO
21783
21784 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21785 OTOOL=$lt_OTOOL
21786
21787 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21788 OTOOL64=$lt_OTOOL64
21789
21790 # Old archive suffix (normally "a").
21791 libext=$libext
21792
21793 # Shared library suffix (normally ".so").
21794 shrext_cmds=$lt_shrext_cmds
21795
21796 # The commands to extract the exported symbol list from a shared archive.
21797 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21798
21799 # Variables whose values should be saved in libtool wrapper scripts and
21800 # restored at link time.
21801 variables_saved_for_relink=$lt_variables_saved_for_relink
21802
21803 # Do we need the "lib" prefix for modules?
21804 need_lib_prefix=$need_lib_prefix
21805
21806 # Do we need a version for libraries?
21807 need_version=$need_version
21808
21809 # Library versioning type.
21810 version_type=$version_type
21811
21812 # Shared library runtime path variable.
21813 runpath_var=$runpath_var
21814
21815 # Shared library path variable.
21816 shlibpath_var=$shlibpath_var
21817
21818 # Is shlibpath searched before the hard-coded library search path?
21819 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21820
21821 # Format of library name prefix.
21822 libname_spec=$lt_libname_spec
21823
21824 # List of archive names.  First name is the real one, the rest are links.
21825 # The last name is the one that the linker finds with -lNAME
21826 library_names_spec=$lt_library_names_spec
21827
21828 # The coded name of the library, if different from the real name.
21829 soname_spec=$lt_soname_spec
21830
21831 # Permission mode override for installation of shared libraries.
21832 install_override_mode=$lt_install_override_mode
21833
21834 # Command to use after installation of a shared archive.
21835 postinstall_cmds=$lt_postinstall_cmds
21836
21837 # Command to use after uninstallation of a shared archive.
21838 postuninstall_cmds=$lt_postuninstall_cmds
21839
21840 # Commands used to finish a libtool library installation in a directory.
21841 finish_cmds=$lt_finish_cmds
21842
21843 # As "finish_cmds", except a single script fragment to be evaled but
21844 # not shown.
21845 finish_eval=$lt_finish_eval
21846
21847 # Whether we should hardcode library paths into libraries.
21848 hardcode_into_libs=$hardcode_into_libs
21849
21850 # Compile-time system search path for libraries.
21851 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21852
21853 # Detected run-time system search path for libraries.
21854 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21855
21856 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21857 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21858
21859 # Whether dlopen is supported.
21860 dlopen_support=$enable_dlopen
21861
21862 # Whether dlopen of programs is supported.
21863 dlopen_self=$enable_dlopen_self
21864
21865 # Whether dlopen of statically linked programs is supported.
21866 dlopen_self_static=$enable_dlopen_self_static
21867
21868 # Commands to strip libraries.
21869 old_striplib=$lt_old_striplib
21870 striplib=$lt_striplib
21871
21872
21873 # The linker used to build libraries.
21874 LD=$lt_LD
21875
21876 # How to create reloadable object files.
21877 reload_flag=$lt_reload_flag
21878 reload_cmds=$lt_reload_cmds
21879
21880 # Commands used to build an old-style archive.
21881 old_archive_cmds=$lt_old_archive_cmds
21882
21883 # A language specific compiler.
21884 CC=$lt_compiler
21885
21886 # Is the compiler the GNU compiler?
21887 with_gcc=$GCC
21888
21889 # Compiler flag to turn off builtin functions.
21890 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21891
21892 # Additional compiler flags for building library objects.
21893 pic_flag=$lt_lt_prog_compiler_pic
21894
21895 # How to pass a linker flag through the compiler.
21896 wl=$lt_lt_prog_compiler_wl
21897
21898 # Compiler flag to prevent dynamic linking.
21899 link_static_flag=$lt_lt_prog_compiler_static
21900
21901 # Does compiler simultaneously support -c and -o options?
21902 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21903
21904 # Whether or not to add -lc for building shared libraries.
21905 build_libtool_need_lc=$archive_cmds_need_lc
21906
21907 # Whether or not to disallow shared libs when runtime libs are static.
21908 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21909
21910 # Compiler flag to allow reflexive dlopens.
21911 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21912
21913 # Compiler flag to generate shared objects directly from archives.
21914 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21915
21916 # Whether the compiler copes with passing no objects directly.
21917 compiler_needs_object=$lt_compiler_needs_object
21918
21919 # Create an old-style archive from a shared archive.
21920 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21921
21922 # Create a temporary old-style archive to link instead of a shared archive.
21923 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21924
21925 # Commands used to build a shared archive.
21926 archive_cmds=$lt_archive_cmds
21927 archive_expsym_cmds=$lt_archive_expsym_cmds
21928
21929 # Commands used to build a loadable module if different from building
21930 # a shared archive.
21931 module_cmds=$lt_module_cmds
21932 module_expsym_cmds=$lt_module_expsym_cmds
21933
21934 # Whether we are building with GNU ld or not.
21935 with_gnu_ld=$lt_with_gnu_ld
21936
21937 # Flag that allows shared libraries with undefined symbols to be built.
21938 allow_undefined_flag=$lt_allow_undefined_flag
21939
21940 # Flag that enforces no undefined symbols.
21941 no_undefined_flag=$lt_no_undefined_flag
21942
21943 # Flag to hardcode \$libdir into a binary during linking.
21944 # This must work even if \$libdir does not exist
21945 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21946
21947 # Whether we need a single "-rpath" flag with a separated argument.
21948 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21949
21950 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21951 # DIR into the resulting binary.
21952 hardcode_direct=$hardcode_direct
21953
21954 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21955 # DIR into the resulting binary and the resulting library dependency is
21956 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21957 # library is relocated.
21958 hardcode_direct_absolute=$hardcode_direct_absolute
21959
21960 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21961 # into the resulting binary.
21962 hardcode_minus_L=$hardcode_minus_L
21963
21964 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21965 # into the resulting binary.
21966 hardcode_shlibpath_var=$hardcode_shlibpath_var
21967
21968 # Set to "yes" if building a shared library automatically hardcodes DIR
21969 # into the library and all subsequent libraries and executables linked
21970 # against it.
21971 hardcode_automatic=$hardcode_automatic
21972
21973 # Set to yes if linker adds runtime paths of dependent libraries
21974 # to runtime path list.
21975 inherit_rpath=$inherit_rpath
21976
21977 # Whether libtool must link a program against all its dependency libraries.
21978 link_all_deplibs=$link_all_deplibs
21979
21980 # Set to "yes" if exported symbols are required.
21981 always_export_symbols=$always_export_symbols
21982
21983 # The commands to list exported symbols.
21984 export_symbols_cmds=$lt_export_symbols_cmds
21985
21986 # Symbols that should not be listed in the preloaded symbols.
21987 exclude_expsyms=$lt_exclude_expsyms
21988
21989 # Symbols that must always be exported.
21990 include_expsyms=$lt_include_expsyms
21991
21992 # Commands necessary for linking programs (against libraries) with templates.
21993 prelink_cmds=$lt_prelink_cmds
21994
21995 # Commands necessary for finishing linking programs.
21996 postlink_cmds=$lt_postlink_cmds
21997
21998 # Specify filename containing input files.
21999 file_list_spec=$lt_file_list_spec
22000
22001 # How to hardcode a shared library path into an executable.
22002 hardcode_action=$hardcode_action
22003
22004 # ### END LIBTOOL CONFIG
22005
22006 _LT_EOF
22007
22008     cat <<'_LT_EOF' >> "$cfgfile"
22009
22010 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22011
22012 # func_munge_path_list VARIABLE PATH
22013 # -----------------------------------
22014 # VARIABLE is name of variable containing _space_ separated list of
22015 # directories to be munged by the contents of PATH, which is string
22016 # having a format:
22017 # "DIR[:DIR]:"
22018 #       string "DIR[ DIR]" will be prepended to VARIABLE
22019 # ":DIR[:DIR]"
22020 #       string "DIR[ DIR]" will be appended to VARIABLE
22021 # "DIRP[:DIRP]::[DIRA:]DIRA"
22022 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22023 #       "DIRA[ DIRA]" will be appended to VARIABLE
22024 # "DIR[:DIR]"
22025 #       VARIABLE will be replaced by "DIR[ DIR]"
22026 func_munge_path_list ()
22027 {
22028     case x$2 in
22029     x)
22030         ;;
22031     *:)
22032         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22033         ;;
22034     x:*)
22035         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22036         ;;
22037     *::*)
22038         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22039         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22040         ;;
22041     *)
22042         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22043         ;;
22044     esac
22045 }
22046
22047
22048 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22049 func_cc_basename ()
22050 {
22051     for cc_temp in $*""; do
22052       case $cc_temp in
22053         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22054         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22055         \-*) ;;
22056         *) break;;
22057       esac
22058     done
22059     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22060 }
22061
22062
22063 # ### END FUNCTIONS SHARED WITH CONFIGURE
22064
22065 _LT_EOF
22066
22067   case $host_os in
22068   aix3*)
22069     cat <<\_LT_EOF >> "$cfgfile"
22070 # AIX sometimes has problems with the GCC collect2 program.  For some
22071 # reason, if we set the COLLECT_NAMES environment variable, the problems
22072 # vanish in a puff of smoke.
22073 if test set != "${COLLECT_NAMES+set}"; then
22074   COLLECT_NAMES=
22075   export COLLECT_NAMES
22076 fi
22077 _LT_EOF
22078     ;;
22079   esac
22080
22081
22082 ltmain=$ac_aux_dir/ltmain.sh
22083
22084
22085   # We use sed instead of cat because bash on DJGPP gets confused if
22086   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22087   # text mode, it properly converts lines to CR/LF.  This bash problem
22088   # is reportedly fixed, but why not run on old versions too?
22089   sed '$q' "$ltmain" >> "$cfgfile" \
22090      || (rm -f "$cfgfile"; exit 1)
22091
22092    mv -f "$cfgfile" "$ofile" ||
22093     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22094   chmod +x "$ofile"
22095
22096  ;;
22097
22098   esac
22099 done # for ac_tag
22100
22101
22102 as_fn_exit 0
22103 _ACEOF
22104 ac_clean_files=$ac_clean_files_save
22105
22106 test $ac_write_fail = 0 ||
22107   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22108
22109
22110 # configure is writing to config.log, and then calls config.status.
22111 # config.status does its own redirection, appending to config.log.
22112 # Unfortunately, on DOS this fails, as config.log is still kept open
22113 # by configure, so config.status won't be able to write to it; its
22114 # output is simply discarded.  So we exec the FD to /dev/null,
22115 # effectively closing config.log, so it can be properly (re)opened and
22116 # appended to by config.status.  When coming back to configure, we
22117 # need to make the FD available again.
22118 if test "$no_create" != yes; then
22119   ac_cs_success=:
22120   ac_config_status_args=
22121   test "$silent" = yes &&
22122     ac_config_status_args="$ac_config_status_args --quiet"
22123   exec 5>/dev/null
22124   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22125   exec 5>>config.log
22126   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22127   # would make configure fail if this is the last instruction.
22128   $ac_cs_success || as_fn_exit 1
22129 fi
22130 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22131   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22132 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22133 fi
22134