]> eyrie.org Git - kerberos/krb5-strength.git/blob - configure
Merge branch 'debian' into squeeze
[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.0.
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.0'
594 PACKAGE_STRING='krb5-strength 3.0'
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
653 EMBEDDED_CRACKLIB_FALSE
654 EMBEDDED_CRACKLIB_TRUE
655 CRACKLIB_LIBS
656 CRACKLIB_LDFLAGS
657 CRACKLIB_CPPFLAGS
658 CDB_LIBS
659 CDB_LDFLAGS
660 CDB_CPPFLAGS
661 OTOOL64
662 OTOOL
663 LIPO
664 NMEDIT
665 DSYMUTIL
666 MANIFEST_TOOL
667 RANLIB
668 DLLTOOL
669 OBJDUMP
670 LN_S
671 NM
672 ac_ct_DUMPBIN
673 DUMPBIN
674 LD
675 FGREP
676 SED
677 host_os
678 host_vendor
679 host_cpu
680 host
681 build_os
682 build_vendor
683 build_cpu
684 build
685 LIBTOOL
686 ac_ct_AR
687 AR
688 EGREP
689 GREP
690 CPP
691 am__fastdepCC_FALSE
692 am__fastdepCC_TRUE
693 CCDEPMODE
694 am__nodep
695 AMDEPBACKSLASH
696 AMDEP_FALSE
697 AMDEP_TRUE
698 am__quote
699 am__include
700 DEPDIR
701 OBJEXT
702 EXEEXT
703 ac_ct_CC
704 CPPFLAGS
705 LDFLAGS
706 CFLAGS
707 CC
708 MAINT
709 MAINTAINER_MODE_FALSE
710 MAINTAINER_MODE_TRUE
711 AM_BACKSLASH
712 AM_DEFAULT_VERBOSITY
713 AM_DEFAULT_V
714 AM_V
715 am__untar
716 am__tar
717 AMTAR
718 am__leading_dot
719 SET_MAKE
720 AWK
721 mkdir_p
722 MKDIR_P
723 INSTALL_STRIP_PROGRAM
724 STRIP
725 install_sh
726 MAKEINFO
727 AUTOHEADER
728 AUTOMAKE
729 AUTOCONF
730 ACLOCAL
731 VERSION
732 PACKAGE
733 CYGPATH_W
734 am__isrc
735 INSTALL_DATA
736 INSTALL_SCRIPT
737 INSTALL_PROGRAM
738 target_alias
739 host_alias
740 build_alias
741 LIBS
742 ECHO_T
743 ECHO_N
744 ECHO_C
745 DEFS
746 mandir
747 localedir
748 libdir
749 psdir
750 pdfdir
751 dvidir
752 htmldir
753 infodir
754 docdir
755 oldincludedir
756 includedir
757 localstatedir
758 sharedstatedir
759 sysconfdir
760 datadir
761 datarootdir
762 libexecdir
763 sbindir
764 bindir
765 program_transform_name
766 prefix
767 exec_prefix
768 PACKAGE_URL
769 PACKAGE_BUGREPORT
770 PACKAGE_STRING
771 PACKAGE_VERSION
772 PACKAGE_TARNAME
773 PACKAGE_NAME
774 PATH_SEPARATOR
775 SHELL'
776 ac_subst_files=''
777 ac_user_opts='
778 enable_option_checking
779 enable_silent_rules
780 enable_maintainer_mode
781 enable_dependency_tracking
782 enable_largefile
783 enable_static
784 enable_shared
785 with_pic
786 enable_fast_install
787 with_gnu_ld
788 with_sysroot
789 enable_libtool_lock
790 with_tinycdb
791 with_tinycdb_include
792 with_tinycdb_lib
793 with_cracklib
794 with_cracklib_include
795 with_cracklib_lib
796 with_krb5
797 with_krb5_include
798 with_krb5_lib
799 enable_reduced_depends
800 with_sqlite
801 with_sqlite_include
802 with_sqlite_lib
803 '
804       ac_precious_vars='build_alias
805 host_alias
806 target_alias
807 CC
808 CFLAGS
809 LDFLAGS
810 LIBS
811 CPPFLAGS
812 CPP
813 PATH_KRB5_CONFIG
814 PKG_CONFIG
815 PKG_CONFIG_PATH
816 PKG_CONFIG_LIBDIR
817 SQLITE_CFLAGS
818 SQLITE_LIBS'
819
820
821 # Initialize some variables set by options.
822 ac_init_help=
823 ac_init_version=false
824 ac_unrecognized_opts=
825 ac_unrecognized_sep=
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
828 cache_file=/dev/null
829 exec_prefix=NONE
830 no_create=
831 no_recursion=
832 prefix=NONE
833 program_prefix=NONE
834 program_suffix=NONE
835 program_transform_name=s,x,x,
836 silent=
837 site=
838 srcdir=
839 verbose=
840 x_includes=NONE
841 x_libraries=NONE
842
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
861 htmldir='${docdir}'
862 dvidir='${docdir}'
863 pdfdir='${docdir}'
864 psdir='${docdir}'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
868
869 ac_prev=
870 ac_dashdash=
871 for ac_option
872 do
873   # If the previous option needs an argument, assign it.
874   if test -n "$ac_prev"; then
875     eval $ac_prev=\$ac_option
876     ac_prev=
877     continue
878   fi
879
880   case $ac_option in
881   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882   *=)   ac_optarg= ;;
883   *)    ac_optarg=yes ;;
884   esac
885
886   # Accept the important Cygnus configure options, so we can diagnose typos.
887
888   case $ac_dashdash$ac_option in
889   --)
890     ac_dashdash=yes ;;
891
892   -bindir | --bindir | --bindi | --bind | --bin | --bi)
893     ac_prev=bindir ;;
894   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895     bindir=$ac_optarg ;;
896
897   -build | --build | --buil | --bui | --bu)
898     ac_prev=build_alias ;;
899   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900     build_alias=$ac_optarg ;;
901
902   -cache-file | --cache-file | --cache-fil | --cache-fi \
903   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904     ac_prev=cache_file ;;
905   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907     cache_file=$ac_optarg ;;
908
909   --config-cache | -C)
910     cache_file=config.cache ;;
911
912   -datadir | --datadir | --datadi | --datad)
913     ac_prev=datadir ;;
914   -datadir=* | --datadir=* | --datadi=* | --datad=*)
915     datadir=$ac_optarg ;;
916
917   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918   | --dataroo | --dataro | --datar)
919     ac_prev=datarootdir ;;
920   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922     datarootdir=$ac_optarg ;;
923
924   -disable-* | --disable-*)
925     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926     # Reject names that are not valid shell variable names.
927     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928       as_fn_error $? "invalid feature name: $ac_useropt"
929     ac_useropt_orig=$ac_useropt
930     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931     case $ac_user_opts in
932       *"
933 "enable_$ac_useropt"
934 "*) ;;
935       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936          ac_unrecognized_sep=', ';;
937     esac
938     eval enable_$ac_useropt=no ;;
939
940   -docdir | --docdir | --docdi | --doc | --do)
941     ac_prev=docdir ;;
942   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943     docdir=$ac_optarg ;;
944
945   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946     ac_prev=dvidir ;;
947   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948     dvidir=$ac_optarg ;;
949
950   -enable-* | --enable-*)
951     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952     # Reject names that are not valid shell variable names.
953     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954       as_fn_error $? "invalid feature name: $ac_useropt"
955     ac_useropt_orig=$ac_useropt
956     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957     case $ac_user_opts in
958       *"
959 "enable_$ac_useropt"
960 "*) ;;
961       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962          ac_unrecognized_sep=', ';;
963     esac
964     eval enable_$ac_useropt=\$ac_optarg ;;
965
966   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968   | --exec | --exe | --ex)
969     ac_prev=exec_prefix ;;
970   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972   | --exec=* | --exe=* | --ex=*)
973     exec_prefix=$ac_optarg ;;
974
975   -gas | --gas | --ga | --g)
976     # Obsolete; use --with-gas.
977     with_gas=yes ;;
978
979   -help | --help | --hel | --he | -h)
980     ac_init_help=long ;;
981   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982     ac_init_help=recursive ;;
983   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984     ac_init_help=short ;;
985
986   -host | --host | --hos | --ho)
987     ac_prev=host_alias ;;
988   -host=* | --host=* | --hos=* | --ho=*)
989     host_alias=$ac_optarg ;;
990
991   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992     ac_prev=htmldir ;;
993   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994   | --ht=*)
995     htmldir=$ac_optarg ;;
996
997   -includedir | --includedir | --includedi | --included | --include \
998   | --includ | --inclu | --incl | --inc)
999     ac_prev=includedir ;;
1000   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001   | --includ=* | --inclu=* | --incl=* | --inc=*)
1002     includedir=$ac_optarg ;;
1003
1004   -infodir | --infodir | --infodi | --infod | --info | --inf)
1005     ac_prev=infodir ;;
1006   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007     infodir=$ac_optarg ;;
1008
1009   -libdir | --libdir | --libdi | --libd)
1010     ac_prev=libdir ;;
1011   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012     libdir=$ac_optarg ;;
1013
1014   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015   | --libexe | --libex | --libe)
1016     ac_prev=libexecdir ;;
1017   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018   | --libexe=* | --libex=* | --libe=*)
1019     libexecdir=$ac_optarg ;;
1020
1021   -localedir | --localedir | --localedi | --localed | --locale)
1022     ac_prev=localedir ;;
1023   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024     localedir=$ac_optarg ;;
1025
1026   -localstatedir | --localstatedir | --localstatedi | --localstated \
1027   | --localstate | --localstat | --localsta | --localst | --locals)
1028     ac_prev=localstatedir ;;
1029   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031     localstatedir=$ac_optarg ;;
1032
1033   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034     ac_prev=mandir ;;
1035   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036     mandir=$ac_optarg ;;
1037
1038   -nfp | --nfp | --nf)
1039     # Obsolete; use --without-fp.
1040     with_fp=no ;;
1041
1042   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043   | --no-cr | --no-c | -n)
1044     no_create=yes ;;
1045
1046   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048     no_recursion=yes ;;
1049
1050   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052   | --oldin | --oldi | --old | --ol | --o)
1053     ac_prev=oldincludedir ;;
1054   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057     oldincludedir=$ac_optarg ;;
1058
1059   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060     ac_prev=prefix ;;
1061   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062     prefix=$ac_optarg ;;
1063
1064   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065   | --program-pre | --program-pr | --program-p)
1066     ac_prev=program_prefix ;;
1067   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069     program_prefix=$ac_optarg ;;
1070
1071   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072   | --program-suf | --program-su | --program-s)
1073     ac_prev=program_suffix ;;
1074   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076     program_suffix=$ac_optarg ;;
1077
1078   -program-transform-name | --program-transform-name \
1079   | --program-transform-nam | --program-transform-na \
1080   | --program-transform-n | --program-transform- \
1081   | --program-transform | --program-transfor \
1082   | --program-transfo | --program-transf \
1083   | --program-trans | --program-tran \
1084   | --progr-tra | --program-tr | --program-t)
1085     ac_prev=program_transform_name ;;
1086   -program-transform-name=* | --program-transform-name=* \
1087   | --program-transform-nam=* | --program-transform-na=* \
1088   | --program-transform-n=* | --program-transform-=* \
1089   | --program-transform=* | --program-transfor=* \
1090   | --program-transfo=* | --program-transf=* \
1091   | --program-trans=* | --program-tran=* \
1092   | --progr-tra=* | --program-tr=* | --program-t=*)
1093     program_transform_name=$ac_optarg ;;
1094
1095   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096     ac_prev=pdfdir ;;
1097   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098     pdfdir=$ac_optarg ;;
1099
1100   -psdir | --psdir | --psdi | --psd | --ps)
1101     ac_prev=psdir ;;
1102   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103     psdir=$ac_optarg ;;
1104
1105   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106   | -silent | --silent | --silen | --sile | --sil)
1107     silent=yes ;;
1108
1109   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110     ac_prev=sbindir ;;
1111   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112   | --sbi=* | --sb=*)
1113     sbindir=$ac_optarg ;;
1114
1115   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117   | --sharedst | --shareds | --shared | --share | --shar \
1118   | --sha | --sh)
1119     ac_prev=sharedstatedir ;;
1120   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123   | --sha=* | --sh=*)
1124     sharedstatedir=$ac_optarg ;;
1125
1126   -site | --site | --sit)
1127     ac_prev=site ;;
1128   -site=* | --site=* | --sit=*)
1129     site=$ac_optarg ;;
1130
1131   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132     ac_prev=srcdir ;;
1133   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134     srcdir=$ac_optarg ;;
1135
1136   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137   | --syscon | --sysco | --sysc | --sys | --sy)
1138     ac_prev=sysconfdir ;;
1139   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141     sysconfdir=$ac_optarg ;;
1142
1143   -target | --target | --targe | --targ | --tar | --ta | --t)
1144     ac_prev=target_alias ;;
1145   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146     target_alias=$ac_optarg ;;
1147
1148   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149     verbose=yes ;;
1150
1151   -version | --version | --versio | --versi | --vers | -V)
1152     ac_init_version=: ;;
1153
1154   -with-* | --with-*)
1155     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156     # Reject names that are not valid shell variable names.
1157     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158       as_fn_error $? "invalid package name: $ac_useropt"
1159     ac_useropt_orig=$ac_useropt
1160     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161     case $ac_user_opts in
1162       *"
1163 "with_$ac_useropt"
1164 "*) ;;
1165       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166          ac_unrecognized_sep=', ';;
1167     esac
1168     eval with_$ac_useropt=\$ac_optarg ;;
1169
1170   -without-* | --without-*)
1171     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1182          ac_unrecognized_sep=', ';;
1183     esac
1184     eval with_$ac_useropt=no ;;
1185
1186   --x)
1187     # Obsolete; use --with-x.
1188     with_x=yes ;;
1189
1190   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191   | --x-incl | --x-inc | --x-in | --x-i)
1192     ac_prev=x_includes ;;
1193   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195     x_includes=$ac_optarg ;;
1196
1197   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199     ac_prev=x_libraries ;;
1200   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202     x_libraries=$ac_optarg ;;
1203
1204   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1205 Try \`$0 --help' for more information"
1206     ;;
1207
1208   *=*)
1209     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210     # Reject names that are not valid shell variable names.
1211     case $ac_envvar in #(
1212       '' | [0-9]* | *[!_$as_cr_alnum]* )
1213       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1214     esac
1215     eval $ac_envvar=\$ac_optarg
1216     export $ac_envvar ;;
1217
1218   *)
1219     # FIXME: should be removed in autoconf 3.0.
1220     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1224     ;;
1225
1226   esac
1227 done
1228
1229 if test -n "$ac_prev"; then
1230   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231   as_fn_error $? "missing argument to $ac_option"
1232 fi
1233
1234 if test -n "$ac_unrecognized_opts"; then
1235   case $enable_option_checking in
1236     no) ;;
1237     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1238     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239   esac
1240 fi
1241
1242 # Check all directory arguments for consistency.
1243 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244                 datadir sysconfdir sharedstatedir localstatedir includedir \
1245                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246                 libdir localedir mandir
1247 do
1248   eval ac_val=\$$ac_var
1249   # Remove trailing slashes.
1250   case $ac_val in
1251     */ )
1252       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253       eval $ac_var=\$ac_val;;
1254   esac
1255   # Be sure to have absolute directory names.
1256   case $ac_val in
1257     [\\/$]* | ?:[\\/]* )  continue;;
1258     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259   esac
1260   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1261 done
1262
1263 # There might be people who depend on the old broken behavior: `$host'
1264 # used to hold the argument of --host etc.
1265 # FIXME: To remove some day.
1266 build=$build_alias
1267 host=$host_alias
1268 target=$target_alias
1269
1270 # FIXME: To remove some day.
1271 if test "x$host_alias" != x; then
1272   if test "x$build_alias" = x; then
1273     cross_compiling=maybe
1274   elif test "x$build_alias" != "x$host_alias"; then
1275     cross_compiling=yes
1276   fi
1277 fi
1278
1279 ac_tool_prefix=
1280 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281
1282 test "$silent" = yes && exec 6>/dev/null
1283
1284
1285 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286 ac_ls_di=`ls -di .` &&
1287 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288   as_fn_error $? "working directory cannot be determined"
1289 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290   as_fn_error $? "pwd does not report name of working directory"
1291
1292
1293 # Find the source files, if location was not specified.
1294 if test -z "$srcdir"; then
1295   ac_srcdir_defaulted=yes
1296   # Try the directory containing this script, then the parent directory.
1297   ac_confdir=`$as_dirname -- "$as_myself" ||
1298 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299          X"$as_myself" : 'X\(//\)[^/]' \| \
1300          X"$as_myself" : 'X\(//\)$' \| \
1301          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302 $as_echo X"$as_myself" |
1303     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304             s//\1/
1305             q
1306           }
1307           /^X\(\/\/\)[^/].*/{
1308             s//\1/
1309             q
1310           }
1311           /^X\(\/\/\)$/{
1312             s//\1/
1313             q
1314           }
1315           /^X\(\/\).*/{
1316             s//\1/
1317             q
1318           }
1319           s/.*/./; q'`
1320   srcdir=$ac_confdir
1321   if test ! -r "$srcdir/$ac_unique_file"; then
1322     srcdir=..
1323   fi
1324 else
1325   ac_srcdir_defaulted=no
1326 fi
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1328   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1330 fi
1331 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332 ac_abs_confdir=`(
1333         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334         pwd)`
1335 # When building in place, set srcdir=.
1336 if test "$ac_abs_confdir" = "$ac_pwd"; then
1337   srcdir=.
1338 fi
1339 # Remove unnecessary trailing slashes from srcdir.
1340 # Double slashes in file names in object file debugging info
1341 # mess up M-x gdb in Emacs.
1342 case $srcdir in
1343 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344 esac
1345 for ac_var in $ac_precious_vars; do
1346   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347   eval ac_env_${ac_var}_value=\$${ac_var}
1348   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350 done
1351
1352 #
1353 # Report the --help message.
1354 #
1355 if test "$ac_init_help" = "long"; then
1356   # Omit some internal or obsolete options to make the list less imposing.
1357   # This message is too long to be a string in the A/UX 3.1 sh.
1358   cat <<_ACEOF
1359 \`configure' configures krb5-strength 3.0 to adapt to many kinds of systems.
1360
1361 Usage: $0 [OPTION]... [VAR=VALUE]...
1362
1363 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364 VAR=VALUE.  See below for descriptions of some of the useful variables.
1365
1366 Defaults for the options are specified in brackets.
1367
1368 Configuration:
1369   -h, --help              display this help and exit
1370       --help=short        display options specific to this package
1371       --help=recursive    display the short help of all the included packages
1372   -V, --version           display version information and exit
1373   -q, --quiet, --silent   do not print \`checking ...' messages
1374       --cache-file=FILE   cache test results in FILE [disabled]
1375   -C, --config-cache      alias for \`--cache-file=config.cache'
1376   -n, --no-create         do not create output files
1377       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1378
1379 Installation directories:
1380   --prefix=PREFIX         install architecture-independent files in PREFIX
1381                           [$ac_default_prefix]
1382   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1383                           [PREFIX]
1384
1385 By default, \`make install' will install all the files in
1386 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1387 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388 for instance \`--prefix=\$HOME'.
1389
1390 For better control, use the options below.
1391
1392 Fine tuning of the installation directories:
1393   --bindir=DIR            user executables [EPREFIX/bin]
1394   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1395   --libexecdir=DIR        program executables [EPREFIX/libexec]
1396   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1397   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1398   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1399   --libdir=DIR            object code libraries [EPREFIX/lib]
1400   --includedir=DIR        C header files [PREFIX/include]
1401   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1402   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1403   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1404   --infodir=DIR           info documentation [DATAROOTDIR/info]
1405   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1406   --mandir=DIR            man documentation [DATAROOTDIR/man]
1407   --docdir=DIR            documentation root [DATAROOTDIR/doc/krb5-strength]
1408   --htmldir=DIR           html documentation [DOCDIR]
1409   --dvidir=DIR            dvi documentation [DOCDIR]
1410   --pdfdir=DIR            pdf documentation [DOCDIR]
1411   --psdir=DIR             ps documentation [DOCDIR]
1412 _ACEOF
1413
1414   cat <<\_ACEOF
1415
1416 Program names:
1417   --program-prefix=PREFIX            prepend PREFIX to installed program names
1418   --program-suffix=SUFFIX            append SUFFIX to installed program names
1419   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1420
1421 System types:
1422   --build=BUILD     configure for building on BUILD [guessed]
1423   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1424 _ACEOF
1425 fi
1426
1427 if test -n "$ac_init_help"; then
1428   case $ac_init_help in
1429      short | recursive ) echo "Configuration of krb5-strength 3.0:";;
1430    esac
1431   cat <<\_ACEOF
1432
1433 Optional Features:
1434   --disable-option-checking  ignore unrecognized --enable/--with options
1435   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1436   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1437   --enable-silent-rules   less verbose build output (undo: "make V=1")
1438   --disable-silent-rules  verbose build output (undo: "make V=0")
1439   --enable-maintainer-mode
1440                           enable make rules and dependencies not useful (and
1441                           sometimes confusing) to the casual installer
1442   --enable-dependency-tracking
1443                           do not reject slow dependency extractors
1444   --disable-dependency-tracking
1445                           speeds up one-time build
1446   --disable-largefile     omit support for large files
1447   --enable-static[=PKGS]  build static libraries [default=no]
1448   --enable-shared[=PKGS]  build shared libraries [default=yes]
1449   --enable-fast-install[=PKGS]
1450                           optimize for fast installation [default=yes]
1451   --disable-libtool-lock  avoid locking (might break parallel builds)
1452   --enable-reduced-depends
1453                           Try to minimize shared library dependencies
1454
1455 Optional Packages:
1456   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1457   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1458   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1459                           both]
1460   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1461   --with-sysroot=DIR Search for dependent libraries within DIR
1462                         (or the compiler's sysroot if not specified).
1463   --with-tinycdb[=DIR]    Location of TinyCDB headers and libraries
1464   --with-tinycdb-include=DIR
1465                           Location of TinyCDB headers
1466   --with-tinycdb-lib=DIR  Location of TinyCDB libraries
1467   --with-cracklib[=DIR]   Use system CrackLib instead of embedded copy
1468   --with-cracklib-include=DIR
1469                           Location of CrackLib headers
1470   --with-cracklib-lib=DIR Location of cracklib libraries
1471   --with-krb5=DIR         Location of Kerberos headers and libraries
1472   --with-krb5-include=DIR Location of Kerberos headers
1473   --with-krb5-lib=DIR     Location of Kerberos libraries
1474   --with-sqlite[=DIR]     Location of SQLite headers and libraries
1475   --with-sqlite-include=DIR
1476                           Location of SQLite headers
1477   --with-sqlite-lib=DIR   Location of SQLite libraries
1478
1479 Some influential environment variables:
1480   CC          C compiler command
1481   CFLAGS      C compiler flags
1482   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1483               nonstandard directory <lib dir>
1484   LIBS        libraries to pass to the linker, e.g. -l<library>
1485   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1486               you have headers in a nonstandard directory <include dir>
1487   CPP         C preprocessor
1488   PATH_KRB5_CONFIG
1489               Path to krb5-config
1490   PKG_CONFIG  path to pkg-config utility
1491   PKG_CONFIG_PATH
1492               directories to add to pkg-config's search path
1493   PKG_CONFIG_LIBDIR
1494               path overriding pkg-config's built-in search path
1495   SQLITE_CFLAGS
1496               C compiler flags for SQLITE, overriding pkg-config
1497   SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
1498
1499 Use these variables to override the choices made by `configure' or to help
1500 it to find libraries and programs with nonstandard names/locations.
1501
1502 Report bugs to <eagle@eyrie.org>.
1503 _ACEOF
1504 ac_status=$?
1505 fi
1506
1507 if test "$ac_init_help" = "recursive"; then
1508   # If there are subdirs, report their specific --help.
1509   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1510     test -d "$ac_dir" ||
1511       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1512       continue
1513     ac_builddir=.
1514
1515 case "$ac_dir" in
1516 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *)
1518   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1519   # A ".." for each directory in $ac_dir_suffix.
1520   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1521   case $ac_top_builddir_sub in
1522   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1524   esac ;;
1525 esac
1526 ac_abs_top_builddir=$ac_pwd
1527 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1528 # for backward compatibility:
1529 ac_top_builddir=$ac_top_build_prefix
1530
1531 case $srcdir in
1532   .)  # We are building in place.
1533     ac_srcdir=.
1534     ac_top_srcdir=$ac_top_builddir_sub
1535     ac_abs_top_srcdir=$ac_pwd ;;
1536   [\\/]* | ?:[\\/]* )  # Absolute name.
1537     ac_srcdir=$srcdir$ac_dir_suffix;
1538     ac_top_srcdir=$srcdir
1539     ac_abs_top_srcdir=$srcdir ;;
1540   *) # Relative name.
1541     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1542     ac_top_srcdir=$ac_top_build_prefix$srcdir
1543     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1544 esac
1545 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546
1547     cd "$ac_dir" || { ac_status=$?; continue; }
1548     # Check for guested configure.
1549     if test -f "$ac_srcdir/configure.gnu"; then
1550       echo &&
1551       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1552     elif test -f "$ac_srcdir/configure"; then
1553       echo &&
1554       $SHELL "$ac_srcdir/configure" --help=recursive
1555     else
1556       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1557     fi || ac_status=$?
1558     cd "$ac_pwd" || { ac_status=$?; break; }
1559   done
1560 fi
1561
1562 test -n "$ac_init_help" && exit $ac_status
1563 if $ac_init_version; then
1564   cat <<\_ACEOF
1565 krb5-strength configure 3.0
1566 generated by GNU Autoconf 2.69
1567
1568 Copyright (C) 2012 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1571 _ACEOF
1572   exit
1573 fi
1574
1575 ## ------------------------ ##
1576 ## Autoconf initialization. ##
1577 ## ------------------------ ##
1578
1579 # ac_fn_c_try_compile LINENO
1580 # --------------------------
1581 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1582 ac_fn_c_try_compile ()
1583 {
1584   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585   rm -f conftest.$ac_objext
1586   if { { ac_try="$ac_compile"
1587 case "(($ac_try" in
1588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589   *) ac_try_echo=$ac_try;;
1590 esac
1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 $as_echo "$ac_try_echo"; } >&5
1593   (eval "$ac_compile") 2>conftest.err
1594   ac_status=$?
1595   if test -s conftest.err; then
1596     grep -v '^ *+' conftest.err >conftest.er1
1597     cat conftest.er1 >&5
1598     mv -f conftest.er1 conftest.err
1599   fi
1600   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601   test $ac_status = 0; } && {
1602          test -z "$ac_c_werror_flag" ||
1603          test ! -s conftest.err
1604        } && test -s conftest.$ac_objext; then :
1605   ac_retval=0
1606 else
1607   $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1609
1610         ac_retval=1
1611 fi
1612   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613   as_fn_set_status $ac_retval
1614
1615 } # ac_fn_c_try_compile
1616
1617 # ac_fn_c_try_cpp LINENO
1618 # ----------------------
1619 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1620 ac_fn_c_try_cpp ()
1621 {
1622   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623   if { { ac_try="$ac_cpp conftest.$ac_ext"
1624 case "(($ac_try" in
1625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626   *) ac_try_echo=$ac_try;;
1627 esac
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1631   ac_status=$?
1632   if test -s conftest.err; then
1633     grep -v '^ *+' conftest.err >conftest.er1
1634     cat conftest.er1 >&5
1635     mv -f conftest.er1 conftest.err
1636   fi
1637   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638   test $ac_status = 0; } > conftest.i && {
1639          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1640          test ! -s conftest.err
1641        }; then :
1642   ac_retval=0
1643 else
1644   $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1646
1647     ac_retval=1
1648 fi
1649   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650   as_fn_set_status $ac_retval
1651
1652 } # ac_fn_c_try_cpp
1653
1654 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1655 # -------------------------------------------------------
1656 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1657 # the include files in INCLUDES and setting the cache variable VAR
1658 # accordingly.
1659 ac_fn_c_check_header_mongrel ()
1660 {
1661   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662   if eval \${$3+:} false; then :
1663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1664 $as_echo_n "checking for $2... " >&6; }
1665 if eval \${$3+:} false; then :
1666   $as_echo_n "(cached) " >&6
1667 fi
1668 eval ac_res=\$$3
1669                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670 $as_echo "$ac_res" >&6; }
1671 else
1672   # Is the header compilable?
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1674 $as_echo_n "checking $2 usability... " >&6; }
1675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676 /* end confdefs.h.  */
1677 $4
1678 #include <$2>
1679 _ACEOF
1680 if ac_fn_c_try_compile "$LINENO"; then :
1681   ac_header_compiler=yes
1682 else
1683   ac_header_compiler=no
1684 fi
1685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1687 $as_echo "$ac_header_compiler" >&6; }
1688
1689 # Is the header present?
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1691 $as_echo_n "checking $2 presence... " >&6; }
1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h.  */
1694 #include <$2>
1695 _ACEOF
1696 if ac_fn_c_try_cpp "$LINENO"; then :
1697   ac_header_preproc=yes
1698 else
1699   ac_header_preproc=no
1700 fi
1701 rm -f conftest.err conftest.i conftest.$ac_ext
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1703 $as_echo "$ac_header_preproc" >&6; }
1704
1705 # So?  What about this header?
1706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1707   yes:no: )
1708     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1709 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1710     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1711 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1712     ;;
1713   no:yes:* )
1714     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1715 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1716     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1717 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1718     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1719 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1720     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1721 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1722     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1723 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1724 ( $as_echo "## ------------------------------ ##
1725 ## Report this to eagle@eyrie.org ##
1726 ## ------------------------------ ##"
1727      ) | sed "s/^/$as_me: WARNING:     /" >&2
1728     ;;
1729 esac
1730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 $as_echo_n "checking for $2... " >&6; }
1732 if eval \${$3+:} false; then :
1733   $as_echo_n "(cached) " >&6
1734 else
1735   eval "$3=\$ac_header_compiler"
1736 fi
1737 eval ac_res=\$$3
1738                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739 $as_echo "$ac_res" >&6; }
1740 fi
1741   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742
1743 } # ac_fn_c_check_header_mongrel
1744
1745 # ac_fn_c_try_run LINENO
1746 # ----------------------
1747 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1748 # that executables *can* be run.
1749 ac_fn_c_try_run ()
1750 {
1751   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752   if { { ac_try="$ac_link"
1753 case "(($ac_try" in
1754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755   *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759   (eval "$ac_link") 2>&5
1760   ac_status=$?
1761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1763   { { case "(($ac_try" in
1764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765   *) ac_try_echo=$ac_try;;
1766 esac
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769   (eval "$ac_try") 2>&5
1770   ac_status=$?
1771   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772   test $ac_status = 0; }; }; then :
1773   ac_retval=0
1774 else
1775   $as_echo "$as_me: program exited with status $ac_status" >&5
1776        $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1778
1779        ac_retval=$ac_status
1780 fi
1781   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1782   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783   as_fn_set_status $ac_retval
1784
1785 } # ac_fn_c_try_run
1786
1787 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1788 # -------------------------------------------------------
1789 # Tests whether HEADER exists and can be compiled using the include files in
1790 # INCLUDES, setting the cache variable VAR accordingly.
1791 ac_fn_c_check_header_compile ()
1792 {
1793   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if eval \${$3+:} false; then :
1797   $as_echo_n "(cached) " >&6
1798 else
1799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h.  */
1801 $4
1802 #include <$2>
1803 _ACEOF
1804 if ac_fn_c_try_compile "$LINENO"; then :
1805   eval "$3=yes"
1806 else
1807   eval "$3=no"
1808 fi
1809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810 fi
1811 eval ac_res=\$$3
1812                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 $as_echo "$ac_res" >&6; }
1814   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815
1816 } # ac_fn_c_check_header_compile
1817
1818 # ac_fn_c_try_link LINENO
1819 # -----------------------
1820 # Try to link conftest.$ac_ext, and return whether this succeeded.
1821 ac_fn_c_try_link ()
1822 {
1823   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824   rm -f conftest.$ac_objext conftest$ac_exeext
1825   if { { ac_try="$ac_link"
1826 case "(($ac_try" in
1827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828   *) ac_try_echo=$ac_try;;
1829 esac
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832   (eval "$ac_link") 2>conftest.err
1833   ac_status=$?
1834   if test -s conftest.err; then
1835     grep -v '^ *+' conftest.err >conftest.er1
1836     cat conftest.er1 >&5
1837     mv -f conftest.er1 conftest.err
1838   fi
1839   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840   test $ac_status = 0; } && {
1841          test -z "$ac_c_werror_flag" ||
1842          test ! -s conftest.err
1843        } && test -s conftest$ac_exeext && {
1844          test "$cross_compiling" = yes ||
1845          test -x conftest$ac_exeext
1846        }; then :
1847   ac_retval=0
1848 else
1849   $as_echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1851
1852         ac_retval=1
1853 fi
1854   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1855   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1856   # interfere with the next link command; also delete a directory that is
1857   # left behind by Apple's compiler.  We do this before executing the actions.
1858   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1859   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860   as_fn_set_status $ac_retval
1861
1862 } # ac_fn_c_try_link
1863
1864 # ac_fn_c_check_func LINENO FUNC VAR
1865 # ----------------------------------
1866 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1867 ac_fn_c_check_func ()
1868 {
1869   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if eval \${$3+:} false; then :
1873   $as_echo_n "(cached) " >&6
1874 else
1875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h.  */
1877 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1878    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1879 #define $2 innocuous_$2
1880
1881 /* System header to define __stub macros and hopefully few prototypes,
1882     which can conflict with char $2 (); below.
1883     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1884     <limits.h> exists even on freestanding compilers.  */
1885
1886 #ifdef __STDC__
1887 # include <limits.h>
1888 #else
1889 # include <assert.h>
1890 #endif
1891
1892 #undef $2
1893
1894 /* Override any GCC internal prototype to avoid an error.
1895    Use char because int might match the return type of a GCC
1896    builtin and then its argument prototype would still apply.  */
1897 #ifdef __cplusplus
1898 extern "C"
1899 #endif
1900 char $2 ();
1901 /* The GNU C library defines this for functions which it implements
1902     to always fail with ENOSYS.  Some functions are actually named
1903     something starting with __ and the normal name is an alias.  */
1904 #if defined __stub_$2 || defined __stub___$2
1905 choke me
1906 #endif
1907
1908 int
1909 main ()
1910 {
1911 return $2 ();
1912   ;
1913   return 0;
1914 }
1915 _ACEOF
1916 if ac_fn_c_try_link "$LINENO"; then :
1917   eval "$3=yes"
1918 else
1919   eval "$3=no"
1920 fi
1921 rm -f core conftest.err conftest.$ac_objext \
1922     conftest$ac_exeext conftest.$ac_ext
1923 fi
1924 eval ac_res=\$$3
1925                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1926 $as_echo "$ac_res" >&6; }
1927   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928
1929 } # ac_fn_c_check_func
1930
1931 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1932 # --------------------------------------------
1933 # Tries to find the compile-time value of EXPR in a program that includes
1934 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1935 # computed
1936 ac_fn_c_compute_int ()
1937 {
1938   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939   if test "$cross_compiling" = yes; then
1940     # Depending upon the size, compute the lo and hi bounds.
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h.  */
1943 $4
1944 int
1945 main ()
1946 {
1947 static int test_array [1 - 2 * !(($2) >= 0)];
1948 test_array [0] = 0;
1949 return test_array [0];
1950
1951   ;
1952   return 0;
1953 }
1954 _ACEOF
1955 if ac_fn_c_try_compile "$LINENO"; then :
1956   ac_lo=0 ac_mid=0
1957   while :; do
1958     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h.  */
1960 $4
1961 int
1962 main ()
1963 {
1964 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1965 test_array [0] = 0;
1966 return test_array [0];
1967
1968   ;
1969   return 0;
1970 }
1971 _ACEOF
1972 if ac_fn_c_try_compile "$LINENO"; then :
1973   ac_hi=$ac_mid; break
1974 else
1975   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1976                         if test $ac_lo -le $ac_mid; then
1977                           ac_lo= ac_hi=
1978                           break
1979                         fi
1980                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1981 fi
1982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983   done
1984 else
1985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h.  */
1987 $4
1988 int
1989 main ()
1990 {
1991 static int test_array [1 - 2 * !(($2) < 0)];
1992 test_array [0] = 0;
1993 return test_array [0];
1994
1995   ;
1996   return 0;
1997 }
1998 _ACEOF
1999 if ac_fn_c_try_compile "$LINENO"; then :
2000   ac_hi=-1 ac_mid=-1
2001   while :; do
2002     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h.  */
2004 $4
2005 int
2006 main ()
2007 {
2008 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2009 test_array [0] = 0;
2010 return test_array [0];
2011
2012   ;
2013   return 0;
2014 }
2015 _ACEOF
2016 if ac_fn_c_try_compile "$LINENO"; then :
2017   ac_lo=$ac_mid; break
2018 else
2019   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2020                         if test $ac_mid -le $ac_hi; then
2021                           ac_lo= ac_hi=
2022                           break
2023                         fi
2024                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2025 fi
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027   done
2028 else
2029   ac_lo= ac_hi=
2030 fi
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 fi
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 # Binary search between lo and hi bounds.
2035 while test "x$ac_lo" != "x$ac_hi"; do
2036   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h.  */
2039 $4
2040 int
2041 main ()
2042 {
2043 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2044 test_array [0] = 0;
2045 return test_array [0];
2046
2047   ;
2048   return 0;
2049 }
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"; then :
2052   ac_hi=$ac_mid
2053 else
2054   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2055 fi
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 done
2058 case $ac_lo in #((
2059 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2060 '') ac_retval=1 ;;
2061 esac
2062   else
2063     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h.  */
2065 $4
2066 static long int longval () { return $2; }
2067 static unsigned long int ulongval () { return $2; }
2068 #include <stdio.h>
2069 #include <stdlib.h>
2070 int
2071 main ()
2072 {
2073
2074   FILE *f = fopen ("conftest.val", "w");
2075   if (! f)
2076     return 1;
2077   if (($2) < 0)
2078     {
2079       long int i = longval ();
2080       if (i != ($2))
2081         return 1;
2082       fprintf (f, "%ld", i);
2083     }
2084   else
2085     {
2086       unsigned long int i = ulongval ();
2087       if (i != ($2))
2088         return 1;
2089       fprintf (f, "%lu", i);
2090     }
2091   /* Do not output a trailing newline, as this causes \r\n confusion
2092      on some platforms.  */
2093   return ferror (f) || fclose (f) != 0;
2094
2095   ;
2096   return 0;
2097 }
2098 _ACEOF
2099 if ac_fn_c_try_run "$LINENO"; then :
2100   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2101 else
2102   ac_retval=1
2103 fi
2104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2105   conftest.$ac_objext conftest.beam conftest.$ac_ext
2106 rm -f conftest.val
2107
2108   fi
2109   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2110   as_fn_set_status $ac_retval
2111
2112 } # ac_fn_c_compute_int
2113
2114 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2115 # -------------------------------------------
2116 # Tests whether TYPE exists after having included INCLUDES, setting cache
2117 # variable VAR accordingly.
2118 ac_fn_c_check_type ()
2119 {
2120   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2122 $as_echo_n "checking for $2... " >&6; }
2123 if eval \${$3+:} false; then :
2124   $as_echo_n "(cached) " >&6
2125 else
2126   eval "$3=no"
2127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h.  */
2129 $4
2130 int
2131 main ()
2132 {
2133 if (sizeof ($2))
2134          return 0;
2135   ;
2136   return 0;
2137 }
2138 _ACEOF
2139 if ac_fn_c_try_compile "$LINENO"; then :
2140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h.  */
2142 $4
2143 int
2144 main ()
2145 {
2146 if (sizeof (($2)))
2147             return 0;
2148   ;
2149   return 0;
2150 }
2151 _ACEOF
2152 if ac_fn_c_try_compile "$LINENO"; then :
2153
2154 else
2155   eval "$3=yes"
2156 fi
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 fi
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 fi
2161 eval ac_res=\$$3
2162                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163 $as_echo "$ac_res" >&6; }
2164   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2165
2166 } # ac_fn_c_check_type
2167
2168 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2169 # ---------------------------------------------
2170 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2171 # accordingly.
2172 ac_fn_c_check_decl ()
2173 {
2174   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175   as_decl_name=`echo $2|sed 's/ *(.*//'`
2176   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2178 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2179 if eval \${$3+:} false; then :
2180   $as_echo_n "(cached) " >&6
2181 else
2182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h.  */
2184 $4
2185 int
2186 main ()
2187 {
2188 #ifndef $as_decl_name
2189 #ifdef __cplusplus
2190   (void) $as_decl_use;
2191 #else
2192   (void) $as_decl_name;
2193 #endif
2194 #endif
2195
2196   ;
2197   return 0;
2198 }
2199 _ACEOF
2200 if ac_fn_c_try_compile "$LINENO"; then :
2201   eval "$3=yes"
2202 else
2203   eval "$3=no"
2204 fi
2205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206 fi
2207 eval ac_res=\$$3
2208                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2209 $as_echo "$ac_res" >&6; }
2210   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2211
2212 } # ac_fn_c_check_decl
2213
2214 # ac_fn_c_find_uintX_t LINENO BITS VAR
2215 # ------------------------------------
2216 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2217 # accordingly.
2218 ac_fn_c_find_uintX_t ()
2219 {
2220   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2222 $as_echo_n "checking for uint$2_t... " >&6; }
2223 if eval \${$3+:} false; then :
2224   $as_echo_n "(cached) " >&6
2225 else
2226   eval "$3=no"
2227      # Order is important - never check a type that is potentially smaller
2228      # than half of the expected target width.
2229      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2230          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2231        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h.  */
2233 $ac_includes_default
2234 int
2235 main ()
2236 {
2237 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2238 test_array [0] = 0;
2239 return test_array [0];
2240
2241   ;
2242   return 0;
2243 }
2244 _ACEOF
2245 if ac_fn_c_try_compile "$LINENO"; then :
2246   case $ac_type in #(
2247   uint$2_t) :
2248     eval "$3=yes" ;; #(
2249   *) :
2250     eval "$3=\$ac_type" ;;
2251 esac
2252 fi
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254        if eval test \"x\$"$3"\" = x"no"; then :
2255
2256 else
2257   break
2258 fi
2259      done
2260 fi
2261 eval ac_res=\$$3
2262                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2263 $as_echo "$ac_res" >&6; }
2264   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2265
2266 } # ac_fn_c_find_uintX_t
2267 cat >config.log <<_ACEOF
2268 This file contains any messages produced by compilers while
2269 running configure, to aid debugging if configure makes a mistake.
2270
2271 It was created by krb5-strength $as_me 3.0, which was
2272 generated by GNU Autoconf 2.69.  Invocation command line was
2273
2274   $ $0 $@
2275
2276 _ACEOF
2277 exec 5>>config.log
2278 {
2279 cat <<_ASUNAME
2280 ## --------- ##
2281 ## Platform. ##
2282 ## --------- ##
2283
2284 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2285 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2286 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2287 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2288 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2289
2290 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2291 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2292
2293 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2294 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2295 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2296 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2297 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2298 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2299 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2300
2301 _ASUNAME
2302
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 for as_dir in $PATH
2305 do
2306   IFS=$as_save_IFS
2307   test -z "$as_dir" && as_dir=.
2308     $as_echo "PATH: $as_dir"
2309   done
2310 IFS=$as_save_IFS
2311
2312 } >&5
2313
2314 cat >&5 <<_ACEOF
2315
2316
2317 ## ----------- ##
2318 ## Core tests. ##
2319 ## ----------- ##
2320
2321 _ACEOF
2322
2323
2324 # Keep a trace of the command line.
2325 # Strip out --no-create and --no-recursion so they do not pile up.
2326 # Strip out --silent because we don't want to record it for future runs.
2327 # Also quote any args containing shell meta-characters.
2328 # Make two passes to allow for proper duplicate-argument suppression.
2329 ac_configure_args=
2330 ac_configure_args0=
2331 ac_configure_args1=
2332 ac_must_keep_next=false
2333 for ac_pass in 1 2
2334 do
2335   for ac_arg
2336   do
2337     case $ac_arg in
2338     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2339     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2340     | -silent | --silent | --silen | --sile | --sil)
2341       continue ;;
2342     *\'*)
2343       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2344     esac
2345     case $ac_pass in
2346     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2347     2)
2348       as_fn_append ac_configure_args1 " '$ac_arg'"
2349       if test $ac_must_keep_next = true; then
2350         ac_must_keep_next=false # Got value, back to normal.
2351       else
2352         case $ac_arg in
2353           *=* | --config-cache | -C | -disable-* | --disable-* \
2354           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2355           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2356           | -with-* | --with-* | -without-* | --without-* | --x)
2357             case "$ac_configure_args0 " in
2358               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2359             esac
2360             ;;
2361           -* ) ac_must_keep_next=true ;;
2362         esac
2363       fi
2364       as_fn_append ac_configure_args " '$ac_arg'"
2365       ;;
2366     esac
2367   done
2368 done
2369 { ac_configure_args0=; unset ac_configure_args0;}
2370 { ac_configure_args1=; unset ac_configure_args1;}
2371
2372 # When interrupted or exit'd, cleanup temporary files, and complete
2373 # config.log.  We remove comments because anyway the quotes in there
2374 # would cause problems or look ugly.
2375 # WARNING: Use '\'' to represent an apostrophe within the trap.
2376 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2377 trap 'exit_status=$?
2378   # Save into config.log some information that might help in debugging.
2379   {
2380     echo
2381
2382     $as_echo "## ---------------- ##
2383 ## Cache variables. ##
2384 ## ---------------- ##"
2385     echo
2386     # The following way of writing the cache mishandles newlines in values,
2387 (
2388   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2389     eval ac_val=\$$ac_var
2390     case $ac_val in #(
2391     *${as_nl}*)
2392       case $ac_var in #(
2393       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2394 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2395       esac
2396       case $ac_var in #(
2397       _ | IFS | as_nl) ;; #(
2398       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2399       *) { eval $ac_var=; unset $ac_var;} ;;
2400       esac ;;
2401     esac
2402   done
2403   (set) 2>&1 |
2404     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2405     *${as_nl}ac_space=\ *)
2406       sed -n \
2407         "s/'\''/'\''\\\\'\'''\''/g;
2408           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2409       ;; #(
2410     *)
2411       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2412       ;;
2413     esac |
2414     sort
2415 )
2416     echo
2417
2418     $as_echo "## ----------------- ##
2419 ## Output variables. ##
2420 ## ----------------- ##"
2421     echo
2422     for ac_var in $ac_subst_vars
2423     do
2424       eval ac_val=\$$ac_var
2425       case $ac_val in
2426       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2427       esac
2428       $as_echo "$ac_var='\''$ac_val'\''"
2429     done | sort
2430     echo
2431
2432     if test -n "$ac_subst_files"; then
2433       $as_echo "## ------------------- ##
2434 ## File substitutions. ##
2435 ## ------------------- ##"
2436       echo
2437       for ac_var in $ac_subst_files
2438       do
2439         eval ac_val=\$$ac_var
2440         case $ac_val in
2441         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2442         esac
2443         $as_echo "$ac_var='\''$ac_val'\''"
2444       done | sort
2445       echo
2446     fi
2447
2448     if test -s confdefs.h; then
2449       $as_echo "## ----------- ##
2450 ## confdefs.h. ##
2451 ## ----------- ##"
2452       echo
2453       cat confdefs.h
2454       echo
2455     fi
2456     test "$ac_signal" != 0 &&
2457       $as_echo "$as_me: caught signal $ac_signal"
2458     $as_echo "$as_me: exit $exit_status"
2459   } >&5
2460   rm -f core *.core core.conftest.* &&
2461     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2462     exit $exit_status
2463 ' 0
2464 for ac_signal in 1 2 13 15; do
2465   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2466 done
2467 ac_signal=0
2468
2469 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2470 rm -f -r conftest* confdefs.h
2471
2472 $as_echo "/* confdefs.h */" > confdefs.h
2473
2474 # Predefined preprocessor variables.
2475
2476 cat >>confdefs.h <<_ACEOF
2477 #define PACKAGE_NAME "$PACKAGE_NAME"
2478 _ACEOF
2479
2480 cat >>confdefs.h <<_ACEOF
2481 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2482 _ACEOF
2483
2484 cat >>confdefs.h <<_ACEOF
2485 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2486 _ACEOF
2487
2488 cat >>confdefs.h <<_ACEOF
2489 #define PACKAGE_STRING "$PACKAGE_STRING"
2490 _ACEOF
2491
2492 cat >>confdefs.h <<_ACEOF
2493 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2494 _ACEOF
2495
2496 cat >>confdefs.h <<_ACEOF
2497 #define PACKAGE_URL "$PACKAGE_URL"
2498 _ACEOF
2499
2500
2501 # Let the site file select an alternate cache file if it wants to.
2502 # Prefer an explicitly selected file to automatically selected ones.
2503 ac_site_file1=NONE
2504 ac_site_file2=NONE
2505 if test -n "$CONFIG_SITE"; then
2506   # We do not want a PATH search for config.site.
2507   case $CONFIG_SITE in #((
2508     -*)  ac_site_file1=./$CONFIG_SITE;;
2509     */*) ac_site_file1=$CONFIG_SITE;;
2510     *)   ac_site_file1=./$CONFIG_SITE;;
2511   esac
2512 elif test "x$prefix" != xNONE; then
2513   ac_site_file1=$prefix/share/config.site
2514   ac_site_file2=$prefix/etc/config.site
2515 else
2516   ac_site_file1=$ac_default_prefix/share/config.site
2517   ac_site_file2=$ac_default_prefix/etc/config.site
2518 fi
2519 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2520 do
2521   test "x$ac_site_file" = xNONE && continue
2522   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2523     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2524 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2525     sed 's/^/| /' "$ac_site_file" >&5
2526     . "$ac_site_file" \
2527       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2529 as_fn_error $? "failed to load site script $ac_site_file
2530 See \`config.log' for more details" "$LINENO" 5; }
2531   fi
2532 done
2533
2534 if test -r "$cache_file"; then
2535   # Some versions of bash will fail to source /dev/null (special files
2536   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2537   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2538     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2539 $as_echo "$as_me: loading cache $cache_file" >&6;}
2540     case $cache_file in
2541       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2542       *)                      . "./$cache_file";;
2543     esac
2544   fi
2545 else
2546   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2547 $as_echo "$as_me: creating cache $cache_file" >&6;}
2548   >$cache_file
2549 fi
2550
2551 # Check that the precious variables saved in the cache have kept the same
2552 # value.
2553 ac_cache_corrupted=false
2554 for ac_var in $ac_precious_vars; do
2555   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2556   eval ac_new_set=\$ac_env_${ac_var}_set
2557   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2558   eval ac_new_val=\$ac_env_${ac_var}_value
2559   case $ac_old_set,$ac_new_set in
2560     set,)
2561       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2562 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2563       ac_cache_corrupted=: ;;
2564     ,set)
2565       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2566 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2567       ac_cache_corrupted=: ;;
2568     ,);;
2569     *)
2570       if test "x$ac_old_val" != "x$ac_new_val"; then
2571         # differences in whitespace do not lead to failure.
2572         ac_old_val_w=`echo x $ac_old_val`
2573         ac_new_val_w=`echo x $ac_new_val`
2574         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2575           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2576 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2577           ac_cache_corrupted=:
2578         else
2579           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2580 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2581           eval $ac_var=\$ac_old_val
2582         fi
2583         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2584 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2585         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2586 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2587       fi;;
2588   esac
2589   # Pass precious variables to config.status.
2590   if test "$ac_new_set" = set; then
2591     case $ac_new_val in
2592     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2593     *) ac_arg=$ac_var=$ac_new_val ;;
2594     esac
2595     case " $ac_configure_args " in
2596       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2597       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2598     esac
2599   fi
2600 done
2601 if $ac_cache_corrupted; then
2602   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2604   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2605 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2606   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2607 fi
2608 ## -------------------- ##
2609 ## Main body of script. ##
2610 ## -------------------- ##
2611
2612 ac_ext=c
2613 ac_cpp='$CPP $CPPFLAGS'
2614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2617
2618
2619 ac_aux_dir=
2620 for ac_dir in build-aux "$srcdir"/build-aux; do
2621   if test -f "$ac_dir/install-sh"; then
2622     ac_aux_dir=$ac_dir
2623     ac_install_sh="$ac_aux_dir/install-sh -c"
2624     break
2625   elif test -f "$ac_dir/install.sh"; then
2626     ac_aux_dir=$ac_dir
2627     ac_install_sh="$ac_aux_dir/install.sh -c"
2628     break
2629   elif test -f "$ac_dir/shtool"; then
2630     ac_aux_dir=$ac_dir
2631     ac_install_sh="$ac_aux_dir/shtool install -c"
2632     break
2633   fi
2634 done
2635 if test -z "$ac_aux_dir"; then
2636   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2637 fi
2638
2639 # These three variables are undocumented and unsupported,
2640 # and are intended to be withdrawn in a future Autoconf release.
2641 # They can cause serious problems if a builder's source tree is in a directory
2642 # whose full name contains unusual characters.
2643 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2644 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2645 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2646
2647
2648
2649
2650 am__api_version='1.14'
2651
2652 # Find a good install program.  We prefer a C program (faster),
2653 # so one script is as good as another.  But avoid the broken or
2654 # incompatible versions:
2655 # SysV /etc/install, /usr/sbin/install
2656 # SunOS /usr/etc/install
2657 # IRIX /sbin/install
2658 # AIX /bin/install
2659 # AmigaOS /C/install, which installs bootblocks on floppy discs
2660 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2661 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2662 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2663 # OS/2's system install, which has a completely different semantic
2664 # ./install, which can be erroneously created by make from ./install.sh.
2665 # Reject install programs that cannot install multiple files.
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2667 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2668 if test -z "$INSTALL"; then
2669 if ${ac_cv_path_install+:} false; then :
2670   $as_echo_n "(cached) " >&6
2671 else
2672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2674 do
2675   IFS=$as_save_IFS
2676   test -z "$as_dir" && as_dir=.
2677     # Account for people who put trailing slashes in PATH elements.
2678 case $as_dir/ in #((
2679   ./ | .// | /[cC]/* | \
2680   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2681   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2682   /usr/ucb/* ) ;;
2683   *)
2684     # OSF1 and SCO ODT 3.0 have their own names for install.
2685     # Don't use installbsd from OSF since it installs stuff as root
2686     # by default.
2687     for ac_prog in ginstall scoinst install; do
2688       for ac_exec_ext in '' $ac_executable_extensions; do
2689         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2690           if test $ac_prog = install &&
2691             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2692             # AIX install.  It has an incompatible calling convention.
2693             :
2694           elif test $ac_prog = install &&
2695             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2696             # program-specific install script used by HP pwplus--don't use.
2697             :
2698           else
2699             rm -rf conftest.one conftest.two conftest.dir
2700             echo one > conftest.one
2701             echo two > conftest.two
2702             mkdir conftest.dir
2703             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2704               test -s conftest.one && test -s conftest.two &&
2705               test -s conftest.dir/conftest.one &&
2706               test -s conftest.dir/conftest.two
2707             then
2708               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2709               break 3
2710             fi
2711           fi
2712         fi
2713       done
2714     done
2715     ;;
2716 esac
2717
2718   done
2719 IFS=$as_save_IFS
2720
2721 rm -rf conftest.one conftest.two conftest.dir
2722
2723 fi
2724   if test "${ac_cv_path_install+set}" = set; then
2725     INSTALL=$ac_cv_path_install
2726   else
2727     # As a last resort, use the slow shell script.  Don't cache a
2728     # value for INSTALL within a source directory, because that will
2729     # break other packages using the cache if that directory is
2730     # removed, or if the value is a relative name.
2731     INSTALL=$ac_install_sh
2732   fi
2733 fi
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2735 $as_echo "$INSTALL" >&6; }
2736
2737 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2738 # It thinks the first close brace ends the variable substitution.
2739 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2740
2741 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2742
2743 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2744
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2746 $as_echo_n "checking whether build environment is sane... " >&6; }
2747 # Reject unsafe characters in $srcdir or the absolute working directory
2748 # name.  Accept space and tab only in the latter.
2749 am_lf='
2750 '
2751 case `pwd` in
2752   *[\\\"\#\$\&\'\`$am_lf]*)
2753     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2754 esac
2755 case $srcdir in
2756   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2757     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2758 esac
2759
2760 # Do 'set' in a subshell so we don't clobber the current shell's
2761 # arguments.  Must try -L first in case configure is actually a
2762 # symlink; some systems play weird games with the mod time of symlinks
2763 # (eg FreeBSD returns the mod time of the symlink's containing
2764 # directory).
2765 if (
2766    am_has_slept=no
2767    for am_try in 1 2; do
2768      echo "timestamp, slept: $am_has_slept" > conftest.file
2769      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2770      if test "$*" = "X"; then
2771         # -L didn't work.
2772         set X `ls -t "$srcdir/configure" conftest.file`
2773      fi
2774      if test "$*" != "X $srcdir/configure conftest.file" \
2775         && test "$*" != "X conftest.file $srcdir/configure"; then
2776
2777         # If neither matched, then we have a broken ls.  This can happen
2778         # if, for instance, CONFIG_SHELL is bash and it inherits a
2779         # broken ls alias from the environment.  This has actually
2780         # happened.  Such a system could not be considered "sane".
2781         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2782   alias in your environment" "$LINENO" 5
2783      fi
2784      if test "$2" = conftest.file || test $am_try -eq 2; then
2785        break
2786      fi
2787      # Just in case.
2788      sleep 1
2789      am_has_slept=yes
2790    done
2791    test "$2" = conftest.file
2792    )
2793 then
2794    # Ok.
2795    :
2796 else
2797    as_fn_error $? "newly created file is older than distributed files!
2798 Check your system clock" "$LINENO" 5
2799 fi
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2801 $as_echo "yes" >&6; }
2802 # If we didn't sleep, we still need to ensure time stamps of config.status and
2803 # generated files are strictly newer.
2804 am_sleep_pid=
2805 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2806   ( sleep 1 ) &
2807   am_sleep_pid=$!
2808 fi
2809
2810 rm -f conftest.file
2811
2812 test "$program_prefix" != NONE &&
2813   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2814 # Use a double $ so make ignores it.
2815 test "$program_suffix" != NONE &&
2816   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2817 # Double any \ or $.
2818 # By default was `s,x,x', remove it if useless.
2819 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2820 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2821
2822 # expand $ac_aux_dir to an absolute path
2823 am_aux_dir=`cd $ac_aux_dir && pwd`
2824
2825 if test x"${MISSING+set}" != xset; then
2826   case $am_aux_dir in
2827   *\ * | *\     *)
2828     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2829   *)
2830     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2831   esac
2832 fi
2833 # Use eval to expand $SHELL
2834 if eval "$MISSING --is-lightweight"; then
2835   am_missing_run="$MISSING "
2836 else
2837   am_missing_run=
2838   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2839 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2840 fi
2841
2842 if test x"${install_sh}" != xset; then
2843   case $am_aux_dir in
2844   *\ * | *\     *)
2845     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2846   *)
2847     install_sh="\${SHELL} $am_aux_dir/install-sh"
2848   esac
2849 fi
2850
2851 # Installed binaries are usually stripped using 'strip' when the user
2852 # run "make install-strip".  However 'strip' might not be the right
2853 # tool to use in cross-compilation environments, therefore Automake
2854 # will honor the 'STRIP' environment variable to overrule this program.
2855 if test "$cross_compiling" != no; then
2856   if test -n "$ac_tool_prefix"; then
2857   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2858 set dummy ${ac_tool_prefix}strip; ac_word=$2
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2860 $as_echo_n "checking for $ac_word... " >&6; }
2861 if ${ac_cv_prog_STRIP+:} false; then :
2862   $as_echo_n "(cached) " >&6
2863 else
2864   if test -n "$STRIP"; then
2865   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2866 else
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 for as_dir in $PATH
2869 do
2870   IFS=$as_save_IFS
2871   test -z "$as_dir" && as_dir=.
2872     for ac_exec_ext in '' $ac_executable_extensions; do
2873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2874     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2876     break 2
2877   fi
2878 done
2879   done
2880 IFS=$as_save_IFS
2881
2882 fi
2883 fi
2884 STRIP=$ac_cv_prog_STRIP
2885 if test -n "$STRIP"; then
2886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2887 $as_echo "$STRIP" >&6; }
2888 else
2889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890 $as_echo "no" >&6; }
2891 fi
2892
2893
2894 fi
2895 if test -z "$ac_cv_prog_STRIP"; then
2896   ac_ct_STRIP=$STRIP
2897   # Extract the first word of "strip", so it can be a program name with args.
2898 set dummy strip; ac_word=$2
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2902   $as_echo_n "(cached) " >&6
2903 else
2904   if test -n "$ac_ct_STRIP"; then
2905   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2906 else
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 for as_dir in $PATH
2909 do
2910   IFS=$as_save_IFS
2911   test -z "$as_dir" && as_dir=.
2912     for ac_exec_ext in '' $ac_executable_extensions; do
2913   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2914     ac_cv_prog_ac_ct_STRIP="strip"
2915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916     break 2
2917   fi
2918 done
2919   done
2920 IFS=$as_save_IFS
2921
2922 fi
2923 fi
2924 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2925 if test -n "$ac_ct_STRIP"; then
2926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2927 $as_echo "$ac_ct_STRIP" >&6; }
2928 else
2929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2931 fi
2932
2933   if test "x$ac_ct_STRIP" = x; then
2934     STRIP=":"
2935   else
2936     case $cross_compiling:$ac_tool_warned in
2937 yes:)
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2940 ac_tool_warned=yes ;;
2941 esac
2942     STRIP=$ac_ct_STRIP
2943   fi
2944 else
2945   STRIP="$ac_cv_prog_STRIP"
2946 fi
2947
2948 fi
2949 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2950
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2952 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2953 if test -z "$MKDIR_P"; then
2954   if ${ac_cv_path_mkdir+:} false; then :
2955   $as_echo_n "(cached) " >&6
2956 else
2957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2959 do
2960   IFS=$as_save_IFS
2961   test -z "$as_dir" && as_dir=.
2962     for ac_prog in mkdir gmkdir; do
2963          for ac_exec_ext in '' $ac_executable_extensions; do
2964            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2965            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2966              'mkdir (GNU coreutils) '* | \
2967              'mkdir (coreutils) '* | \
2968              'mkdir (fileutils) '4.1*)
2969                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2970                break 3;;
2971            esac
2972          done
2973        done
2974   done
2975 IFS=$as_save_IFS
2976
2977 fi
2978
2979   test -d ./--version && rmdir ./--version
2980   if test "${ac_cv_path_mkdir+set}" = set; then
2981     MKDIR_P="$ac_cv_path_mkdir -p"
2982   else
2983     # As a last resort, use the slow shell script.  Don't cache a
2984     # value for MKDIR_P within a source directory, because that will
2985     # break other packages using the cache if that directory is
2986     # removed, or if the value is a relative name.
2987     MKDIR_P="$ac_install_sh -d"
2988   fi
2989 fi
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2991 $as_echo "$MKDIR_P" >&6; }
2992
2993 for ac_prog in gawk mawk nawk awk
2994 do
2995   # Extract the first word of "$ac_prog", so it can be a program name with args.
2996 set dummy $ac_prog; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if ${ac_cv_prog_AWK+:} false; then :
3000   $as_echo_n "(cached) " >&6
3001 else
3002   if test -n "$AWK"; then
3003   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3007 do
3008   IFS=$as_save_IFS
3009   test -z "$as_dir" && as_dir=.
3010     for ac_exec_ext in '' $ac_executable_extensions; do
3011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3012     ac_cv_prog_AWK="$ac_prog"
3013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014     break 2
3015   fi
3016 done
3017   done
3018 IFS=$as_save_IFS
3019
3020 fi
3021 fi
3022 AWK=$ac_cv_prog_AWK
3023 if test -n "$AWK"; then
3024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3025 $as_echo "$AWK" >&6; }
3026 else
3027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3029 fi
3030
3031
3032   test -n "$AWK" && break
3033 done
3034
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3036 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3037 set x ${MAKE-make}
3038 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3039 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3040   $as_echo_n "(cached) " >&6
3041 else
3042   cat >conftest.make <<\_ACEOF
3043 SHELL = /bin/sh
3044 all:
3045         @echo '@@@%%%=$(MAKE)=@@@%%%'
3046 _ACEOF
3047 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3048 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3049   *@@@%%%=?*=@@@%%%*)
3050     eval ac_cv_prog_make_${ac_make}_set=yes;;
3051   *)
3052     eval ac_cv_prog_make_${ac_make}_set=no;;
3053 esac
3054 rm -f conftest.make
3055 fi
3056 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3058 $as_echo "yes" >&6; }
3059   SET_MAKE=
3060 else
3061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 $as_echo "no" >&6; }
3063   SET_MAKE="MAKE=${MAKE-make}"
3064 fi
3065
3066 rm -rf .tst 2>/dev/null
3067 mkdir .tst 2>/dev/null
3068 if test -d .tst; then
3069   am__leading_dot=.
3070 else
3071   am__leading_dot=_
3072 fi
3073 rmdir .tst 2>/dev/null
3074
3075 # Check whether --enable-silent-rules was given.
3076 if test "${enable_silent_rules+set}" = set; then :
3077   enableval=$enable_silent_rules;
3078 fi
3079
3080 case $enable_silent_rules in # (((
3081   yes) AM_DEFAULT_VERBOSITY=0;;
3082    no) AM_DEFAULT_VERBOSITY=1;;
3083     *) AM_DEFAULT_VERBOSITY=1;;
3084 esac
3085 am_make=${MAKE-make}
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3087 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3088 if ${am_cv_make_support_nested_variables+:} false; then :
3089   $as_echo_n "(cached) " >&6
3090 else
3091   if $as_echo 'TRUE=$(BAR$(V))
3092 BAR0=false
3093 BAR1=true
3094 V=1
3095 am__doit:
3096         @$(TRUE)
3097 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3098   am_cv_make_support_nested_variables=yes
3099 else
3100   am_cv_make_support_nested_variables=no
3101 fi
3102 fi
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3104 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3105 if test $am_cv_make_support_nested_variables = yes; then
3106     AM_V='$(V)'
3107   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3108 else
3109   AM_V=$AM_DEFAULT_VERBOSITY
3110   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3111 fi
3112 AM_BACKSLASH='\'
3113
3114 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3115   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3116   # is not polluted with repeated "-I."
3117   am__isrc=' -I$(srcdir)'
3118   # test to see if srcdir already configured
3119   if test -f $srcdir/config.status; then
3120     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3121   fi
3122 fi
3123
3124 # test whether we have cygpath
3125 if test -z "$CYGPATH_W"; then
3126   if (cygpath --version) >/dev/null 2>/dev/null; then
3127     CYGPATH_W='cygpath -w'
3128   else
3129     CYGPATH_W=echo
3130   fi
3131 fi
3132
3133
3134 # Define the identity of the package.
3135  PACKAGE='krb5-strength'
3136  VERSION='3.0'
3137
3138
3139 cat >>confdefs.h <<_ACEOF
3140 #define PACKAGE "$PACKAGE"
3141 _ACEOF
3142
3143
3144 cat >>confdefs.h <<_ACEOF
3145 #define VERSION "$VERSION"
3146 _ACEOF
3147
3148 # Some tools Automake needs.
3149
3150 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3151
3152
3153 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3154
3155
3156 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3157
3158
3159 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3160
3161
3162 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3163
3164 # For better backward compatibility.  To be removed once Automake 1.9.x
3165 # dies out for good.  For more background, see:
3166 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3167 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3168 mkdir_p='$(MKDIR_P)'
3169
3170 # We need awk for the "check" target.  The system "awk" is bad on
3171 # some platforms.
3172 # Always define AMTAR for backward compatibility.  Yes, it's still used
3173 # in the wild :-(  We should find a proper way to deprecate it ...
3174 AMTAR='$${TAR-tar}'
3175
3176
3177 # We'll loop over all known methods to create a tar archive until one works.
3178 _am_tools='gnutar  pax cpio none'
3179
3180 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3181
3182
3183
3184
3185
3186
3187 # POSIX will say in a future version that running "rm -f" with no argument
3188 # is OK; and we want to be able to make that assumption in our Makefile
3189 # recipes.  So use an aggressive probe to check that the usage we want is
3190 # actually supported "in the wild" to an acceptable degree.
3191 # See automake bug#10828.
3192 # To make any issue more visible, cause the running configure to be aborted
3193 # by default if the 'rm' program in use doesn't match our expectations; the
3194 # user can still override this though.
3195 if rm -f && rm -fr && rm -rf; then : OK; else
3196   cat >&2 <<'END'
3197 Oops!
3198
3199 Your 'rm' program seems unable to run without file operands specified
3200 on the command line, even when the '-f' option is present.  This is contrary
3201 to the behaviour of most rm programs out there, and not conforming with
3202 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3203
3204 Please tell bug-automake@gnu.org about your system, including the value
3205 of your $PATH and any error possibly output before this message.  This
3206 can help us improve future automake versions.
3207
3208 END
3209   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3210     echo 'Configuration will proceed anyway, since you have set the' >&2
3211     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3212     echo >&2
3213   else
3214     cat >&2 <<'END'
3215 Aborting the configuration process, to ensure you take notice of the issue.
3216
3217 You can download and install GNU coreutils to get an 'rm' implementation
3218 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3219
3220 If you want to complete the configuration process using your problematic
3221 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3222 to "yes", and re-run configure.
3223
3224 END
3225     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3226   fi
3227 fi
3228
3229
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3231 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3232     # Check whether --enable-maintainer-mode was given.
3233 if test "${enable_maintainer_mode+set}" = set; then :
3234   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3235 else
3236   USE_MAINTAINER_MODE=no
3237 fi
3238
3239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3240 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3241    if test $USE_MAINTAINER_MODE = yes; then
3242   MAINTAINER_MODE_TRUE=
3243   MAINTAINER_MODE_FALSE='#'
3244 else
3245   MAINTAINER_MODE_TRUE='#'
3246   MAINTAINER_MODE_FALSE=
3247 fi
3248
3249   MAINT=$MAINTAINER_MODE_TRUE
3250
3251
3252
3253 ac_ext=c
3254 ac_cpp='$CPP $CPPFLAGS'
3255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3258 if test -n "$ac_tool_prefix"; then
3259   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3260 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 $as_echo_n "checking for $ac_word... " >&6; }
3263 if ${ac_cv_prog_CC+:} false; then :
3264   $as_echo_n "(cached) " >&6
3265 else
3266   if test -n "$CC"; then
3267   ac_cv_prog_CC="$CC" # Let the user override the test.
3268 else
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 for as_dir in $PATH
3271 do
3272   IFS=$as_save_IFS
3273   test -z "$as_dir" && as_dir=.
3274     for ac_exec_ext in '' $ac_executable_extensions; do
3275   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3276     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3278     break 2
3279   fi
3280 done
3281   done
3282 IFS=$as_save_IFS
3283
3284 fi
3285 fi
3286 CC=$ac_cv_prog_CC
3287 if test -n "$CC"; then
3288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3289 $as_echo "$CC" >&6; }
3290 else
3291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3293 fi
3294
3295
3296 fi
3297 if test -z "$ac_cv_prog_CC"; then
3298   ac_ct_CC=$CC
3299   # Extract the first word of "gcc", so it can be a program name with args.
3300 set dummy gcc; ac_word=$2
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302 $as_echo_n "checking for $ac_word... " >&6; }
3303 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3304   $as_echo_n "(cached) " >&6
3305 else
3306   if test -n "$ac_ct_CC"; then
3307   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3308 else
3309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 for as_dir in $PATH
3311 do
3312   IFS=$as_save_IFS
3313   test -z "$as_dir" && as_dir=.
3314     for ac_exec_ext in '' $ac_executable_extensions; do
3315   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3316     ac_cv_prog_ac_ct_CC="gcc"
3317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318     break 2
3319   fi
3320 done
3321   done
3322 IFS=$as_save_IFS
3323
3324 fi
3325 fi
3326 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3327 if test -n "$ac_ct_CC"; then
3328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3329 $as_echo "$ac_ct_CC" >&6; }
3330 else
3331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 fi
3334
3335   if test "x$ac_ct_CC" = x; then
3336     CC=""
3337   else
3338     case $cross_compiling:$ac_tool_warned in
3339 yes:)
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3342 ac_tool_warned=yes ;;
3343 esac
3344     CC=$ac_ct_CC
3345   fi
3346 else
3347   CC="$ac_cv_prog_CC"
3348 fi
3349
3350 if test -z "$CC"; then
3351           if test -n "$ac_tool_prefix"; then
3352     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3353 set dummy ${ac_tool_prefix}cc; ac_word=$2
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355 $as_echo_n "checking for $ac_word... " >&6; }
3356 if ${ac_cv_prog_CC+:} false; then :
3357   $as_echo_n "(cached) " >&6
3358 else
3359   if test -n "$CC"; then
3360   ac_cv_prog_CC="$CC" # Let the user override the test.
3361 else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3364 do
3365   IFS=$as_save_IFS
3366   test -z "$as_dir" && as_dir=.
3367     for ac_exec_ext in '' $ac_executable_extensions; do
3368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369     ac_cv_prog_CC="${ac_tool_prefix}cc"
3370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371     break 2
3372   fi
3373 done
3374   done
3375 IFS=$as_save_IFS
3376
3377 fi
3378 fi
3379 CC=$ac_cv_prog_CC
3380 if test -n "$CC"; then
3381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3382 $as_echo "$CC" >&6; }
3383 else
3384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385 $as_echo "no" >&6; }
3386 fi
3387
3388
3389   fi
3390 fi
3391 if test -z "$CC"; then
3392   # Extract the first word of "cc", so it can be a program name with args.
3393 set dummy cc; ac_word=$2
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395 $as_echo_n "checking for $ac_word... " >&6; }
3396 if ${ac_cv_prog_CC+:} false; then :
3397   $as_echo_n "(cached) " >&6
3398 else
3399   if test -n "$CC"; then
3400   ac_cv_prog_CC="$CC" # Let the user override the test.
3401 else
3402   ac_prog_rejected=no
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 for as_dir in $PATH
3405 do
3406   IFS=$as_save_IFS
3407   test -z "$as_dir" && as_dir=.
3408     for ac_exec_ext in '' $ac_executable_extensions; do
3409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3411        ac_prog_rejected=yes
3412        continue
3413      fi
3414     ac_cv_prog_CC="cc"
3415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416     break 2
3417   fi
3418 done
3419   done
3420 IFS=$as_save_IFS
3421
3422 if test $ac_prog_rejected = yes; then
3423   # We found a bogon in the path, so make sure we never use it.
3424   set dummy $ac_cv_prog_CC
3425   shift
3426   if test $# != 0; then
3427     # We chose a different compiler from the bogus one.
3428     # However, it has the same basename, so the bogon will be chosen
3429     # first if we set CC to just the basename; use the full file name.
3430     shift
3431     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3432   fi
3433 fi
3434 fi
3435 fi
3436 CC=$ac_cv_prog_CC
3437 if test -n "$CC"; then
3438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3439 $as_echo "$CC" >&6; }
3440 else
3441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442 $as_echo "no" >&6; }
3443 fi
3444
3445
3446 fi
3447 if test -z "$CC"; then
3448   if test -n "$ac_tool_prefix"; then
3449   for ac_prog in cl.exe
3450   do
3451     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3452 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3454 $as_echo_n "checking for $ac_word... " >&6; }
3455 if ${ac_cv_prog_CC+:} false; then :
3456   $as_echo_n "(cached) " >&6
3457 else
3458   if test -n "$CC"; then
3459   ac_cv_prog_CC="$CC" # Let the user override the test.
3460 else
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 for as_dir in $PATH
3463 do
3464   IFS=$as_save_IFS
3465   test -z "$as_dir" && as_dir=.
3466     for ac_exec_ext in '' $ac_executable_extensions; do
3467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3468     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3470     break 2
3471   fi
3472 done
3473   done
3474 IFS=$as_save_IFS
3475
3476 fi
3477 fi
3478 CC=$ac_cv_prog_CC
3479 if test -n "$CC"; then
3480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3481 $as_echo "$CC" >&6; }
3482 else
3483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484 $as_echo "no" >&6; }
3485 fi
3486
3487
3488     test -n "$CC" && break
3489   done
3490 fi
3491 if test -z "$CC"; then
3492   ac_ct_CC=$CC
3493   for ac_prog in cl.exe
3494 do
3495   # Extract the first word of "$ac_prog", so it can be a program name with args.
3496 set dummy $ac_prog; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3500   $as_echo_n "(cached) " >&6
3501 else
3502   if test -n "$ac_ct_CC"; then
3503   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3507 do
3508   IFS=$as_save_IFS
3509   test -z "$as_dir" && as_dir=.
3510     for ac_exec_ext in '' $ac_executable_extensions; do
3511   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512     ac_cv_prog_ac_ct_CC="$ac_prog"
3513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514     break 2
3515   fi
3516 done
3517   done
3518 IFS=$as_save_IFS
3519
3520 fi
3521 fi
3522 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3523 if test -n "$ac_ct_CC"; then
3524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3525 $as_echo "$ac_ct_CC" >&6; }
3526 else
3527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3529 fi
3530
3531
3532   test -n "$ac_ct_CC" && break
3533 done
3534
3535   if test "x$ac_ct_CC" = x; then
3536     CC=""
3537   else
3538     case $cross_compiling:$ac_tool_warned in
3539 yes:)
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3542 ac_tool_warned=yes ;;
3543 esac
3544     CC=$ac_ct_CC
3545   fi
3546 fi
3547
3548 fi
3549
3550
3551 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3553 as_fn_error $? "no acceptable C compiler found in \$PATH
3554 See \`config.log' for more details" "$LINENO" 5; }
3555
3556 # Provide some information about the compiler.
3557 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3558 set X $ac_compile
3559 ac_compiler=$2
3560 for ac_option in --version -v -V -qversion; do
3561   { { ac_try="$ac_compiler $ac_option >&5"
3562 case "(($ac_try" in
3563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564   *) ac_try_echo=$ac_try;;
3565 esac
3566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3567 $as_echo "$ac_try_echo"; } >&5
3568   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3569   ac_status=$?
3570   if test -s conftest.err; then
3571     sed '10a\
3572 ... rest of stderr output deleted ...
3573          10q' conftest.err >conftest.er1
3574     cat conftest.er1 >&5
3575   fi
3576   rm -f conftest.er1 conftest.err
3577   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578   test $ac_status = 0; }
3579 done
3580
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h.  */
3583
3584 int
3585 main ()
3586 {
3587
3588   ;
3589   return 0;
3590 }
3591 _ACEOF
3592 ac_clean_files_save=$ac_clean_files
3593 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3594 # Try to create an executable without -o first, disregard a.out.
3595 # It will help us diagnose broken compilers, and finding out an intuition
3596 # of exeext.
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3598 $as_echo_n "checking whether the C compiler works... " >&6; }
3599 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3600
3601 # The possible output files:
3602 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3603
3604 ac_rmfiles=
3605 for ac_file in $ac_files
3606 do
3607   case $ac_file in
3608     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3609     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3610   esac
3611 done
3612 rm -f $ac_rmfiles
3613
3614 if { { ac_try="$ac_link_default"
3615 case "(($ac_try" in
3616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617   *) ac_try_echo=$ac_try;;
3618 esac
3619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3620 $as_echo "$ac_try_echo"; } >&5
3621   (eval "$ac_link_default") 2>&5
3622   ac_status=$?
3623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3624   test $ac_status = 0; }; then :
3625   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3626 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3627 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3628 # so that the user can short-circuit this test for compilers unknown to
3629 # Autoconf.
3630 for ac_file in $ac_files ''
3631 do
3632   test -f "$ac_file" || continue
3633   case $ac_file in
3634     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3635         ;;
3636     [ab].out )
3637         # We found the default executable, but exeext='' is most
3638         # certainly right.
3639         break;;
3640     *.* )
3641         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3642         then :; else
3643            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3644         fi
3645         # We set ac_cv_exeext here because the later test for it is not
3646         # safe: cross compilers may not add the suffix if given an `-o'
3647         # argument, so we may need to know it at that point already.
3648         # Even if this section looks crufty: it has the advantage of
3649         # actually working.
3650         break;;
3651     * )
3652         break;;
3653   esac
3654 done
3655 test "$ac_cv_exeext" = no && ac_cv_exeext=
3656
3657 else
3658   ac_file=''
3659 fi
3660 if test -z "$ac_file"; then :
3661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 $as_echo "no" >&6; }
3663 $as_echo "$as_me: failed program was:" >&5
3664 sed 's/^/| /' conftest.$ac_ext >&5
3665
3666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3668 as_fn_error 77 "C compiler cannot create executables
3669 See \`config.log' for more details" "$LINENO" 5; }
3670 else
3671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3672 $as_echo "yes" >&6; }
3673 fi
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3675 $as_echo_n "checking for C compiler default output file name... " >&6; }
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3677 $as_echo "$ac_file" >&6; }
3678 ac_exeext=$ac_cv_exeext
3679
3680 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3681 ac_clean_files=$ac_clean_files_save
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3683 $as_echo_n "checking for suffix of executables... " >&6; }
3684 if { { ac_try="$ac_link"
3685 case "(($ac_try" in
3686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687   *) ac_try_echo=$ac_try;;
3688 esac
3689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3690 $as_echo "$ac_try_echo"; } >&5
3691   (eval "$ac_link") 2>&5
3692   ac_status=$?
3693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694   test $ac_status = 0; }; then :
3695   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3696 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3697 # work properly (i.e., refer to `conftest.exe'), while it won't with
3698 # `rm'.
3699 for ac_file in conftest.exe conftest conftest.*; do
3700   test -f "$ac_file" || continue
3701   case $ac_file in
3702     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3703     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3704           break;;
3705     * ) break;;
3706   esac
3707 done
3708 else
3709   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3711 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3712 See \`config.log' for more details" "$LINENO" 5; }
3713 fi
3714 rm -f conftest conftest$ac_cv_exeext
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3716 $as_echo "$ac_cv_exeext" >&6; }
3717
3718 rm -f conftest.$ac_ext
3719 EXEEXT=$ac_cv_exeext
3720 ac_exeext=$EXEEXT
3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h.  */
3723 #include <stdio.h>
3724 int
3725 main ()
3726 {
3727 FILE *f = fopen ("conftest.out", "w");
3728  return ferror (f) || fclose (f) != 0;
3729
3730   ;
3731   return 0;
3732 }
3733 _ACEOF
3734 ac_clean_files="$ac_clean_files conftest.out"
3735 # Check that the compiler produces executables we can run.  If not, either
3736 # the compiler is broken, or we cross compile.
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3738 $as_echo_n "checking whether we are cross compiling... " >&6; }
3739 if test "$cross_compiling" != yes; then
3740   { { ac_try="$ac_link"
3741 case "(($ac_try" in
3742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743   *) ac_try_echo=$ac_try;;
3744 esac
3745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3746 $as_echo "$ac_try_echo"; } >&5
3747   (eval "$ac_link") 2>&5
3748   ac_status=$?
3749   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3750   test $ac_status = 0; }
3751   if { ac_try='./conftest$ac_cv_exeext'
3752   { { case "(($ac_try" in
3753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754   *) ac_try_echo=$ac_try;;
3755 esac
3756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3757 $as_echo "$ac_try_echo"; } >&5
3758   (eval "$ac_try") 2>&5
3759   ac_status=$?
3760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3761   test $ac_status = 0; }; }; then
3762     cross_compiling=no
3763   else
3764     if test "$cross_compiling" = maybe; then
3765         cross_compiling=yes
3766     else
3767         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3769 as_fn_error $? "cannot run C compiled programs.
3770 If you meant to cross compile, use \`--host'.
3771 See \`config.log' for more details" "$LINENO" 5; }
3772     fi
3773   fi
3774 fi
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3776 $as_echo "$cross_compiling" >&6; }
3777
3778 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3779 ac_clean_files=$ac_clean_files_save
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3781 $as_echo_n "checking for suffix of object files... " >&6; }
3782 if ${ac_cv_objext+:} false; then :
3783   $as_echo_n "(cached) " >&6
3784 else
3785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h.  */
3787
3788 int
3789 main ()
3790 {
3791
3792   ;
3793   return 0;
3794 }
3795 _ACEOF
3796 rm -f conftest.o conftest.obj
3797 if { { ac_try="$ac_compile"
3798 case "(($ac_try" in
3799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800   *) ac_try_echo=$ac_try;;
3801 esac
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804   (eval "$ac_compile") 2>&5
3805   ac_status=$?
3806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807   test $ac_status = 0; }; then :
3808   for ac_file in conftest.o conftest.obj conftest.*; do
3809   test -f "$ac_file" || continue;
3810   case $ac_file in
3811     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3812     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3813        break;;
3814   esac
3815 done
3816 else
3817   $as_echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3819
3820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3822 as_fn_error $? "cannot compute suffix of object files: cannot compile
3823 See \`config.log' for more details" "$LINENO" 5; }
3824 fi
3825 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3826 fi
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3828 $as_echo "$ac_cv_objext" >&6; }
3829 OBJEXT=$ac_cv_objext
3830 ac_objext=$OBJEXT
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3832 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3833 if ${ac_cv_c_compiler_gnu+:} false; then :
3834   $as_echo_n "(cached) " >&6
3835 else
3836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h.  */
3838
3839 int
3840 main ()
3841 {
3842 #ifndef __GNUC__
3843        choke me
3844 #endif
3845
3846   ;
3847   return 0;
3848 }
3849 _ACEOF
3850 if ac_fn_c_try_compile "$LINENO"; then :
3851   ac_compiler_gnu=yes
3852 else
3853   ac_compiler_gnu=no
3854 fi
3855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3856 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3857
3858 fi
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3860 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3861 if test $ac_compiler_gnu = yes; then
3862   GCC=yes
3863 else
3864   GCC=
3865 fi
3866 ac_test_CFLAGS=${CFLAGS+set}
3867 ac_save_CFLAGS=$CFLAGS
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3869 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3870 if ${ac_cv_prog_cc_g+:} false; then :
3871   $as_echo_n "(cached) " >&6
3872 else
3873   ac_save_c_werror_flag=$ac_c_werror_flag
3874    ac_c_werror_flag=yes
3875    ac_cv_prog_cc_g=no
3876    CFLAGS="-g"
3877    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h.  */
3879
3880 int
3881 main ()
3882 {
3883
3884   ;
3885   return 0;
3886 }
3887 _ACEOF
3888 if ac_fn_c_try_compile "$LINENO"; then :
3889   ac_cv_prog_cc_g=yes
3890 else
3891   CFLAGS=""
3892       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h.  */
3894
3895 int
3896 main ()
3897 {
3898
3899   ;
3900   return 0;
3901 }
3902 _ACEOF
3903 if ac_fn_c_try_compile "$LINENO"; then :
3904
3905 else
3906   ac_c_werror_flag=$ac_save_c_werror_flag
3907          CFLAGS="-g"
3908          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h.  */
3910
3911 int
3912 main ()
3913 {
3914
3915   ;
3916   return 0;
3917 }
3918 _ACEOF
3919 if ac_fn_c_try_compile "$LINENO"; then :
3920   ac_cv_prog_cc_g=yes
3921 fi
3922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923 fi
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925 fi
3926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3927    ac_c_werror_flag=$ac_save_c_werror_flag
3928 fi
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3930 $as_echo "$ac_cv_prog_cc_g" >&6; }
3931 if test "$ac_test_CFLAGS" = set; then
3932   CFLAGS=$ac_save_CFLAGS
3933 elif test $ac_cv_prog_cc_g = yes; then
3934   if test "$GCC" = yes; then
3935     CFLAGS="-g -O2"
3936   else
3937     CFLAGS="-g"
3938   fi
3939 else
3940   if test "$GCC" = yes; then
3941     CFLAGS="-O2"
3942   else
3943     CFLAGS=
3944   fi
3945 fi
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3947 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3948 if ${ac_cv_prog_cc_c89+:} false; then :
3949   $as_echo_n "(cached) " >&6
3950 else
3951   ac_cv_prog_cc_c89=no
3952 ac_save_CC=$CC
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h.  */
3955 #include <stdarg.h>
3956 #include <stdio.h>
3957 struct stat;
3958 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3959 struct buf { int x; };
3960 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3961 static char *e (p, i)
3962      char **p;
3963      int i;
3964 {
3965   return p[i];
3966 }
3967 static char *f (char * (*g) (char **, int), char **p, ...)
3968 {
3969   char *s;
3970   va_list v;
3971   va_start (v,p);
3972   s = g (p, va_arg (v,int));
3973   va_end (v);
3974   return s;
3975 }
3976
3977 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3978    function prototypes and stuff, but not '\xHH' hex character constants.
3979    These don't provoke an error unfortunately, instead are silently treated
3980    as 'x'.  The following induces an error, until -std is added to get
3981    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3982    array size at least.  It's necessary to write '\x00'==0 to get something
3983    that's true only with -std.  */
3984 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3985
3986 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3987    inside strings and character constants.  */
3988 #define FOO(x) 'x'
3989 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3990
3991 int test (int i, double x);
3992 struct s1 {int (*f) (int a);};
3993 struct s2 {int (*f) (double a);};
3994 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3995 int argc;
3996 char **argv;
3997 int
3998 main ()
3999 {
4000 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4001   ;
4002   return 0;
4003 }
4004 _ACEOF
4005 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4006         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4007 do
4008   CC="$ac_save_CC $ac_arg"
4009   if ac_fn_c_try_compile "$LINENO"; then :
4010   ac_cv_prog_cc_c89=$ac_arg
4011 fi
4012 rm -f core conftest.err conftest.$ac_objext
4013   test "x$ac_cv_prog_cc_c89" != "xno" && break
4014 done
4015 rm -f conftest.$ac_ext
4016 CC=$ac_save_CC
4017
4018 fi
4019 # AC_CACHE_VAL
4020 case "x$ac_cv_prog_cc_c89" in
4021   x)
4022     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4023 $as_echo "none needed" >&6; } ;;
4024   xno)
4025     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4026 $as_echo "unsupported" >&6; } ;;
4027   *)
4028     CC="$CC $ac_cv_prog_cc_c89"
4029     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4030 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4031 esac
4032 if test "x$ac_cv_prog_cc_c89" != xno; then :
4033
4034 fi
4035
4036 ac_ext=c
4037 ac_cpp='$CPP $CPPFLAGS'
4038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041
4042 ac_ext=c
4043 ac_cpp='$CPP $CPPFLAGS'
4044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4048 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4049 if ${am_cv_prog_cc_c_o+:} false; then :
4050   $as_echo_n "(cached) " >&6
4051 else
4052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h.  */
4054
4055 int
4056 main ()
4057 {
4058
4059   ;
4060   return 0;
4061 }
4062 _ACEOF
4063   # Make sure it works both with $CC and with simple cc.
4064   # Following AC_PROG_CC_C_O, we do the test twice because some
4065   # compilers refuse to overwrite an existing .o file with -o,
4066   # though they will create one.
4067   am_cv_prog_cc_c_o=yes
4068   for am_i in 1 2; do
4069     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4070    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4071    ac_status=$?
4072    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073    (exit $ac_status); } \
4074          && test -f conftest2.$ac_objext; then
4075       : OK
4076     else
4077       am_cv_prog_cc_c_o=no
4078       break
4079     fi
4080   done
4081   rm -f core conftest*
4082   unset am_i
4083 fi
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4085 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4086 if test "$am_cv_prog_cc_c_o" != yes; then
4087    # Losing compiler, so override with the script.
4088    # FIXME: It is wrong to rewrite CC.
4089    # But if we don't then we get into trouble of one sort or another.
4090    # A longer-term fix would be to have automake use am__CC in this case,
4091    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4092    CC="$am_aux_dir/compile $CC"
4093 fi
4094 ac_ext=c
4095 ac_cpp='$CPP $CPPFLAGS'
4096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4099
4100 DEPDIR="${am__leading_dot}deps"
4101
4102 ac_config_commands="$ac_config_commands depfiles"
4103
4104
4105 am_make=${MAKE-make}
4106 cat > confinc << 'END'
4107 am__doit:
4108         @echo this is the am__doit target
4109 .PHONY: am__doit
4110 END
4111 # If we don't find an include directive, just comment out the code.
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4113 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4114 am__include="#"
4115 am__quote=
4116 _am_result=none
4117 # First try GNU make style include.
4118 echo "include confinc" > confmf
4119 # Ignore all kinds of additional output from 'make'.
4120 case `$am_make -s -f confmf 2> /dev/null` in #(
4121 *the\ am__doit\ target*)
4122   am__include=include
4123   am__quote=
4124   _am_result=GNU
4125   ;;
4126 esac
4127 # Now try BSD make style include.
4128 if test "$am__include" = "#"; then
4129    echo '.include "confinc"' > confmf
4130    case `$am_make -s -f confmf 2> /dev/null` in #(
4131    *the\ am__doit\ target*)
4132      am__include=.include
4133      am__quote="\""
4134      _am_result=BSD
4135      ;;
4136    esac
4137 fi
4138
4139
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4141 $as_echo "$_am_result" >&6; }
4142 rm -f confinc confmf
4143
4144 # Check whether --enable-dependency-tracking was given.
4145 if test "${enable_dependency_tracking+set}" = set; then :
4146   enableval=$enable_dependency_tracking;
4147 fi
4148
4149 if test "x$enable_dependency_tracking" != xno; then
4150   am_depcomp="$ac_aux_dir/depcomp"
4151   AMDEPBACKSLASH='\'
4152   am__nodep='_no'
4153 fi
4154  if test "x$enable_dependency_tracking" != xno; then
4155   AMDEP_TRUE=
4156   AMDEP_FALSE='#'
4157 else
4158   AMDEP_TRUE='#'
4159   AMDEP_FALSE=
4160 fi
4161
4162
4163
4164 depcc="$CC"   am_compiler_list=
4165
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4167 $as_echo_n "checking dependency style of $depcc... " >&6; }
4168 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4169   $as_echo_n "(cached) " >&6
4170 else
4171   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4172   # We make a subdir and do the tests there.  Otherwise we can end up
4173   # making bogus files that we don't know about and never remove.  For
4174   # instance it was reported that on HP-UX the gcc test will end up
4175   # making a dummy file named 'D' -- because '-MD' means "put the output
4176   # in D".
4177   rm -rf conftest.dir
4178   mkdir conftest.dir
4179   # Copy depcomp to subdir because otherwise we won't find it if we're
4180   # using a relative directory.
4181   cp "$am_depcomp" conftest.dir
4182   cd conftest.dir
4183   # We will build objects and dependencies in a subdirectory because
4184   # it helps to detect inapplicable dependency modes.  For instance
4185   # both Tru64's cc and ICC support -MD to output dependencies as a
4186   # side effect of compilation, but ICC will put the dependencies in
4187   # the current directory while Tru64 will put them in the object
4188   # directory.
4189   mkdir sub
4190
4191   am_cv_CC_dependencies_compiler_type=none
4192   if test "$am_compiler_list" = ""; then
4193      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4194   fi
4195   am__universal=false
4196   case " $depcc " in #(
4197      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4198      esac
4199
4200   for depmode in $am_compiler_list; do
4201     # Setup a source with many dependencies, because some compilers
4202     # like to wrap large dependency lists on column 80 (with \), and
4203     # we should not choose a depcomp mode which is confused by this.
4204     #
4205     # We need to recreate these files for each test, as the compiler may
4206     # overwrite some of them when testing with obscure command lines.
4207     # This happens at least with the AIX C compiler.
4208     : > sub/conftest.c
4209     for i in 1 2 3 4 5 6; do
4210       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4211       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4212       # Solaris 10 /bin/sh.
4213       echo '/* dummy */' > sub/conftst$i.h
4214     done
4215     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4216
4217     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4218     # mode.  It turns out that the SunPro C++ compiler does not properly
4219     # handle '-M -o', and we need to detect this.  Also, some Intel
4220     # versions had trouble with output in subdirs.
4221     am__obj=sub/conftest.${OBJEXT-o}
4222     am__minus_obj="-o $am__obj"
4223     case $depmode in
4224     gcc)
4225       # This depmode causes a compiler race in universal mode.
4226       test "$am__universal" = false || continue
4227       ;;
4228     nosideeffect)
4229       # After this tag, mechanisms are not by side-effect, so they'll
4230       # only be used when explicitly requested.
4231       if test "x$enable_dependency_tracking" = xyes; then
4232         continue
4233       else
4234         break
4235       fi
4236       ;;
4237     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4238       # This compiler won't grok '-c -o', but also, the minuso test has
4239       # not run yet.  These depmodes are late enough in the game, and
4240       # so weak that their functioning should not be impacted.
4241       am__obj=conftest.${OBJEXT-o}
4242       am__minus_obj=
4243       ;;
4244     none) break ;;
4245     esac
4246     if depmode=$depmode \
4247        source=sub/conftest.c object=$am__obj \
4248        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4249        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4250          >/dev/null 2>conftest.err &&
4251        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4252        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4253        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4254        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4255       # icc doesn't choke on unknown options, it will just issue warnings
4256       # or remarks (even with -Werror).  So we grep stderr for any message
4257       # that says an option was ignored or not supported.
4258       # When given -MP, icc 7.0 and 7.1 complain thusly:
4259       #   icc: Command line warning: ignoring option '-M'; no argument required
4260       # The diagnosis changed in icc 8.0:
4261       #   icc: Command line remark: option '-MP' not supported
4262       if (grep 'ignoring option' conftest.err ||
4263           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4264         am_cv_CC_dependencies_compiler_type=$depmode
4265         break
4266       fi
4267     fi
4268   done
4269
4270   cd ..
4271   rm -rf conftest.dir
4272 else
4273   am_cv_CC_dependencies_compiler_type=none
4274 fi
4275
4276 fi
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4278 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4279 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4280
4281  if
4282   test "x$enable_dependency_tracking" != xno \
4283   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4284   am__fastdepCC_TRUE=
4285   am__fastdepCC_FALSE='#'
4286 else
4287   am__fastdepCC_TRUE='#'
4288   am__fastdepCC_FALSE=
4289 fi
4290
4291
4292
4293 ac_ext=c
4294 ac_cpp='$CPP $CPPFLAGS'
4295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4299 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4300 # On Suns, sometimes $CPP names a directory.
4301 if test -n "$CPP" && test -d "$CPP"; then
4302   CPP=
4303 fi
4304 if test -z "$CPP"; then
4305   if ${ac_cv_prog_CPP+:} false; then :
4306   $as_echo_n "(cached) " >&6
4307 else
4308       # Double quotes because CPP needs to be expanded
4309     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4310     do
4311       ac_preproc_ok=false
4312 for ac_c_preproc_warn_flag in '' yes
4313 do
4314   # Use a header file that comes with gcc, so configuring glibc
4315   # with a fresh cross-compiler works.
4316   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4317   # <limits.h> exists even on freestanding compilers.
4318   # On the NeXT, cc -E runs the code through the compiler's parser,
4319   # not just through cpp. "Syntax error" is here to catch this case.
4320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h.  */
4322 #ifdef __STDC__
4323 # include <limits.h>
4324 #else
4325 # include <assert.h>
4326 #endif
4327                      Syntax error
4328 _ACEOF
4329 if ac_fn_c_try_cpp "$LINENO"; then :
4330
4331 else
4332   # Broken: fails on valid input.
4333 continue
4334 fi
4335 rm -f conftest.err conftest.i conftest.$ac_ext
4336
4337   # OK, works on sane cases.  Now check whether nonexistent headers
4338   # can be detected and how.
4339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h.  */
4341 #include <ac_nonexistent.h>
4342 _ACEOF
4343 if ac_fn_c_try_cpp "$LINENO"; then :
4344   # Broken: success on invalid input.
4345 continue
4346 else
4347   # Passes both tests.
4348 ac_preproc_ok=:
4349 break
4350 fi
4351 rm -f conftest.err conftest.i conftest.$ac_ext
4352
4353 done
4354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4355 rm -f conftest.i conftest.err conftest.$ac_ext
4356 if $ac_preproc_ok; then :
4357   break
4358 fi
4359
4360     done
4361     ac_cv_prog_CPP=$CPP
4362
4363 fi
4364   CPP=$ac_cv_prog_CPP
4365 else
4366   ac_cv_prog_CPP=$CPP
4367 fi
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4369 $as_echo "$CPP" >&6; }
4370 ac_preproc_ok=false
4371 for ac_c_preproc_warn_flag in '' yes
4372 do
4373   # Use a header file that comes with gcc, so configuring glibc
4374   # with a fresh cross-compiler works.
4375   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4376   # <limits.h> exists even on freestanding compilers.
4377   # On the NeXT, cc -E runs the code through the compiler's parser,
4378   # not just through cpp. "Syntax error" is here to catch this case.
4379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h.  */
4381 #ifdef __STDC__
4382 # include <limits.h>
4383 #else
4384 # include <assert.h>
4385 #endif
4386                      Syntax error
4387 _ACEOF
4388 if ac_fn_c_try_cpp "$LINENO"; then :
4389
4390 else
4391   # Broken: fails on valid input.
4392 continue
4393 fi
4394 rm -f conftest.err conftest.i conftest.$ac_ext
4395
4396   # OK, works on sane cases.  Now check whether nonexistent headers
4397   # can be detected and how.
4398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399 /* end confdefs.h.  */
4400 #include <ac_nonexistent.h>
4401 _ACEOF
4402 if ac_fn_c_try_cpp "$LINENO"; then :
4403   # Broken: success on invalid input.
4404 continue
4405 else
4406   # Passes both tests.
4407 ac_preproc_ok=:
4408 break
4409 fi
4410 rm -f conftest.err conftest.i conftest.$ac_ext
4411
4412 done
4413 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4414 rm -f conftest.i conftest.err conftest.$ac_ext
4415 if $ac_preproc_ok; then :
4416
4417 else
4418   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4420 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4421 See \`config.log' for more details" "$LINENO" 5; }
4422 fi
4423
4424 ac_ext=c
4425 ac_cpp='$CPP $CPPFLAGS'
4426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4429
4430
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4432 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4433 if ${ac_cv_path_GREP+:} false; then :
4434   $as_echo_n "(cached) " >&6
4435 else
4436   if test -z "$GREP"; then
4437   ac_path_GREP_found=false
4438   # Loop through the user's path and test for each of PROGNAME-LIST
4439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4441 do
4442   IFS=$as_save_IFS
4443   test -z "$as_dir" && as_dir=.
4444     for ac_prog in grep ggrep; do
4445     for ac_exec_ext in '' $ac_executable_extensions; do
4446       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4447       as_fn_executable_p "$ac_path_GREP" || continue
4448 # Check for GNU ac_path_GREP and select it if it is found.
4449   # Check for GNU $ac_path_GREP
4450 case `"$ac_path_GREP" --version 2>&1` in
4451 *GNU*)
4452   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4453 *)
4454   ac_count=0
4455   $as_echo_n 0123456789 >"conftest.in"
4456   while :
4457   do
4458     cat "conftest.in" "conftest.in" >"conftest.tmp"
4459     mv "conftest.tmp" "conftest.in"
4460     cp "conftest.in" "conftest.nl"
4461     $as_echo 'GREP' >> "conftest.nl"
4462     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4463     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4464     as_fn_arith $ac_count + 1 && ac_count=$as_val
4465     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4466       # Best one so far, save it but keep looking for a better one
4467       ac_cv_path_GREP="$ac_path_GREP"
4468       ac_path_GREP_max=$ac_count
4469     fi
4470     # 10*(2^10) chars as input seems more than enough
4471     test $ac_count -gt 10 && break
4472   done
4473   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4474 esac
4475
4476       $ac_path_GREP_found && break 3
4477     done
4478   done
4479   done
4480 IFS=$as_save_IFS
4481   if test -z "$ac_cv_path_GREP"; then
4482     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4483   fi
4484 else
4485   ac_cv_path_GREP=$GREP
4486 fi
4487
4488 fi
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4490 $as_echo "$ac_cv_path_GREP" >&6; }
4491  GREP="$ac_cv_path_GREP"
4492
4493
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4495 $as_echo_n "checking for egrep... " >&6; }
4496 if ${ac_cv_path_EGREP+:} false; then :
4497   $as_echo_n "(cached) " >&6
4498 else
4499   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4500    then ac_cv_path_EGREP="$GREP -E"
4501    else
4502      if test -z "$EGREP"; then
4503   ac_path_EGREP_found=false
4504   # Loop through the user's path and test for each of PROGNAME-LIST
4505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4507 do
4508   IFS=$as_save_IFS
4509   test -z "$as_dir" && as_dir=.
4510     for ac_prog in egrep; do
4511     for ac_exec_ext in '' $ac_executable_extensions; do
4512       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4513       as_fn_executable_p "$ac_path_EGREP" || continue
4514 # Check for GNU ac_path_EGREP and select it if it is found.
4515   # Check for GNU $ac_path_EGREP
4516 case `"$ac_path_EGREP" --version 2>&1` in
4517 *GNU*)
4518   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4519 *)
4520   ac_count=0
4521   $as_echo_n 0123456789 >"conftest.in"
4522   while :
4523   do
4524     cat "conftest.in" "conftest.in" >"conftest.tmp"
4525     mv "conftest.tmp" "conftest.in"
4526     cp "conftest.in" "conftest.nl"
4527     $as_echo 'EGREP' >> "conftest.nl"
4528     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4529     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4530     as_fn_arith $ac_count + 1 && ac_count=$as_val
4531     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4532       # Best one so far, save it but keep looking for a better one
4533       ac_cv_path_EGREP="$ac_path_EGREP"
4534       ac_path_EGREP_max=$ac_count
4535     fi
4536     # 10*(2^10) chars as input seems more than enough
4537     test $ac_count -gt 10 && break
4538   done
4539   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4540 esac
4541
4542       $ac_path_EGREP_found && break 3
4543     done
4544   done
4545   done
4546 IFS=$as_save_IFS
4547   if test -z "$ac_cv_path_EGREP"; then
4548     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4549   fi
4550 else
4551   ac_cv_path_EGREP=$EGREP
4552 fi
4553
4554    fi
4555 fi
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4557 $as_echo "$ac_cv_path_EGREP" >&6; }
4558  EGREP="$ac_cv_path_EGREP"
4559
4560
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4562 $as_echo_n "checking for ANSI C header files... " >&6; }
4563 if ${ac_cv_header_stdc+:} false; then :
4564   $as_echo_n "(cached) " >&6
4565 else
4566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h.  */
4568 #include <stdlib.h>
4569 #include <stdarg.h>
4570 #include <string.h>
4571 #include <float.h>
4572
4573 int
4574 main ()
4575 {
4576
4577   ;
4578   return 0;
4579 }
4580 _ACEOF
4581 if ac_fn_c_try_compile "$LINENO"; then :
4582   ac_cv_header_stdc=yes
4583 else
4584   ac_cv_header_stdc=no
4585 fi
4586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4587
4588 if test $ac_cv_header_stdc = yes; then
4589   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h.  */
4592 #include <string.h>
4593
4594 _ACEOF
4595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4596   $EGREP "memchr" >/dev/null 2>&1; then :
4597
4598 else
4599   ac_cv_header_stdc=no
4600 fi
4601 rm -f conftest*
4602
4603 fi
4604
4605 if test $ac_cv_header_stdc = yes; then
4606   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h.  */
4609 #include <stdlib.h>
4610
4611 _ACEOF
4612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4613   $EGREP "free" >/dev/null 2>&1; then :
4614
4615 else
4616   ac_cv_header_stdc=no
4617 fi
4618 rm -f conftest*
4619
4620 fi
4621
4622 if test $ac_cv_header_stdc = yes; then
4623   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4624   if test "$cross_compiling" = yes; then :
4625   :
4626 else
4627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h.  */
4629 #include <ctype.h>
4630 #include <stdlib.h>
4631 #if ((' ' & 0x0FF) == 0x020)
4632 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4633 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4634 #else
4635 # define ISLOWER(c) \
4636                    (('a' <= (c) && (c) <= 'i') \
4637                      || ('j' <= (c) && (c) <= 'r') \
4638                      || ('s' <= (c) && (c) <= 'z'))
4639 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4640 #endif
4641
4642 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4643 int
4644 main ()
4645 {
4646   int i;
4647   for (i = 0; i < 256; i++)
4648     if (XOR (islower (i), ISLOWER (i))
4649         || toupper (i) != TOUPPER (i))
4650       return 2;
4651   return 0;
4652 }
4653 _ACEOF
4654 if ac_fn_c_try_run "$LINENO"; then :
4655
4656 else
4657   ac_cv_header_stdc=no
4658 fi
4659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4660   conftest.$ac_objext conftest.beam conftest.$ac_ext
4661 fi
4662
4663 fi
4664 fi
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4666 $as_echo "$ac_cv_header_stdc" >&6; }
4667 if test $ac_cv_header_stdc = yes; then
4668
4669 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4670
4671 fi
4672
4673 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4674 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4675                   inttypes.h stdint.h unistd.h
4676 do :
4677   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4678 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4679 "
4680 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4681   cat >>confdefs.h <<_ACEOF
4682 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4683 _ACEOF
4684
4685 fi
4686
4687 done
4688
4689
4690
4691   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4692 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4693   MINIX=yes
4694 else
4695   MINIX=
4696 fi
4697
4698
4699   if test "$MINIX" = yes; then
4700
4701 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4702
4703
4704 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4705
4706
4707 $as_echo "#define _MINIX 1" >>confdefs.h
4708
4709   fi
4710
4711
4712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4713 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4714 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4715   $as_echo_n "(cached) " >&6
4716 else
4717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718 /* end confdefs.h.  */
4719
4720 #         define __EXTENSIONS__ 1
4721           $ac_includes_default
4722 int
4723 main ()
4724 {
4725
4726   ;
4727   return 0;
4728 }
4729 _ACEOF
4730 if ac_fn_c_try_compile "$LINENO"; then :
4731   ac_cv_safe_to_define___extensions__=yes
4732 else
4733   ac_cv_safe_to_define___extensions__=no
4734 fi
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 fi
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4738 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4739   test $ac_cv_safe_to_define___extensions__ = yes &&
4740     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4741
4742   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4743
4744   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4745
4746   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4747
4748   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4749
4750
4751 # Check whether --enable-largefile was given.
4752 if test "${enable_largefile+set}" = set; then :
4753   enableval=$enable_largefile;
4754 fi
4755
4756 if test "$enable_largefile" != no; then
4757
4758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4759 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4760 if ${ac_cv_sys_largefile_CC+:} false; then :
4761   $as_echo_n "(cached) " >&6
4762 else
4763   ac_cv_sys_largefile_CC=no
4764      if test "$GCC" != yes; then
4765        ac_save_CC=$CC
4766        while :; do
4767          # IRIX 6.2 and later do not support large files by default,
4768          # so use the C compiler's -n32 option if that helps.
4769          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770 /* end confdefs.h.  */
4771 #include <sys/types.h>
4772  /* Check that off_t can represent 2**63 - 1 correctly.
4773     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4774     since some C++ compilers masquerading as C compilers
4775     incorrectly reject 9223372036854775807.  */
4776 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4777   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4778                        && LARGE_OFF_T % 2147483647 == 1)
4779                       ? 1 : -1];
4780 int
4781 main ()
4782 {
4783
4784   ;
4785   return 0;
4786 }
4787 _ACEOF
4788          if ac_fn_c_try_compile "$LINENO"; then :
4789   break
4790 fi
4791 rm -f core conftest.err conftest.$ac_objext
4792          CC="$CC -n32"
4793          if ac_fn_c_try_compile "$LINENO"; then :
4794   ac_cv_sys_largefile_CC=' -n32'; break
4795 fi
4796 rm -f core conftest.err conftest.$ac_objext
4797          break
4798        done
4799        CC=$ac_save_CC
4800        rm -f conftest.$ac_ext
4801     fi
4802 fi
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4804 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4805   if test "$ac_cv_sys_largefile_CC" != no; then
4806     CC=$CC$ac_cv_sys_largefile_CC
4807   fi
4808
4809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4810 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4811 if ${ac_cv_sys_file_offset_bits+:} false; then :
4812   $as_echo_n "(cached) " >&6
4813 else
4814   while :; do
4815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h.  */
4817 #include <sys/types.h>
4818  /* Check that off_t can represent 2**63 - 1 correctly.
4819     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4820     since some C++ compilers masquerading as C compilers
4821     incorrectly reject 9223372036854775807.  */
4822 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4823   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4824                        && LARGE_OFF_T % 2147483647 == 1)
4825                       ? 1 : -1];
4826 int
4827 main ()
4828 {
4829
4830   ;
4831   return 0;
4832 }
4833 _ACEOF
4834 if ac_fn_c_try_compile "$LINENO"; then :
4835   ac_cv_sys_file_offset_bits=no; break
4836 fi
4837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h.  */
4840 #define _FILE_OFFSET_BITS 64
4841 #include <sys/types.h>
4842  /* Check that off_t can represent 2**63 - 1 correctly.
4843     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4844     since some C++ compilers masquerading as C compilers
4845     incorrectly reject 9223372036854775807.  */
4846 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4847   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4848                        && LARGE_OFF_T % 2147483647 == 1)
4849                       ? 1 : -1];
4850 int
4851 main ()
4852 {
4853
4854   ;
4855   return 0;
4856 }
4857 _ACEOF
4858 if ac_fn_c_try_compile "$LINENO"; then :
4859   ac_cv_sys_file_offset_bits=64; break
4860 fi
4861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4862   ac_cv_sys_file_offset_bits=unknown
4863   break
4864 done
4865 fi
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4867 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4868 case $ac_cv_sys_file_offset_bits in #(
4869   no | unknown) ;;
4870   *)
4871 cat >>confdefs.h <<_ACEOF
4872 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4873 _ACEOF
4874 ;;
4875 esac
4876 rm -rf conftest*
4877   if test $ac_cv_sys_file_offset_bits = unknown; then
4878     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4879 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4880 if ${ac_cv_sys_large_files+:} false; then :
4881   $as_echo_n "(cached) " >&6
4882 else
4883   while :; do
4884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h.  */
4886 #include <sys/types.h>
4887  /* Check that off_t can represent 2**63 - 1 correctly.
4888     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4889     since some C++ compilers masquerading as C compilers
4890     incorrectly reject 9223372036854775807.  */
4891 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4892   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4893                        && LARGE_OFF_T % 2147483647 == 1)
4894                       ? 1 : -1];
4895 int
4896 main ()
4897 {
4898
4899   ;
4900   return 0;
4901 }
4902 _ACEOF
4903 if ac_fn_c_try_compile "$LINENO"; then :
4904   ac_cv_sys_large_files=no; break
4905 fi
4906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908 /* end confdefs.h.  */
4909 #define _LARGE_FILES 1
4910 #include <sys/types.h>
4911  /* Check that off_t can represent 2**63 - 1 correctly.
4912     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4913     since some C++ compilers masquerading as C compilers
4914     incorrectly reject 9223372036854775807.  */
4915 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4916   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4917                        && LARGE_OFF_T % 2147483647 == 1)
4918                       ? 1 : -1];
4919 int
4920 main ()
4921 {
4922
4923   ;
4924   return 0;
4925 }
4926 _ACEOF
4927 if ac_fn_c_try_compile "$LINENO"; then :
4928   ac_cv_sys_large_files=1; break
4929 fi
4930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4931   ac_cv_sys_large_files=unknown
4932   break
4933 done
4934 fi
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4936 $as_echo "$ac_cv_sys_large_files" >&6; }
4937 case $ac_cv_sys_large_files in #(
4938   no | unknown) ;;
4939   *)
4940 cat >>confdefs.h <<_ACEOF
4941 #define _LARGE_FILES $ac_cv_sys_large_files
4942 _ACEOF
4943 ;;
4944 esac
4945 rm -rf conftest*
4946   fi
4947
4948
4949 fi
4950
4951
4952
4953 if test -n "$ac_tool_prefix"; then
4954   for ac_prog in ar lib "link -lib"
4955   do
4956     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4957 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959 $as_echo_n "checking for $ac_word... " >&6; }
4960 if ${ac_cv_prog_AR+:} false; then :
4961   $as_echo_n "(cached) " >&6
4962 else
4963   if test -n "$AR"; then
4964   ac_cv_prog_AR="$AR" # Let the user override the test.
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4968 do
4969   IFS=$as_save_IFS
4970   test -z "$as_dir" && as_dir=.
4971     for ac_exec_ext in '' $ac_executable_extensions; do
4972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4975     break 2
4976   fi
4977 done
4978   done
4979 IFS=$as_save_IFS
4980
4981 fi
4982 fi
4983 AR=$ac_cv_prog_AR
4984 if test -n "$AR"; then
4985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4986 $as_echo "$AR" >&6; }
4987 else
4988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 $as_echo "no" >&6; }
4990 fi
4991
4992
4993     test -n "$AR" && break
4994   done
4995 fi
4996 if test -z "$AR"; then
4997   ac_ct_AR=$AR
4998   for ac_prog in ar lib "link -lib"
4999 do
5000   # Extract the first word of "$ac_prog", so it can be a program name with args.
5001 set dummy $ac_prog; ac_word=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5005   $as_echo_n "(cached) " >&6
5006 else
5007   if test -n "$ac_ct_AR"; then
5008   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5009 else
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5012 do
5013   IFS=$as_save_IFS
5014   test -z "$as_dir" && as_dir=.
5015     for ac_exec_ext in '' $ac_executable_extensions; do
5016   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5017     ac_cv_prog_ac_ct_AR="$ac_prog"
5018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019     break 2
5020   fi
5021 done
5022   done
5023 IFS=$as_save_IFS
5024
5025 fi
5026 fi
5027 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5028 if test -n "$ac_ct_AR"; then
5029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5030 $as_echo "$ac_ct_AR" >&6; }
5031 else
5032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033 $as_echo "no" >&6; }
5034 fi
5035
5036
5037   test -n "$ac_ct_AR" && break
5038 done
5039
5040   if test "x$ac_ct_AR" = x; then
5041     AR="false"
5042   else
5043     case $cross_compiling:$ac_tool_warned in
5044 yes:)
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5047 ac_tool_warned=yes ;;
5048 esac
5049     AR=$ac_ct_AR
5050   fi
5051 fi
5052
5053 : ${AR=ar}
5054
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5056 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5057 if ${am_cv_ar_interface+:} false; then :
5058   $as_echo_n "(cached) " >&6
5059 else
5060   ac_ext=c
5061 ac_cpp='$CPP $CPPFLAGS'
5062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5065
5066    am_cv_ar_interface=ar
5067    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h.  */
5069 int some_variable = 0;
5070 _ACEOF
5071 if ac_fn_c_try_compile "$LINENO"; then :
5072   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5073       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5074   (eval $am_ar_try) 2>&5
5075   ac_status=$?
5076   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5077   test $ac_status = 0; }
5078       if test "$ac_status" -eq 0; then
5079         am_cv_ar_interface=ar
5080       else
5081         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5082         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5083   (eval $am_ar_try) 2>&5
5084   ac_status=$?
5085   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5086   test $ac_status = 0; }
5087         if test "$ac_status" -eq 0; then
5088           am_cv_ar_interface=lib
5089         else
5090           am_cv_ar_interface=unknown
5091         fi
5092       fi
5093       rm -f conftest.lib libconftest.a
5094
5095 fi
5096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5097    ac_ext=c
5098 ac_cpp='$CPP $CPPFLAGS'
5099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5102
5103 fi
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5105 $as_echo "$am_cv_ar_interface" >&6; }
5106
5107 case $am_cv_ar_interface in
5108 ar)
5109   ;;
5110 lib)
5111   # Microsoft lib, so override with the ar-lib wrapper script.
5112   # FIXME: It is wrong to rewrite AR.
5113   # But if we don't then we get into trouble of one sort or another.
5114   # A longer-term fix would be to have automake use am__AR in this case,
5115   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5116   # similar.
5117   AR="$am_aux_dir/ar-lib $AR"
5118   ;;
5119 unknown)
5120   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5121   ;;
5122 esac
5123
5124 # Check whether --enable-static was given.
5125 if test "${enable_static+set}" = set; then :
5126   enableval=$enable_static; p=${PACKAGE-default}
5127     case $enableval in
5128     yes) enable_static=yes ;;
5129     no) enable_static=no ;;
5130     *)
5131      enable_static=no
5132       # Look at the argument we got.  We use all the common list separators.
5133       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5134       for pkg in $enableval; do
5135         IFS="$lt_save_ifs"
5136         if test "X$pkg" = "X$p"; then
5137           enable_static=yes
5138         fi
5139       done
5140       IFS="$lt_save_ifs"
5141       ;;
5142     esac
5143 else
5144   enable_static=no
5145 fi
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155 case `pwd` in
5156   *\ * | *\     *)
5157     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5158 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5159 esac
5160
5161
5162
5163 macro_version='2.4.2'
5164 macro_revision='1.3337'
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178 ltmain="$ac_aux_dir/ltmain.sh"
5179
5180 # Make sure we can run config.sub.
5181 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5182   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5183
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5185 $as_echo_n "checking build system type... " >&6; }
5186 if ${ac_cv_build+:} false; then :
5187   $as_echo_n "(cached) " >&6
5188 else
5189   ac_build_alias=$build_alias
5190 test "x$ac_build_alias" = x &&
5191   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5192 test "x$ac_build_alias" = x &&
5193   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5194 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5195   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5196
5197 fi
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5199 $as_echo "$ac_cv_build" >&6; }
5200 case $ac_cv_build in
5201 *-*-*) ;;
5202 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5203 esac
5204 build=$ac_cv_build
5205 ac_save_IFS=$IFS; IFS='-'
5206 set x $ac_cv_build
5207 shift
5208 build_cpu=$1
5209 build_vendor=$2
5210 shift; shift
5211 # Remember, the first character of IFS is used to create $*,
5212 # except with old shells:
5213 build_os=$*
5214 IFS=$ac_save_IFS
5215 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5216
5217
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5219 $as_echo_n "checking host system type... " >&6; }
5220 if ${ac_cv_host+:} false; then :
5221   $as_echo_n "(cached) " >&6
5222 else
5223   if test "x$host_alias" = x; then
5224   ac_cv_host=$ac_cv_build
5225 else
5226   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5227     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5228 fi
5229
5230 fi
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5232 $as_echo "$ac_cv_host" >&6; }
5233 case $ac_cv_host in
5234 *-*-*) ;;
5235 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5236 esac
5237 host=$ac_cv_host
5238 ac_save_IFS=$IFS; IFS='-'
5239 set x $ac_cv_host
5240 shift
5241 host_cpu=$1
5242 host_vendor=$2
5243 shift; shift
5244 # Remember, the first character of IFS is used to create $*,
5245 # except with old shells:
5246 host_os=$*
5247 IFS=$ac_save_IFS
5248 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5249
5250
5251 # Backslashify metacharacters that are still active within
5252 # double-quoted strings.
5253 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5254
5255 # Same as above, but do not quote variable references.
5256 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5257
5258 # Sed substitution to delay expansion of an escaped shell variable in a
5259 # double_quote_subst'ed string.
5260 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5261
5262 # Sed substitution to delay expansion of an escaped single quote.
5263 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5264
5265 # Sed substitution to avoid accidental globbing in evaled expressions
5266 no_glob_subst='s/\*/\\\*/g'
5267
5268 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5269 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5270 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5271
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5273 $as_echo_n "checking how to print strings... " >&6; }
5274 # Test print first, because it will be a builtin if present.
5275 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5276    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5277   ECHO='print -r --'
5278 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5279   ECHO='printf %s\n'
5280 else
5281   # Use this function as a fallback that always works.
5282   func_fallback_echo ()
5283   {
5284     eval 'cat <<_LTECHO_EOF
5285 $1
5286 _LTECHO_EOF'
5287   }
5288   ECHO='func_fallback_echo'
5289 fi
5290
5291 # func_echo_all arg...
5292 # Invoke $ECHO with all args, space-separated.
5293 func_echo_all ()
5294 {
5295     $ECHO ""
5296 }
5297
5298 case "$ECHO" in
5299   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5300 $as_echo "printf" >&6; } ;;
5301   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5302 $as_echo "print -r" >&6; } ;;
5303   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5304 $as_echo "cat" >&6; } ;;
5305 esac
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5321 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5322 if ${ac_cv_path_SED+:} false; then :
5323   $as_echo_n "(cached) " >&6
5324 else
5325             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5326      for ac_i in 1 2 3 4 5 6 7; do
5327        ac_script="$ac_script$as_nl$ac_script"
5328      done
5329      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5330      { ac_script=; unset ac_script;}
5331      if test -z "$SED"; then
5332   ac_path_SED_found=false
5333   # Loop through the user's path and test for each of PROGNAME-LIST
5334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5336 do
5337   IFS=$as_save_IFS
5338   test -z "$as_dir" && as_dir=.
5339     for ac_prog in sed gsed; do
5340     for ac_exec_ext in '' $ac_executable_extensions; do
5341       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5342       as_fn_executable_p "$ac_path_SED" || continue
5343 # Check for GNU ac_path_SED and select it if it is found.
5344   # Check for GNU $ac_path_SED
5345 case `"$ac_path_SED" --version 2>&1` in
5346 *GNU*)
5347   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5348 *)
5349   ac_count=0
5350   $as_echo_n 0123456789 >"conftest.in"
5351   while :
5352   do
5353     cat "conftest.in" "conftest.in" >"conftest.tmp"
5354     mv "conftest.tmp" "conftest.in"
5355     cp "conftest.in" "conftest.nl"
5356     $as_echo '' >> "conftest.nl"
5357     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5358     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5359     as_fn_arith $ac_count + 1 && ac_count=$as_val
5360     if test $ac_count -gt ${ac_path_SED_max-0}; then
5361       # Best one so far, save it but keep looking for a better one
5362       ac_cv_path_SED="$ac_path_SED"
5363       ac_path_SED_max=$ac_count
5364     fi
5365     # 10*(2^10) chars as input seems more than enough
5366     test $ac_count -gt 10 && break
5367   done
5368   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5369 esac
5370
5371       $ac_path_SED_found && break 3
5372     done
5373   done
5374   done
5375 IFS=$as_save_IFS
5376   if test -z "$ac_cv_path_SED"; then
5377     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5378   fi
5379 else
5380   ac_cv_path_SED=$SED
5381 fi
5382
5383 fi
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5385 $as_echo "$ac_cv_path_SED" >&6; }
5386  SED="$ac_cv_path_SED"
5387   rm -f conftest.sed
5388
5389 test -z "$SED" && SED=sed
5390 Xsed="$SED -e 1s/^X//"
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5403 $as_echo_n "checking for fgrep... " >&6; }
5404 if ${ac_cv_path_FGREP+:} false; then :
5405   $as_echo_n "(cached) " >&6
5406 else
5407   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5408    then ac_cv_path_FGREP="$GREP -F"
5409    else
5410      if test -z "$FGREP"; then
5411   ac_path_FGREP_found=false
5412   # Loop through the user's path and test for each of PROGNAME-LIST
5413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5415 do
5416   IFS=$as_save_IFS
5417   test -z "$as_dir" && as_dir=.
5418     for ac_prog in fgrep; do
5419     for ac_exec_ext in '' $ac_executable_extensions; do
5420       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5421       as_fn_executable_p "$ac_path_FGREP" || continue
5422 # Check for GNU ac_path_FGREP and select it if it is found.
5423   # Check for GNU $ac_path_FGREP
5424 case `"$ac_path_FGREP" --version 2>&1` in
5425 *GNU*)
5426   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5427 *)
5428   ac_count=0
5429   $as_echo_n 0123456789 >"conftest.in"
5430   while :
5431   do
5432     cat "conftest.in" "conftest.in" >"conftest.tmp"
5433     mv "conftest.tmp" "conftest.in"
5434     cp "conftest.in" "conftest.nl"
5435     $as_echo 'FGREP' >> "conftest.nl"
5436     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5437     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5438     as_fn_arith $ac_count + 1 && ac_count=$as_val
5439     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5440       # Best one so far, save it but keep looking for a better one
5441       ac_cv_path_FGREP="$ac_path_FGREP"
5442       ac_path_FGREP_max=$ac_count
5443     fi
5444     # 10*(2^10) chars as input seems more than enough
5445     test $ac_count -gt 10 && break
5446   done
5447   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5448 esac
5449
5450       $ac_path_FGREP_found && break 3
5451     done
5452   done
5453   done
5454 IFS=$as_save_IFS
5455   if test -z "$ac_cv_path_FGREP"; then
5456     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5457   fi
5458 else
5459   ac_cv_path_FGREP=$FGREP
5460 fi
5461
5462    fi
5463 fi
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5465 $as_echo "$ac_cv_path_FGREP" >&6; }
5466  FGREP="$ac_cv_path_FGREP"
5467
5468
5469 test -z "$GREP" && GREP=grep
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489 # Check whether --with-gnu-ld was given.
5490 if test "${with_gnu_ld+set}" = set; then :
5491   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5492 else
5493   with_gnu_ld=no
5494 fi
5495
5496 ac_prog=ld
5497 if test "$GCC" = yes; then
5498   # Check if gcc -print-prog-name=ld gives a path.
5499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5500 $as_echo_n "checking for ld used by $CC... " >&6; }
5501   case $host in
5502   *-*-mingw*)
5503     # gcc leaves a trailing carriage return which upsets mingw
5504     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5505   *)
5506     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5507   esac
5508   case $ac_prog in
5509     # Accept absolute paths.
5510     [\\/]* | ?:[\\/]*)
5511       re_direlt='/[^/][^/]*/\.\./'
5512       # Canonicalize the pathname of ld
5513       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5514       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5515         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5516       done
5517       test -z "$LD" && LD="$ac_prog"
5518       ;;
5519   "")
5520     # If it fails, then pretend we aren't using GCC.
5521     ac_prog=ld
5522     ;;
5523   *)
5524     # If it is relative, then search for the first ld in PATH.
5525     with_gnu_ld=unknown
5526     ;;
5527   esac
5528 elif test "$with_gnu_ld" = yes; then
5529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5530 $as_echo_n "checking for GNU ld... " >&6; }
5531 else
5532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5533 $as_echo_n "checking for non-GNU ld... " >&6; }
5534 fi
5535 if ${lt_cv_path_LD+:} false; then :
5536   $as_echo_n "(cached) " >&6
5537 else
5538   if test -z "$LD"; then
5539   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5540   for ac_dir in $PATH; do
5541     IFS="$lt_save_ifs"
5542     test -z "$ac_dir" && ac_dir=.
5543     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5544       lt_cv_path_LD="$ac_dir/$ac_prog"
5545       # Check to see if the program is GNU ld.  I'd rather use --version,
5546       # but apparently some variants of GNU ld only accept -v.
5547       # Break only if it was the GNU/non-GNU ld that we prefer.
5548       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5549       *GNU* | *'with BFD'*)
5550         test "$with_gnu_ld" != no && break
5551         ;;
5552       *)
5553         test "$with_gnu_ld" != yes && break
5554         ;;
5555       esac
5556     fi
5557   done
5558   IFS="$lt_save_ifs"
5559 else
5560   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5561 fi
5562 fi
5563
5564 LD="$lt_cv_path_LD"
5565 if test -n "$LD"; then
5566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5567 $as_echo "$LD" >&6; }
5568 else
5569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570 $as_echo "no" >&6; }
5571 fi
5572 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5574 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5575 if ${lt_cv_prog_gnu_ld+:} false; then :
5576   $as_echo_n "(cached) " >&6
5577 else
5578   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5579 case `$LD -v 2>&1 </dev/null` in
5580 *GNU* | *'with BFD'*)
5581   lt_cv_prog_gnu_ld=yes
5582   ;;
5583 *)
5584   lt_cv_prog_gnu_ld=no
5585   ;;
5586 esac
5587 fi
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5589 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5590 with_gnu_ld=$lt_cv_prog_gnu_ld
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5601 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5602 if ${lt_cv_path_NM+:} false; then :
5603   $as_echo_n "(cached) " >&6
5604 else
5605   if test -n "$NM"; then
5606   # Let the user override the test.
5607   lt_cv_path_NM="$NM"
5608 else
5609   lt_nm_to_check="${ac_tool_prefix}nm"
5610   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5611     lt_nm_to_check="$lt_nm_to_check nm"
5612   fi
5613   for lt_tmp_nm in $lt_nm_to_check; do
5614     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5615     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5616       IFS="$lt_save_ifs"
5617       test -z "$ac_dir" && ac_dir=.
5618       tmp_nm="$ac_dir/$lt_tmp_nm"
5619       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5620         # Check to see if the nm accepts a BSD-compat flag.
5621         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5622         #   nm: unknown option "B" ignored
5623         # Tru64's nm complains that /dev/null is an invalid object file
5624         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5625         */dev/null* | *'Invalid file or object type'*)
5626           lt_cv_path_NM="$tmp_nm -B"
5627           break
5628           ;;
5629         *)
5630           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5631           */dev/null*)
5632             lt_cv_path_NM="$tmp_nm -p"
5633             break
5634             ;;
5635           *)
5636             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5637             continue # so that we can try to find one that supports BSD flags
5638             ;;
5639           esac
5640           ;;
5641         esac
5642       fi
5643     done
5644     IFS="$lt_save_ifs"
5645   done
5646   : ${lt_cv_path_NM=no}
5647 fi
5648 fi
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5650 $as_echo "$lt_cv_path_NM" >&6; }
5651 if test "$lt_cv_path_NM" != "no"; then
5652   NM="$lt_cv_path_NM"
5653 else
5654   # Didn't find any BSD compatible name lister, look for dumpbin.
5655   if test -n "$DUMPBIN"; then :
5656     # Let the user override the test.
5657   else
5658     if test -n "$ac_tool_prefix"; then
5659   for ac_prog in dumpbin "link -dump"
5660   do
5661     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664 $as_echo_n "checking for $ac_word... " >&6; }
5665 if ${ac_cv_prog_DUMPBIN+:} false; then :
5666   $as_echo_n "(cached) " >&6
5667 else
5668   if test -n "$DUMPBIN"; then
5669   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5670 else
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 for as_dir in $PATH
5673 do
5674   IFS=$as_save_IFS
5675   test -z "$as_dir" && as_dir=.
5676     for ac_exec_ext in '' $ac_executable_extensions; do
5677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5678     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5680     break 2
5681   fi
5682 done
5683   done
5684 IFS=$as_save_IFS
5685
5686 fi
5687 fi
5688 DUMPBIN=$ac_cv_prog_DUMPBIN
5689 if test -n "$DUMPBIN"; then
5690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5691 $as_echo "$DUMPBIN" >&6; }
5692 else
5693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694 $as_echo "no" >&6; }
5695 fi
5696
5697
5698     test -n "$DUMPBIN" && break
5699   done
5700 fi
5701 if test -z "$DUMPBIN"; then
5702   ac_ct_DUMPBIN=$DUMPBIN
5703   for ac_prog in dumpbin "link -dump"
5704 do
5705   # Extract the first word of "$ac_prog", so it can be a program name with args.
5706 set dummy $ac_prog; ac_word=$2
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5708 $as_echo_n "checking for $ac_word... " >&6; }
5709 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5710   $as_echo_n "(cached) " >&6
5711 else
5712   if test -n "$ac_ct_DUMPBIN"; then
5713   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5714 else
5715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 for as_dir in $PATH
5717 do
5718   IFS=$as_save_IFS
5719   test -z "$as_dir" && as_dir=.
5720     for ac_exec_ext in '' $ac_executable_extensions; do
5721   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5722     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5724     break 2
5725   fi
5726 done
5727   done
5728 IFS=$as_save_IFS
5729
5730 fi
5731 fi
5732 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5733 if test -n "$ac_ct_DUMPBIN"; then
5734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5735 $as_echo "$ac_ct_DUMPBIN" >&6; }
5736 else
5737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 $as_echo "no" >&6; }
5739 fi
5740
5741
5742   test -n "$ac_ct_DUMPBIN" && break
5743 done
5744
5745   if test "x$ac_ct_DUMPBIN" = x; then
5746     DUMPBIN=":"
5747   else
5748     case $cross_compiling:$ac_tool_warned in
5749 yes:)
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5752 ac_tool_warned=yes ;;
5753 esac
5754     DUMPBIN=$ac_ct_DUMPBIN
5755   fi
5756 fi
5757
5758     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5759     *COFF*)
5760       DUMPBIN="$DUMPBIN -symbols"
5761       ;;
5762     *)
5763       DUMPBIN=:
5764       ;;
5765     esac
5766   fi
5767
5768   if test "$DUMPBIN" != ":"; then
5769     NM="$DUMPBIN"
5770   fi
5771 fi
5772 test -z "$NM" && NM=nm
5773
5774
5775
5776
5777
5778
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5780 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5781 if ${lt_cv_nm_interface+:} false; then :
5782   $as_echo_n "(cached) " >&6
5783 else
5784   lt_cv_nm_interface="BSD nm"
5785   echo "int some_variable = 0;" > conftest.$ac_ext
5786   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5787   (eval "$ac_compile" 2>conftest.err)
5788   cat conftest.err >&5
5789   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5790   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5791   cat conftest.err >&5
5792   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5793   cat conftest.out >&5
5794   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5795     lt_cv_nm_interface="MS dumpbin"
5796   fi
5797   rm -f conftest*
5798 fi
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5800 $as_echo "$lt_cv_nm_interface" >&6; }
5801
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5803 $as_echo_n "checking whether ln -s works... " >&6; }
5804 LN_S=$as_ln_s
5805 if test "$LN_S" = "ln -s"; then
5806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5807 $as_echo "yes" >&6; }
5808 else
5809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5810 $as_echo "no, using $LN_S" >&6; }
5811 fi
5812
5813 # find the maximum length of command line arguments
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5815 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5816 if ${lt_cv_sys_max_cmd_len+:} false; then :
5817   $as_echo_n "(cached) " >&6
5818 else
5819     i=0
5820   teststring="ABCD"
5821
5822   case $build_os in
5823   msdosdjgpp*)
5824     # On DJGPP, this test can blow up pretty badly due to problems in libc
5825     # (any single argument exceeding 2000 bytes causes a buffer overrun
5826     # during glob expansion).  Even if it were fixed, the result of this
5827     # check would be larger than it should be.
5828     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5829     ;;
5830
5831   gnu*)
5832     # Under GNU Hurd, this test is not required because there is
5833     # no limit to the length of command line arguments.
5834     # Libtool will interpret -1 as no limit whatsoever
5835     lt_cv_sys_max_cmd_len=-1;
5836     ;;
5837
5838   cygwin* | mingw* | cegcc*)
5839     # On Win9x/ME, this test blows up -- it succeeds, but takes
5840     # about 5 minutes as the teststring grows exponentially.
5841     # Worse, since 9x/ME are not pre-emptively multitasking,
5842     # you end up with a "frozen" computer, even though with patience
5843     # the test eventually succeeds (with a max line length of 256k).
5844     # Instead, let's just punt: use the minimum linelength reported by
5845     # all of the supported platforms: 8192 (on NT/2K/XP).
5846     lt_cv_sys_max_cmd_len=8192;
5847     ;;
5848
5849   mint*)
5850     # On MiNT this can take a long time and run out of memory.
5851     lt_cv_sys_max_cmd_len=8192;
5852     ;;
5853
5854   amigaos*)
5855     # On AmigaOS with pdksh, this test takes hours, literally.
5856     # So we just punt and use a minimum line length of 8192.
5857     lt_cv_sys_max_cmd_len=8192;
5858     ;;
5859
5860   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5861     # This has been around since 386BSD, at least.  Likely further.
5862     if test -x /sbin/sysctl; then
5863       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5864     elif test -x /usr/sbin/sysctl; then
5865       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5866     else
5867       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5868     fi
5869     # And add a safety zone
5870     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5871     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5872     ;;
5873
5874   interix*)
5875     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5876     lt_cv_sys_max_cmd_len=196608
5877     ;;
5878
5879   os2*)
5880     # The test takes a long time on OS/2.
5881     lt_cv_sys_max_cmd_len=8192
5882     ;;
5883
5884   osf*)
5885     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5886     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5887     # nice to cause kernel panics so lets avoid the loop below.
5888     # First set a reasonable default.
5889     lt_cv_sys_max_cmd_len=16384
5890     #
5891     if test -x /sbin/sysconfig; then
5892       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5893         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5894       esac
5895     fi
5896     ;;
5897   sco3.2v5*)
5898     lt_cv_sys_max_cmd_len=102400
5899     ;;
5900   sysv5* | sco5v6* | sysv4.2uw2*)
5901     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5902     if test -n "$kargmax"; then
5903       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5904     else
5905       lt_cv_sys_max_cmd_len=32768
5906     fi
5907     ;;
5908   *)
5909     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5910     if test -n "$lt_cv_sys_max_cmd_len" && \
5911         test undefined != "$lt_cv_sys_max_cmd_len"; then
5912       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5913       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5914     else
5915       # Make teststring a little bigger before we do anything with it.
5916       # a 1K string should be a reasonable start.
5917       for i in 1 2 3 4 5 6 7 8 ; do
5918         teststring=$teststring$teststring
5919       done
5920       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5921       # If test is not a shell built-in, we'll probably end up computing a
5922       # maximum length that is only half of the actual maximum length, but
5923       # we can't tell.
5924       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5925                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5926               test $i != 17 # 1/2 MB should be enough
5927       do
5928         i=`expr $i + 1`
5929         teststring=$teststring$teststring
5930       done
5931       # Only check the string length outside the loop.
5932       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5933       teststring=
5934       # Add a significant safety factor because C++ compilers can tack on
5935       # massive amounts of additional arguments before passing them to the
5936       # linker.  It appears as though 1/2 is a usable value.
5937       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5938     fi
5939     ;;
5940   esac
5941
5942 fi
5943
5944 if test -n $lt_cv_sys_max_cmd_len ; then
5945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5946 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5947 else
5948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5949 $as_echo "none" >&6; }
5950 fi
5951 max_cmd_len=$lt_cv_sys_max_cmd_len
5952
5953
5954
5955
5956
5957
5958 : ${CP="cp -f"}
5959 : ${MV="mv -f"}
5960 : ${RM="rm -f"}
5961
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5963 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5964 # Try some XSI features
5965 xsi_shell=no
5966 ( _lt_dummy="a/b/c"
5967   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5968       = c,a/b,b/c, \
5969     && eval 'test $(( 1 + 1 )) -eq 2 \
5970     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5971   && xsi_shell=yes
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5973 $as_echo "$xsi_shell" >&6; }
5974
5975
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5977 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5978 lt_shell_append=no
5979 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5980     >/dev/null 2>&1 \
5981   && lt_shell_append=yes
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5983 $as_echo "$lt_shell_append" >&6; }
5984
5985
5986 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5987   lt_unset=unset
5988 else
5989   lt_unset=false
5990 fi
5991
5992
5993
5994
5995
5996 # test EBCDIC or ASCII
5997 case `echo X|tr X '\101'` in
5998  A) # ASCII based system
5999     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6000   lt_SP2NL='tr \040 \012'
6001   lt_NL2SP='tr \015\012 \040\040'
6002   ;;
6003  *) # EBCDIC based system
6004   lt_SP2NL='tr \100 \n'
6005   lt_NL2SP='tr \r\n \100\100'
6006   ;;
6007 esac
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6018 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6019 if ${lt_cv_to_host_file_cmd+:} false; then :
6020   $as_echo_n "(cached) " >&6
6021 else
6022   case $host in
6023   *-*-mingw* )
6024     case $build in
6025       *-*-mingw* ) # actually msys
6026         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6027         ;;
6028       *-*-cygwin* )
6029         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6030         ;;
6031       * ) # otherwise, assume *nix
6032         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6033         ;;
6034     esac
6035     ;;
6036   *-*-cygwin* )
6037     case $build in
6038       *-*-mingw* ) # actually msys
6039         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6040         ;;
6041       *-*-cygwin* )
6042         lt_cv_to_host_file_cmd=func_convert_file_noop
6043         ;;
6044       * ) # otherwise, assume *nix
6045         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6046         ;;
6047     esac
6048     ;;
6049   * ) # unhandled hosts (and "normal" native builds)
6050     lt_cv_to_host_file_cmd=func_convert_file_noop
6051     ;;
6052 esac
6053
6054 fi
6055
6056 to_host_file_cmd=$lt_cv_to_host_file_cmd
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6058 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6059
6060
6061
6062
6063
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6065 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6066 if ${lt_cv_to_tool_file_cmd+:} false; then :
6067   $as_echo_n "(cached) " >&6
6068 else
6069   #assume ordinary cross tools, or native build.
6070 lt_cv_to_tool_file_cmd=func_convert_file_noop
6071 case $host in
6072   *-*-mingw* )
6073     case $build in
6074       *-*-mingw* ) # actually msys
6075         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6076         ;;
6077     esac
6078     ;;
6079 esac
6080
6081 fi
6082
6083 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6085 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6086
6087
6088
6089
6090
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6092 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6093 if ${lt_cv_ld_reload_flag+:} false; then :
6094   $as_echo_n "(cached) " >&6
6095 else
6096   lt_cv_ld_reload_flag='-r'
6097 fi
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6099 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6100 reload_flag=$lt_cv_ld_reload_flag
6101 case $reload_flag in
6102 "" | " "*) ;;
6103 *) reload_flag=" $reload_flag" ;;
6104 esac
6105 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6106 case $host_os in
6107   cygwin* | mingw* | pw32* | cegcc*)
6108     if test "$GCC" != yes; then
6109       reload_cmds=false
6110     fi
6111     ;;
6112   darwin*)
6113     if test "$GCC" = yes; then
6114       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6115     else
6116       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6117     fi
6118     ;;
6119 esac
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129 if test -n "$ac_tool_prefix"; then
6130   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6131 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133 $as_echo_n "checking for $ac_word... " >&6; }
6134 if ${ac_cv_prog_OBJDUMP+:} false; then :
6135   $as_echo_n "(cached) " >&6
6136 else
6137   if test -n "$OBJDUMP"; then
6138   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6139 else
6140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 for as_dir in $PATH
6142 do
6143   IFS=$as_save_IFS
6144   test -z "$as_dir" && as_dir=.
6145     for ac_exec_ext in '' $ac_executable_extensions; do
6146   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6147     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149     break 2
6150   fi
6151 done
6152   done
6153 IFS=$as_save_IFS
6154
6155 fi
6156 fi
6157 OBJDUMP=$ac_cv_prog_OBJDUMP
6158 if test -n "$OBJDUMP"; then
6159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6160 $as_echo "$OBJDUMP" >&6; }
6161 else
6162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163 $as_echo "no" >&6; }
6164 fi
6165
6166
6167 fi
6168 if test -z "$ac_cv_prog_OBJDUMP"; then
6169   ac_ct_OBJDUMP=$OBJDUMP
6170   # Extract the first word of "objdump", so it can be a program name with args.
6171 set dummy objdump; ac_word=$2
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6173 $as_echo_n "checking for $ac_word... " >&6; }
6174 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6175   $as_echo_n "(cached) " >&6
6176 else
6177   if test -n "$ac_ct_OBJDUMP"; then
6178   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6179 else
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 for as_dir in $PATH
6182 do
6183   IFS=$as_save_IFS
6184   test -z "$as_dir" && as_dir=.
6185     for ac_exec_ext in '' $ac_executable_extensions; do
6186   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6187     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6189     break 2
6190   fi
6191 done
6192   done
6193 IFS=$as_save_IFS
6194
6195 fi
6196 fi
6197 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6198 if test -n "$ac_ct_OBJDUMP"; then
6199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6200 $as_echo "$ac_ct_OBJDUMP" >&6; }
6201 else
6202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6203 $as_echo "no" >&6; }
6204 fi
6205
6206   if test "x$ac_ct_OBJDUMP" = x; then
6207     OBJDUMP="false"
6208   else
6209     case $cross_compiling:$ac_tool_warned in
6210 yes:)
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6213 ac_tool_warned=yes ;;
6214 esac
6215     OBJDUMP=$ac_ct_OBJDUMP
6216   fi
6217 else
6218   OBJDUMP="$ac_cv_prog_OBJDUMP"
6219 fi
6220
6221 test -z "$OBJDUMP" && OBJDUMP=objdump
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6232 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6233 if ${lt_cv_deplibs_check_method+:} false; then :
6234   $as_echo_n "(cached) " >&6
6235 else
6236   lt_cv_file_magic_cmd='$MAGIC_CMD'
6237 lt_cv_file_magic_test_file=
6238 lt_cv_deplibs_check_method='unknown'
6239 # Need to set the preceding variable on all platforms that support
6240 # interlibrary dependencies.
6241 # 'none' -- dependencies not supported.
6242 # `unknown' -- same as none, but documents that we really don't know.
6243 # 'pass_all' -- all dependencies passed with no checks.
6244 # 'test_compile' -- check by making test program.
6245 # 'file_magic [[regex]]' -- check by looking for files in library path
6246 # which responds to the $file_magic_cmd with a given extended regex.
6247 # If you have `file' or equivalent on your system and you're not sure
6248 # whether `pass_all' will *always* work, you probably want this one.
6249
6250 case $host_os in
6251 aix[4-9]*)
6252   lt_cv_deplibs_check_method=pass_all
6253   ;;
6254
6255 beos*)
6256   lt_cv_deplibs_check_method=pass_all
6257   ;;
6258
6259 bsdi[45]*)
6260   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6261   lt_cv_file_magic_cmd='/usr/bin/file -L'
6262   lt_cv_file_magic_test_file=/shlib/libc.so
6263   ;;
6264
6265 cygwin*)
6266   # func_win32_libid is a shell function defined in ltmain.sh
6267   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6268   lt_cv_file_magic_cmd='func_win32_libid'
6269   ;;
6270
6271 mingw* | pw32*)
6272   # Base MSYS/MinGW do not provide the 'file' command needed by
6273   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6274   # unless we find 'file', for example because we are cross-compiling.
6275   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6276   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6277     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6278     lt_cv_file_magic_cmd='func_win32_libid'
6279   else
6280     # Keep this pattern in sync with the one in func_win32_libid.
6281     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6282     lt_cv_file_magic_cmd='$OBJDUMP -f'
6283   fi
6284   ;;
6285
6286 cegcc*)
6287   # use the weaker test based on 'objdump'. See mingw*.
6288   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6289   lt_cv_file_magic_cmd='$OBJDUMP -f'
6290   ;;
6291
6292 darwin* | rhapsody*)
6293   lt_cv_deplibs_check_method=pass_all
6294   ;;
6295
6296 freebsd* | dragonfly*)
6297   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6298     case $host_cpu in
6299     i*86 )
6300       # Not sure whether the presence of OpenBSD here was a mistake.
6301       # Let's accept both of them until this is cleared up.
6302       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6303       lt_cv_file_magic_cmd=/usr/bin/file
6304       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6305       ;;
6306     esac
6307   else
6308     lt_cv_deplibs_check_method=pass_all
6309   fi
6310   ;;
6311
6312 haiku*)
6313   lt_cv_deplibs_check_method=pass_all
6314   ;;
6315
6316 hpux10.20* | hpux11*)
6317   lt_cv_file_magic_cmd=/usr/bin/file
6318   case $host_cpu in
6319   ia64*)
6320     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6321     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6322     ;;
6323   hppa*64*)
6324     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]'
6325     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6326     ;;
6327   *)
6328     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6329     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6330     ;;
6331   esac
6332   ;;
6333
6334 interix[3-9]*)
6335   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6336   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6337   ;;
6338
6339 irix5* | irix6* | nonstopux*)
6340   case $LD in
6341   *-32|*"-32 ") libmagic=32-bit;;
6342   *-n32|*"-n32 ") libmagic=N32;;
6343   *-64|*"-64 ") libmagic=64-bit;;
6344   *) libmagic=never-match;;
6345   esac
6346   lt_cv_deplibs_check_method=pass_all
6347   ;;
6348
6349 # This must be glibc/ELF.
6350 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6351   lt_cv_deplibs_check_method=pass_all
6352   ;;
6353
6354 netbsd* | netbsdelf*-gnu)
6355   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6356     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6357   else
6358     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6359   fi
6360   ;;
6361
6362 newos6*)
6363   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6364   lt_cv_file_magic_cmd=/usr/bin/file
6365   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6366   ;;
6367
6368 *nto* | *qnx*)
6369   lt_cv_deplibs_check_method=pass_all
6370   ;;
6371
6372 openbsd*)
6373   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6374     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6375   else
6376     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6377   fi
6378   ;;
6379
6380 osf3* | osf4* | osf5*)
6381   lt_cv_deplibs_check_method=pass_all
6382   ;;
6383
6384 rdos*)
6385   lt_cv_deplibs_check_method=pass_all
6386   ;;
6387
6388 solaris*)
6389   lt_cv_deplibs_check_method=pass_all
6390   ;;
6391
6392 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6393   lt_cv_deplibs_check_method=pass_all
6394   ;;
6395
6396 sysv4 | sysv4.3*)
6397   case $host_vendor in
6398   motorola)
6399     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]'
6400     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6401     ;;
6402   ncr)
6403     lt_cv_deplibs_check_method=pass_all
6404     ;;
6405   sequent)
6406     lt_cv_file_magic_cmd='/bin/file'
6407     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6408     ;;
6409   sni)
6410     lt_cv_file_magic_cmd='/bin/file'
6411     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6412     lt_cv_file_magic_test_file=/lib/libc.so
6413     ;;
6414   siemens)
6415     lt_cv_deplibs_check_method=pass_all
6416     ;;
6417   pc)
6418     lt_cv_deplibs_check_method=pass_all
6419     ;;
6420   esac
6421   ;;
6422
6423 tpf*)
6424   lt_cv_deplibs_check_method=pass_all
6425   ;;
6426 esac
6427
6428 fi
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6430 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6431
6432 file_magic_glob=
6433 want_nocaseglob=no
6434 if test "$build" = "$host"; then
6435   case $host_os in
6436   mingw* | pw32*)
6437     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6438       want_nocaseglob=yes
6439     else
6440       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6441     fi
6442     ;;
6443   esac
6444 fi
6445
6446 file_magic_cmd=$lt_cv_file_magic_cmd
6447 deplibs_check_method=$lt_cv_deplibs_check_method
6448 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471 if test -n "$ac_tool_prefix"; then
6472   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6473 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6475 $as_echo_n "checking for $ac_word... " >&6; }
6476 if ${ac_cv_prog_DLLTOOL+:} false; then :
6477   $as_echo_n "(cached) " >&6
6478 else
6479   if test -n "$DLLTOOL"; then
6480   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6481 else
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483 for as_dir in $PATH
6484 do
6485   IFS=$as_save_IFS
6486   test -z "$as_dir" && as_dir=.
6487     for ac_exec_ext in '' $ac_executable_extensions; do
6488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6489     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6491     break 2
6492   fi
6493 done
6494   done
6495 IFS=$as_save_IFS
6496
6497 fi
6498 fi
6499 DLLTOOL=$ac_cv_prog_DLLTOOL
6500 if test -n "$DLLTOOL"; then
6501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6502 $as_echo "$DLLTOOL" >&6; }
6503 else
6504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6505 $as_echo "no" >&6; }
6506 fi
6507
6508
6509 fi
6510 if test -z "$ac_cv_prog_DLLTOOL"; then
6511   ac_ct_DLLTOOL=$DLLTOOL
6512   # Extract the first word of "dlltool", so it can be a program name with args.
6513 set dummy dlltool; ac_word=$2
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6515 $as_echo_n "checking for $ac_word... " >&6; }
6516 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6517   $as_echo_n "(cached) " >&6
6518 else
6519   if test -n "$ac_ct_DLLTOOL"; then
6520   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6521 else
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 for as_dir in $PATH
6524 do
6525   IFS=$as_save_IFS
6526   test -z "$as_dir" && as_dir=.
6527     for ac_exec_ext in '' $ac_executable_extensions; do
6528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6529     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6531     break 2
6532   fi
6533 done
6534   done
6535 IFS=$as_save_IFS
6536
6537 fi
6538 fi
6539 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6540 if test -n "$ac_ct_DLLTOOL"; then
6541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6542 $as_echo "$ac_ct_DLLTOOL" >&6; }
6543 else
6544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545 $as_echo "no" >&6; }
6546 fi
6547
6548   if test "x$ac_ct_DLLTOOL" = x; then
6549     DLLTOOL="false"
6550   else
6551     case $cross_compiling:$ac_tool_warned in
6552 yes:)
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6555 ac_tool_warned=yes ;;
6556 esac
6557     DLLTOOL=$ac_ct_DLLTOOL
6558   fi
6559 else
6560   DLLTOOL="$ac_cv_prog_DLLTOOL"
6561 fi
6562
6563 test -z "$DLLTOOL" && DLLTOOL=dlltool
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6575 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6576 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6577   $as_echo_n "(cached) " >&6
6578 else
6579   lt_cv_sharedlib_from_linklib_cmd='unknown'
6580
6581 case $host_os in
6582 cygwin* | mingw* | pw32* | cegcc*)
6583   # two different shell functions defined in ltmain.sh
6584   # decide which to use based on capabilities of $DLLTOOL
6585   case `$DLLTOOL --help 2>&1` in
6586   *--identify-strict*)
6587     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6588     ;;
6589   *)
6590     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6591     ;;
6592   esac
6593   ;;
6594 *)
6595   # fallback: assume linklib IS sharedlib
6596   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6597   ;;
6598 esac
6599
6600 fi
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6602 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6603 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6604 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6605
6606
6607
6608
6609
6610
6611
6612 if test -n "$ac_tool_prefix"; then
6613   for ac_prog in ar
6614   do
6615     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6616 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6618 $as_echo_n "checking for $ac_word... " >&6; }
6619 if ${ac_cv_prog_AR+:} false; then :
6620   $as_echo_n "(cached) " >&6
6621 else
6622   if test -n "$AR"; then
6623   ac_cv_prog_AR="$AR" # Let the user override the test.
6624 else
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 for as_dir in $PATH
6627 do
6628   IFS=$as_save_IFS
6629   test -z "$as_dir" && as_dir=.
6630     for ac_exec_ext in '' $ac_executable_extensions; do
6631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6632     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6634     break 2
6635   fi
6636 done
6637   done
6638 IFS=$as_save_IFS
6639
6640 fi
6641 fi
6642 AR=$ac_cv_prog_AR
6643 if test -n "$AR"; then
6644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6645 $as_echo "$AR" >&6; }
6646 else
6647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648 $as_echo "no" >&6; }
6649 fi
6650
6651
6652     test -n "$AR" && break
6653   done
6654 fi
6655 if test -z "$AR"; then
6656   ac_ct_AR=$AR
6657   for ac_prog in ar
6658 do
6659   # Extract the first word of "$ac_prog", so it can be a program name with args.
6660 set dummy $ac_prog; ac_word=$2
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6662 $as_echo_n "checking for $ac_word... " >&6; }
6663 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6664   $as_echo_n "(cached) " >&6
6665 else
6666   if test -n "$ac_ct_AR"; then
6667   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6668 else
6669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 for as_dir in $PATH
6671 do
6672   IFS=$as_save_IFS
6673   test -z "$as_dir" && as_dir=.
6674     for ac_exec_ext in '' $ac_executable_extensions; do
6675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6676     ac_cv_prog_ac_ct_AR="$ac_prog"
6677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6678     break 2
6679   fi
6680 done
6681   done
6682 IFS=$as_save_IFS
6683
6684 fi
6685 fi
6686 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6687 if test -n "$ac_ct_AR"; then
6688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6689 $as_echo "$ac_ct_AR" >&6; }
6690 else
6691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692 $as_echo "no" >&6; }
6693 fi
6694
6695
6696   test -n "$ac_ct_AR" && break
6697 done
6698
6699   if test "x$ac_ct_AR" = x; then
6700     AR="false"
6701   else
6702     case $cross_compiling:$ac_tool_warned in
6703 yes:)
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6706 ac_tool_warned=yes ;;
6707 esac
6708     AR=$ac_ct_AR
6709   fi
6710 fi
6711
6712 : ${AR=ar}
6713 : ${AR_FLAGS=cru}
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6726 $as_echo_n "checking for archiver @FILE support... " >&6; }
6727 if ${lt_cv_ar_at_file+:} false; then :
6728   $as_echo_n "(cached) " >&6
6729 else
6730   lt_cv_ar_at_file=no
6731    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732 /* end confdefs.h.  */
6733
6734 int
6735 main ()
6736 {
6737
6738   ;
6739   return 0;
6740 }
6741 _ACEOF
6742 if ac_fn_c_try_compile "$LINENO"; then :
6743   echo conftest.$ac_objext > conftest.lst
6744       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6745       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6746   (eval $lt_ar_try) 2>&5
6747   ac_status=$?
6748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6749   test $ac_status = 0; }
6750       if test "$ac_status" -eq 0; then
6751         # Ensure the archiver fails upon bogus file names.
6752         rm -f conftest.$ac_objext libconftest.a
6753         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6754   (eval $lt_ar_try) 2>&5
6755   ac_status=$?
6756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6757   test $ac_status = 0; }
6758         if test "$ac_status" -ne 0; then
6759           lt_cv_ar_at_file=@
6760         fi
6761       fi
6762       rm -f conftest.* libconftest.a
6763
6764 fi
6765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6766
6767 fi
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6769 $as_echo "$lt_cv_ar_at_file" >&6; }
6770
6771 if test "x$lt_cv_ar_at_file" = xno; then
6772   archiver_list_spec=
6773 else
6774   archiver_list_spec=$lt_cv_ar_at_file
6775 fi
6776
6777
6778
6779
6780
6781
6782
6783 if test -n "$ac_tool_prefix"; then
6784   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6785 set dummy ${ac_tool_prefix}strip; ac_word=$2
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6787 $as_echo_n "checking for $ac_word... " >&6; }
6788 if ${ac_cv_prog_STRIP+:} false; then :
6789   $as_echo_n "(cached) " >&6
6790 else
6791   if test -n "$STRIP"; then
6792   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6793 else
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 for as_dir in $PATH
6796 do
6797   IFS=$as_save_IFS
6798   test -z "$as_dir" && as_dir=.
6799     for ac_exec_ext in '' $ac_executable_extensions; do
6800   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6801     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6803     break 2
6804   fi
6805 done
6806   done
6807 IFS=$as_save_IFS
6808
6809 fi
6810 fi
6811 STRIP=$ac_cv_prog_STRIP
6812 if test -n "$STRIP"; then
6813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6814 $as_echo "$STRIP" >&6; }
6815 else
6816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6817 $as_echo "no" >&6; }
6818 fi
6819
6820
6821 fi
6822 if test -z "$ac_cv_prog_STRIP"; then
6823   ac_ct_STRIP=$STRIP
6824   # Extract the first word of "strip", so it can be a program name with args.
6825 set dummy strip; ac_word=$2
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6827 $as_echo_n "checking for $ac_word... " >&6; }
6828 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6829   $as_echo_n "(cached) " >&6
6830 else
6831   if test -n "$ac_ct_STRIP"; then
6832   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6833 else
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 for as_dir in $PATH
6836 do
6837   IFS=$as_save_IFS
6838   test -z "$as_dir" && as_dir=.
6839     for ac_exec_ext in '' $ac_executable_extensions; do
6840   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6841     ac_cv_prog_ac_ct_STRIP="strip"
6842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6843     break 2
6844   fi
6845 done
6846   done
6847 IFS=$as_save_IFS
6848
6849 fi
6850 fi
6851 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6852 if test -n "$ac_ct_STRIP"; then
6853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6854 $as_echo "$ac_ct_STRIP" >&6; }
6855 else
6856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6857 $as_echo "no" >&6; }
6858 fi
6859
6860   if test "x$ac_ct_STRIP" = x; then
6861     STRIP=":"
6862   else
6863     case $cross_compiling:$ac_tool_warned in
6864 yes:)
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6867 ac_tool_warned=yes ;;
6868 esac
6869     STRIP=$ac_ct_STRIP
6870   fi
6871 else
6872   STRIP="$ac_cv_prog_STRIP"
6873 fi
6874
6875 test -z "$STRIP" && STRIP=:
6876
6877
6878
6879
6880
6881
6882 if test -n "$ac_tool_prefix"; then
6883   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6884 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886 $as_echo_n "checking for $ac_word... " >&6; }
6887 if ${ac_cv_prog_RANLIB+:} false; then :
6888   $as_echo_n "(cached) " >&6
6889 else
6890   if test -n "$RANLIB"; then
6891   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6892 else
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 for as_dir in $PATH
6895 do
6896   IFS=$as_save_IFS
6897   test -z "$as_dir" && as_dir=.
6898     for ac_exec_ext in '' $ac_executable_extensions; do
6899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6900     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6902     break 2
6903   fi
6904 done
6905   done
6906 IFS=$as_save_IFS
6907
6908 fi
6909 fi
6910 RANLIB=$ac_cv_prog_RANLIB
6911 if test -n "$RANLIB"; then
6912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6913 $as_echo "$RANLIB" >&6; }
6914 else
6915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 $as_echo "no" >&6; }
6917 fi
6918
6919
6920 fi
6921 if test -z "$ac_cv_prog_RANLIB"; then
6922   ac_ct_RANLIB=$RANLIB
6923   # Extract the first word of "ranlib", so it can be a program name with args.
6924 set dummy ranlib; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6928   $as_echo_n "(cached) " >&6
6929 else
6930   if test -n "$ac_ct_RANLIB"; then
6931   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6932 else
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6935 do
6936   IFS=$as_save_IFS
6937   test -z "$as_dir" && as_dir=.
6938     for ac_exec_ext in '' $ac_executable_extensions; do
6939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6940     ac_cv_prog_ac_ct_RANLIB="ranlib"
6941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942     break 2
6943   fi
6944 done
6945   done
6946 IFS=$as_save_IFS
6947
6948 fi
6949 fi
6950 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6951 if test -n "$ac_ct_RANLIB"; then
6952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6953 $as_echo "$ac_ct_RANLIB" >&6; }
6954 else
6955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6957 fi
6958
6959   if test "x$ac_ct_RANLIB" = x; then
6960     RANLIB=":"
6961   else
6962     case $cross_compiling:$ac_tool_warned in
6963 yes:)
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6966 ac_tool_warned=yes ;;
6967 esac
6968     RANLIB=$ac_ct_RANLIB
6969   fi
6970 else
6971   RANLIB="$ac_cv_prog_RANLIB"
6972 fi
6973
6974 test -z "$RANLIB" && RANLIB=:
6975
6976
6977
6978
6979
6980
6981 # Determine commands to create old-style static archives.
6982 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6983 old_postinstall_cmds='chmod 644 $oldlib'
6984 old_postuninstall_cmds=
6985
6986 if test -n "$RANLIB"; then
6987   case $host_os in
6988   openbsd*)
6989     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6990     ;;
6991   *)
6992     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6993     ;;
6994   esac
6995   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6996 fi
6997
6998 case $host_os in
6999   darwin*)
7000     lock_old_archive_extraction=yes ;;
7001   *)
7002     lock_old_archive_extraction=no ;;
7003 esac
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043 # If no C compiler was specified, use CC.
7044 LTCC=${LTCC-"$CC"}
7045
7046 # If no C compiler flags were specified, use CFLAGS.
7047 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7048
7049 # Allow CC to be a program name with arguments.
7050 compiler=$CC
7051
7052
7053 # Check for command to grab the raw symbol name followed by C symbol from nm.
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7055 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7056 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7057   $as_echo_n "(cached) " >&6
7058 else
7059
7060 # These are sane defaults that work on at least a few old systems.
7061 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7062
7063 # Character class describing NM global symbol codes.
7064 symcode='[BCDEGRST]'
7065
7066 # Regexp to match symbols that can be accessed directly from C.
7067 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7068
7069 # Define system-specific variables.
7070 case $host_os in
7071 aix*)
7072   symcode='[BCDT]'
7073   ;;
7074 cygwin* | mingw* | pw32* | cegcc*)
7075   symcode='[ABCDGISTW]'
7076   ;;
7077 hpux*)
7078   if test "$host_cpu" = ia64; then
7079     symcode='[ABCDEGRST]'
7080   fi
7081   ;;
7082 irix* | nonstopux*)
7083   symcode='[BCDEGRST]'
7084   ;;
7085 osf*)
7086   symcode='[BCDEGQRST]'
7087   ;;
7088 solaris*)
7089   symcode='[BDRT]'
7090   ;;
7091 sco3.2v5*)
7092   symcode='[DT]'
7093   ;;
7094 sysv4.2uw2*)
7095   symcode='[DT]'
7096   ;;
7097 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7098   symcode='[ABDT]'
7099   ;;
7100 sysv4)
7101   symcode='[DFNSTU]'
7102   ;;
7103 esac
7104
7105 # If we're using GNU nm, then use its standard symbol codes.
7106 case `$NM -V 2>&1` in
7107 *GNU* | *'with BFD'*)
7108   symcode='[ABCDGIRSTW]' ;;
7109 esac
7110
7111 # Transform an extracted symbol line into a proper C declaration.
7112 # Some systems (esp. on ia64) link data and code symbols differently,
7113 # so use this general approach.
7114 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7115
7116 # Transform an extracted symbol line into symbol name and symbol address
7117 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7118 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7119
7120 # Handle CRLF in mingw tool chain
7121 opt_cr=
7122 case $build_os in
7123 mingw*)
7124   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7125   ;;
7126 esac
7127
7128 # Try without a prefix underscore, then with it.
7129 for ac_symprfx in "" "_"; do
7130
7131   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7132   symxfrm="\\1 $ac_symprfx\\2 \\2"
7133
7134   # Write the raw and C identifiers.
7135   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7136     # Fake it for dumpbin and say T for any non-static function
7137     # and D for any global variable.
7138     # Also find C++ and __fastcall symbols from MSVC++,
7139     # which start with @ or ?.
7140     lt_cv_sys_global_symbol_pipe="$AWK '"\
7141 "     {last_section=section; section=\$ 3};"\
7142 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7143 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7144 "     \$ 0!~/External *\|/{next};"\
7145 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7146 "     {if(hide[section]) next};"\
7147 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7148 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7149 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7150 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7151 "     ' prfx=^$ac_symprfx"
7152   else
7153     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7154   fi
7155   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7156
7157   # Check to see that the pipe works correctly.
7158   pipe_works=no
7159
7160   rm -f conftest*
7161   cat > conftest.$ac_ext <<_LT_EOF
7162 #ifdef __cplusplus
7163 extern "C" {
7164 #endif
7165 char nm_test_var;
7166 void nm_test_func(void);
7167 void nm_test_func(void){}
7168 #ifdef __cplusplus
7169 }
7170 #endif
7171 int main(){nm_test_var='a';nm_test_func();return(0);}
7172 _LT_EOF
7173
7174   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7175   (eval $ac_compile) 2>&5
7176   ac_status=$?
7177   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7178   test $ac_status = 0; }; then
7179     # Now try to grab the symbols.
7180     nlist=conftest.nm
7181     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7182   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7183   ac_status=$?
7184   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7185   test $ac_status = 0; } && test -s "$nlist"; then
7186       # Try sorting and uniquifying the output.
7187       if sort "$nlist" | uniq > "$nlist"T; then
7188         mv -f "$nlist"T "$nlist"
7189       else
7190         rm -f "$nlist"T
7191       fi
7192
7193       # Make sure that we snagged all the symbols we need.
7194       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7195         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7196           cat <<_LT_EOF > conftest.$ac_ext
7197 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7198 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7199 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7200    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7201 # define LT_DLSYM_CONST
7202 #elif defined(__osf__)
7203 /* This system does not cope well with relocations in const data.  */
7204 # define LT_DLSYM_CONST
7205 #else
7206 # define LT_DLSYM_CONST const
7207 #endif
7208
7209 #ifdef __cplusplus
7210 extern "C" {
7211 #endif
7212
7213 _LT_EOF
7214           # Now generate the symbol file.
7215           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7216
7217           cat <<_LT_EOF >> conftest.$ac_ext
7218
7219 /* The mapping between symbol names and symbols.  */
7220 LT_DLSYM_CONST struct {
7221   const char *name;
7222   void       *address;
7223 }
7224 lt__PROGRAM__LTX_preloaded_symbols[] =
7225 {
7226   { "@PROGRAM@", (void *) 0 },
7227 _LT_EOF
7228           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7229           cat <<\_LT_EOF >> conftest.$ac_ext
7230   {0, (void *) 0}
7231 };
7232
7233 /* This works around a problem in FreeBSD linker */
7234 #ifdef FREEBSD_WORKAROUND
7235 static const void *lt_preloaded_setup() {
7236   return lt__PROGRAM__LTX_preloaded_symbols;
7237 }
7238 #endif
7239
7240 #ifdef __cplusplus
7241 }
7242 #endif
7243 _LT_EOF
7244           # Now try linking the two files.
7245           mv conftest.$ac_objext conftstm.$ac_objext
7246           lt_globsym_save_LIBS=$LIBS
7247           lt_globsym_save_CFLAGS=$CFLAGS
7248           LIBS="conftstm.$ac_objext"
7249           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7250           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7251   (eval $ac_link) 2>&5
7252   ac_status=$?
7253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7254   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7255             pipe_works=yes
7256           fi
7257           LIBS=$lt_globsym_save_LIBS
7258           CFLAGS=$lt_globsym_save_CFLAGS
7259         else
7260           echo "cannot find nm_test_func in $nlist" >&5
7261         fi
7262       else
7263         echo "cannot find nm_test_var in $nlist" >&5
7264       fi
7265     else
7266       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7267     fi
7268   else
7269     echo "$progname: failed program was:" >&5
7270     cat conftest.$ac_ext >&5
7271   fi
7272   rm -rf conftest* conftst*
7273
7274   # Do not use the global_symbol_pipe unless it works.
7275   if test "$pipe_works" = yes; then
7276     break
7277   else
7278     lt_cv_sys_global_symbol_pipe=
7279   fi
7280 done
7281
7282 fi
7283
7284 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7285   lt_cv_sys_global_symbol_to_cdecl=
7286 fi
7287 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7289 $as_echo "failed" >&6; }
7290 else
7291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7292 $as_echo "ok" >&6; }
7293 fi
7294
7295 # Response file support.
7296 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7297   nm_file_list_spec='@'
7298 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7299   nm_file_list_spec='@'
7300 fi
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7329 $as_echo_n "checking for sysroot... " >&6; }
7330
7331 # Check whether --with-sysroot was given.
7332 if test "${with_sysroot+set}" = set; then :
7333   withval=$with_sysroot;
7334 else
7335   with_sysroot=no
7336 fi
7337
7338
7339 lt_sysroot=
7340 case ${with_sysroot} in #(
7341  yes)
7342    if test "$GCC" = yes; then
7343      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7344    fi
7345    ;; #(
7346  /*)
7347    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7348    ;; #(
7349  no|'')
7350    ;; #(
7351  *)
7352    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7353 $as_echo "${with_sysroot}" >&6; }
7354    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7355    ;;
7356 esac
7357
7358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7359 $as_echo "${lt_sysroot:-no}" >&6; }
7360
7361
7362
7363
7364
7365 # Check whether --enable-libtool-lock was given.
7366 if test "${enable_libtool_lock+set}" = set; then :
7367   enableval=$enable_libtool_lock;
7368 fi
7369
7370 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7371
7372 # Some flags need to be propagated to the compiler or linker for good
7373 # libtool support.
7374 case $host in
7375 ia64-*-hpux*)
7376   # Find out which ABI we are using.
7377   echo 'int i;' > conftest.$ac_ext
7378   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7379   (eval $ac_compile) 2>&5
7380   ac_status=$?
7381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7382   test $ac_status = 0; }; then
7383     case `/usr/bin/file conftest.$ac_objext` in
7384       *ELF-32*)
7385         HPUX_IA64_MODE="32"
7386         ;;
7387       *ELF-64*)
7388         HPUX_IA64_MODE="64"
7389         ;;
7390     esac
7391   fi
7392   rm -rf conftest*
7393   ;;
7394 *-*-irix6*)
7395   # Find out which ABI we are using.
7396   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7397   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7398   (eval $ac_compile) 2>&5
7399   ac_status=$?
7400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7401   test $ac_status = 0; }; then
7402     if test "$lt_cv_prog_gnu_ld" = yes; then
7403       case `/usr/bin/file conftest.$ac_objext` in
7404         *32-bit*)
7405           LD="${LD-ld} -melf32bsmip"
7406           ;;
7407         *N32*)
7408           LD="${LD-ld} -melf32bmipn32"
7409           ;;
7410         *64-bit*)
7411           LD="${LD-ld} -melf64bmip"
7412         ;;
7413       esac
7414     else
7415       case `/usr/bin/file conftest.$ac_objext` in
7416         *32-bit*)
7417           LD="${LD-ld} -32"
7418           ;;
7419         *N32*)
7420           LD="${LD-ld} -n32"
7421           ;;
7422         *64-bit*)
7423           LD="${LD-ld} -64"
7424           ;;
7425       esac
7426     fi
7427   fi
7428   rm -rf conftest*
7429   ;;
7430
7431 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7432 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7433   # Find out which ABI we are using.
7434   echo 'int i;' > conftest.$ac_ext
7435   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7436   (eval $ac_compile) 2>&5
7437   ac_status=$?
7438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7439   test $ac_status = 0; }; then
7440     case `/usr/bin/file conftest.o` in
7441       *32-bit*)
7442         case $host in
7443           x86_64-*kfreebsd*-gnu)
7444             LD="${LD-ld} -m elf_i386_fbsd"
7445             ;;
7446           x86_64-*linux*)
7447             case `/usr/bin/file conftest.o` in
7448               *x86-64*)
7449                 LD="${LD-ld} -m elf32_x86_64"
7450                 ;;
7451               *)
7452                 LD="${LD-ld} -m elf_i386"
7453                 ;;
7454             esac
7455             ;;
7456           powerpc64le-*)
7457             LD="${LD-ld} -m elf32lppclinux"
7458             ;;
7459           powerpc64-*)
7460             LD="${LD-ld} -m elf32ppclinux"
7461             ;;
7462           s390x-*linux*)
7463             LD="${LD-ld} -m elf_s390"
7464             ;;
7465           sparc64-*linux*)
7466             LD="${LD-ld} -m elf32_sparc"
7467             ;;
7468         esac
7469         ;;
7470       *64-bit*)
7471         case $host in
7472           x86_64-*kfreebsd*-gnu)
7473             LD="${LD-ld} -m elf_x86_64_fbsd"
7474             ;;
7475           x86_64-*linux*)
7476             LD="${LD-ld} -m elf_x86_64"
7477             ;;
7478           powerpcle-*)
7479             LD="${LD-ld} -m elf64lppc"
7480             ;;
7481           powerpc-*)
7482             LD="${LD-ld} -m elf64ppc"
7483             ;;
7484           s390*-*linux*|s390*-*tpf*)
7485             LD="${LD-ld} -m elf64_s390"
7486             ;;
7487           sparc*-*linux*)
7488             LD="${LD-ld} -m elf64_sparc"
7489             ;;
7490         esac
7491         ;;
7492     esac
7493   fi
7494   rm -rf conftest*
7495   ;;
7496
7497 *-*-sco3.2v5*)
7498   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7499   SAVE_CFLAGS="$CFLAGS"
7500   CFLAGS="$CFLAGS -belf"
7501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7502 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7503 if ${lt_cv_cc_needs_belf+:} false; then :
7504   $as_echo_n "(cached) " >&6
7505 else
7506   ac_ext=c
7507 ac_cpp='$CPP $CPPFLAGS'
7508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7511
7512      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7513 /* end confdefs.h.  */
7514
7515 int
7516 main ()
7517 {
7518
7519   ;
7520   return 0;
7521 }
7522 _ACEOF
7523 if ac_fn_c_try_link "$LINENO"; then :
7524   lt_cv_cc_needs_belf=yes
7525 else
7526   lt_cv_cc_needs_belf=no
7527 fi
7528 rm -f core conftest.err conftest.$ac_objext \
7529     conftest$ac_exeext conftest.$ac_ext
7530      ac_ext=c
7531 ac_cpp='$CPP $CPPFLAGS'
7532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7535
7536 fi
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7538 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7539   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7540     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7541     CFLAGS="$SAVE_CFLAGS"
7542   fi
7543   ;;
7544 *-*solaris*)
7545   # Find out which ABI we are using.
7546   echo 'int i;' > conftest.$ac_ext
7547   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7548   (eval $ac_compile) 2>&5
7549   ac_status=$?
7550   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7551   test $ac_status = 0; }; then
7552     case `/usr/bin/file conftest.o` in
7553     *64-bit*)
7554       case $lt_cv_prog_gnu_ld in
7555       yes*)
7556         case $host in
7557         i?86-*-solaris*)
7558           LD="${LD-ld} -m elf_x86_64"
7559           ;;
7560         sparc*-*-solaris*)
7561           LD="${LD-ld} -m elf64_sparc"
7562           ;;
7563         esac
7564         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7565         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7566           LD="${LD-ld}_sol2"
7567         fi
7568         ;;
7569       *)
7570         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7571           LD="${LD-ld} -64"
7572         fi
7573         ;;
7574       esac
7575       ;;
7576     esac
7577   fi
7578   rm -rf conftest*
7579   ;;
7580 esac
7581
7582 need_locks="$enable_libtool_lock"
7583
7584 if test -n "$ac_tool_prefix"; then
7585   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7586 set dummy ${ac_tool_prefix}mt; ac_word=$2
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588 $as_echo_n "checking for $ac_word... " >&6; }
7589 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7590   $as_echo_n "(cached) " >&6
7591 else
7592   if test -n "$MANIFEST_TOOL"; then
7593   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7594 else
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 for as_dir in $PATH
7597 do
7598   IFS=$as_save_IFS
7599   test -z "$as_dir" && as_dir=.
7600     for ac_exec_ext in '' $ac_executable_extensions; do
7601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7602     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604     break 2
7605   fi
7606 done
7607   done
7608 IFS=$as_save_IFS
7609
7610 fi
7611 fi
7612 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7613 if test -n "$MANIFEST_TOOL"; then
7614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7615 $as_echo "$MANIFEST_TOOL" >&6; }
7616 else
7617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7619 fi
7620
7621
7622 fi
7623 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7624   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7625   # Extract the first word of "mt", so it can be a program name with args.
7626 set dummy mt; ac_word=$2
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628 $as_echo_n "checking for $ac_word... " >&6; }
7629 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7630   $as_echo_n "(cached) " >&6
7631 else
7632   if test -n "$ac_ct_MANIFEST_TOOL"; then
7633   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7634 else
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 for as_dir in $PATH
7637 do
7638   IFS=$as_save_IFS
7639   test -z "$as_dir" && as_dir=.
7640     for ac_exec_ext in '' $ac_executable_extensions; do
7641   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7642     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7644     break 2
7645   fi
7646 done
7647   done
7648 IFS=$as_save_IFS
7649
7650 fi
7651 fi
7652 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7653 if test -n "$ac_ct_MANIFEST_TOOL"; then
7654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7655 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7656 else
7657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658 $as_echo "no" >&6; }
7659 fi
7660
7661   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7662     MANIFEST_TOOL=":"
7663   else
7664     case $cross_compiling:$ac_tool_warned in
7665 yes:)
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7668 ac_tool_warned=yes ;;
7669 esac
7670     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7671   fi
7672 else
7673   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7674 fi
7675
7676 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7678 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7679 if ${lt_cv_path_mainfest_tool+:} false; then :
7680   $as_echo_n "(cached) " >&6
7681 else
7682   lt_cv_path_mainfest_tool=no
7683   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7684   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7685   cat conftest.err >&5
7686   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7687     lt_cv_path_mainfest_tool=yes
7688   fi
7689   rm -f conftest*
7690 fi
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7692 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7693 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7694   MANIFEST_TOOL=:
7695 fi
7696
7697
7698
7699
7700
7701
7702   case $host_os in
7703     rhapsody* | darwin*)
7704     if test -n "$ac_tool_prefix"; then
7705   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7706 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 $as_echo_n "checking for $ac_word... " >&6; }
7709 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7710   $as_echo_n "(cached) " >&6
7711 else
7712   if test -n "$DSYMUTIL"; then
7713   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7714 else
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 for as_dir in $PATH
7717 do
7718   IFS=$as_save_IFS
7719   test -z "$as_dir" && as_dir=.
7720     for ac_exec_ext in '' $ac_executable_extensions; do
7721   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7722     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7724     break 2
7725   fi
7726 done
7727   done
7728 IFS=$as_save_IFS
7729
7730 fi
7731 fi
7732 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7733 if test -n "$DSYMUTIL"; then
7734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7735 $as_echo "$DSYMUTIL" >&6; }
7736 else
7737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7739 fi
7740
7741
7742 fi
7743 if test -z "$ac_cv_prog_DSYMUTIL"; then
7744   ac_ct_DSYMUTIL=$DSYMUTIL
7745   # Extract the first word of "dsymutil", so it can be a program name with args.
7746 set dummy dsymutil; ac_word=$2
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7748 $as_echo_n "checking for $ac_word... " >&6; }
7749 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7750   $as_echo_n "(cached) " >&6
7751 else
7752   if test -n "$ac_ct_DSYMUTIL"; then
7753   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7754 else
7755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756 for as_dir in $PATH
7757 do
7758   IFS=$as_save_IFS
7759   test -z "$as_dir" && as_dir=.
7760     for ac_exec_ext in '' $ac_executable_extensions; do
7761   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7762     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7764     break 2
7765   fi
7766 done
7767   done
7768 IFS=$as_save_IFS
7769
7770 fi
7771 fi
7772 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7773 if test -n "$ac_ct_DSYMUTIL"; then
7774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7775 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7776 else
7777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 $as_echo "no" >&6; }
7779 fi
7780
7781   if test "x$ac_ct_DSYMUTIL" = x; then
7782     DSYMUTIL=":"
7783   else
7784     case $cross_compiling:$ac_tool_warned in
7785 yes:)
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7788 ac_tool_warned=yes ;;
7789 esac
7790     DSYMUTIL=$ac_ct_DSYMUTIL
7791   fi
7792 else
7793   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7794 fi
7795
7796     if test -n "$ac_tool_prefix"; then
7797   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7798 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800 $as_echo_n "checking for $ac_word... " >&6; }
7801 if ${ac_cv_prog_NMEDIT+:} false; then :
7802   $as_echo_n "(cached) " >&6
7803 else
7804   if test -n "$NMEDIT"; then
7805   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7806 else
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 for as_dir in $PATH
7809 do
7810   IFS=$as_save_IFS
7811   test -z "$as_dir" && as_dir=.
7812     for ac_exec_ext in '' $ac_executable_extensions; do
7813   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7814     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7816     break 2
7817   fi
7818 done
7819   done
7820 IFS=$as_save_IFS
7821
7822 fi
7823 fi
7824 NMEDIT=$ac_cv_prog_NMEDIT
7825 if test -n "$NMEDIT"; then
7826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7827 $as_echo "$NMEDIT" >&6; }
7828 else
7829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7831 fi
7832
7833
7834 fi
7835 if test -z "$ac_cv_prog_NMEDIT"; then
7836   ac_ct_NMEDIT=$NMEDIT
7837   # Extract the first word of "nmedit", so it can be a program name with args.
7838 set dummy nmedit; ac_word=$2
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840 $as_echo_n "checking for $ac_word... " >&6; }
7841 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7842   $as_echo_n "(cached) " >&6
7843 else
7844   if test -n "$ac_ct_NMEDIT"; then
7845   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7846 else
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 for as_dir in $PATH
7849 do
7850   IFS=$as_save_IFS
7851   test -z "$as_dir" && as_dir=.
7852     for ac_exec_ext in '' $ac_executable_extensions; do
7853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7854     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7856     break 2
7857   fi
7858 done
7859   done
7860 IFS=$as_save_IFS
7861
7862 fi
7863 fi
7864 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7865 if test -n "$ac_ct_NMEDIT"; then
7866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7867 $as_echo "$ac_ct_NMEDIT" >&6; }
7868 else
7869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870 $as_echo "no" >&6; }
7871 fi
7872
7873   if test "x$ac_ct_NMEDIT" = x; then
7874     NMEDIT=":"
7875   else
7876     case $cross_compiling:$ac_tool_warned in
7877 yes:)
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7880 ac_tool_warned=yes ;;
7881 esac
7882     NMEDIT=$ac_ct_NMEDIT
7883   fi
7884 else
7885   NMEDIT="$ac_cv_prog_NMEDIT"
7886 fi
7887
7888     if test -n "$ac_tool_prefix"; then
7889   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7890 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892 $as_echo_n "checking for $ac_word... " >&6; }
7893 if ${ac_cv_prog_LIPO+:} false; then :
7894   $as_echo_n "(cached) " >&6
7895 else
7896   if test -n "$LIPO"; then
7897   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7898 else
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900 for as_dir in $PATH
7901 do
7902   IFS=$as_save_IFS
7903   test -z "$as_dir" && as_dir=.
7904     for ac_exec_ext in '' $ac_executable_extensions; do
7905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7906     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7908     break 2
7909   fi
7910 done
7911   done
7912 IFS=$as_save_IFS
7913
7914 fi
7915 fi
7916 LIPO=$ac_cv_prog_LIPO
7917 if test -n "$LIPO"; then
7918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7919 $as_echo "$LIPO" >&6; }
7920 else
7921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922 $as_echo "no" >&6; }
7923 fi
7924
7925
7926 fi
7927 if test -z "$ac_cv_prog_LIPO"; then
7928   ac_ct_LIPO=$LIPO
7929   # Extract the first word of "lipo", so it can be a program name with args.
7930 set dummy lipo; ac_word=$2
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7932 $as_echo_n "checking for $ac_word... " >&6; }
7933 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7934   $as_echo_n "(cached) " >&6
7935 else
7936   if test -n "$ac_ct_LIPO"; then
7937   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7938 else
7939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940 for as_dir in $PATH
7941 do
7942   IFS=$as_save_IFS
7943   test -z "$as_dir" && as_dir=.
7944     for ac_exec_ext in '' $ac_executable_extensions; do
7945   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7946     ac_cv_prog_ac_ct_LIPO="lipo"
7947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7948     break 2
7949   fi
7950 done
7951   done
7952 IFS=$as_save_IFS
7953
7954 fi
7955 fi
7956 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7957 if test -n "$ac_ct_LIPO"; then
7958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7959 $as_echo "$ac_ct_LIPO" >&6; }
7960 else
7961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7962 $as_echo "no" >&6; }
7963 fi
7964
7965   if test "x$ac_ct_LIPO" = x; then
7966     LIPO=":"
7967   else
7968     case $cross_compiling:$ac_tool_warned in
7969 yes:)
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7972 ac_tool_warned=yes ;;
7973 esac
7974     LIPO=$ac_ct_LIPO
7975   fi
7976 else
7977   LIPO="$ac_cv_prog_LIPO"
7978 fi
7979
7980     if test -n "$ac_tool_prefix"; then
7981   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7982 set dummy ${ac_tool_prefix}otool; ac_word=$2
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984 $as_echo_n "checking for $ac_word... " >&6; }
7985 if ${ac_cv_prog_OTOOL+:} false; then :
7986   $as_echo_n "(cached) " >&6
7987 else
7988   if test -n "$OTOOL"; then
7989   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7990 else
7991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992 for as_dir in $PATH
7993 do
7994   IFS=$as_save_IFS
7995   test -z "$as_dir" && as_dir=.
7996     for ac_exec_ext in '' $ac_executable_extensions; do
7997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7998     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8000     break 2
8001   fi
8002 done
8003   done
8004 IFS=$as_save_IFS
8005
8006 fi
8007 fi
8008 OTOOL=$ac_cv_prog_OTOOL
8009 if test -n "$OTOOL"; then
8010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8011 $as_echo "$OTOOL" >&6; }
8012 else
8013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014 $as_echo "no" >&6; }
8015 fi
8016
8017
8018 fi
8019 if test -z "$ac_cv_prog_OTOOL"; then
8020   ac_ct_OTOOL=$OTOOL
8021   # Extract the first word of "otool", so it can be a program name with args.
8022 set dummy otool; ac_word=$2
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024 $as_echo_n "checking for $ac_word... " >&6; }
8025 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8026   $as_echo_n "(cached) " >&6
8027 else
8028   if test -n "$ac_ct_OTOOL"; then
8029   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8030 else
8031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032 for as_dir in $PATH
8033 do
8034   IFS=$as_save_IFS
8035   test -z "$as_dir" && as_dir=.
8036     for ac_exec_ext in '' $ac_executable_extensions; do
8037   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8038     ac_cv_prog_ac_ct_OTOOL="otool"
8039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8040     break 2
8041   fi
8042 done
8043   done
8044 IFS=$as_save_IFS
8045
8046 fi
8047 fi
8048 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8049 if test -n "$ac_ct_OTOOL"; then
8050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8051 $as_echo "$ac_ct_OTOOL" >&6; }
8052 else
8053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 $as_echo "no" >&6; }
8055 fi
8056
8057   if test "x$ac_ct_OTOOL" = x; then
8058     OTOOL=":"
8059   else
8060     case $cross_compiling:$ac_tool_warned in
8061 yes:)
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8064 ac_tool_warned=yes ;;
8065 esac
8066     OTOOL=$ac_ct_OTOOL
8067   fi
8068 else
8069   OTOOL="$ac_cv_prog_OTOOL"
8070 fi
8071
8072     if test -n "$ac_tool_prefix"; then
8073   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8074 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076 $as_echo_n "checking for $ac_word... " >&6; }
8077 if ${ac_cv_prog_OTOOL64+:} false; then :
8078   $as_echo_n "(cached) " >&6
8079 else
8080   if test -n "$OTOOL64"; then
8081   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8082 else
8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084 for as_dir in $PATH
8085 do
8086   IFS=$as_save_IFS
8087   test -z "$as_dir" && as_dir=.
8088     for ac_exec_ext in '' $ac_executable_extensions; do
8089   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8090     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8092     break 2
8093   fi
8094 done
8095   done
8096 IFS=$as_save_IFS
8097
8098 fi
8099 fi
8100 OTOOL64=$ac_cv_prog_OTOOL64
8101 if test -n "$OTOOL64"; then
8102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8103 $as_echo "$OTOOL64" >&6; }
8104 else
8105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 $as_echo "no" >&6; }
8107 fi
8108
8109
8110 fi
8111 if test -z "$ac_cv_prog_OTOOL64"; then
8112   ac_ct_OTOOL64=$OTOOL64
8113   # Extract the first word of "otool64", so it can be a program name with args.
8114 set dummy otool64; ac_word=$2
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116 $as_echo_n "checking for $ac_word... " >&6; }
8117 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8118   $as_echo_n "(cached) " >&6
8119 else
8120   if test -n "$ac_ct_OTOOL64"; then
8121   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8122 else
8123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124 for as_dir in $PATH
8125 do
8126   IFS=$as_save_IFS
8127   test -z "$as_dir" && as_dir=.
8128     for ac_exec_ext in '' $ac_executable_extensions; do
8129   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8130     ac_cv_prog_ac_ct_OTOOL64="otool64"
8131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8132     break 2
8133   fi
8134 done
8135   done
8136 IFS=$as_save_IFS
8137
8138 fi
8139 fi
8140 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8141 if test -n "$ac_ct_OTOOL64"; then
8142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8143 $as_echo "$ac_ct_OTOOL64" >&6; }
8144 else
8145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146 $as_echo "no" >&6; }
8147 fi
8148
8149   if test "x$ac_ct_OTOOL64" = x; then
8150     OTOOL64=":"
8151   else
8152     case $cross_compiling:$ac_tool_warned in
8153 yes:)
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8156 ac_tool_warned=yes ;;
8157 esac
8158     OTOOL64=$ac_ct_OTOOL64
8159   fi
8160 else
8161   OTOOL64="$ac_cv_prog_OTOOL64"
8162 fi
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8191 $as_echo_n "checking for -single_module linker flag... " >&6; }
8192 if ${lt_cv_apple_cc_single_mod+:} false; then :
8193   $as_echo_n "(cached) " >&6
8194 else
8195   lt_cv_apple_cc_single_mod=no
8196       if test -z "${LT_MULTI_MODULE}"; then
8197         # By default we will add the -single_module flag. You can override
8198         # by either setting the environment variable LT_MULTI_MODULE
8199         # non-empty at configure time, or by adding -multi_module to the
8200         # link flags.
8201         rm -rf libconftest.dylib*
8202         echo "int foo(void){return 1;}" > conftest.c
8203         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8204 -dynamiclib -Wl,-single_module conftest.c" >&5
8205         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8206           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8207         _lt_result=$?
8208         # If there is a non-empty error log, and "single_module"
8209         # appears in it, assume the flag caused a linker warning
8210         if test -s conftest.err && $GREP single_module conftest.err; then
8211           cat conftest.err >&5
8212         # Otherwise, if the output was created with a 0 exit code from
8213         # the compiler, it worked.
8214         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8215           lt_cv_apple_cc_single_mod=yes
8216         else
8217           cat conftest.err >&5
8218         fi
8219         rm -rf libconftest.dylib*
8220         rm -f conftest.*
8221       fi
8222 fi
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8224 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8225
8226     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8227 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8228 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8229   $as_echo_n "(cached) " >&6
8230 else
8231   lt_cv_ld_exported_symbols_list=no
8232       save_LDFLAGS=$LDFLAGS
8233       echo "_main" > conftest.sym
8234       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8235       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236 /* end confdefs.h.  */
8237
8238 int
8239 main ()
8240 {
8241
8242   ;
8243   return 0;
8244 }
8245 _ACEOF
8246 if ac_fn_c_try_link "$LINENO"; then :
8247   lt_cv_ld_exported_symbols_list=yes
8248 else
8249   lt_cv_ld_exported_symbols_list=no
8250 fi
8251 rm -f core conftest.err conftest.$ac_objext \
8252     conftest$ac_exeext conftest.$ac_ext
8253         LDFLAGS="$save_LDFLAGS"
8254
8255 fi
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8257 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8258
8259     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8260 $as_echo_n "checking for -force_load linker flag... " >&6; }
8261 if ${lt_cv_ld_force_load+:} false; then :
8262   $as_echo_n "(cached) " >&6
8263 else
8264   lt_cv_ld_force_load=no
8265       cat > conftest.c << _LT_EOF
8266 int forced_loaded() { return 2;}
8267 _LT_EOF
8268       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8269       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8270       echo "$AR cru libconftest.a conftest.o" >&5
8271       $AR cru libconftest.a conftest.o 2>&5
8272       echo "$RANLIB libconftest.a" >&5
8273       $RANLIB libconftest.a 2>&5
8274       cat > conftest.c << _LT_EOF
8275 int main() { return 0;}
8276 _LT_EOF
8277       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8278       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8279       _lt_result=$?
8280       if test -s conftest.err && $GREP force_load conftest.err; then
8281         cat conftest.err >&5
8282       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8283         lt_cv_ld_force_load=yes
8284       else
8285         cat conftest.err >&5
8286       fi
8287         rm -f conftest.err libconftest.a conftest conftest.c
8288         rm -rf conftest.dSYM
8289
8290 fi
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8292 $as_echo "$lt_cv_ld_force_load" >&6; }
8293     case $host_os in
8294     rhapsody* | darwin1.[012])
8295       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8296     darwin1.*)
8297       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8298     darwin*) # darwin 5.x on
8299       # if running on 10.5 or later, the deployment target defaults
8300       # to the OS version, if on x86, and 10.4, the deployment
8301       # target defaults to 10.4. Don't you love it?
8302       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8303         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8304           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8305         10.[012]*)
8306           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8307         10.*)
8308           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8309       esac
8310     ;;
8311   esac
8312     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8313       _lt_dar_single_mod='$single_module'
8314     fi
8315     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8316       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8317     else
8318       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8319     fi
8320     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8321       _lt_dsymutil='~$DSYMUTIL $lib || :'
8322     else
8323       _lt_dsymutil=
8324     fi
8325     ;;
8326   esac
8327
8328 for ac_header in dlfcn.h
8329 do :
8330   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8331 "
8332 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8333   cat >>confdefs.h <<_ACEOF
8334 #define HAVE_DLFCN_H 1
8335 _ACEOF
8336
8337 fi
8338
8339 done
8340
8341
8342
8343
8344
8345 # Set options
8346
8347
8348
8349         enable_dlopen=no
8350
8351
8352   enable_win32_dll=no
8353
8354
8355             # Check whether --enable-shared was given.
8356 if test "${enable_shared+set}" = set; then :
8357   enableval=$enable_shared; p=${PACKAGE-default}
8358     case $enableval in
8359     yes) enable_shared=yes ;;
8360     no) enable_shared=no ;;
8361     *)
8362       enable_shared=no
8363       # Look at the argument we got.  We use all the common list separators.
8364       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8365       for pkg in $enableval; do
8366         IFS="$lt_save_ifs"
8367         if test "X$pkg" = "X$p"; then
8368           enable_shared=yes
8369         fi
8370       done
8371       IFS="$lt_save_ifs"
8372       ;;
8373     esac
8374 else
8375   enable_shared=yes
8376 fi
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388 # Check whether --with-pic was given.
8389 if test "${with_pic+set}" = set; then :
8390   withval=$with_pic; lt_p=${PACKAGE-default}
8391     case $withval in
8392     yes|no) pic_mode=$withval ;;
8393     *)
8394       pic_mode=default
8395       # Look at the argument we got.  We use all the common list separators.
8396       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8397       for lt_pkg in $withval; do
8398         IFS="$lt_save_ifs"
8399         if test "X$lt_pkg" = "X$lt_p"; then
8400           pic_mode=yes
8401         fi
8402       done
8403       IFS="$lt_save_ifs"
8404       ;;
8405     esac
8406 else
8407   pic_mode=default
8408 fi
8409
8410
8411 test -z "$pic_mode" && pic_mode=default
8412
8413
8414
8415
8416
8417
8418
8419   # Check whether --enable-fast-install was given.
8420 if test "${enable_fast_install+set}" = set; then :
8421   enableval=$enable_fast_install; p=${PACKAGE-default}
8422     case $enableval in
8423     yes) enable_fast_install=yes ;;
8424     no) enable_fast_install=no ;;
8425     *)
8426       enable_fast_install=no
8427       # Look at the argument we got.  We use all the common list separators.
8428       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8429       for pkg in $enableval; do
8430         IFS="$lt_save_ifs"
8431         if test "X$pkg" = "X$p"; then
8432           enable_fast_install=yes
8433         fi
8434       done
8435       IFS="$lt_save_ifs"
8436       ;;
8437     esac
8438 else
8439   enable_fast_install=yes
8440 fi
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452 # This can be used to rebuild libtool when needed
8453 LIBTOOL_DEPS="$ltmain"
8454
8455 # Always use our own libtool.
8456 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487 test -z "$LN_S" && LN_S="ln -s"
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502 if test -n "${ZSH_VERSION+set}" ; then
8503    setopt NO_GLOB_SUBST
8504 fi
8505
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8507 $as_echo_n "checking for objdir... " >&6; }
8508 if ${lt_cv_objdir+:} false; then :
8509   $as_echo_n "(cached) " >&6
8510 else
8511   rm -f .libs 2>/dev/null
8512 mkdir .libs 2>/dev/null
8513 if test -d .libs; then
8514   lt_cv_objdir=.libs
8515 else
8516   # MS-DOS does not allow filenames that begin with a dot.
8517   lt_cv_objdir=_libs
8518 fi
8519 rmdir .libs 2>/dev/null
8520 fi
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8522 $as_echo "$lt_cv_objdir" >&6; }
8523 objdir=$lt_cv_objdir
8524
8525
8526
8527
8528
8529 cat >>confdefs.h <<_ACEOF
8530 #define LT_OBJDIR "$lt_cv_objdir/"
8531 _ACEOF
8532
8533
8534
8535
8536 case $host_os in
8537 aix3*)
8538   # AIX sometimes has problems with the GCC collect2 program.  For some
8539   # reason, if we set the COLLECT_NAMES environment variable, the problems
8540   # vanish in a puff of smoke.
8541   if test "X${COLLECT_NAMES+set}" != Xset; then
8542     COLLECT_NAMES=
8543     export COLLECT_NAMES
8544   fi
8545   ;;
8546 esac
8547
8548 # Global variables:
8549 ofile=libtool
8550 can_build_shared=yes
8551
8552 # All known linkers require a `.a' archive for static linking (except MSVC,
8553 # which needs '.lib').
8554 libext=a
8555
8556 with_gnu_ld="$lt_cv_prog_gnu_ld"
8557
8558 old_CC="$CC"
8559 old_CFLAGS="$CFLAGS"
8560
8561 # Set sane defaults for various variables
8562 test -z "$CC" && CC=cc
8563 test -z "$LTCC" && LTCC=$CC
8564 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8565 test -z "$LD" && LD=ld
8566 test -z "$ac_objext" && ac_objext=o
8567
8568 for cc_temp in $compiler""; do
8569   case $cc_temp in
8570     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8571     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8572     \-*) ;;
8573     *) break;;
8574   esac
8575 done
8576 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8577
8578
8579 # Only perform the check for file, if the check method requires it
8580 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8581 case $deplibs_check_method in
8582 file_magic*)
8583   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8584     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8585 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8586 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8587   $as_echo_n "(cached) " >&6
8588 else
8589   case $MAGIC_CMD in
8590 [\\/*] |  ?:[\\/]*)
8591   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8592   ;;
8593 *)
8594   lt_save_MAGIC_CMD="$MAGIC_CMD"
8595   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8596   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8597   for ac_dir in $ac_dummy; do
8598     IFS="$lt_save_ifs"
8599     test -z "$ac_dir" && ac_dir=.
8600     if test -f $ac_dir/${ac_tool_prefix}file; then
8601       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8602       if test -n "$file_magic_test_file"; then
8603         case $deplibs_check_method in
8604         "file_magic "*)
8605           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8606           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8607           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8608             $EGREP "$file_magic_regex" > /dev/null; then
8609             :
8610           else
8611             cat <<_LT_EOF 1>&2
8612
8613 *** Warning: the command libtool uses to detect shared libraries,
8614 *** $file_magic_cmd, produces output that libtool cannot recognize.
8615 *** The result is that libtool may fail to recognize shared libraries
8616 *** as such.  This will affect the creation of libtool libraries that
8617 *** depend on shared libraries, but programs linked with such libtool
8618 *** libraries will work regardless of this problem.  Nevertheless, you
8619 *** may want to report the problem to your system manager and/or to
8620 *** bug-libtool@gnu.org
8621
8622 _LT_EOF
8623           fi ;;
8624         esac
8625       fi
8626       break
8627     fi
8628   done
8629   IFS="$lt_save_ifs"
8630   MAGIC_CMD="$lt_save_MAGIC_CMD"
8631   ;;
8632 esac
8633 fi
8634
8635 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8636 if test -n "$MAGIC_CMD"; then
8637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8638 $as_echo "$MAGIC_CMD" >&6; }
8639 else
8640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8641 $as_echo "no" >&6; }
8642 fi
8643
8644
8645
8646
8647
8648 if test -z "$lt_cv_path_MAGIC_CMD"; then
8649   if test -n "$ac_tool_prefix"; then
8650     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8651 $as_echo_n "checking for file... " >&6; }
8652 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8653   $as_echo_n "(cached) " >&6
8654 else
8655   case $MAGIC_CMD in
8656 [\\/*] |  ?:[\\/]*)
8657   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8658   ;;
8659 *)
8660   lt_save_MAGIC_CMD="$MAGIC_CMD"
8661   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8662   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8663   for ac_dir in $ac_dummy; do
8664     IFS="$lt_save_ifs"
8665     test -z "$ac_dir" && ac_dir=.
8666     if test -f $ac_dir/file; then
8667       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8668       if test -n "$file_magic_test_file"; then
8669         case $deplibs_check_method in
8670         "file_magic "*)
8671           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8672           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8673           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8674             $EGREP "$file_magic_regex" > /dev/null; then
8675             :
8676           else
8677             cat <<_LT_EOF 1>&2
8678
8679 *** Warning: the command libtool uses to detect shared libraries,
8680 *** $file_magic_cmd, produces output that libtool cannot recognize.
8681 *** The result is that libtool may fail to recognize shared libraries
8682 *** as such.  This will affect the creation of libtool libraries that
8683 *** depend on shared libraries, but programs linked with such libtool
8684 *** libraries will work regardless of this problem.  Nevertheless, you
8685 *** may want to report the problem to your system manager and/or to
8686 *** bug-libtool@gnu.org
8687
8688 _LT_EOF
8689           fi ;;
8690         esac
8691       fi
8692       break
8693     fi
8694   done
8695   IFS="$lt_save_ifs"
8696   MAGIC_CMD="$lt_save_MAGIC_CMD"
8697   ;;
8698 esac
8699 fi
8700
8701 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8702 if test -n "$MAGIC_CMD"; then
8703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8704 $as_echo "$MAGIC_CMD" >&6; }
8705 else
8706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8707 $as_echo "no" >&6; }
8708 fi
8709
8710
8711   else
8712     MAGIC_CMD=:
8713   fi
8714 fi
8715
8716   fi
8717   ;;
8718 esac
8719
8720 # Use C for the default configuration in the libtool script
8721
8722 lt_save_CC="$CC"
8723 ac_ext=c
8724 ac_cpp='$CPP $CPPFLAGS'
8725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8728
8729
8730 # Source file extension for C test sources.
8731 ac_ext=c
8732
8733 # Object file extension for compiled C test sources.
8734 objext=o
8735 objext=$objext
8736
8737 # Code to be used in simple compile tests
8738 lt_simple_compile_test_code="int some_variable = 0;"
8739
8740 # Code to be used in simple link tests
8741 lt_simple_link_test_code='int main(){return(0);}'
8742
8743
8744
8745
8746
8747
8748
8749 # If no C compiler was specified, use CC.
8750 LTCC=${LTCC-"$CC"}
8751
8752 # If no C compiler flags were specified, use CFLAGS.
8753 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8754
8755 # Allow CC to be a program name with arguments.
8756 compiler=$CC
8757
8758 # Save the default compiler, since it gets overwritten when the other
8759 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8760 compiler_DEFAULT=$CC
8761
8762 # save warnings/boilerplate of simple test code
8763 ac_outfile=conftest.$ac_objext
8764 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8765 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8766 _lt_compiler_boilerplate=`cat conftest.err`
8767 $RM conftest*
8768
8769 ac_outfile=conftest.$ac_objext
8770 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8771 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8772 _lt_linker_boilerplate=`cat conftest.err`
8773 $RM -r conftest*
8774
8775
8776 ## CAVEAT EMPTOR:
8777 ## There is no encapsulation within the following macros, do not change
8778 ## the running order or otherwise move them around unless you know exactly
8779 ## what you are doing...
8780 if test -n "$compiler"; then
8781
8782 lt_prog_compiler_no_builtin_flag=
8783
8784 if test "$GCC" = yes; then
8785   case $cc_basename in
8786   nvcc*)
8787     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8788   *)
8789     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8790   esac
8791
8792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8793 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8794 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8795   $as_echo_n "(cached) " >&6
8796 else
8797   lt_cv_prog_compiler_rtti_exceptions=no
8798    ac_outfile=conftest.$ac_objext
8799    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8800    lt_compiler_flag="-fno-rtti -fno-exceptions"
8801    # Insert the option either (1) after the last *FLAGS variable, or
8802    # (2) before a word containing "conftest.", or (3) at the end.
8803    # Note that $ac_compile itself does not contain backslashes and begins
8804    # with a dollar sign (not a hyphen), so the echo should work correctly.
8805    # The option is referenced via a variable to avoid confusing sed.
8806    lt_compile=`echo "$ac_compile" | $SED \
8807    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8808    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8809    -e 's:$: $lt_compiler_flag:'`
8810    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8811    (eval "$lt_compile" 2>conftest.err)
8812    ac_status=$?
8813    cat conftest.err >&5
8814    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815    if (exit $ac_status) && test -s "$ac_outfile"; then
8816      # The compiler can only warn and ignore the option if not recognized
8817      # So say no if there are warnings other than the usual output.
8818      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8819      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8820      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8821        lt_cv_prog_compiler_rtti_exceptions=yes
8822      fi
8823    fi
8824    $RM conftest*
8825
8826 fi
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8828 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8829
8830 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8831     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8832 else
8833     :
8834 fi
8835
8836 fi
8837
8838
8839
8840
8841
8842
8843   lt_prog_compiler_wl=
8844 lt_prog_compiler_pic=
8845 lt_prog_compiler_static=
8846
8847
8848   if test "$GCC" = yes; then
8849     lt_prog_compiler_wl='-Wl,'
8850     lt_prog_compiler_static='-static'
8851
8852     case $host_os in
8853       aix*)
8854       # All AIX code is PIC.
8855       if test "$host_cpu" = ia64; then
8856         # AIX 5 now supports IA64 processor
8857         lt_prog_compiler_static='-Bstatic'
8858       fi
8859       ;;
8860
8861     amigaos*)
8862       case $host_cpu in
8863       powerpc)
8864             # see comment about AmigaOS4 .so support
8865             lt_prog_compiler_pic='-fPIC'
8866         ;;
8867       m68k)
8868             # FIXME: we need at least 68020 code to build shared libraries, but
8869             # adding the `-m68020' flag to GCC prevents building anything better,
8870             # like `-m68040'.
8871             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8872         ;;
8873       esac
8874       ;;
8875
8876     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8877       # PIC is the default for these OSes.
8878       ;;
8879
8880     mingw* | cygwin* | pw32* | os2* | cegcc*)
8881       # This hack is so that the source file can tell whether it is being
8882       # built for inclusion in a dll (and should export symbols for example).
8883       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8884       # (--disable-auto-import) libraries
8885       lt_prog_compiler_pic='-DDLL_EXPORT'
8886       ;;
8887
8888     darwin* | rhapsody*)
8889       # PIC is the default on this platform
8890       # Common symbols not allowed in MH_DYLIB files
8891       lt_prog_compiler_pic='-fno-common'
8892       ;;
8893
8894     haiku*)
8895       # PIC is the default for Haiku.
8896       # The "-static" flag exists, but is broken.
8897       lt_prog_compiler_static=
8898       ;;
8899
8900     hpux*)
8901       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8902       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8903       # sets the default TLS model and affects inlining.
8904       case $host_cpu in
8905       hppa*64*)
8906         # +Z the default
8907         ;;
8908       *)
8909         lt_prog_compiler_pic='-fPIC'
8910         ;;
8911       esac
8912       ;;
8913
8914     interix[3-9]*)
8915       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8916       # Instead, we relocate shared libraries at runtime.
8917       ;;
8918
8919     msdosdjgpp*)
8920       # Just because we use GCC doesn't mean we suddenly get shared libraries
8921       # on systems that don't support them.
8922       lt_prog_compiler_can_build_shared=no
8923       enable_shared=no
8924       ;;
8925
8926     *nto* | *qnx*)
8927       # QNX uses GNU C++, but need to define -shared option too, otherwise
8928       # it will coredump.
8929       lt_prog_compiler_pic='-fPIC -shared'
8930       ;;
8931
8932     sysv4*MP*)
8933       if test -d /usr/nec; then
8934         lt_prog_compiler_pic=-Kconform_pic
8935       fi
8936       ;;
8937
8938     *)
8939       lt_prog_compiler_pic='-fPIC'
8940       ;;
8941     esac
8942
8943     case $cc_basename in
8944     nvcc*) # Cuda Compiler Driver 2.2
8945       lt_prog_compiler_wl='-Xlinker '
8946       if test -n "$lt_prog_compiler_pic"; then
8947         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8948       fi
8949       ;;
8950     esac
8951   else
8952     # PORTME Check for flag to pass linker flags through the system compiler.
8953     case $host_os in
8954     aix*)
8955       lt_prog_compiler_wl='-Wl,'
8956       if test "$host_cpu" = ia64; then
8957         # AIX 5 now supports IA64 processor
8958         lt_prog_compiler_static='-Bstatic'
8959       else
8960         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8961       fi
8962       ;;
8963
8964     mingw* | cygwin* | pw32* | os2* | cegcc*)
8965       # This hack is so that the source file can tell whether it is being
8966       # built for inclusion in a dll (and should export symbols for example).
8967       lt_prog_compiler_pic='-DDLL_EXPORT'
8968       ;;
8969
8970     hpux9* | hpux10* | hpux11*)
8971       lt_prog_compiler_wl='-Wl,'
8972       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8973       # not for PA HP-UX.
8974       case $host_cpu in
8975       hppa*64*|ia64*)
8976         # +Z the default
8977         ;;
8978       *)
8979         lt_prog_compiler_pic='+Z'
8980         ;;
8981       esac
8982       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8983       lt_prog_compiler_static='${wl}-a ${wl}archive'
8984       ;;
8985
8986     irix5* | irix6* | nonstopux*)
8987       lt_prog_compiler_wl='-Wl,'
8988       # PIC (with -KPIC) is the default.
8989       lt_prog_compiler_static='-non_shared'
8990       ;;
8991
8992     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8993       case $cc_basename in
8994       # old Intel for x86_64 which still supported -KPIC.
8995       ecc*)
8996         lt_prog_compiler_wl='-Wl,'
8997         lt_prog_compiler_pic='-KPIC'
8998         lt_prog_compiler_static='-static'
8999         ;;
9000       # icc used to be incompatible with GCC.
9001       # ICC 10 doesn't accept -KPIC any more.
9002       icc* | ifort*)
9003         lt_prog_compiler_wl='-Wl,'
9004         lt_prog_compiler_pic='-fPIC'
9005         lt_prog_compiler_static='-static'
9006         ;;
9007       # Lahey Fortran 8.1.
9008       lf95*)
9009         lt_prog_compiler_wl='-Wl,'
9010         lt_prog_compiler_pic='--shared'
9011         lt_prog_compiler_static='--static'
9012         ;;
9013       nagfor*)
9014         # NAG Fortran compiler
9015         lt_prog_compiler_wl='-Wl,-Wl,,'
9016         lt_prog_compiler_pic='-PIC'
9017         lt_prog_compiler_static='-Bstatic'
9018         ;;
9019       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9020         # Portland Group compilers (*not* the Pentium gcc compiler,
9021         # which looks to be a dead project)
9022         lt_prog_compiler_wl='-Wl,'
9023         lt_prog_compiler_pic='-fpic'
9024         lt_prog_compiler_static='-Bstatic'
9025         ;;
9026       ccc*)
9027         lt_prog_compiler_wl='-Wl,'
9028         # All Alpha code is PIC.
9029         lt_prog_compiler_static='-non_shared'
9030         ;;
9031       xl* | bgxl* | bgf* | mpixl*)
9032         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9033         lt_prog_compiler_wl='-Wl,'
9034         lt_prog_compiler_pic='-qpic'
9035         lt_prog_compiler_static='-qstaticlink'
9036         ;;
9037       *)
9038         case `$CC -V 2>&1 | sed 5q` in
9039         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9040           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9041           lt_prog_compiler_pic='-KPIC'
9042           lt_prog_compiler_static='-Bstatic'
9043           lt_prog_compiler_wl=''
9044           ;;
9045         *Sun\ F* | *Sun*Fortran*)
9046           lt_prog_compiler_pic='-KPIC'
9047           lt_prog_compiler_static='-Bstatic'
9048           lt_prog_compiler_wl='-Qoption ld '
9049           ;;
9050         *Sun\ C*)
9051           # Sun C 5.9
9052           lt_prog_compiler_pic='-KPIC'
9053           lt_prog_compiler_static='-Bstatic'
9054           lt_prog_compiler_wl='-Wl,'
9055           ;;
9056         *Intel*\ [CF]*Compiler*)
9057           lt_prog_compiler_wl='-Wl,'
9058           lt_prog_compiler_pic='-fPIC'
9059           lt_prog_compiler_static='-static'
9060           ;;
9061         *Portland\ Group*)
9062           lt_prog_compiler_wl='-Wl,'
9063           lt_prog_compiler_pic='-fpic'
9064           lt_prog_compiler_static='-Bstatic'
9065           ;;
9066         esac
9067         ;;
9068       esac
9069       ;;
9070
9071     newsos6)
9072       lt_prog_compiler_pic='-KPIC'
9073       lt_prog_compiler_static='-Bstatic'
9074       ;;
9075
9076     *nto* | *qnx*)
9077       # QNX uses GNU C++, but need to define -shared option too, otherwise
9078       # it will coredump.
9079       lt_prog_compiler_pic='-fPIC -shared'
9080       ;;
9081
9082     osf3* | osf4* | osf5*)
9083       lt_prog_compiler_wl='-Wl,'
9084       # All OSF/1 code is PIC.
9085       lt_prog_compiler_static='-non_shared'
9086       ;;
9087
9088     rdos*)
9089       lt_prog_compiler_static='-non_shared'
9090       ;;
9091
9092     solaris*)
9093       lt_prog_compiler_pic='-KPIC'
9094       lt_prog_compiler_static='-Bstatic'
9095       case $cc_basename in
9096       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9097         lt_prog_compiler_wl='-Qoption ld ';;
9098       *)
9099         lt_prog_compiler_wl='-Wl,';;
9100       esac
9101       ;;
9102
9103     sunos4*)
9104       lt_prog_compiler_wl='-Qoption ld '
9105       lt_prog_compiler_pic='-PIC'
9106       lt_prog_compiler_static='-Bstatic'
9107       ;;
9108
9109     sysv4 | sysv4.2uw2* | sysv4.3*)
9110       lt_prog_compiler_wl='-Wl,'
9111       lt_prog_compiler_pic='-KPIC'
9112       lt_prog_compiler_static='-Bstatic'
9113       ;;
9114
9115     sysv4*MP*)
9116       if test -d /usr/nec ;then
9117         lt_prog_compiler_pic='-Kconform_pic'
9118         lt_prog_compiler_static='-Bstatic'
9119       fi
9120       ;;
9121
9122     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9123       lt_prog_compiler_wl='-Wl,'
9124       lt_prog_compiler_pic='-KPIC'
9125       lt_prog_compiler_static='-Bstatic'
9126       ;;
9127
9128     unicos*)
9129       lt_prog_compiler_wl='-Wl,'
9130       lt_prog_compiler_can_build_shared=no
9131       ;;
9132
9133     uts4*)
9134       lt_prog_compiler_pic='-pic'
9135       lt_prog_compiler_static='-Bstatic'
9136       ;;
9137
9138     *)
9139       lt_prog_compiler_can_build_shared=no
9140       ;;
9141     esac
9142   fi
9143
9144 case $host_os in
9145   # For platforms which do not support PIC, -DPIC is meaningless:
9146   *djgpp*)
9147     lt_prog_compiler_pic=
9148     ;;
9149   *)
9150     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9151     ;;
9152 esac
9153
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9155 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9156 if ${lt_cv_prog_compiler_pic+:} false; then :
9157   $as_echo_n "(cached) " >&6
9158 else
9159   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9160 fi
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9162 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9163 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9164
9165 #
9166 # Check to make sure the PIC flag actually works.
9167 #
9168 if test -n "$lt_prog_compiler_pic"; then
9169   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9170 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9171 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9172   $as_echo_n "(cached) " >&6
9173 else
9174   lt_cv_prog_compiler_pic_works=no
9175    ac_outfile=conftest.$ac_objext
9176    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9177    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9178    # Insert the option either (1) after the last *FLAGS variable, or
9179    # (2) before a word containing "conftest.", or (3) at the end.
9180    # Note that $ac_compile itself does not contain backslashes and begins
9181    # with a dollar sign (not a hyphen), so the echo should work correctly.
9182    # The option is referenced via a variable to avoid confusing sed.
9183    lt_compile=`echo "$ac_compile" | $SED \
9184    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9185    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9186    -e 's:$: $lt_compiler_flag:'`
9187    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9188    (eval "$lt_compile" 2>conftest.err)
9189    ac_status=$?
9190    cat conftest.err >&5
9191    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192    if (exit $ac_status) && test -s "$ac_outfile"; then
9193      # The compiler can only warn and ignore the option if not recognized
9194      # So say no if there are warnings other than the usual output.
9195      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9196      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9197      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9198        lt_cv_prog_compiler_pic_works=yes
9199      fi
9200    fi
9201    $RM conftest*
9202
9203 fi
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9205 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9206
9207 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9208     case $lt_prog_compiler_pic in
9209      "" | " "*) ;;
9210      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9211      esac
9212 else
9213     lt_prog_compiler_pic=
9214      lt_prog_compiler_can_build_shared=no
9215 fi
9216
9217 fi
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229 #
9230 # Check to make sure the static flag actually works.
9231 #
9232 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9234 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9235 if ${lt_cv_prog_compiler_static_works+:} false; then :
9236   $as_echo_n "(cached) " >&6
9237 else
9238   lt_cv_prog_compiler_static_works=no
9239    save_LDFLAGS="$LDFLAGS"
9240    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9241    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9242    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9243      # The linker can only warn and ignore the option if not recognized
9244      # So say no if there are warnings
9245      if test -s conftest.err; then
9246        # Append any errors to the config.log.
9247        cat conftest.err 1>&5
9248        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9249        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9250        if diff conftest.exp conftest.er2 >/dev/null; then
9251          lt_cv_prog_compiler_static_works=yes
9252        fi
9253      else
9254        lt_cv_prog_compiler_static_works=yes
9255      fi
9256    fi
9257    $RM -r conftest*
9258    LDFLAGS="$save_LDFLAGS"
9259
9260 fi
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9262 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9263
9264 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9265     :
9266 else
9267     lt_prog_compiler_static=
9268 fi
9269
9270
9271
9272
9273
9274
9275
9276   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9277 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9278 if ${lt_cv_prog_compiler_c_o+:} false; then :
9279   $as_echo_n "(cached) " >&6
9280 else
9281   lt_cv_prog_compiler_c_o=no
9282    $RM -r conftest 2>/dev/null
9283    mkdir conftest
9284    cd conftest
9285    mkdir out
9286    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9287
9288    lt_compiler_flag="-o out/conftest2.$ac_objext"
9289    # Insert the option either (1) after the last *FLAGS variable, or
9290    # (2) before a word containing "conftest.", or (3) at the end.
9291    # Note that $ac_compile itself does not contain backslashes and begins
9292    # with a dollar sign (not a hyphen), so the echo should work correctly.
9293    lt_compile=`echo "$ac_compile" | $SED \
9294    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9295    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9296    -e 's:$: $lt_compiler_flag:'`
9297    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9298    (eval "$lt_compile" 2>out/conftest.err)
9299    ac_status=$?
9300    cat out/conftest.err >&5
9301    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9303    then
9304      # The compiler can only warn and ignore the option if not recognized
9305      # So say no if there are warnings
9306      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9307      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9308      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9309        lt_cv_prog_compiler_c_o=yes
9310      fi
9311    fi
9312    chmod u+w . 2>&5
9313    $RM conftest*
9314    # SGI C++ compiler will create directory out/ii_files/ for
9315    # template instantiation
9316    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9317    $RM out/* && rmdir out
9318    cd ..
9319    $RM -r conftest
9320    $RM conftest*
9321
9322 fi
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9324 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9325
9326
9327
9328
9329
9330
9331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9332 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9333 if ${lt_cv_prog_compiler_c_o+:} false; then :
9334   $as_echo_n "(cached) " >&6
9335 else
9336   lt_cv_prog_compiler_c_o=no
9337    $RM -r conftest 2>/dev/null
9338    mkdir conftest
9339    cd conftest
9340    mkdir out
9341    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9342
9343    lt_compiler_flag="-o out/conftest2.$ac_objext"
9344    # Insert the option either (1) after the last *FLAGS variable, or
9345    # (2) before a word containing "conftest.", or (3) at the end.
9346    # Note that $ac_compile itself does not contain backslashes and begins
9347    # with a dollar sign (not a hyphen), so the echo should work correctly.
9348    lt_compile=`echo "$ac_compile" | $SED \
9349    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9350    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9351    -e 's:$: $lt_compiler_flag:'`
9352    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9353    (eval "$lt_compile" 2>out/conftest.err)
9354    ac_status=$?
9355    cat out/conftest.err >&5
9356    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9358    then
9359      # The compiler can only warn and ignore the option if not recognized
9360      # So say no if there are warnings
9361      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9362      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9363      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9364        lt_cv_prog_compiler_c_o=yes
9365      fi
9366    fi
9367    chmod u+w . 2>&5
9368    $RM conftest*
9369    # SGI C++ compiler will create directory out/ii_files/ for
9370    # template instantiation
9371    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9372    $RM out/* && rmdir out
9373    cd ..
9374    $RM -r conftest
9375    $RM conftest*
9376
9377 fi
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9379 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9380
9381
9382
9383
9384 hard_links="nottested"
9385 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9386   # do not overwrite the value of need_locks provided by the user
9387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9388 $as_echo_n "checking if we can lock with hard links... " >&6; }
9389   hard_links=yes
9390   $RM conftest*
9391   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9392   touch conftest.a
9393   ln conftest.a conftest.b 2>&5 || hard_links=no
9394   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9396 $as_echo "$hard_links" >&6; }
9397   if test "$hard_links" = no; then
9398     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9399 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9400     need_locks=warn
9401   fi
9402 else
9403   need_locks=no
9404 fi
9405
9406
9407
9408
9409
9410
9411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9412 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9413
9414   runpath_var=
9415   allow_undefined_flag=
9416   always_export_symbols=no
9417   archive_cmds=
9418   archive_expsym_cmds=
9419   compiler_needs_object=no
9420   enable_shared_with_static_runtimes=no
9421   export_dynamic_flag_spec=
9422   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9423   hardcode_automatic=no
9424   hardcode_direct=no
9425   hardcode_direct_absolute=no
9426   hardcode_libdir_flag_spec=
9427   hardcode_libdir_separator=
9428   hardcode_minus_L=no
9429   hardcode_shlibpath_var=unsupported
9430   inherit_rpath=no
9431   link_all_deplibs=unknown
9432   module_cmds=
9433   module_expsym_cmds=
9434   old_archive_from_new_cmds=
9435   old_archive_from_expsyms_cmds=
9436   thread_safe_flag_spec=
9437   whole_archive_flag_spec=
9438   # include_expsyms should be a list of space-separated symbols to be *always*
9439   # included in the symbol list
9440   include_expsyms=
9441   # exclude_expsyms can be an extended regexp of symbols to exclude
9442   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9443   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9444   # as well as any symbol that contains `d'.
9445   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9446   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9447   # platforms (ab)use it in PIC code, but their linkers get confused if
9448   # the symbol is explicitly referenced.  Since portable code cannot
9449   # rely on this symbol name, it's probably fine to never include it in
9450   # preloaded symbol tables.
9451   # Exclude shared library initialization/finalization symbols.
9452   extract_expsyms_cmds=
9453
9454   case $host_os in
9455   cygwin* | mingw* | pw32* | cegcc*)
9456     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9457     # When not using gcc, we currently assume that we are using
9458     # Microsoft Visual C++.
9459     if test "$GCC" != yes; then
9460       with_gnu_ld=no
9461     fi
9462     ;;
9463   interix*)
9464     # we just hope/assume this is gcc and not c89 (= MSVC++)
9465     with_gnu_ld=yes
9466     ;;
9467   openbsd*)
9468     with_gnu_ld=no
9469     ;;
9470   linux* | k*bsd*-gnu | gnu*)
9471     link_all_deplibs=no
9472     ;;
9473   esac
9474
9475   ld_shlibs=yes
9476
9477   # On some targets, GNU ld is compatible enough with the native linker
9478   # that we're better off using the native interface for both.
9479   lt_use_gnu_ld_interface=no
9480   if test "$with_gnu_ld" = yes; then
9481     case $host_os in
9482       aix*)
9483         # The AIX port of GNU ld has always aspired to compatibility
9484         # with the native linker.  However, as the warning in the GNU ld
9485         # block says, versions before 2.19.5* couldn't really create working
9486         # shared libraries, regardless of the interface used.
9487         case `$LD -v 2>&1` in
9488           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9489           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9490           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9491           *)
9492             lt_use_gnu_ld_interface=yes
9493             ;;
9494         esac
9495         ;;
9496       *)
9497         lt_use_gnu_ld_interface=yes
9498         ;;
9499     esac
9500   fi
9501
9502   if test "$lt_use_gnu_ld_interface" = yes; then
9503     # If archive_cmds runs LD, not CC, wlarc should be empty
9504     wlarc='${wl}'
9505
9506     # Set some defaults for GNU ld with shared library support. These
9507     # are reset later if shared libraries are not supported. Putting them
9508     # here allows them to be overridden if necessary.
9509     runpath_var=LD_RUN_PATH
9510     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9511     export_dynamic_flag_spec='${wl}--export-dynamic'
9512     # ancient GNU ld didn't support --whole-archive et. al.
9513     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9514       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9515     else
9516       whole_archive_flag_spec=
9517     fi
9518     supports_anon_versioning=no
9519     case `$LD -v 2>&1` in
9520       *GNU\ gold*) supports_anon_versioning=yes ;;
9521       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9522       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9523       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9524       *\ 2.11.*) ;; # other 2.11 versions
9525       *) supports_anon_versioning=yes ;;
9526     esac
9527
9528     # See if GNU ld supports shared libraries.
9529     case $host_os in
9530     aix[3-9]*)
9531       # On AIX/PPC, the GNU linker is very broken
9532       if test "$host_cpu" != ia64; then
9533         ld_shlibs=no
9534         cat <<_LT_EOF 1>&2
9535
9536 *** Warning: the GNU linker, at least up to release 2.19, is reported
9537 *** to be unable to reliably create shared libraries on AIX.
9538 *** Therefore, libtool is disabling shared libraries support.  If you
9539 *** really care for shared libraries, you may want to install binutils
9540 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9541 *** You will then need to restart the configuration process.
9542
9543 _LT_EOF
9544       fi
9545       ;;
9546
9547     amigaos*)
9548       case $host_cpu in
9549       powerpc)
9550             # see comment about AmigaOS4 .so support
9551             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9552             archive_expsym_cmds=''
9553         ;;
9554       m68k)
9555             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)'
9556             hardcode_libdir_flag_spec='-L$libdir'
9557             hardcode_minus_L=yes
9558         ;;
9559       esac
9560       ;;
9561
9562     beos*)
9563       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9564         allow_undefined_flag=unsupported
9565         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9566         # support --undefined.  This deserves some investigation.  FIXME
9567         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9568       else
9569         ld_shlibs=no
9570       fi
9571       ;;
9572
9573     cygwin* | mingw* | pw32* | cegcc*)
9574       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9575       # as there is no search path for DLLs.
9576       hardcode_libdir_flag_spec='-L$libdir'
9577       export_dynamic_flag_spec='${wl}--export-all-symbols'
9578       allow_undefined_flag=unsupported
9579       always_export_symbols=no
9580       enable_shared_with_static_runtimes=yes
9581       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'
9582       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9583
9584       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9585         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9586         # If the export-symbols file already is a .def file (1st line
9587         # is EXPORTS), use it as is; otherwise, prepend...
9588         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9589           cp $export_symbols $output_objdir/$soname.def;
9590         else
9591           echo EXPORTS > $output_objdir/$soname.def;
9592           cat $export_symbols >> $output_objdir/$soname.def;
9593         fi~
9594         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9595       else
9596         ld_shlibs=no
9597       fi
9598       ;;
9599
9600     haiku*)
9601       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9602       link_all_deplibs=yes
9603       ;;
9604
9605     interix[3-9]*)
9606       hardcode_direct=no
9607       hardcode_shlibpath_var=no
9608       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9609       export_dynamic_flag_spec='${wl}-E'
9610       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9611       # Instead, shared libraries are loaded at an image base (0x10000000 by
9612       # default) and relocated if they conflict, which is a slow very memory
9613       # consuming and fragmenting process.  To avoid this, we pick a random,
9614       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9615       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9616       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9617       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'
9618       ;;
9619
9620     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9621       tmp_diet=no
9622       if test "$host_os" = linux-dietlibc; then
9623         case $cc_basename in
9624           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9625         esac
9626       fi
9627       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9628          && test "$tmp_diet" = no
9629       then
9630         tmp_addflag=' $pic_flag'
9631         tmp_sharedflag='-shared'
9632         case $cc_basename,$host_cpu in
9633         pgcc*)                          # Portland Group C compiler
9634           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'
9635           tmp_addflag=' $pic_flag'
9636           ;;
9637         pgf77* | pgf90* | pgf95* | pgfortran*)
9638                                         # Portland Group f77 and f90 compilers
9639           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'
9640           tmp_addflag=' $pic_flag -Mnomain' ;;
9641         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9642           tmp_addflag=' -i_dynamic' ;;
9643         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9644           tmp_addflag=' -i_dynamic -nofor_main' ;;
9645         ifc* | ifort*)                  # Intel Fortran compiler
9646           tmp_addflag=' -nofor_main' ;;
9647         lf95*)                          # Lahey Fortran 8.1
9648           whole_archive_flag_spec=
9649           tmp_sharedflag='--shared' ;;
9650         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9651           tmp_sharedflag='-qmkshrobj'
9652           tmp_addflag= ;;
9653         nvcc*)  # Cuda Compiler Driver 2.2
9654           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'
9655           compiler_needs_object=yes
9656           ;;
9657         esac
9658         case `$CC -V 2>&1 | sed 5q` in
9659         *Sun\ C*)                       # Sun C 5.9
9660           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'
9661           compiler_needs_object=yes
9662           tmp_sharedflag='-G' ;;
9663         *Sun\ F*)                       # Sun Fortran 8.3
9664           tmp_sharedflag='-G' ;;
9665         esac
9666         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9667
9668         if test "x$supports_anon_versioning" = xyes; then
9669           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9670             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9671             echo "local: *; };" >> $output_objdir/$libname.ver~
9672             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9673         fi
9674
9675         case $cc_basename in
9676         xlf* | bgf* | bgxlf* | mpixlf*)
9677           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9678           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9679           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9680           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9681           if test "x$supports_anon_versioning" = xyes; then
9682             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9683               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9684               echo "local: *; };" >> $output_objdir/$libname.ver~
9685               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9686           fi
9687           ;;
9688         esac
9689       else
9690         ld_shlibs=no
9691       fi
9692       ;;
9693
9694     netbsd* | netbsdelf*-gnu)
9695       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9696         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9697         wlarc=
9698       else
9699         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9700         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9701       fi
9702       ;;
9703
9704     solaris*)
9705       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9706         ld_shlibs=no
9707         cat <<_LT_EOF 1>&2
9708
9709 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9710 *** create shared libraries on Solaris systems.  Therefore, libtool
9711 *** is disabling shared libraries support.  We urge you to upgrade GNU
9712 *** binutils to release 2.9.1 or newer.  Another option is to modify
9713 *** your PATH or compiler configuration so that the native linker is
9714 *** used, and then restart.
9715
9716 _LT_EOF
9717       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9718         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9719         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9720       else
9721         ld_shlibs=no
9722       fi
9723       ;;
9724
9725     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9726       case `$LD -v 2>&1` in
9727         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9728         ld_shlibs=no
9729         cat <<_LT_EOF 1>&2
9730
9731 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9732 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9733 *** is disabling shared libraries support.  We urge you to upgrade GNU
9734 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9735 *** your PATH or compiler configuration so that the native linker is
9736 *** used, and then restart.
9737
9738 _LT_EOF
9739         ;;
9740         *)
9741           # For security reasons, it is highly recommended that you always
9742           # use absolute paths for naming shared libraries, and exclude the
9743           # DT_RUNPATH tag from executables and libraries.  But doing so
9744           # requires that you compile everything twice, which is a pain.
9745           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9746             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9747             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9748             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9749           else
9750             ld_shlibs=no
9751           fi
9752         ;;
9753       esac
9754       ;;
9755
9756     sunos4*)
9757       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9758       wlarc=
9759       hardcode_direct=yes
9760       hardcode_shlibpath_var=no
9761       ;;
9762
9763     *)
9764       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9765         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9766         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9767       else
9768         ld_shlibs=no
9769       fi
9770       ;;
9771     esac
9772
9773     if test "$ld_shlibs" = no; then
9774       runpath_var=
9775       hardcode_libdir_flag_spec=
9776       export_dynamic_flag_spec=
9777       whole_archive_flag_spec=
9778     fi
9779   else
9780     # PORTME fill in a description of your system's linker (not GNU ld)
9781     case $host_os in
9782     aix3*)
9783       allow_undefined_flag=unsupported
9784       always_export_symbols=yes
9785       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'
9786       # Note: this linker hardcodes the directories in LIBPATH if there
9787       # are no directories specified by -L.
9788       hardcode_minus_L=yes
9789       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9790         # Neither direct hardcoding nor static linking is supported with a
9791         # broken collect2.
9792         hardcode_direct=unsupported
9793       fi
9794       ;;
9795
9796     aix[4-9]*)
9797       if test "$host_cpu" = ia64; then
9798         # On IA64, the linker does run time linking by default, so we don't
9799         # have to do anything special.
9800         aix_use_runtimelinking=no
9801         exp_sym_flag='-Bexport'
9802         no_entry_flag=""
9803       else
9804         # If we're using GNU nm, then we don't want the "-C" option.
9805         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9806         # Also, AIX nm treats weak defined symbols like other global
9807         # defined symbols, whereas GNU nm marks them as "W".
9808         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9809           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9810         else
9811           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9812         fi
9813         aix_use_runtimelinking=no
9814
9815         # Test if we are trying to use run time linking or normal
9816         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9817         # need to do runtime linking.
9818         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9819           for ld_flag in $LDFLAGS; do
9820           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9821             aix_use_runtimelinking=yes
9822             break
9823           fi
9824           done
9825           ;;
9826         esac
9827
9828         exp_sym_flag='-bexport'
9829         no_entry_flag='-bnoentry'
9830       fi
9831
9832       # When large executables or shared objects are built, AIX ld can
9833       # have problems creating the table of contents.  If linking a library
9834       # or program results in "error TOC overflow" add -mminimal-toc to
9835       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9836       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9837
9838       archive_cmds=''
9839       hardcode_direct=yes
9840       hardcode_direct_absolute=yes
9841       hardcode_libdir_separator=':'
9842       link_all_deplibs=yes
9843       file_list_spec='${wl}-f,'
9844
9845       if test "$GCC" = yes; then
9846         case $host_os in aix4.[012]|aix4.[012].*)
9847         # We only want to do this on AIX 4.2 and lower, the check
9848         # below for broken collect2 doesn't work under 4.3+
9849           collect2name=`${CC} -print-prog-name=collect2`
9850           if test -f "$collect2name" &&
9851            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9852           then
9853           # We have reworked collect2
9854           :
9855           else
9856           # We have old collect2
9857           hardcode_direct=unsupported
9858           # It fails to find uninstalled libraries when the uninstalled
9859           # path is not listed in the libpath.  Setting hardcode_minus_L
9860           # to unsupported forces relinking
9861           hardcode_minus_L=yes
9862           hardcode_libdir_flag_spec='-L$libdir'
9863           hardcode_libdir_separator=
9864           fi
9865           ;;
9866         esac
9867         shared_flag='-shared'
9868         if test "$aix_use_runtimelinking" = yes; then
9869           shared_flag="$shared_flag "'${wl}-G'
9870         fi
9871         link_all_deplibs=no
9872       else
9873         # not using gcc
9874         if test "$host_cpu" = ia64; then
9875         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9876         # chokes on -Wl,-G. The following line is correct:
9877           shared_flag='-G'
9878         else
9879           if test "$aix_use_runtimelinking" = yes; then
9880             shared_flag='${wl}-G'
9881           else
9882             shared_flag='${wl}-bM:SRE'
9883           fi
9884         fi
9885       fi
9886
9887       export_dynamic_flag_spec='${wl}-bexpall'
9888       # It seems that -bexpall does not export symbols beginning with
9889       # underscore (_), so it is better to generate a list of symbols to export.
9890       always_export_symbols=yes
9891       if test "$aix_use_runtimelinking" = yes; then
9892         # Warning - without using the other runtime loading flags (-brtl),
9893         # -berok will link without error, but may produce a broken library.
9894         allow_undefined_flag='-berok'
9895         # Determine the default libpath from the value encoded in an
9896         # empty executable.
9897         if test "${lt_cv_aix_libpath+set}" = set; then
9898   aix_libpath=$lt_cv_aix_libpath
9899 else
9900   if ${lt_cv_aix_libpath_+:} false; then :
9901   $as_echo_n "(cached) " >&6
9902 else
9903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9904 /* end confdefs.h.  */
9905
9906 int
9907 main ()
9908 {
9909
9910   ;
9911   return 0;
9912 }
9913 _ACEOF
9914 if ac_fn_c_try_link "$LINENO"; then :
9915
9916   lt_aix_libpath_sed='
9917       /Import File Strings/,/^$/ {
9918           /^0/ {
9919               s/^0  *\([^ ]*\) *$/\1/
9920               p
9921           }
9922       }'
9923   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9924   # Check for a 64-bit object if we didn't find anything.
9925   if test -z "$lt_cv_aix_libpath_"; then
9926     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9927   fi
9928 fi
9929 rm -f core conftest.err conftest.$ac_objext \
9930     conftest$ac_exeext conftest.$ac_ext
9931   if test -z "$lt_cv_aix_libpath_"; then
9932     lt_cv_aix_libpath_="/usr/lib:/lib"
9933   fi
9934
9935 fi
9936
9937   aix_libpath=$lt_cv_aix_libpath_
9938 fi
9939
9940         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9941         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9942       else
9943         if test "$host_cpu" = ia64; then
9944           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9945           allow_undefined_flag="-z nodefs"
9946           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"
9947         else
9948          # Determine the default libpath from the value encoded in an
9949          # empty executable.
9950          if test "${lt_cv_aix_libpath+set}" = set; then
9951   aix_libpath=$lt_cv_aix_libpath
9952 else
9953   if ${lt_cv_aix_libpath_+:} false; then :
9954   $as_echo_n "(cached) " >&6
9955 else
9956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9957 /* end confdefs.h.  */
9958
9959 int
9960 main ()
9961 {
9962
9963   ;
9964   return 0;
9965 }
9966 _ACEOF
9967 if ac_fn_c_try_link "$LINENO"; then :
9968
9969   lt_aix_libpath_sed='
9970       /Import File Strings/,/^$/ {
9971           /^0/ {
9972               s/^0  *\([^ ]*\) *$/\1/
9973               p
9974           }
9975       }'
9976   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9977   # Check for a 64-bit object if we didn't find anything.
9978   if test -z "$lt_cv_aix_libpath_"; then
9979     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9980   fi
9981 fi
9982 rm -f core conftest.err conftest.$ac_objext \
9983     conftest$ac_exeext conftest.$ac_ext
9984   if test -z "$lt_cv_aix_libpath_"; then
9985     lt_cv_aix_libpath_="/usr/lib:/lib"
9986   fi
9987
9988 fi
9989
9990   aix_libpath=$lt_cv_aix_libpath_
9991 fi
9992
9993          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9994           # Warning - without using the other run time loading flags,
9995           # -berok will link without error, but may produce a broken library.
9996           no_undefined_flag=' ${wl}-bernotok'
9997           allow_undefined_flag=' ${wl}-berok'
9998           if test "$with_gnu_ld" = yes; then
9999             # We only use this code for GNU lds that support --whole-archive.
10000             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10001           else
10002             # Exported symbols can be pulled into shared objects from archives
10003             whole_archive_flag_spec='$convenience'
10004           fi
10005           archive_cmds_need_lc=yes
10006           # This is similar to how AIX traditionally builds its shared libraries.
10007           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10008         fi
10009       fi
10010       ;;
10011
10012     amigaos*)
10013       case $host_cpu in
10014       powerpc)
10015             # see comment about AmigaOS4 .so support
10016             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10017             archive_expsym_cmds=''
10018         ;;
10019       m68k)
10020             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)'
10021             hardcode_libdir_flag_spec='-L$libdir'
10022             hardcode_minus_L=yes
10023         ;;
10024       esac
10025       ;;
10026
10027     bsdi[45]*)
10028       export_dynamic_flag_spec=-rdynamic
10029       ;;
10030
10031     cygwin* | mingw* | pw32* | cegcc*)
10032       # When not using gcc, we currently assume that we are using
10033       # Microsoft Visual C++.
10034       # hardcode_libdir_flag_spec is actually meaningless, as there is
10035       # no search path for DLLs.
10036       case $cc_basename in
10037       cl*)
10038         # Native MSVC
10039         hardcode_libdir_flag_spec=' '
10040         allow_undefined_flag=unsupported
10041         always_export_symbols=yes
10042         file_list_spec='@'
10043         # Tell ltmain to make .lib files, not .a files.
10044         libext=lib
10045         # Tell ltmain to make .dll files, not .so files.
10046         shrext_cmds=".dll"
10047         # FIXME: Setting linknames here is a bad hack.
10048         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10049         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10050             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10051           else
10052             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10053           fi~
10054           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10055           linknames='
10056         # The linker will not automatically build a static lib if we build a DLL.
10057         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10058         enable_shared_with_static_runtimes=yes
10059         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10060         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10061         # Don't use ranlib
10062         old_postinstall_cmds='chmod 644 $oldlib'
10063         postlink_cmds='lt_outputfile="@OUTPUT@"~
10064           lt_tool_outputfile="@TOOL_OUTPUT@"~
10065           case $lt_outputfile in
10066             *.exe|*.EXE) ;;
10067             *)
10068               lt_outputfile="$lt_outputfile.exe"
10069               lt_tool_outputfile="$lt_tool_outputfile.exe"
10070               ;;
10071           esac~
10072           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10073             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10074             $RM "$lt_outputfile.manifest";
10075           fi'
10076         ;;
10077       *)
10078         # Assume MSVC wrapper
10079         hardcode_libdir_flag_spec=' '
10080         allow_undefined_flag=unsupported
10081         # Tell ltmain to make .lib files, not .a files.
10082         libext=lib
10083         # Tell ltmain to make .dll files, not .so files.
10084         shrext_cmds=".dll"
10085         # FIXME: Setting linknames here is a bad hack.
10086         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10087         # The linker will automatically build a .lib file if we build a DLL.
10088         old_archive_from_new_cmds='true'
10089         # FIXME: Should let the user specify the lib program.
10090         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10091         enable_shared_with_static_runtimes=yes
10092         ;;
10093       esac
10094       ;;
10095
10096     darwin* | rhapsody*)
10097
10098
10099   archive_cmds_need_lc=no
10100   hardcode_direct=no
10101   hardcode_automatic=yes
10102   hardcode_shlibpath_var=unsupported
10103   if test "$lt_cv_ld_force_load" = "yes"; then
10104     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\"`'
10105
10106   else
10107     whole_archive_flag_spec=''
10108   fi
10109   link_all_deplibs=yes
10110   allow_undefined_flag="$_lt_dar_allow_undefined"
10111   case $cc_basename in
10112      ifort*) _lt_dar_can_shared=yes ;;
10113      *) _lt_dar_can_shared=$GCC ;;
10114   esac
10115   if test "$_lt_dar_can_shared" = "yes"; then
10116     output_verbose_link_cmd=func_echo_all
10117     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10118     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10119     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}"
10120     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}"
10121
10122   else
10123   ld_shlibs=no
10124   fi
10125
10126       ;;
10127
10128     dgux*)
10129       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10130       hardcode_libdir_flag_spec='-L$libdir'
10131       hardcode_shlibpath_var=no
10132       ;;
10133
10134     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10135     # support.  Future versions do this automatically, but an explicit c++rt0.o
10136     # does not break anything, and helps significantly (at the cost of a little
10137     # extra space).
10138     freebsd2.2*)
10139       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10140       hardcode_libdir_flag_spec='-R$libdir'
10141       hardcode_direct=yes
10142       hardcode_shlibpath_var=no
10143       ;;
10144
10145     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10146     freebsd2.*)
10147       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10148       hardcode_direct=yes
10149       hardcode_minus_L=yes
10150       hardcode_shlibpath_var=no
10151       ;;
10152
10153     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10154     freebsd* | dragonfly*)
10155       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10156       hardcode_libdir_flag_spec='-R$libdir'
10157       hardcode_direct=yes
10158       hardcode_shlibpath_var=no
10159       ;;
10160
10161     hpux9*)
10162       if test "$GCC" = yes; then
10163         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10164       else
10165         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10166       fi
10167       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10168       hardcode_libdir_separator=:
10169       hardcode_direct=yes
10170
10171       # hardcode_minus_L: Not really in the search PATH,
10172       # but as the default location of the library.
10173       hardcode_minus_L=yes
10174       export_dynamic_flag_spec='${wl}-E'
10175       ;;
10176
10177     hpux10*)
10178       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10179         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10180       else
10181         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10182       fi
10183       if test "$with_gnu_ld" = no; then
10184         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10185         hardcode_libdir_separator=:
10186         hardcode_direct=yes
10187         hardcode_direct_absolute=yes
10188         export_dynamic_flag_spec='${wl}-E'
10189         # hardcode_minus_L: Not really in the search PATH,
10190         # but as the default location of the library.
10191         hardcode_minus_L=yes
10192       fi
10193       ;;
10194
10195     hpux11*)
10196       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10197         case $host_cpu in
10198         hppa*64*)
10199           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10200           ;;
10201         ia64*)
10202           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10203           ;;
10204         *)
10205           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10206           ;;
10207         esac
10208       else
10209         case $host_cpu in
10210         hppa*64*)
10211           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10212           ;;
10213         ia64*)
10214           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10215           ;;
10216         *)
10217
10218           # Older versions of the 11.00 compiler do not understand -b yet
10219           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10220           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10221 $as_echo_n "checking if $CC understands -b... " >&6; }
10222 if ${lt_cv_prog_compiler__b+:} false; then :
10223   $as_echo_n "(cached) " >&6
10224 else
10225   lt_cv_prog_compiler__b=no
10226    save_LDFLAGS="$LDFLAGS"
10227    LDFLAGS="$LDFLAGS -b"
10228    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10229    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10230      # The linker can only warn and ignore the option if not recognized
10231      # So say no if there are warnings
10232      if test -s conftest.err; then
10233        # Append any errors to the config.log.
10234        cat conftest.err 1>&5
10235        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10236        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10237        if diff conftest.exp conftest.er2 >/dev/null; then
10238          lt_cv_prog_compiler__b=yes
10239        fi
10240      else
10241        lt_cv_prog_compiler__b=yes
10242      fi
10243    fi
10244    $RM -r conftest*
10245    LDFLAGS="$save_LDFLAGS"
10246
10247 fi
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10249 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10250
10251 if test x"$lt_cv_prog_compiler__b" = xyes; then
10252     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10253 else
10254     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10255 fi
10256
10257           ;;
10258         esac
10259       fi
10260       if test "$with_gnu_ld" = no; then
10261         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10262         hardcode_libdir_separator=:
10263
10264         case $host_cpu in
10265         hppa*64*|ia64*)
10266           hardcode_direct=no
10267           hardcode_shlibpath_var=no
10268           ;;
10269         *)
10270           hardcode_direct=yes
10271           hardcode_direct_absolute=yes
10272           export_dynamic_flag_spec='${wl}-E'
10273
10274           # hardcode_minus_L: Not really in the search PATH,
10275           # but as the default location of the library.
10276           hardcode_minus_L=yes
10277           ;;
10278         esac
10279       fi
10280       ;;
10281
10282     irix5* | irix6* | nonstopux*)
10283       if test "$GCC" = yes; then
10284         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'
10285         # Try to use the -exported_symbol ld option, if it does not
10286         # work, assume that -exports_file does not work either and
10287         # implicitly export all symbols.
10288         # This should be the same for all languages, so no per-tag cache variable.
10289         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10290 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10291 if ${lt_cv_irix_exported_symbol+:} false; then :
10292   $as_echo_n "(cached) " >&6
10293 else
10294   save_LDFLAGS="$LDFLAGS"
10295            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10296            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10297 /* end confdefs.h.  */
10298 int foo (void) { return 0; }
10299 _ACEOF
10300 if ac_fn_c_try_link "$LINENO"; then :
10301   lt_cv_irix_exported_symbol=yes
10302 else
10303   lt_cv_irix_exported_symbol=no
10304 fi
10305 rm -f core conftest.err conftest.$ac_objext \
10306     conftest$ac_exeext conftest.$ac_ext
10307            LDFLAGS="$save_LDFLAGS"
10308 fi
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10310 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10311         if test "$lt_cv_irix_exported_symbol" = yes; then
10312           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'
10313         fi
10314       else
10315         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'
10316         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'
10317       fi
10318       archive_cmds_need_lc='no'
10319       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10320       hardcode_libdir_separator=:
10321       inherit_rpath=yes
10322       link_all_deplibs=yes
10323       ;;
10324
10325     netbsd* | netbsdelf*-gnu)
10326       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10327         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10328       else
10329         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10330       fi
10331       hardcode_libdir_flag_spec='-R$libdir'
10332       hardcode_direct=yes
10333       hardcode_shlibpath_var=no
10334       ;;
10335
10336     newsos6)
10337       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10338       hardcode_direct=yes
10339       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10340       hardcode_libdir_separator=:
10341       hardcode_shlibpath_var=no
10342       ;;
10343
10344     *nto* | *qnx*)
10345       ;;
10346
10347     openbsd*)
10348       if test -f /usr/libexec/ld.so; then
10349         hardcode_direct=yes
10350         hardcode_shlibpath_var=no
10351         hardcode_direct_absolute=yes
10352         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10353           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10354           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10355           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10356           export_dynamic_flag_spec='${wl}-E'
10357         else
10358           case $host_os in
10359            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10360              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10361              hardcode_libdir_flag_spec='-R$libdir'
10362              ;;
10363            *)
10364              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10365              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10366              ;;
10367           esac
10368         fi
10369       else
10370         ld_shlibs=no
10371       fi
10372       ;;
10373
10374     os2*)
10375       hardcode_libdir_flag_spec='-L$libdir'
10376       hardcode_minus_L=yes
10377       allow_undefined_flag=unsupported
10378       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10379       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10380       ;;
10381
10382     osf3*)
10383       if test "$GCC" = yes; then
10384         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10385         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'
10386       else
10387         allow_undefined_flag=' -expect_unresolved \*'
10388         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'
10389       fi
10390       archive_cmds_need_lc='no'
10391       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10392       hardcode_libdir_separator=:
10393       ;;
10394
10395     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10396       if test "$GCC" = yes; then
10397         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10398         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'
10399         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10400       else
10401         allow_undefined_flag=' -expect_unresolved \*'
10402         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'
10403         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~
10404         $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'
10405
10406         # Both c and cxx compiler support -rpath directly
10407         hardcode_libdir_flag_spec='-rpath $libdir'
10408       fi
10409       archive_cmds_need_lc='no'
10410       hardcode_libdir_separator=:
10411       ;;
10412
10413     solaris*)
10414       no_undefined_flag=' -z defs'
10415       if test "$GCC" = yes; then
10416         wlarc='${wl}'
10417         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10418         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10419           $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'
10420       else
10421         case `$CC -V 2>&1` in
10422         *"Compilers 5.0"*)
10423           wlarc=''
10424           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10425           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10426           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10427           ;;
10428         *)
10429           wlarc='${wl}'
10430           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10431           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10432           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10433           ;;
10434         esac
10435       fi
10436       hardcode_libdir_flag_spec='-R$libdir'
10437       hardcode_shlibpath_var=no
10438       case $host_os in
10439       solaris2.[0-5] | solaris2.[0-5].*) ;;
10440       *)
10441         # The compiler driver will combine and reorder linker options,
10442         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10443         # but is careful enough not to reorder.
10444         # Supported since Solaris 2.6 (maybe 2.5.1?)
10445         if test "$GCC" = yes; then
10446           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10447         else
10448           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10449         fi
10450         ;;
10451       esac
10452       link_all_deplibs=yes
10453       ;;
10454
10455     sunos4*)
10456       if test "x$host_vendor" = xsequent; then
10457         # Use $CC to link under sequent, because it throws in some extra .o
10458         # files that make .init and .fini sections work.
10459         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10460       else
10461         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10462       fi
10463       hardcode_libdir_flag_spec='-L$libdir'
10464       hardcode_direct=yes
10465       hardcode_minus_L=yes
10466       hardcode_shlibpath_var=no
10467       ;;
10468
10469     sysv4)
10470       case $host_vendor in
10471         sni)
10472           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10473           hardcode_direct=yes # is this really true???
10474         ;;
10475         siemens)
10476           ## LD is ld it makes a PLAMLIB
10477           ## CC just makes a GrossModule.
10478           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10479           reload_cmds='$CC -r -o $output$reload_objs'
10480           hardcode_direct=no
10481         ;;
10482         motorola)
10483           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10484           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10485         ;;
10486       esac
10487       runpath_var='LD_RUN_PATH'
10488       hardcode_shlibpath_var=no
10489       ;;
10490
10491     sysv4.3*)
10492       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10493       hardcode_shlibpath_var=no
10494       export_dynamic_flag_spec='-Bexport'
10495       ;;
10496
10497     sysv4*MP*)
10498       if test -d /usr/nec; then
10499         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10500         hardcode_shlibpath_var=no
10501         runpath_var=LD_RUN_PATH
10502         hardcode_runpath_var=yes
10503         ld_shlibs=yes
10504       fi
10505       ;;
10506
10507     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10508       no_undefined_flag='${wl}-z,text'
10509       archive_cmds_need_lc=no
10510       hardcode_shlibpath_var=no
10511       runpath_var='LD_RUN_PATH'
10512
10513       if test "$GCC" = yes; then
10514         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10515         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10516       else
10517         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10518         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10519       fi
10520       ;;
10521
10522     sysv5* | sco3.2v5* | sco5v6*)
10523       # Note: We can NOT use -z defs as we might desire, because we do not
10524       # link with -lc, and that would cause any symbols used from libc to
10525       # always be unresolved, which means just about no library would
10526       # ever link correctly.  If we're not using GNU ld we use -z text
10527       # though, which does catch some bad symbols but isn't as heavy-handed
10528       # as -z defs.
10529       no_undefined_flag='${wl}-z,text'
10530       allow_undefined_flag='${wl}-z,nodefs'
10531       archive_cmds_need_lc=no
10532       hardcode_shlibpath_var=no
10533       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10534       hardcode_libdir_separator=':'
10535       link_all_deplibs=yes
10536       export_dynamic_flag_spec='${wl}-Bexport'
10537       runpath_var='LD_RUN_PATH'
10538
10539       if test "$GCC" = yes; then
10540         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10541         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10542       else
10543         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10544         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10545       fi
10546       ;;
10547
10548     uts4*)
10549       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10550       hardcode_libdir_flag_spec='-L$libdir'
10551       hardcode_shlibpath_var=no
10552       ;;
10553
10554     *)
10555       ld_shlibs=no
10556       ;;
10557     esac
10558
10559     if test x$host_vendor = xsni; then
10560       case $host in
10561       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10562         export_dynamic_flag_spec='${wl}-Blargedynsym'
10563         ;;
10564       esac
10565     fi
10566   fi
10567
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10569 $as_echo "$ld_shlibs" >&6; }
10570 test "$ld_shlibs" = no && can_build_shared=no
10571
10572 with_gnu_ld=$with_gnu_ld
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588 #
10589 # Do we need to explicitly link libc?
10590 #
10591 case "x$archive_cmds_need_lc" in
10592 x|xyes)
10593   # Assume -lc should be added
10594   archive_cmds_need_lc=yes
10595
10596   if test "$enable_shared" = yes && test "$GCC" = yes; then
10597     case $archive_cmds in
10598     *'~'*)
10599       # FIXME: we may have to deal with multi-command sequences.
10600       ;;
10601     '$CC '*)
10602       # Test whether the compiler implicitly links with -lc since on some
10603       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10604       # to ld, don't add -lc before -lgcc.
10605       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10606 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10607 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10608   $as_echo_n "(cached) " >&6
10609 else
10610   $RM conftest*
10611         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10612
10613         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10614   (eval $ac_compile) 2>&5
10615   ac_status=$?
10616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10617   test $ac_status = 0; } 2>conftest.err; then
10618           soname=conftest
10619           lib=conftest
10620           libobjs=conftest.$ac_objext
10621           deplibs=
10622           wl=$lt_prog_compiler_wl
10623           pic_flag=$lt_prog_compiler_pic
10624           compiler_flags=-v
10625           linker_flags=-v
10626           verstring=
10627           output_objdir=.
10628           libname=conftest
10629           lt_save_allow_undefined_flag=$allow_undefined_flag
10630           allow_undefined_flag=
10631           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10632   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10633   ac_status=$?
10634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10635   test $ac_status = 0; }
10636           then
10637             lt_cv_archive_cmds_need_lc=no
10638           else
10639             lt_cv_archive_cmds_need_lc=yes
10640           fi
10641           allow_undefined_flag=$lt_save_allow_undefined_flag
10642         else
10643           cat conftest.err 1>&5
10644         fi
10645         $RM conftest*
10646
10647 fi
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10649 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10650       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10651       ;;
10652     esac
10653   fi
10654   ;;
10655 esac
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10809 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10810
10811 if test "$GCC" = yes; then
10812   case $host_os in
10813     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10814     *) lt_awk_arg="/^libraries:/" ;;
10815   esac
10816   case $host_os in
10817     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10818     *) lt_sed_strip_eq="s,=/,/,g" ;;
10819   esac
10820   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10821   case $lt_search_path_spec in
10822   *\;*)
10823     # if the path contains ";" then we assume it to be the separator
10824     # otherwise default to the standard path separator (i.e. ":") - it is
10825     # assumed that no part of a normal pathname contains ";" but that should
10826     # okay in the real world where ";" in dirpaths is itself problematic.
10827     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10828     ;;
10829   *)
10830     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10831     ;;
10832   esac
10833   # Ok, now we have the path, separated by spaces, we can step through it
10834   # and add multilib dir if necessary.
10835   lt_tmp_lt_search_path_spec=
10836   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10837   for lt_sys_path in $lt_search_path_spec; do
10838     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10839       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10840     else
10841       test -d "$lt_sys_path" && \
10842         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10843     fi
10844   done
10845   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10846 BEGIN {RS=" "; FS="/|\n";} {
10847   lt_foo="";
10848   lt_count=0;
10849   for (lt_i = NF; lt_i > 0; lt_i--) {
10850     if ($lt_i != "" && $lt_i != ".") {
10851       if ($lt_i == "..") {
10852         lt_count++;
10853       } else {
10854         if (lt_count == 0) {
10855           lt_foo="/" $lt_i lt_foo;
10856         } else {
10857           lt_count--;
10858         }
10859       }
10860     }
10861   }
10862   if (lt_foo != "") { lt_freq[lt_foo]++; }
10863   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10864 }'`
10865   # AWK program above erroneously prepends '/' to C:/dos/paths
10866   # for these hosts.
10867   case $host_os in
10868     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10869       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10870   esac
10871   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10872 else
10873   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10874 fi
10875 library_names_spec=
10876 libname_spec='lib$name'
10877 soname_spec=
10878 shrext_cmds=".so"
10879 postinstall_cmds=
10880 postuninstall_cmds=
10881 finish_cmds=
10882 finish_eval=
10883 shlibpath_var=
10884 shlibpath_overrides_runpath=unknown
10885 version_type=none
10886 dynamic_linker="$host_os ld.so"
10887 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10888 need_lib_prefix=unknown
10889 hardcode_into_libs=no
10890
10891 # when you set need_version to no, make sure it does not cause -set_version
10892 # flags to be left without arguments
10893 need_version=unknown
10894
10895 case $host_os in
10896 aix3*)
10897   version_type=linux # correct to gnu/linux during the next big refactor
10898   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10899   shlibpath_var=LIBPATH
10900
10901   # AIX 3 has no versioning support, so we append a major version to the name.
10902   soname_spec='${libname}${release}${shared_ext}$major'
10903   ;;
10904
10905 aix[4-9]*)
10906   version_type=linux # correct to gnu/linux during the next big refactor
10907   need_lib_prefix=no
10908   need_version=no
10909   hardcode_into_libs=yes
10910   if test "$host_cpu" = ia64; then
10911     # AIX 5 supports IA64
10912     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10913     shlibpath_var=LD_LIBRARY_PATH
10914   else
10915     # With GCC up to 2.95.x, collect2 would create an import file
10916     # for dependence libraries.  The import file would start with
10917     # the line `#! .'.  This would cause the generated library to
10918     # depend on `.', always an invalid library.  This was fixed in
10919     # development snapshots of GCC prior to 3.0.
10920     case $host_os in
10921       aix4 | aix4.[01] | aix4.[01].*)
10922       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10923            echo ' yes '
10924            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10925         :
10926       else
10927         can_build_shared=no
10928       fi
10929       ;;
10930     esac
10931     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10932     # soname into executable. Probably we can add versioning support to
10933     # collect2, so additional links can be useful in future.
10934     if test "$aix_use_runtimelinking" = yes; then
10935       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10936       # instead of lib<name>.a to let people know that these are not
10937       # typical AIX shared libraries.
10938       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10939     else
10940       # We preserve .a as extension for shared libraries through AIX4.2
10941       # and later when we are not doing run time linking.
10942       library_names_spec='${libname}${release}.a $libname.a'
10943       soname_spec='${libname}${release}${shared_ext}$major'
10944     fi
10945     shlibpath_var=LIBPATH
10946   fi
10947   ;;
10948
10949 amigaos*)
10950   case $host_cpu in
10951   powerpc)
10952     # Since July 2007 AmigaOS4 officially supports .so libraries.
10953     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10954     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10955     ;;
10956   m68k)
10957     library_names_spec='$libname.ixlibrary $libname.a'
10958     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10959     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10960     ;;
10961   esac
10962   ;;
10963
10964 beos*)
10965   library_names_spec='${libname}${shared_ext}'
10966   dynamic_linker="$host_os ld.so"
10967   shlibpath_var=LIBRARY_PATH
10968   ;;
10969
10970 bsdi[45]*)
10971   version_type=linux # correct to gnu/linux during the next big refactor
10972   need_version=no
10973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10974   soname_spec='${libname}${release}${shared_ext}$major'
10975   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10976   shlibpath_var=LD_LIBRARY_PATH
10977   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10978   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10979   # the default ld.so.conf also contains /usr/contrib/lib and
10980   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10981   # libtool to hard-code these into programs
10982   ;;
10983
10984 cygwin* | mingw* | pw32* | cegcc*)
10985   version_type=windows
10986   shrext_cmds=".dll"
10987   need_version=no
10988   need_lib_prefix=no
10989
10990   case $GCC,$cc_basename in
10991   yes,*)
10992     # gcc
10993     library_names_spec='$libname.dll.a'
10994     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10995     postinstall_cmds='base_file=`basename \${file}`~
10996       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10997       dldir=$destdir/`dirname \$dlpath`~
10998       test -d \$dldir || mkdir -p \$dldir~
10999       $install_prog $dir/$dlname \$dldir/$dlname~
11000       chmod a+x \$dldir/$dlname~
11001       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11002         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11003       fi'
11004     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11005       dlpath=$dir/\$dldll~
11006        $RM \$dlpath'
11007     shlibpath_overrides_runpath=yes
11008
11009     case $host_os in
11010     cygwin*)
11011       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11012       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11013
11014       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11015       ;;
11016     mingw* | cegcc*)
11017       # MinGW DLLs use traditional 'lib' prefix
11018       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11019       ;;
11020     pw32*)
11021       # pw32 DLLs use 'pw' prefix rather than 'lib'
11022       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11023       ;;
11024     esac
11025     dynamic_linker='Win32 ld.exe'
11026     ;;
11027
11028   *,cl*)
11029     # Native MSVC
11030     libname_spec='$name'
11031     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11032     library_names_spec='${libname}.dll.lib'
11033
11034     case $build_os in
11035     mingw*)
11036       sys_lib_search_path_spec=
11037       lt_save_ifs=$IFS
11038       IFS=';'
11039       for lt_path in $LIB
11040       do
11041         IFS=$lt_save_ifs
11042         # Let DOS variable expansion print the short 8.3 style file name.
11043         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11044         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11045       done
11046       IFS=$lt_save_ifs
11047       # Convert to MSYS style.
11048       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11049       ;;
11050     cygwin*)
11051       # Convert to unix form, then to dos form, then back to unix form
11052       # but this time dos style (no spaces!) so that the unix form looks
11053       # like /cygdrive/c/PROGRA~1:/cygdr...
11054       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11055       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11056       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11057       ;;
11058     *)
11059       sys_lib_search_path_spec="$LIB"
11060       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11061         # It is most probably a Windows format PATH.
11062         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11063       else
11064         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11065       fi
11066       # FIXME: find the short name or the path components, as spaces are
11067       # common. (e.g. "Program Files" -> "PROGRA~1")
11068       ;;
11069     esac
11070
11071     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11072     postinstall_cmds='base_file=`basename \${file}`~
11073       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11074       dldir=$destdir/`dirname \$dlpath`~
11075       test -d \$dldir || mkdir -p \$dldir~
11076       $install_prog $dir/$dlname \$dldir/$dlname'
11077     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11078       dlpath=$dir/\$dldll~
11079        $RM \$dlpath'
11080     shlibpath_overrides_runpath=yes
11081     dynamic_linker='Win32 link.exe'
11082     ;;
11083
11084   *)
11085     # Assume MSVC wrapper
11086     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11087     dynamic_linker='Win32 ld.exe'
11088     ;;
11089   esac
11090   # FIXME: first we should search . and the directory the executable is in
11091   shlibpath_var=PATH
11092   ;;
11093
11094 darwin* | rhapsody*)
11095   dynamic_linker="$host_os dyld"
11096   version_type=darwin
11097   need_lib_prefix=no
11098   need_version=no
11099   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11100   soname_spec='${libname}${release}${major}$shared_ext'
11101   shlibpath_overrides_runpath=yes
11102   shlibpath_var=DYLD_LIBRARY_PATH
11103   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11104
11105   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11106   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11107   ;;
11108
11109 dgux*)
11110   version_type=linux # correct to gnu/linux during the next big refactor
11111   need_lib_prefix=no
11112   need_version=no
11113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11114   soname_spec='${libname}${release}${shared_ext}$major'
11115   shlibpath_var=LD_LIBRARY_PATH
11116   ;;
11117
11118 freebsd* | dragonfly*)
11119   # DragonFly does not have aout.  When/if they implement a new
11120   # versioning mechanism, adjust this.
11121   if test -x /usr/bin/objformat; then
11122     objformat=`/usr/bin/objformat`
11123   else
11124     case $host_os in
11125     freebsd[23].*) objformat=aout ;;
11126     *) objformat=elf ;;
11127     esac
11128   fi
11129   version_type=freebsd-$objformat
11130   case $version_type in
11131     freebsd-elf*)
11132       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11133       need_version=no
11134       need_lib_prefix=no
11135       ;;
11136     freebsd-*)
11137       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11138       need_version=yes
11139       ;;
11140   esac
11141   shlibpath_var=LD_LIBRARY_PATH
11142   case $host_os in
11143   freebsd2.*)
11144     shlibpath_overrides_runpath=yes
11145     ;;
11146   freebsd3.[01]* | freebsdelf3.[01]*)
11147     shlibpath_overrides_runpath=yes
11148     hardcode_into_libs=yes
11149     ;;
11150   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11151   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11152     shlibpath_overrides_runpath=no
11153     hardcode_into_libs=yes
11154     ;;
11155   *) # from 4.6 on, and DragonFly
11156     shlibpath_overrides_runpath=yes
11157     hardcode_into_libs=yes
11158     ;;
11159   esac
11160   ;;
11161
11162 haiku*)
11163   version_type=linux # correct to gnu/linux during the next big refactor
11164   need_lib_prefix=no
11165   need_version=no
11166   dynamic_linker="$host_os runtime_loader"
11167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11168   soname_spec='${libname}${release}${shared_ext}$major'
11169   shlibpath_var=LIBRARY_PATH
11170   shlibpath_overrides_runpath=yes
11171   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11172   hardcode_into_libs=yes
11173   ;;
11174
11175 hpux9* | hpux10* | hpux11*)
11176   # Give a soname corresponding to the major version so that dld.sl refuses to
11177   # link against other versions.
11178   version_type=sunos
11179   need_lib_prefix=no
11180   need_version=no
11181   case $host_cpu in
11182   ia64*)
11183     shrext_cmds='.so'
11184     hardcode_into_libs=yes
11185     dynamic_linker="$host_os dld.so"
11186     shlibpath_var=LD_LIBRARY_PATH
11187     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11188     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11189     soname_spec='${libname}${release}${shared_ext}$major'
11190     if test "X$HPUX_IA64_MODE" = X32; then
11191       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11192     else
11193       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11194     fi
11195     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11196     ;;
11197   hppa*64*)
11198     shrext_cmds='.sl'
11199     hardcode_into_libs=yes
11200     dynamic_linker="$host_os dld.sl"
11201     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11202     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11203     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11204     soname_spec='${libname}${release}${shared_ext}$major'
11205     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11206     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11207     ;;
11208   *)
11209     shrext_cmds='.sl'
11210     dynamic_linker="$host_os dld.sl"
11211     shlibpath_var=SHLIB_PATH
11212     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11213     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11214     soname_spec='${libname}${release}${shared_ext}$major'
11215     ;;
11216   esac
11217   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11218   postinstall_cmds='chmod 555 $lib'
11219   # or fails outright, so override atomically:
11220   install_override_mode=555
11221   ;;
11222
11223 interix[3-9]*)
11224   version_type=linux # correct to gnu/linux during the next big refactor
11225   need_lib_prefix=no
11226   need_version=no
11227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11228   soname_spec='${libname}${release}${shared_ext}$major'
11229   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11230   shlibpath_var=LD_LIBRARY_PATH
11231   shlibpath_overrides_runpath=no
11232   hardcode_into_libs=yes
11233   ;;
11234
11235 irix5* | irix6* | nonstopux*)
11236   case $host_os in
11237     nonstopux*) version_type=nonstopux ;;
11238     *)
11239         if test "$lt_cv_prog_gnu_ld" = yes; then
11240                 version_type=linux # correct to gnu/linux during the next big refactor
11241         else
11242                 version_type=irix
11243         fi ;;
11244   esac
11245   need_lib_prefix=no
11246   need_version=no
11247   soname_spec='${libname}${release}${shared_ext}$major'
11248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11249   case $host_os in
11250   irix5* | nonstopux*)
11251     libsuff= shlibsuff=
11252     ;;
11253   *)
11254     case $LD in # libtool.m4 will add one of these switches to LD
11255     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11256       libsuff= shlibsuff= libmagic=32-bit;;
11257     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11258       libsuff=32 shlibsuff=N32 libmagic=N32;;
11259     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11260       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11261     *) libsuff= shlibsuff= libmagic=never-match;;
11262     esac
11263     ;;
11264   esac
11265   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11266   shlibpath_overrides_runpath=no
11267   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11268   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11269   hardcode_into_libs=yes
11270   ;;
11271
11272 # No shared lib support for Linux oldld, aout, or coff.
11273 linux*oldld* | linux*aout* | linux*coff*)
11274   dynamic_linker=no
11275   ;;
11276
11277 # This must be glibc/ELF.
11278 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11279   version_type=linux # correct to gnu/linux during the next big refactor
11280   need_lib_prefix=no
11281   need_version=no
11282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11283   soname_spec='${libname}${release}${shared_ext}$major'
11284   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11285   shlibpath_var=LD_LIBRARY_PATH
11286   shlibpath_overrides_runpath=no
11287
11288   # Some binutils ld are patched to set DT_RUNPATH
11289   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11290   $as_echo_n "(cached) " >&6
11291 else
11292   lt_cv_shlibpath_overrides_runpath=no
11293     save_LDFLAGS=$LDFLAGS
11294     save_libdir=$libdir
11295     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11296          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11297     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298 /* end confdefs.h.  */
11299
11300 int
11301 main ()
11302 {
11303
11304   ;
11305   return 0;
11306 }
11307 _ACEOF
11308 if ac_fn_c_try_link "$LINENO"; then :
11309   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11310   lt_cv_shlibpath_overrides_runpath=yes
11311 fi
11312 fi
11313 rm -f core conftest.err conftest.$ac_objext \
11314     conftest$ac_exeext conftest.$ac_ext
11315     LDFLAGS=$save_LDFLAGS
11316     libdir=$save_libdir
11317
11318 fi
11319
11320   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11321
11322   # This implies no fast_install, which is unacceptable.
11323   # Some rework will be needed to allow for fast_install
11324   # before this can be enabled.
11325   hardcode_into_libs=yes
11326
11327   # Append ld.so.conf contents to the search path
11328   if test -f /etc/ld.so.conf; then
11329     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' ' '`
11330     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11331   fi
11332
11333   # We used to test for /lib/ld.so.1 and disable shared libraries on
11334   # powerpc, because MkLinux only supported shared libraries with the
11335   # GNU dynamic linker.  Since this was broken with cross compilers,
11336   # most powerpc-linux boxes support dynamic linking these days and
11337   # people can always --disable-shared, the test was removed, and we
11338   # assume the GNU/Linux dynamic linker is in use.
11339   dynamic_linker='GNU/Linux ld.so'
11340   ;;
11341
11342 netbsdelf*-gnu)
11343   version_type=linux
11344   need_lib_prefix=no
11345   need_version=no
11346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11347   soname_spec='${libname}${release}${shared_ext}$major'
11348   shlibpath_var=LD_LIBRARY_PATH
11349   shlibpath_overrides_runpath=no
11350   hardcode_into_libs=yes
11351   dynamic_linker='NetBSD ld.elf_so'
11352   ;;
11353
11354 netbsd*)
11355   version_type=sunos
11356   need_lib_prefix=no
11357   need_version=no
11358   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11359     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11360     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11361     dynamic_linker='NetBSD (a.out) ld.so'
11362   else
11363     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11364     soname_spec='${libname}${release}${shared_ext}$major'
11365     dynamic_linker='NetBSD ld.elf_so'
11366   fi
11367   shlibpath_var=LD_LIBRARY_PATH
11368   shlibpath_overrides_runpath=yes
11369   hardcode_into_libs=yes
11370   ;;
11371
11372 newsos6)
11373   version_type=linux # correct to gnu/linux during the next big refactor
11374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11375   shlibpath_var=LD_LIBRARY_PATH
11376   shlibpath_overrides_runpath=yes
11377   ;;
11378
11379 *nto* | *qnx*)
11380   version_type=qnx
11381   need_lib_prefix=no
11382   need_version=no
11383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11384   soname_spec='${libname}${release}${shared_ext}$major'
11385   shlibpath_var=LD_LIBRARY_PATH
11386   shlibpath_overrides_runpath=no
11387   hardcode_into_libs=yes
11388   dynamic_linker='ldqnx.so'
11389   ;;
11390
11391 openbsd*)
11392   version_type=sunos
11393   sys_lib_dlsearch_path_spec="/usr/lib"
11394   need_lib_prefix=no
11395   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11396   case $host_os in
11397     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11398     *)                          need_version=no  ;;
11399   esac
11400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11401   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11402   shlibpath_var=LD_LIBRARY_PATH
11403   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11404     case $host_os in
11405       openbsd2.[89] | openbsd2.[89].*)
11406         shlibpath_overrides_runpath=no
11407         ;;
11408       *)
11409         shlibpath_overrides_runpath=yes
11410         ;;
11411       esac
11412   else
11413     shlibpath_overrides_runpath=yes
11414   fi
11415   ;;
11416
11417 os2*)
11418   libname_spec='$name'
11419   shrext_cmds=".dll"
11420   need_lib_prefix=no
11421   library_names_spec='$libname${shared_ext} $libname.a'
11422   dynamic_linker='OS/2 ld.exe'
11423   shlibpath_var=LIBPATH
11424   ;;
11425
11426 osf3* | osf4* | osf5*)
11427   version_type=osf
11428   need_lib_prefix=no
11429   need_version=no
11430   soname_spec='${libname}${release}${shared_ext}$major'
11431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11432   shlibpath_var=LD_LIBRARY_PATH
11433   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11434   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11435   ;;
11436
11437 rdos*)
11438   dynamic_linker=no
11439   ;;
11440
11441 solaris*)
11442   version_type=linux # correct to gnu/linux during the next big refactor
11443   need_lib_prefix=no
11444   need_version=no
11445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11446   soname_spec='${libname}${release}${shared_ext}$major'
11447   shlibpath_var=LD_LIBRARY_PATH
11448   shlibpath_overrides_runpath=yes
11449   hardcode_into_libs=yes
11450   # ldd complains unless libraries are executable
11451   postinstall_cmds='chmod +x $lib'
11452   ;;
11453
11454 sunos4*)
11455   version_type=sunos
11456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11457   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11458   shlibpath_var=LD_LIBRARY_PATH
11459   shlibpath_overrides_runpath=yes
11460   if test "$with_gnu_ld" = yes; then
11461     need_lib_prefix=no
11462   fi
11463   need_version=yes
11464   ;;
11465
11466 sysv4 | sysv4.3*)
11467   version_type=linux # correct to gnu/linux during the next big refactor
11468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11469   soname_spec='${libname}${release}${shared_ext}$major'
11470   shlibpath_var=LD_LIBRARY_PATH
11471   case $host_vendor in
11472     sni)
11473       shlibpath_overrides_runpath=no
11474       need_lib_prefix=no
11475       runpath_var=LD_RUN_PATH
11476       ;;
11477     siemens)
11478       need_lib_prefix=no
11479       ;;
11480     motorola)
11481       need_lib_prefix=no
11482       need_version=no
11483       shlibpath_overrides_runpath=no
11484       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11485       ;;
11486   esac
11487   ;;
11488
11489 sysv4*MP*)
11490   if test -d /usr/nec ;then
11491     version_type=linux # correct to gnu/linux during the next big refactor
11492     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11493     soname_spec='$libname${shared_ext}.$major'
11494     shlibpath_var=LD_LIBRARY_PATH
11495   fi
11496   ;;
11497
11498 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11499   version_type=freebsd-elf
11500   need_lib_prefix=no
11501   need_version=no
11502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11503   soname_spec='${libname}${release}${shared_ext}$major'
11504   shlibpath_var=LD_LIBRARY_PATH
11505   shlibpath_overrides_runpath=yes
11506   hardcode_into_libs=yes
11507   if test "$with_gnu_ld" = yes; then
11508     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11509   else
11510     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11511     case $host_os in
11512       sco3.2v5*)
11513         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11514         ;;
11515     esac
11516   fi
11517   sys_lib_dlsearch_path_spec='/usr/lib'
11518   ;;
11519
11520 tpf*)
11521   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11522   version_type=linux # correct to gnu/linux during the next big refactor
11523   need_lib_prefix=no
11524   need_version=no
11525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11526   shlibpath_var=LD_LIBRARY_PATH
11527   shlibpath_overrides_runpath=no
11528   hardcode_into_libs=yes
11529   ;;
11530
11531 uts4*)
11532   version_type=linux # correct to gnu/linux during the next big refactor
11533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11534   soname_spec='${libname}${release}${shared_ext}$major'
11535   shlibpath_var=LD_LIBRARY_PATH
11536   ;;
11537
11538 *)
11539   dynamic_linker=no
11540   ;;
11541 esac
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11543 $as_echo "$dynamic_linker" >&6; }
11544 test "$dynamic_linker" = no && can_build_shared=no
11545
11546 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11547 if test "$GCC" = yes; then
11548   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11549 fi
11550
11551 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11552   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11553 fi
11554 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11555   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11556 fi
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11650 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11651 hardcode_action=
11652 if test -n "$hardcode_libdir_flag_spec" ||
11653    test -n "$runpath_var" ||
11654    test "X$hardcode_automatic" = "Xyes" ; then
11655
11656   # We can hardcode non-existent directories.
11657   if test "$hardcode_direct" != no &&
11658      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11659      # have to relink, otherwise we might link with an installed library
11660      # when we should be linking with a yet-to-be-installed one
11661      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11662      test "$hardcode_minus_L" != no; then
11663     # Linking always hardcodes the temporary library directory.
11664     hardcode_action=relink
11665   else
11666     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11667     hardcode_action=immediate
11668   fi
11669 else
11670   # We cannot hardcode anything, or else we can only hardcode existing
11671   # directories.
11672   hardcode_action=unsupported
11673 fi
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11675 $as_echo "$hardcode_action" >&6; }
11676
11677 if test "$hardcode_action" = relink ||
11678    test "$inherit_rpath" = yes; then
11679   # Fast installation is not supported
11680   enable_fast_install=no
11681 elif test "$shlibpath_overrides_runpath" = yes ||
11682      test "$enable_shared" = no; then
11683   # Fast installation is not necessary
11684   enable_fast_install=needless
11685 fi
11686
11687
11688
11689
11690
11691
11692   if test "x$enable_dlopen" != xyes; then
11693   enable_dlopen=unknown
11694   enable_dlopen_self=unknown
11695   enable_dlopen_self_static=unknown
11696 else
11697   lt_cv_dlopen=no
11698   lt_cv_dlopen_libs=
11699
11700   case $host_os in
11701   beos*)
11702     lt_cv_dlopen="load_add_on"
11703     lt_cv_dlopen_libs=
11704     lt_cv_dlopen_self=yes
11705     ;;
11706
11707   mingw* | pw32* | cegcc*)
11708     lt_cv_dlopen="LoadLibrary"
11709     lt_cv_dlopen_libs=
11710     ;;
11711
11712   cygwin*)
11713     lt_cv_dlopen="dlopen"
11714     lt_cv_dlopen_libs=
11715     ;;
11716
11717   darwin*)
11718   # if libdl is installed we need to link against it
11719     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11720 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11721 if ${ac_cv_lib_dl_dlopen+:} false; then :
11722   $as_echo_n "(cached) " >&6
11723 else
11724   ac_check_lib_save_LIBS=$LIBS
11725 LIBS="-ldl  $LIBS"
11726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11727 /* end confdefs.h.  */
11728
11729 /* Override any GCC internal prototype to avoid an error.
11730    Use char because int might match the return type of a GCC
11731    builtin and then its argument prototype would still apply.  */
11732 #ifdef __cplusplus
11733 extern "C"
11734 #endif
11735 char dlopen ();
11736 int
11737 main ()
11738 {
11739 return dlopen ();
11740   ;
11741   return 0;
11742 }
11743 _ACEOF
11744 if ac_fn_c_try_link "$LINENO"; then :
11745   ac_cv_lib_dl_dlopen=yes
11746 else
11747   ac_cv_lib_dl_dlopen=no
11748 fi
11749 rm -f core conftest.err conftest.$ac_objext \
11750     conftest$ac_exeext conftest.$ac_ext
11751 LIBS=$ac_check_lib_save_LIBS
11752 fi
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11754 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11755 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11756   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11757 else
11758
11759     lt_cv_dlopen="dyld"
11760     lt_cv_dlopen_libs=
11761     lt_cv_dlopen_self=yes
11762
11763 fi
11764
11765     ;;
11766
11767   *)
11768     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11769 if test "x$ac_cv_func_shl_load" = xyes; then :
11770   lt_cv_dlopen="shl_load"
11771 else
11772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11773 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11774 if ${ac_cv_lib_dld_shl_load+:} false; then :
11775   $as_echo_n "(cached) " >&6
11776 else
11777   ac_check_lib_save_LIBS=$LIBS
11778 LIBS="-ldld  $LIBS"
11779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11780 /* end confdefs.h.  */
11781
11782 /* Override any GCC internal prototype to avoid an error.
11783    Use char because int might match the return type of a GCC
11784    builtin and then its argument prototype would still apply.  */
11785 #ifdef __cplusplus
11786 extern "C"
11787 #endif
11788 char shl_load ();
11789 int
11790 main ()
11791 {
11792 return shl_load ();
11793   ;
11794   return 0;
11795 }
11796 _ACEOF
11797 if ac_fn_c_try_link "$LINENO"; then :
11798   ac_cv_lib_dld_shl_load=yes
11799 else
11800   ac_cv_lib_dld_shl_load=no
11801 fi
11802 rm -f core conftest.err conftest.$ac_objext \
11803     conftest$ac_exeext conftest.$ac_ext
11804 LIBS=$ac_check_lib_save_LIBS
11805 fi
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11807 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11808 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11809   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11810 else
11811   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11812 if test "x$ac_cv_func_dlopen" = xyes; then :
11813   lt_cv_dlopen="dlopen"
11814 else
11815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11816 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11817 if ${ac_cv_lib_dl_dlopen+:} false; then :
11818   $as_echo_n "(cached) " >&6
11819 else
11820   ac_check_lib_save_LIBS=$LIBS
11821 LIBS="-ldl  $LIBS"
11822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11823 /* end confdefs.h.  */
11824
11825 /* Override any GCC internal prototype to avoid an error.
11826    Use char because int might match the return type of a GCC
11827    builtin and then its argument prototype would still apply.  */
11828 #ifdef __cplusplus
11829 extern "C"
11830 #endif
11831 char dlopen ();
11832 int
11833 main ()
11834 {
11835 return dlopen ();
11836   ;
11837   return 0;
11838 }
11839 _ACEOF
11840 if ac_fn_c_try_link "$LINENO"; then :
11841   ac_cv_lib_dl_dlopen=yes
11842 else
11843   ac_cv_lib_dl_dlopen=no
11844 fi
11845 rm -f core conftest.err conftest.$ac_objext \
11846     conftest$ac_exeext conftest.$ac_ext
11847 LIBS=$ac_check_lib_save_LIBS
11848 fi
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11850 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11851 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11852   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11853 else
11854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11855 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11856 if ${ac_cv_lib_svld_dlopen+:} false; then :
11857   $as_echo_n "(cached) " >&6
11858 else
11859   ac_check_lib_save_LIBS=$LIBS
11860 LIBS="-lsvld  $LIBS"
11861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11862 /* end confdefs.h.  */
11863
11864 /* Override any GCC internal prototype to avoid an error.
11865    Use char because int might match the return type of a GCC
11866    builtin and then its argument prototype would still apply.  */
11867 #ifdef __cplusplus
11868 extern "C"
11869 #endif
11870 char dlopen ();
11871 int
11872 main ()
11873 {
11874 return dlopen ();
11875   ;
11876   return 0;
11877 }
11878 _ACEOF
11879 if ac_fn_c_try_link "$LINENO"; then :
11880   ac_cv_lib_svld_dlopen=yes
11881 else
11882   ac_cv_lib_svld_dlopen=no
11883 fi
11884 rm -f core conftest.err conftest.$ac_objext \
11885     conftest$ac_exeext conftest.$ac_ext
11886 LIBS=$ac_check_lib_save_LIBS
11887 fi
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11889 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11890 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11891   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11892 else
11893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11894 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11895 if ${ac_cv_lib_dld_dld_link+:} false; then :
11896   $as_echo_n "(cached) " >&6
11897 else
11898   ac_check_lib_save_LIBS=$LIBS
11899 LIBS="-ldld  $LIBS"
11900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11901 /* end confdefs.h.  */
11902
11903 /* Override any GCC internal prototype to avoid an error.
11904    Use char because int might match the return type of a GCC
11905    builtin and then its argument prototype would still apply.  */
11906 #ifdef __cplusplus
11907 extern "C"
11908 #endif
11909 char dld_link ();
11910 int
11911 main ()
11912 {
11913 return dld_link ();
11914   ;
11915   return 0;
11916 }
11917 _ACEOF
11918 if ac_fn_c_try_link "$LINENO"; then :
11919   ac_cv_lib_dld_dld_link=yes
11920 else
11921   ac_cv_lib_dld_dld_link=no
11922 fi
11923 rm -f core conftest.err conftest.$ac_objext \
11924     conftest$ac_exeext conftest.$ac_ext
11925 LIBS=$ac_check_lib_save_LIBS
11926 fi
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11928 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11929 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11930   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11931 fi
11932
11933
11934 fi
11935
11936
11937 fi
11938
11939
11940 fi
11941
11942
11943 fi
11944
11945
11946 fi
11947
11948     ;;
11949   esac
11950
11951   if test "x$lt_cv_dlopen" != xno; then
11952     enable_dlopen=yes
11953   else
11954     enable_dlopen=no
11955   fi
11956
11957   case $lt_cv_dlopen in
11958   dlopen)
11959     save_CPPFLAGS="$CPPFLAGS"
11960     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11961
11962     save_LDFLAGS="$LDFLAGS"
11963     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11964
11965     save_LIBS="$LIBS"
11966     LIBS="$lt_cv_dlopen_libs $LIBS"
11967
11968     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11969 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11970 if ${lt_cv_dlopen_self+:} false; then :
11971   $as_echo_n "(cached) " >&6
11972 else
11973           if test "$cross_compiling" = yes; then :
11974   lt_cv_dlopen_self=cross
11975 else
11976   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11977   lt_status=$lt_dlunknown
11978   cat > conftest.$ac_ext <<_LT_EOF
11979 #line $LINENO "configure"
11980 #include "confdefs.h"
11981
11982 #if HAVE_DLFCN_H
11983 #include <dlfcn.h>
11984 #endif
11985
11986 #include <stdio.h>
11987
11988 #ifdef RTLD_GLOBAL
11989 #  define LT_DLGLOBAL           RTLD_GLOBAL
11990 #else
11991 #  ifdef DL_GLOBAL
11992 #    define LT_DLGLOBAL         DL_GLOBAL
11993 #  else
11994 #    define LT_DLGLOBAL         0
11995 #  endif
11996 #endif
11997
11998 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11999    find out it does not work in some platform. */
12000 #ifndef LT_DLLAZY_OR_NOW
12001 #  ifdef RTLD_LAZY
12002 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12003 #  else
12004 #    ifdef DL_LAZY
12005 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12006 #    else
12007 #      ifdef RTLD_NOW
12008 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12009 #      else
12010 #        ifdef DL_NOW
12011 #          define LT_DLLAZY_OR_NOW      DL_NOW
12012 #        else
12013 #          define LT_DLLAZY_OR_NOW      0
12014 #        endif
12015 #      endif
12016 #    endif
12017 #  endif
12018 #endif
12019
12020 /* When -fvisbility=hidden is used, assume the code has been annotated
12021    correspondingly for the symbols needed.  */
12022 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12023 int fnord () __attribute__((visibility("default")));
12024 #endif
12025
12026 int fnord () { return 42; }
12027 int main ()
12028 {
12029   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12030   int status = $lt_dlunknown;
12031
12032   if (self)
12033     {
12034       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12035       else
12036         {
12037           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12038           else puts (dlerror ());
12039         }
12040       /* dlclose (self); */
12041     }
12042   else
12043     puts (dlerror ());
12044
12045   return status;
12046 }
12047 _LT_EOF
12048   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12049   (eval $ac_link) 2>&5
12050   ac_status=$?
12051   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12052   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12053     (./conftest; exit; ) >&5 2>/dev/null
12054     lt_status=$?
12055     case x$lt_status in
12056       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12057       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12058       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12059     esac
12060   else :
12061     # compilation failed
12062     lt_cv_dlopen_self=no
12063   fi
12064 fi
12065 rm -fr conftest*
12066
12067
12068 fi
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12070 $as_echo "$lt_cv_dlopen_self" >&6; }
12071
12072     if test "x$lt_cv_dlopen_self" = xyes; then
12073       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12074       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12075 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12076 if ${lt_cv_dlopen_self_static+:} false; then :
12077   $as_echo_n "(cached) " >&6
12078 else
12079           if test "$cross_compiling" = yes; then :
12080   lt_cv_dlopen_self_static=cross
12081 else
12082   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12083   lt_status=$lt_dlunknown
12084   cat > conftest.$ac_ext <<_LT_EOF
12085 #line $LINENO "configure"
12086 #include "confdefs.h"
12087
12088 #if HAVE_DLFCN_H
12089 #include <dlfcn.h>
12090 #endif
12091
12092 #include <stdio.h>
12093
12094 #ifdef RTLD_GLOBAL
12095 #  define LT_DLGLOBAL           RTLD_GLOBAL
12096 #else
12097 #  ifdef DL_GLOBAL
12098 #    define LT_DLGLOBAL         DL_GLOBAL
12099 #  else
12100 #    define LT_DLGLOBAL         0
12101 #  endif
12102 #endif
12103
12104 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12105    find out it does not work in some platform. */
12106 #ifndef LT_DLLAZY_OR_NOW
12107 #  ifdef RTLD_LAZY
12108 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12109 #  else
12110 #    ifdef DL_LAZY
12111 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12112 #    else
12113 #      ifdef RTLD_NOW
12114 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12115 #      else
12116 #        ifdef DL_NOW
12117 #          define LT_DLLAZY_OR_NOW      DL_NOW
12118 #        else
12119 #          define LT_DLLAZY_OR_NOW      0
12120 #        endif
12121 #      endif
12122 #    endif
12123 #  endif
12124 #endif
12125
12126 /* When -fvisbility=hidden is used, assume the code has been annotated
12127    correspondingly for the symbols needed.  */
12128 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12129 int fnord () __attribute__((visibility("default")));
12130 #endif
12131
12132 int fnord () { return 42; }
12133 int main ()
12134 {
12135   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12136   int status = $lt_dlunknown;
12137
12138   if (self)
12139     {
12140       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12141       else
12142         {
12143           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12144           else puts (dlerror ());
12145         }
12146       /* dlclose (self); */
12147     }
12148   else
12149     puts (dlerror ());
12150
12151   return status;
12152 }
12153 _LT_EOF
12154   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12155   (eval $ac_link) 2>&5
12156   ac_status=$?
12157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12158   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12159     (./conftest; exit; ) >&5 2>/dev/null
12160     lt_status=$?
12161     case x$lt_status in
12162       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12163       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12164       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12165     esac
12166   else :
12167     # compilation failed
12168     lt_cv_dlopen_self_static=no
12169   fi
12170 fi
12171 rm -fr conftest*
12172
12173
12174 fi
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12176 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12177     fi
12178
12179     CPPFLAGS="$save_CPPFLAGS"
12180     LDFLAGS="$save_LDFLAGS"
12181     LIBS="$save_LIBS"
12182     ;;
12183   esac
12184
12185   case $lt_cv_dlopen_self in
12186   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12187   *) enable_dlopen_self=unknown ;;
12188   esac
12189
12190   case $lt_cv_dlopen_self_static in
12191   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12192   *) enable_dlopen_self_static=unknown ;;
12193   esac
12194 fi
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212 striplib=
12213 old_striplib=
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12215 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12216 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12217   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12218   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12220 $as_echo "yes" >&6; }
12221 else
12222 # FIXME - insert some real tests, host_os isn't really good enough
12223   case $host_os in
12224   darwin*)
12225     if test -n "$STRIP" ; then
12226       striplib="$STRIP -x"
12227       old_striplib="$STRIP -S"
12228       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12229 $as_echo "yes" >&6; }
12230     else
12231       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12232 $as_echo "no" >&6; }
12233     fi
12234     ;;
12235   *)
12236     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12237 $as_echo "no" >&6; }
12238     ;;
12239   esac
12240 fi
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253   # Report which library types will actually be built
12254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12255 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12257 $as_echo "$can_build_shared" >&6; }
12258
12259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12260 $as_echo_n "checking whether to build shared libraries... " >&6; }
12261   test "$can_build_shared" = "no" && enable_shared=no
12262
12263   # On AIX, shared libraries and static libraries use the same namespace, and
12264   # are all built from PIC.
12265   case $host_os in
12266   aix3*)
12267     test "$enable_shared" = yes && enable_static=no
12268     if test -n "$RANLIB"; then
12269       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12270       postinstall_cmds='$RANLIB $lib'
12271     fi
12272     ;;
12273
12274   aix[4-9]*)
12275     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12276       test "$enable_shared" = yes && enable_static=no
12277     fi
12278     ;;
12279   esac
12280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12281 $as_echo "$enable_shared" >&6; }
12282
12283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12284 $as_echo_n "checking whether to build static libraries... " >&6; }
12285   # Make sure either enable_shared or enable_static is yes.
12286   test "$enable_shared" = yes || enable_static=yes
12287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12288 $as_echo "$enable_static" >&6; }
12289
12290
12291
12292
12293 fi
12294 ac_ext=c
12295 ac_cpp='$CPP $CPPFLAGS'
12296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12299
12300 CC="$lt_save_CC"
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316         ac_config_commands="$ac_config_commands libtool"
12317
12318
12319
12320
12321 # Only expand once:
12322
12323
12324
12325 rra_lib_arch_name=lib
12326  # The cast to long int works around a bug in the HP C Compiler
12327 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12328 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12329 # This bug is HP SR number 8606223364.
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12331 $as_echo_n "checking size of long... " >&6; }
12332 if ${ac_cv_sizeof_long+:} false; then :
12333   $as_echo_n "(cached) " >&6
12334 else
12335   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12336
12337 else
12338   if test "$ac_cv_type_long" = yes; then
12339      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12341 as_fn_error 77 "cannot compute sizeof (long)
12342 See \`config.log' for more details" "$LINENO" 5; }
12343    else
12344      ac_cv_sizeof_long=0
12345    fi
12346 fi
12347
12348 fi
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12350 $as_echo "$ac_cv_sizeof_long" >&6; }
12351
12352
12353
12354 cat >>confdefs.h <<_ACEOF
12355 #define SIZEOF_LONG $ac_cv_sizeof_long
12356 _ACEOF
12357
12358
12359  if test "$ac_cv_sizeof_long" -eq 4 && test -d /usr/lib32; then :
12360   rra_lib_arch_name=lib32
12361 else
12362   if test "$ac_cv_sizeof_long" -eq 8 && test -d /usr/lib64; then :
12363   rra_lib_arch_name=lib64
12364 fi
12365 fi
12366 rra_CDB_root=
12367  rra_CDB_libdir=
12368  rra_CDB_includedir=
12369  rra_use_CDB=
12370  CDB_CPPFLAGS=
12371  CDB_LDFLAGS=
12372  CDB_LIBS=
12373
12374
12375
12376
12377 # Check whether --with-tinycdb was given.
12378 if test "${with_tinycdb+set}" = set; then :
12379   withval=$with_tinycdb; if test x"$withval" = xno; then :
12380   rra_use_CDB=false
12381 else
12382   if test x"$withval" != xyes; then :
12383   rra_CDB_root="$withval"
12384 fi
12385          rra_use_CDB=true
12386 fi
12387 fi
12388
12389
12390 # Check whether --with-tinycdb-include was given.
12391 if test "${with_tinycdb_include+set}" = set; then :
12392   withval=$with_tinycdb_include; if test x"$withval" != xyes && test x"$withval" != xno; then :
12393   rra_CDB_includedir="$withval"
12394 fi
12395 fi
12396
12397
12398 # Check whether --with-tinycdb-lib was given.
12399 if test "${with_tinycdb_lib+set}" = set; then :
12400   withval=$with_tinycdb_lib; if test x"$withval" != xyes && test x"$withval" != xno; then :
12401   rra_CDB_libdir="$withval"
12402 fi
12403 fi
12404
12405  if test x"$rra_use_CDB" != xfalse; then :
12406   if test x"$rra_use_CDB" = xtrue; then :
12407   if test x"$rra_CDB_libdir" != x; then :
12408   CDB_LDFLAGS="-L$rra_CDB_libdir"
12409 else
12410   if test x"$rra_CDB_root" != x; then :
12411
12412  if test -d "${rra_CDB_root}/$rra_lib_arch_name"; then :
12413   if test x"" = x; then :
12414   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/${rra_lib_arch_name}"
12415 else
12416   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/${rra_lib_arch_name}/"
12417 fi
12418 else
12419   if test x"" = x; then :
12420   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/lib"
12421 else
12422   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/lib/"
12423 fi
12424 fi
12425  CDB_LDFLAGS=`echo "$CDB_LDFLAGS" | sed -e 's/^ *//'`
12426 fi
12427 fi
12428  if test x"$rra_CDB_includedir" != x; then :
12429   CDB_CPPFLAGS="-I$rra_CDB_includedir"
12430 else
12431   if test x"$rra_CDB_root" != x; then :
12432   if test x"$rra_CDB_root" != x/usr; then :
12433   CDB_CPPFLAGS="-I${rra_CDB_root}/include"
12434 fi
12435 fi
12436 fi
12437  rra_CDB_save_CPPFLAGS="$CPPFLAGS"
12438  rra_CDB_save_LDFLAGS="$LDFLAGS"
12439  rra_CDB_save_LIBS="$LIBS"
12440  CPPFLAGS="$CDB_CPPFLAGS $CPPFLAGS"
12441  LDFLAGS="$CDB_LDFLAGS $LDFLAGS"
12442  LIBS="$CDB_LIBS $LIBS"
12443  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cdb_init in -lcdb" >&5
12444 $as_echo_n "checking for cdb_init in -lcdb... " >&6; }
12445 if ${ac_cv_lib_cdb_cdb_init+:} false; then :
12446   $as_echo_n "(cached) " >&6
12447 else
12448   ac_check_lib_save_LIBS=$LIBS
12449 LIBS="-lcdb  $LIBS"
12450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12451 /* end confdefs.h.  */
12452
12453 /* Override any GCC internal prototype to avoid an error.
12454    Use char because int might match the return type of a GCC
12455    builtin and then its argument prototype would still apply.  */
12456 #ifdef __cplusplus
12457 extern "C"
12458 #endif
12459 char cdb_init ();
12460 int
12461 main ()
12462 {
12463 return cdb_init ();
12464   ;
12465   return 0;
12466 }
12467 _ACEOF
12468 if ac_fn_c_try_link "$LINENO"; then :
12469   ac_cv_lib_cdb_cdb_init=yes
12470 else
12471   ac_cv_lib_cdb_cdb_init=no
12472 fi
12473 rm -f core conftest.err conftest.$ac_objext \
12474     conftest$ac_exeext conftest.$ac_ext
12475 LIBS=$ac_check_lib_save_LIBS
12476 fi
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdb_cdb_init" >&5
12478 $as_echo "$ac_cv_lib_cdb_cdb_init" >&6; }
12479 if test "x$ac_cv_lib_cdb_cdb_init" = xyes; then :
12480   CDB_LIBS=-lcdb
12481 else
12482   if test x"true" = xtrue; then :
12483   as_fn_error $? "cannot find usable TinyCDB library" "$LINENO" 5
12484 fi
12485 fi
12486
12487  for ac_header in cdb.h
12488 do :
12489   ac_fn_c_check_header_mongrel "$LINENO" "cdb.h" "ac_cv_header_cdb_h" "$ac_includes_default"
12490 if test "x$ac_cv_header_cdb_h" = xyes; then :
12491   cat >>confdefs.h <<_ACEOF
12492 #define HAVE_CDB_H 1
12493 _ACEOF
12494
12495 fi
12496
12497 done
12498
12499  CPPFLAGS="$rra_CDB_save_CPPFLAGS"
12500  LDFLAGS="$rra_CDB_save_LDFLAGS"
12501  LIBS="$rra_CDB_save_LIBS"
12502 else
12503   if test x"$rra_CDB_libdir" != x; then :
12504   CDB_LDFLAGS="-L$rra_CDB_libdir"
12505 else
12506   if test x"$rra_CDB_root" != x; then :
12507
12508  if test -d "${rra_CDB_root}/$rra_lib_arch_name"; then :
12509   if test x"" = x; then :
12510   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/${rra_lib_arch_name}"
12511 else
12512   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/${rra_lib_arch_name}/"
12513 fi
12514 else
12515   if test x"" = x; then :
12516   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/lib"
12517 else
12518   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/lib/"
12519 fi
12520 fi
12521  CDB_LDFLAGS=`echo "$CDB_LDFLAGS" | sed -e 's/^ *//'`
12522 fi
12523 fi
12524  if test x"$rra_CDB_includedir" != x; then :
12525   CDB_CPPFLAGS="-I$rra_CDB_includedir"
12526 else
12527   if test x"$rra_CDB_root" != x; then :
12528   if test x"$rra_CDB_root" != x/usr; then :
12529   CDB_CPPFLAGS="-I${rra_CDB_root}/include"
12530 fi
12531 fi
12532 fi
12533  rra_CDB_save_CPPFLAGS="$CPPFLAGS"
12534  rra_CDB_save_LDFLAGS="$LDFLAGS"
12535  rra_CDB_save_LIBS="$LIBS"
12536  CPPFLAGS="$CDB_CPPFLAGS $CPPFLAGS"
12537  LDFLAGS="$CDB_LDFLAGS $LDFLAGS"
12538  LIBS="$CDB_LIBS $LIBS"
12539  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cdb_init in -lcdb" >&5
12540 $as_echo_n "checking for cdb_init in -lcdb... " >&6; }
12541 if ${ac_cv_lib_cdb_cdb_init+:} false; then :
12542   $as_echo_n "(cached) " >&6
12543 else
12544   ac_check_lib_save_LIBS=$LIBS
12545 LIBS="-lcdb  $LIBS"
12546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12547 /* end confdefs.h.  */
12548
12549 /* Override any GCC internal prototype to avoid an error.
12550    Use char because int might match the return type of a GCC
12551    builtin and then its argument prototype would still apply.  */
12552 #ifdef __cplusplus
12553 extern "C"
12554 #endif
12555 char cdb_init ();
12556 int
12557 main ()
12558 {
12559 return cdb_init ();
12560   ;
12561   return 0;
12562 }
12563 _ACEOF
12564 if ac_fn_c_try_link "$LINENO"; then :
12565   ac_cv_lib_cdb_cdb_init=yes
12566 else
12567   ac_cv_lib_cdb_cdb_init=no
12568 fi
12569 rm -f core conftest.err conftest.$ac_objext \
12570     conftest$ac_exeext conftest.$ac_ext
12571 LIBS=$ac_check_lib_save_LIBS
12572 fi
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdb_cdb_init" >&5
12574 $as_echo "$ac_cv_lib_cdb_cdb_init" >&6; }
12575 if test "x$ac_cv_lib_cdb_cdb_init" = xyes; then :
12576   CDB_LIBS=-lcdb
12577 else
12578   if test x"false" = xtrue; then :
12579   as_fn_error $? "cannot find usable TinyCDB library" "$LINENO" 5
12580 fi
12581 fi
12582
12583  for ac_header in cdb.h
12584 do :
12585   ac_fn_c_check_header_mongrel "$LINENO" "cdb.h" "ac_cv_header_cdb_h" "$ac_includes_default"
12586 if test "x$ac_cv_header_cdb_h" = xyes; then :
12587   cat >>confdefs.h <<_ACEOF
12588 #define HAVE_CDB_H 1
12589 _ACEOF
12590
12591 fi
12592
12593 done
12594
12595  CPPFLAGS="$rra_CDB_save_CPPFLAGS"
12596  LDFLAGS="$rra_CDB_save_LDFLAGS"
12597  LIBS="$rra_CDB_save_LIBS"
12598 fi
12599 fi
12600  if test x"$CDB_LIBS" != x; then :
12601   rra_use_CDB=true
12602
12603 $as_echo "#define HAVE_CDB 1" >>confdefs.h
12604
12605 fi
12606 rra_system_cracklib=
12607  rra_cracklib_root=
12608  rra_cracklib_libdir=
12609  rra_cracklib_includedir=
12610  CRACKLIB_CPPFLAGS=
12611  CRACKLIB_LDFLAGS=
12612  CRACKLIB_LIBS=
12613
12614
12615
12616
12617
12618 # Check whether --with-cracklib was given.
12619 if test "${with_cracklib+set}" = set; then :
12620   withval=$with_cracklib; if test x"$withval" != xno; then :
12621   rra_system_cracklib=yes
12622 fi
12623      if test x"$withval" != xyes && test x"$withval" != xno; then :
12624   rra_cracklib_root="$withval"
12625 fi
12626 fi
12627
12628
12629 # Check whether --with-cracklib-include was given.
12630 if test "${with_cracklib_include+set}" = set; then :
12631   withval=$with_cracklib_include; if test x"$withval" != xyes && test x"$withval" != xno; then :
12632   rra_cracklib_includedir="$withval"
12633 fi
12634 fi
12635
12636
12637 # Check whether --with-cracklib-lib was given.
12638 if test "${with_cracklib_lib+set}" = set; then :
12639   withval=$with_cracklib_lib; if test x"$withval" != xyes && test x"$withval" != xno; then :
12640   rra_cracklib_libdir="$withval"
12641 fi
12642 fi
12643
12644
12645   if test x"$rra_system_cracklib" != xyes; then
12646   EMBEDDED_CRACKLIB_TRUE=
12647   EMBEDDED_CRACKLIB_FALSE='#'
12648 else
12649   EMBEDDED_CRACKLIB_TRUE='#'
12650   EMBEDDED_CRACKLIB_FALSE=
12651 fi
12652
12653  if test x"$rra_system_cracklib" = xyes; then :
12654   if test x"$rra_cracklib_libdir" != x; then :
12655   CRACKLIB_LDFLAGS="-L$rra_cracklib_libdir"
12656 else
12657   if test x"$rra_cracklib_root" != x; then :
12658
12659  if test -d "$rra_cracklib_root/$rra_lib_arch_name"; then :
12660   if test x"" = x; then :
12661   CRACKLIB_LDFLAGS="$CRACKLIB_LDFLAGS -L$rra_cracklib_root/${rra_lib_arch_name}"
12662 else
12663   CRACKLIB_LDFLAGS="$CRACKLIB_LDFLAGS -L$rra_cracklib_root/${rra_lib_arch_name}/"
12664 fi
12665 else
12666   if test x"" = x; then :
12667   CRACKLIB_LDFLAGS="$CRACKLIB_LDFLAGS -L$rra_cracklib_root/lib"
12668 else
12669   CRACKLIB_LDFLAGS="$CRACKLIB_LDFLAGS -L$rra_cracklib_root/lib/"
12670 fi
12671 fi
12672  CRACKLIB_LDFLAGS=`echo "$CRACKLIB_LDFLAGS" | sed -e 's/^ *//'`
12673 fi
12674 fi
12675  if test x"$rra_cracklib_includedir" != x; then :
12676   CRACKLIB_CPPFLAGS="-I$rra_cracklib_includedir"
12677 else
12678   if test x"$rra_cracklib_root" != x; then :
12679   if test x"$rra_cracklib_root" != x/usr; then :
12680   CRACKLIB_CPPFLAGS="-I${rra_cracklib_root}/include"
12681 fi
12682 fi
12683 fi
12684       CRACKLIB_LIBS="-lcrack"
12685       rra_cracklib_save_CPPFLAGS="$CPPFLAGS"
12686  rra_cracklib_save_LDFLAGS="$LDFLAGS"
12687  rra_cracklib_save_LIBS="$LIBS"
12688  CPPFLAGS="$CRACKLIB_CPPFLAGS $CPPFLAGS"
12689  LDFLAGS="$CRACKLIB_LDFLAGS $LDFLAGS"
12690  LIBS="$CRACKLIB_LIBS $LIBS"
12691  ac_fn_c_check_func "$LINENO" "FascistCheck" "ac_cv_func_FascistCheck"
12692 if test "x$ac_cv_func_FascistCheck" = xyes; then :
12693
12694 else
12695   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12697 as_fn_error $? "unable to link with CrackLib library
12698 See \`config.log' for more details" "$LINENO" 5; }
12699 fi
12700
12701  CPPFLAGS="$rra_cracklib_save_CPPFLAGS"
12702  LDFLAGS="$rra_cracklib_save_LDFLAGS"
12703  LIBS="$rra_cracklib_save_LIBS"
12704 fi
12705 if test x"$rra_system_cracklib" = xyes; then :
12706   rra_cracklib_save_CPPFLAGS="$CPPFLAGS"
12707  rra_cracklib_save_LDFLAGS="$LDFLAGS"
12708  rra_cracklib_save_LIBS="$LIBS"
12709  CPPFLAGS="$CRACKLIB_CPPFLAGS $CPPFLAGS"
12710  LDFLAGS="$CRACKLIB_LDFLAGS $LDFLAGS"
12711  LIBS="$CRACKLIB_LIBS $LIBS"
12712      for ac_header in crack.h
12713 do :
12714   ac_fn_c_check_header_mongrel "$LINENO" "crack.h" "ac_cv_header_crack_h" "$ac_includes_default"
12715 if test "x$ac_cv_header_crack_h" = xyes; then :
12716   cat >>confdefs.h <<_ACEOF
12717 #define HAVE_CRACK_H 1
12718 _ACEOF
12719
12720 fi
12721
12722 done
12723
12724      CPPFLAGS="$rra_cracklib_save_CPPFLAGS"
12725  LDFLAGS="$rra_cracklib_save_LDFLAGS"
12726  LIBS="$rra_cracklib_save_LIBS"
12727 fi
12728 rra_reduced_depends=false
12729 # Check whether --enable-reduced-depends was given.
12730 if test "${enable_reduced_depends+set}" = set; then :
12731   enableval=$enable_reduced_depends; if test x"$enableval" = xyes; then :
12732   rra_reduced_depends=true
12733 fi
12734 fi
12735
12736
12737  # Extract the first word of "krb5-config", so it can be a program name with args.
12738 set dummy krb5-config; ac_word=$2
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12740 $as_echo_n "checking for $ac_word... " >&6; }
12741 if ${ac_cv_path_PATH_KRB5_CONFIG+:} false; then :
12742   $as_echo_n "(cached) " >&6
12743 else
12744   case $PATH_KRB5_CONFIG in
12745   [\\/]* | ?:[\\/]*)
12746   ac_cv_path_PATH_KRB5_CONFIG="$PATH_KRB5_CONFIG" # Let the user override the test with a path.
12747   ;;
12748   *)
12749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12750 as_dummy="${PATH}:/usr/kerberos/bin"
12751 for as_dir in $as_dummy
12752 do
12753   IFS=$as_save_IFS
12754   test -z "$as_dir" && as_dir=.
12755     for ac_exec_ext in '' $ac_executable_extensions; do
12756   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12757     ac_cv_path_PATH_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12759     break 2
12760   fi
12761 done
12762   done
12763 IFS=$as_save_IFS
12764
12765   ;;
12766 esac
12767 fi
12768 PATH_KRB5_CONFIG=$ac_cv_path_PATH_KRB5_CONFIG
12769 if test -n "$PATH_KRB5_CONFIG"; then
12770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_KRB5_CONFIG" >&5
12771 $as_echo "$PATH_KRB5_CONFIG" >&6; }
12772 else
12773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12774 $as_echo "no" >&6; }
12775 fi
12776
12777
12778 rra_krb5_root=
12779  rra_krb5_libdir=
12780  rra_krb5_includedir=
12781  rra_use_KRB5=true
12782
12783
12784
12785
12786
12787 # Check whether --with-krb5 was given.
12788 if test "${with_krb5+set}" = set; then :
12789   withval=$with_krb5; if test x"$withval" != xyes && test x"$withval" != xno; then :
12790   rra_krb5_root="$withval"
12791 fi
12792 fi
12793
12794
12795 # Check whether --with-krb5-include was given.
12796 if test "${with_krb5_include+set}" = set; then :
12797   withval=$with_krb5_include; if test x"$withval" != xyes && test x"$withval" != xno; then :
12798   rra_krb5_includedir="$withval"
12799 fi
12800 fi
12801
12802
12803 # Check whether --with-krb5-lib was given.
12804 if test "${with_krb5_lib+set}" = set; then :
12805   withval=$with_krb5_lib; if test x"$withval" != xyes && test x"$withval" != xno; then :
12806   rra_krb5_libdir="$withval"
12807 fi
12808 fi
12809
12810
12811  rra_krb5_incroot=
12812  if test x"$rra_krb5_includedir" != x; then :
12813   rra_krb5_incroot="$rra_krb5_includedir"
12814 else
12815   if test x"$rra_krb5_root" != x; then :
12816   rra_krb5_incroot="${rra_krb5_root}/include"
12817 fi
12818 fi
12819  if test x"$rra_reduced_depends" = xtrue; then :
12820   if test x"$rra_krb5_libdir" != x; then :
12821   KRB5_LDFLAGS="-L$rra_krb5_libdir"
12822 else
12823   if test x"$rra_krb5_root" != x; then :
12824
12825  if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
12826   if test x"" = x; then :
12827   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
12828 else
12829   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
12830 fi
12831 else
12832   if test x"" = x; then :
12833   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
12834 else
12835   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
12836 fi
12837 fi
12838  KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
12839 fi
12840 fi
12841  if test x"$rra_krb5_includedir" != x; then :
12842   KRB5_CPPFLAGS="-I$rra_krb5_includedir"
12843 else
12844   if test x"$rra_krb5_root" != x; then :
12845   if test x"$rra_krb5_root" != x/usr; then :
12846   KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
12847 fi
12848 fi
12849 fi
12850      rra_krb5_save_CPPFLAGS="$CPPFLAGS"
12851  rra_krb5_save_LDFLAGS="$LDFLAGS"
12852  rra_krb5_save_LIBS="$LIBS"
12853  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
12854  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
12855  LIBS="$KRB5_LIBS $LIBS"
12856  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
12857 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12858 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
12859   $as_echo_n "(cached) " >&6
12860 else
12861   ac_check_lib_save_LIBS=$LIBS
12862 LIBS="-lkrb5  $LIBS"
12863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12864 /* end confdefs.h.  */
12865
12866 /* Override any GCC internal prototype to avoid an error.
12867    Use char because int might match the return type of a GCC
12868    builtin and then its argument prototype would still apply.  */
12869 #ifdef __cplusplus
12870 extern "C"
12871 #endif
12872 char krb5_init_context ();
12873 int
12874 main ()
12875 {
12876 return krb5_init_context ();
12877   ;
12878   return 0;
12879 }
12880 _ACEOF
12881 if ac_fn_c_try_link "$LINENO"; then :
12882   ac_cv_lib_krb5_krb5_init_context=yes
12883 else
12884   ac_cv_lib_krb5_krb5_init_context=no
12885 fi
12886 rm -f core conftest.err conftest.$ac_objext \
12887     conftest$ac_exeext conftest.$ac_ext
12888 LIBS=$ac_check_lib_save_LIBS
12889 fi
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12891 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12892 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
12893   KRB5_LIBS="-lkrb5"
12894 else
12895   if test x"true" = xtrue; then :
12896   as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
12897 fi
12898 fi
12899
12900  LIBS="$KRB5_LIBS $LIBS"
12901  if test x"$rra_krb5_incroot" = x; then :
12902   for ac_header in krb5.h krb5/krb5.h
12903 do :
12904   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12905 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12906 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12907   cat >>confdefs.h <<_ACEOF
12908 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12909 _ACEOF
12910
12911 fi
12912
12913 done
12914
12915 else
12916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
12917 $as_echo_n "checking for krb5.h... " >&6; }
12918  if test -f "${rra_krb5_incroot}/krb5.h"; then :
12919
12920 cat >>confdefs.h <<_ACEOF
12921 #define HAVE_KRB5_H 1
12922 _ACEOF
12923
12924      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12925 $as_echo "yes" >&6; }
12926 else
12927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12928 $as_echo "no" >&6; }
12929 fi
12930       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
12931 $as_echo_n "checking for krb5/krb5.h... " >&6; }
12932  if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
12933
12934 cat >>confdefs.h <<_ACEOF
12935 #define HAVE_KRB5_KRB5_H 1
12936 _ACEOF
12937
12938      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12939 $as_echo "yes" >&6; }
12940 else
12941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12942 $as_echo "no" >&6; }
12943 fi
12944 fi
12945  for ac_func in krb5_get_error_message
12946 do :
12947   ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
12948 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
12949   cat >>confdefs.h <<_ACEOF
12950 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
12951 _ACEOF
12952  for ac_func in krb5_free_error_message
12953 do :
12954   ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
12955 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
12956   cat >>confdefs.h <<_ACEOF
12957 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
12958 _ACEOF
12959
12960 fi
12961 done
12962
12963 else
12964   for ac_func in krb5_get_error_string
12965 do :
12966   ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
12967 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
12968   cat >>confdefs.h <<_ACEOF
12969 #define HAVE_KRB5_GET_ERROR_STRING 1
12970 _ACEOF
12971
12972 else
12973   for ac_func in krb5_get_err_txt
12974 do :
12975   ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
12976 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
12977   cat >>confdefs.h <<_ACEOF
12978 #define HAVE_KRB5_GET_ERR_TXT 1
12979 _ACEOF
12980
12981 else
12982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
12983 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
12984 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
12985   $as_echo_n "(cached) " >&6
12986 else
12987   ac_check_lib_save_LIBS=$LIBS
12988 LIBS="-lksvc  $LIBS"
12989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12990 /* end confdefs.h.  */
12991
12992 /* Override any GCC internal prototype to avoid an error.
12993    Use char because int might match the return type of a GCC
12994    builtin and then its argument prototype would still apply.  */
12995 #ifdef __cplusplus
12996 extern "C"
12997 #endif
12998 char krb5_svc_get_msg ();
12999 int
13000 main ()
13001 {
13002 return krb5_svc_get_msg ();
13003   ;
13004   return 0;
13005 }
13006 _ACEOF
13007 if ac_fn_c_try_link "$LINENO"; then :
13008   ac_cv_lib_ksvc_krb5_svc_get_msg=yes
13009 else
13010   ac_cv_lib_ksvc_krb5_svc_get_msg=no
13011 fi
13012 rm -f core conftest.err conftest.$ac_objext \
13013     conftest$ac_exeext conftest.$ac_ext
13014 LIBS=$ac_check_lib_save_LIBS
13015 fi
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
13017 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
13018 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
13019   KRB5_LIBS="$KRB5_LIBS -lksvc"
13020                   $as_echo "#define HAVE_KRB5_SVC_GET_MSG 1" >>confdefs.h
13021
13022                   for ac_header in ibm_svc/krb5_svc.h
13023 do :
13024   ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
13025 #if HAVE_KRB5_H
13026 # include <krb5.h>
13027 #else
13028 # include <krb5/krb5.h>
13029 #endif
13030
13031 "
13032 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
13033   cat >>confdefs.h <<_ACEOF
13034 #define HAVE_IBM_SVC_KRB5_SVC_H 1
13035 _ACEOF
13036
13037 fi
13038
13039 done
13040
13041 else
13042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13043 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13044 if ${ac_cv_lib_com_err_com_err+:} false; then :
13045   $as_echo_n "(cached) " >&6
13046 else
13047   ac_check_lib_save_LIBS=$LIBS
13048 LIBS="-lcom_err  $LIBS"
13049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13050 /* end confdefs.h.  */
13051
13052 /* Override any GCC internal prototype to avoid an error.
13053    Use char because int might match the return type of a GCC
13054    builtin and then its argument prototype would still apply.  */
13055 #ifdef __cplusplus
13056 extern "C"
13057 #endif
13058 char com_err ();
13059 int
13060 main ()
13061 {
13062 return com_err ();
13063   ;
13064   return 0;
13065 }
13066 _ACEOF
13067 if ac_fn_c_try_link "$LINENO"; then :
13068   ac_cv_lib_com_err_com_err=yes
13069 else
13070   ac_cv_lib_com_err_com_err=no
13071 fi
13072 rm -f core conftest.err conftest.$ac_objext \
13073     conftest$ac_exeext conftest.$ac_ext
13074 LIBS=$ac_check_lib_save_LIBS
13075 fi
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13077 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13078 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
13079   KRB5_LIBS="$KRB5_LIBS -lcom_err"
13080 else
13081   if test x"true" = xtrue; then :
13082   as_fn_error $? "cannot find usable com_err library" "$LINENO" 5
13083 else
13084   KRB5_LIBS=""
13085 fi
13086 fi
13087
13088                   for ac_header in et/com_err.h
13089 do :
13090   ac_fn_c_check_header_mongrel "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default"
13091 if test "x$ac_cv_header_et_com_err_h" = xyes; then :
13092   cat >>confdefs.h <<_ACEOF
13093 #define HAVE_ET_COM_ERR_H 1
13094 _ACEOF
13095
13096 fi
13097
13098 done
13099
13100 fi
13101
13102 fi
13103 done
13104
13105 fi
13106 done
13107
13108 fi
13109 done
13110
13111  CPPFLAGS="$rra_krb5_save_CPPFLAGS"
13112  LDFLAGS="$rra_krb5_save_LDFLAGS"
13113  LIBS="$rra_krb5_save_LIBS"
13114 else
13115   if test x"$rra_krb5_includedir" = x && test x"$rra_krb5_libdir" = x; then :
13116
13117  rra_krb5_config_KRB5=
13118  rra_krb5_config_KRB5_ok=
13119  if test x"${rra_krb5_root}" != x && test -x "${rra_krb5_root}/bin/krb5-config"; then :
13120   rra_krb5_config_KRB5="${rra_krb5_root}/bin/krb5-config"
13121 else
13122   rra_krb5_config_KRB5="$PATH_KRB5_CONFIG"
13123 fi
13124  if test x"$rra_krb5_config_KRB5" != x && test -x "$rra_krb5_config_KRB5"; then :
13125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5 support in krb5-config" >&5
13126 $as_echo_n "checking for krb5 support in krb5-config... " >&6; }
13127 if ${rra_cv_lib_KRB5_config+:} false; then :
13128   $as_echo_n "(cached) " >&6
13129 else
13130   if "$rra_krb5_config_KRB5" 2>&1 | grep krb5 >/dev/null 2>&1; then :
13131   rra_cv_lib_KRB5_config=yes
13132 else
13133   rra_cv_lib_KRB5_config=no
13134 fi
13135 fi
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_lib_KRB5_config" >&5
13137 $as_echo "$rra_cv_lib_KRB5_config" >&6; }
13138      if test "$rra_cv_lib_KRB5_config" = yes; then :
13139   KRB5_CPPFLAGS=`"$rra_krb5_config_KRB5" --cflags krb5 2>/dev/null`
13140
13141
13142
13143  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --deps support in krb5-config" >&5
13144 $as_echo_n "checking for --deps support in krb5-config... " >&6; }
13145 if ${rra_cv_krb5_config_deps+:} false; then :
13146   $as_echo_n "(cached) " >&6
13147 else
13148   if "$rra_krb5_config_KRB5" 2>&1 | grep deps >/dev/null 2>&1; then :
13149   rra_cv_krb5_config_deps=yes
13150 else
13151   rra_cv_krb5_config_deps=no
13152 fi
13153 fi
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_krb5_config_deps" >&5
13155 $as_echo "$rra_cv_krb5_config_deps" >&6; }
13156  if test x"$rra_reduced_depends" = xfalse \
13157         && test x"$rra_cv_krb5_config_deps" = xyes; then :
13158   KRB5_LIBS=`"$rra_krb5_config_KRB5" --deps --libs krb5 2>/dev/null`
13159 else
13160   KRB5_LIBS=`"$rra_krb5_config_KRB5" --libs krb5 2>/dev/null`
13161 fi
13162          rra_krb5_config_KRB5_ok=yes
13163 else
13164   if test x"krb5" = xkrb5; then :
13165   KRB5_CPPFLAGS=`"$rra_krb5_config_KRB5" --cflags 2>/dev/null`
13166              KRB5_LIBS=`"$rra_krb5_config_KRB5" --libs krb5 2>/dev/null`
13167              rra_krb5_config_KRB5_ok=yes
13168 fi
13169 fi
13170 fi
13171  if test x"$rra_krb5_config_KRB5_ok" = xyes; then :
13172   KRB5_CPPFLAGS=`echo "$KRB5_CPPFLAGS" | sed 's%-I/usr/include %%'`
13173      KRB5_CPPFLAGS=`echo "$KRB5_CPPFLAGS" | sed 's%-I/usr/include$%%'`
13174      rra_krb5_save_CPPFLAGS="$CPPFLAGS"
13175  rra_krb5_save_LDFLAGS="$LDFLAGS"
13176  rra_krb5_save_LIBS="$LIBS"
13177  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
13178  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
13179  LIBS="$KRB5_LIBS $LIBS"
13180  ac_fn_c_check_func "$LINENO" "krb5_init_context" "ac_cv_func_krb5_init_context"
13181 if test "x$ac_cv_func_krb5_init_context" = xyes; then :
13182   CPPFLAGS="$rra_krb5_save_CPPFLAGS"
13183  LDFLAGS="$rra_krb5_save_LDFLAGS"
13184  LIBS="$rra_krb5_save_LIBS"
13185 else
13186   CPPFLAGS="$rra_krb5_save_CPPFLAGS"
13187  LDFLAGS="$rra_krb5_save_LDFLAGS"
13188  LIBS="$rra_krb5_save_LIBS"
13189      KRB5_CPPFLAGS=
13190      KRB5_LIBS=
13191      if test x"$rra_krb5_libdir" != x; then :
13192   KRB5_LDFLAGS="-L$rra_krb5_libdir"
13193 else
13194   if test x"$rra_krb5_root" != x; then :
13195
13196  if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
13197   if test x"" = x; then :
13198   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
13199 else
13200   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
13201 fi
13202 else
13203   if test x"" = x; then :
13204   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
13205 else
13206   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
13207 fi
13208 fi
13209  KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
13210 fi
13211 fi
13212  if test x"$rra_krb5_includedir" != x; then :
13213   KRB5_CPPFLAGS="-I$rra_krb5_includedir"
13214 else
13215   if test x"$rra_krb5_root" != x; then :
13216   if test x"$rra_krb5_root" != x/usr; then :
13217   KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
13218 fi
13219 fi
13220 fi
13221      rra_krb5_save_CPPFLAGS="$CPPFLAGS"
13222  rra_krb5_save_LDFLAGS="$LDFLAGS"
13223  rra_krb5_save_LIBS="$LIBS"
13224  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
13225  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
13226  LIBS="$KRB5_LIBS $LIBS"
13227  rra_krb5_extra=
13228  LIBS=
13229  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
13230 $as_echo_n "checking for library containing res_search... " >&6; }
13231 if ${ac_cv_search_res_search+:} false; then :
13232   $as_echo_n "(cached) " >&6
13233 else
13234   ac_func_search_save_LIBS=$LIBS
13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236 /* end confdefs.h.  */
13237
13238 /* Override any GCC internal prototype to avoid an error.
13239    Use char because int might match the return type of a GCC
13240    builtin and then its argument prototype would still apply.  */
13241 #ifdef __cplusplus
13242 extern "C"
13243 #endif
13244 char res_search ();
13245 int
13246 main ()
13247 {
13248 return res_search ();
13249   ;
13250   return 0;
13251 }
13252 _ACEOF
13253 for ac_lib in '' resolv; do
13254   if test -z "$ac_lib"; then
13255     ac_res="none required"
13256   else
13257     ac_res=-l$ac_lib
13258     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13259   fi
13260   if ac_fn_c_try_link "$LINENO"; then :
13261   ac_cv_search_res_search=$ac_res
13262 fi
13263 rm -f core conftest.err conftest.$ac_objext \
13264     conftest$ac_exeext
13265   if ${ac_cv_search_res_search+:} false; then :
13266   break
13267 fi
13268 done
13269 if ${ac_cv_search_res_search+:} false; then :
13270
13271 else
13272   ac_cv_search_res_search=no
13273 fi
13274 rm conftest.$ac_ext
13275 LIBS=$ac_func_search_save_LIBS
13276 fi
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
13278 $as_echo "$ac_cv_search_res_search" >&6; }
13279 ac_res=$ac_cv_search_res_search
13280 if test "$ac_res" != no; then :
13281   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13282
13283 else
13284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
13285 $as_echo_n "checking for library containing __res_search... " >&6; }
13286 if ${ac_cv_search___res_search+:} false; then :
13287   $as_echo_n "(cached) " >&6
13288 else
13289   ac_func_search_save_LIBS=$LIBS
13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h.  */
13292
13293 /* Override any GCC internal prototype to avoid an error.
13294    Use char because int might match the return type of a GCC
13295    builtin and then its argument prototype would still apply.  */
13296 #ifdef __cplusplus
13297 extern "C"
13298 #endif
13299 char __res_search ();
13300 int
13301 main ()
13302 {
13303 return __res_search ();
13304   ;
13305   return 0;
13306 }
13307 _ACEOF
13308 for ac_lib in '' resolv; do
13309   if test -z "$ac_lib"; then
13310     ac_res="none required"
13311   else
13312     ac_res=-l$ac_lib
13313     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13314   fi
13315   if ac_fn_c_try_link "$LINENO"; then :
13316   ac_cv_search___res_search=$ac_res
13317 fi
13318 rm -f core conftest.err conftest.$ac_objext \
13319     conftest$ac_exeext
13320   if ${ac_cv_search___res_search+:} false; then :
13321   break
13322 fi
13323 done
13324 if ${ac_cv_search___res_search+:} false; then :
13325
13326 else
13327   ac_cv_search___res_search=no
13328 fi
13329 rm conftest.$ac_ext
13330 LIBS=$ac_func_search_save_LIBS
13331 fi
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
13333 $as_echo "$ac_cv_search___res_search" >&6; }
13334 ac_res=$ac_cv_search___res_search
13335 if test "$ac_res" != no; then :
13336   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13337
13338 fi
13339
13340 fi
13341
13342  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13343 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13344 if ${ac_cv_search_gethostbyname+:} false; then :
13345   $as_echo_n "(cached) " >&6
13346 else
13347   ac_func_search_save_LIBS=$LIBS
13348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13349 /* end confdefs.h.  */
13350
13351 /* Override any GCC internal prototype to avoid an error.
13352    Use char because int might match the return type of a GCC
13353    builtin and then its argument prototype would still apply.  */
13354 #ifdef __cplusplus
13355 extern "C"
13356 #endif
13357 char gethostbyname ();
13358 int
13359 main ()
13360 {
13361 return gethostbyname ();
13362   ;
13363   return 0;
13364 }
13365 _ACEOF
13366 for ac_lib in '' nsl; do
13367   if test -z "$ac_lib"; then
13368     ac_res="none required"
13369   else
13370     ac_res=-l$ac_lib
13371     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13372   fi
13373   if ac_fn_c_try_link "$LINENO"; then :
13374   ac_cv_search_gethostbyname=$ac_res
13375 fi
13376 rm -f core conftest.err conftest.$ac_objext \
13377     conftest$ac_exeext
13378   if ${ac_cv_search_gethostbyname+:} false; then :
13379   break
13380 fi
13381 done
13382 if ${ac_cv_search_gethostbyname+:} false; then :
13383
13384 else
13385   ac_cv_search_gethostbyname=no
13386 fi
13387 rm conftest.$ac_ext
13388 LIBS=$ac_func_search_save_LIBS
13389 fi
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13391 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13392 ac_res=$ac_cv_search_gethostbyname
13393 if test "$ac_res" != no; then :
13394   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13395
13396 fi
13397
13398  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13399 $as_echo_n "checking for library containing socket... " >&6; }
13400 if ${ac_cv_search_socket+:} false; then :
13401   $as_echo_n "(cached) " >&6
13402 else
13403   ac_func_search_save_LIBS=$LIBS
13404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13405 /* end confdefs.h.  */
13406
13407 /* Override any GCC internal prototype to avoid an error.
13408    Use char because int might match the return type of a GCC
13409    builtin and then its argument prototype would still apply.  */
13410 #ifdef __cplusplus
13411 extern "C"
13412 #endif
13413 char socket ();
13414 int
13415 main ()
13416 {
13417 return socket ();
13418   ;
13419   return 0;
13420 }
13421 _ACEOF
13422 for ac_lib in '' socket; do
13423   if test -z "$ac_lib"; then
13424     ac_res="none required"
13425   else
13426     ac_res=-l$ac_lib
13427     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13428   fi
13429   if ac_fn_c_try_link "$LINENO"; then :
13430   ac_cv_search_socket=$ac_res
13431 fi
13432 rm -f core conftest.err conftest.$ac_objext \
13433     conftest$ac_exeext
13434   if ${ac_cv_search_socket+:} false; then :
13435   break
13436 fi
13437 done
13438 if ${ac_cv_search_socket+:} false; then :
13439
13440 else
13441   ac_cv_search_socket=no
13442 fi
13443 rm conftest.$ac_ext
13444 LIBS=$ac_func_search_save_LIBS
13445 fi
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13447 $as_echo "$ac_cv_search_socket" >&6; }
13448 ac_res=$ac_cv_search_socket
13449 if test "$ac_res" != no; then :
13450   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13451
13452 else
13453   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
13454 $as_echo_n "checking for socket in -lnsl... " >&6; }
13455 if ${ac_cv_lib_nsl_socket+:} false; then :
13456   $as_echo_n "(cached) " >&6
13457 else
13458   ac_check_lib_save_LIBS=$LIBS
13459 LIBS="-lnsl -lsocket $LIBS"
13460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13461 /* end confdefs.h.  */
13462
13463 /* Override any GCC internal prototype to avoid an error.
13464    Use char because int might match the return type of a GCC
13465    builtin and then its argument prototype would still apply.  */
13466 #ifdef __cplusplus
13467 extern "C"
13468 #endif
13469 char socket ();
13470 int
13471 main ()
13472 {
13473 return socket ();
13474   ;
13475   return 0;
13476 }
13477 _ACEOF
13478 if ac_fn_c_try_link "$LINENO"; then :
13479   ac_cv_lib_nsl_socket=yes
13480 else
13481   ac_cv_lib_nsl_socket=no
13482 fi
13483 rm -f core conftest.err conftest.$ac_objext \
13484     conftest$ac_exeext conftest.$ac_ext
13485 LIBS=$ac_check_lib_save_LIBS
13486 fi
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
13488 $as_echo "$ac_cv_lib_nsl_socket" >&6; }
13489 if test "x$ac_cv_lib_nsl_socket" = xyes; then :
13490   LIBS="-lnsl -lsocket $LIBS"
13491 fi
13492
13493 fi
13494
13495  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
13496 $as_echo_n "checking for library containing crypt... " >&6; }
13497 if ${ac_cv_search_crypt+:} false; then :
13498   $as_echo_n "(cached) " >&6
13499 else
13500   ac_func_search_save_LIBS=$LIBS
13501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13502 /* end confdefs.h.  */
13503
13504 /* Override any GCC internal prototype to avoid an error.
13505    Use char because int might match the return type of a GCC
13506    builtin and then its argument prototype would still apply.  */
13507 #ifdef __cplusplus
13508 extern "C"
13509 #endif
13510 char crypt ();
13511 int
13512 main ()
13513 {
13514 return crypt ();
13515   ;
13516   return 0;
13517 }
13518 _ACEOF
13519 for ac_lib in '' crypt; do
13520   if test -z "$ac_lib"; then
13521     ac_res="none required"
13522   else
13523     ac_res=-l$ac_lib
13524     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13525   fi
13526   if ac_fn_c_try_link "$LINENO"; then :
13527   ac_cv_search_crypt=$ac_res
13528 fi
13529 rm -f core conftest.err conftest.$ac_objext \
13530     conftest$ac_exeext
13531   if ${ac_cv_search_crypt+:} false; then :
13532   break
13533 fi
13534 done
13535 if ${ac_cv_search_crypt+:} false; then :
13536
13537 else
13538   ac_cv_search_crypt=no
13539 fi
13540 rm conftest.$ac_ext
13541 LIBS=$ac_func_search_save_LIBS
13542 fi
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
13544 $as_echo "$ac_cv_search_crypt" >&6; }
13545 ac_res=$ac_cv_search_crypt
13546 if test "$ac_res" != no; then :
13547   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13548
13549 fi
13550
13551  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
13552 $as_echo_n "checking for library containing roken_concat... " >&6; }
13553 if ${ac_cv_search_roken_concat+:} false; then :
13554   $as_echo_n "(cached) " >&6
13555 else
13556   ac_func_search_save_LIBS=$LIBS
13557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13558 /* end confdefs.h.  */
13559
13560 /* Override any GCC internal prototype to avoid an error.
13561    Use char because int might match the return type of a GCC
13562    builtin and then its argument prototype would still apply.  */
13563 #ifdef __cplusplus
13564 extern "C"
13565 #endif
13566 char roken_concat ();
13567 int
13568 main ()
13569 {
13570 return roken_concat ();
13571   ;
13572   return 0;
13573 }
13574 _ACEOF
13575 for ac_lib in '' roken; do
13576   if test -z "$ac_lib"; then
13577     ac_res="none required"
13578   else
13579     ac_res=-l$ac_lib
13580     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13581   fi
13582   if ac_fn_c_try_link "$LINENO"; then :
13583   ac_cv_search_roken_concat=$ac_res
13584 fi
13585 rm -f core conftest.err conftest.$ac_objext \
13586     conftest$ac_exeext
13587   if ${ac_cv_search_roken_concat+:} false; then :
13588   break
13589 fi
13590 done
13591 if ${ac_cv_search_roken_concat+:} false; then :
13592
13593 else
13594   ac_cv_search_roken_concat=no
13595 fi
13596 rm conftest.$ac_ext
13597 LIBS=$ac_func_search_save_LIBS
13598 fi
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
13600 $as_echo "$ac_cv_search_roken_concat" >&6; }
13601 ac_res=$ac_cv_search_roken_concat
13602 if test "$ac_res" != no; then :
13603   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13604
13605 fi
13606
13607  rra_krb5_extra="$LIBS"
13608  LIBS="$rra_krb5_save_LIBS"
13609  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13610 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13611 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
13612   $as_echo_n "(cached) " >&6
13613 else
13614   ac_check_lib_save_LIBS=$LIBS
13615 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
13616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13617 /* end confdefs.h.  */
13618
13619 /* Override any GCC internal prototype to avoid an error.
13620    Use char because int might match the return type of a GCC
13621    builtin and then its argument prototype would still apply.  */
13622 #ifdef __cplusplus
13623 extern "C"
13624 #endif
13625 char krb5_init_context ();
13626 int
13627 main ()
13628 {
13629 return krb5_init_context ();
13630   ;
13631   return 0;
13632 }
13633 _ACEOF
13634 if ac_fn_c_try_link "$LINENO"; then :
13635   ac_cv_lib_krb5_krb5_init_context=yes
13636 else
13637   ac_cv_lib_krb5_krb5_init_context=no
13638 fi
13639 rm -f core conftest.err conftest.$ac_objext \
13640     conftest$ac_exeext conftest.$ac_ext
13641 LIBS=$ac_check_lib_save_LIBS
13642 fi
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13644 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13645 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
13646   KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
13647 else
13648   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
13649 $as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
13650 if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
13651   $as_echo_n "(cached) " >&6
13652 else
13653   ac_check_lib_save_LIBS=$LIBS
13654 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
13655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13656 /* end confdefs.h.  */
13657
13658 /* Override any GCC internal prototype to avoid an error.
13659    Use char because int might match the return type of a GCC
13660    builtin and then its argument prototype would still apply.  */
13661 #ifdef __cplusplus
13662 extern "C"
13663 #endif
13664 char krb5int_getspecific ();
13665 int
13666 main ()
13667 {
13668 return krb5int_getspecific ();
13669   ;
13670   return 0;
13671 }
13672 _ACEOF
13673 if ac_fn_c_try_link "$LINENO"; then :
13674   ac_cv_lib_krb5support_krb5int_getspecific=yes
13675 else
13676   ac_cv_lib_krb5support_krb5int_getspecific=no
13677 fi
13678 rm -f core conftest.err conftest.$ac_objext \
13679     conftest$ac_exeext conftest.$ac_ext
13680 LIBS=$ac_check_lib_save_LIBS
13681 fi
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
13683 $as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
13684 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
13685   rra_krb5_extra="-lkrb5support $rra_krb5_extra"
13686 else
13687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
13688 $as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; }
13689 if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then :
13690   $as_echo_n "(cached) " >&6
13691 else
13692   ac_check_lib_save_LIBS=$LIBS
13693 LIBS="-lpthreads  $LIBS"
13694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13695 /* end confdefs.h.  */
13696
13697 /* Override any GCC internal prototype to avoid an error.
13698    Use char because int might match the return type of a GCC
13699    builtin and then its argument prototype would still apply.  */
13700 #ifdef __cplusplus
13701 extern "C"
13702 #endif
13703 char pthread_setspecific ();
13704 int
13705 main ()
13706 {
13707 return pthread_setspecific ();
13708   ;
13709   return 0;
13710 }
13711 _ACEOF
13712 if ac_fn_c_try_link "$LINENO"; then :
13713   ac_cv_lib_pthreads_pthread_setspecific=yes
13714 else
13715   ac_cv_lib_pthreads_pthread_setspecific=no
13716 fi
13717 rm -f core conftest.err conftest.$ac_objext \
13718     conftest$ac_exeext conftest.$ac_ext
13719 LIBS=$ac_check_lib_save_LIBS
13720 fi
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
13722 $as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
13723 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then :
13724   rra_krb5_pthread="-lpthreads"
13725 else
13726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
13727 $as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; }
13728 if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then :
13729   $as_echo_n "(cached) " >&6
13730 else
13731   ac_check_lib_save_LIBS=$LIBS
13732 LIBS="-lpthread  $LIBS"
13733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13734 /* end confdefs.h.  */
13735
13736 /* Override any GCC internal prototype to avoid an error.
13737    Use char because int might match the return type of a GCC
13738    builtin and then its argument prototype would still apply.  */
13739 #ifdef __cplusplus
13740 extern "C"
13741 #endif
13742 char pthread_setspecific ();
13743 int
13744 main ()
13745 {
13746 return pthread_setspecific ();
13747   ;
13748   return 0;
13749 }
13750 _ACEOF
13751 if ac_fn_c_try_link "$LINENO"; then :
13752   ac_cv_lib_pthread_pthread_setspecific=yes
13753 else
13754   ac_cv_lib_pthread_pthread_setspecific=no
13755 fi
13756 rm -f core conftest.err conftest.$ac_objext \
13757     conftest$ac_exeext conftest.$ac_ext
13758 LIBS=$ac_check_lib_save_LIBS
13759 fi
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
13761 $as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
13762 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then :
13763   rra_krb5_pthread="-lpthread"
13764 fi
13765
13766 fi
13767
13768          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
13769 $as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; }
13770 if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then :
13771   $as_echo_n "(cached) " >&6
13772 else
13773   ac_check_lib_save_LIBS=$LIBS
13774 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
13775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13776 /* end confdefs.h.  */
13777
13778 /* Override any GCC internal prototype to avoid an error.
13779    Use char because int might match the return type of a GCC
13780    builtin and then its argument prototype would still apply.  */
13781 #ifdef __cplusplus
13782 extern "C"
13783 #endif
13784 char krb5int_setspecific ();
13785 int
13786 main ()
13787 {
13788 return krb5int_setspecific ();
13789   ;
13790   return 0;
13791 }
13792 _ACEOF
13793 if ac_fn_c_try_link "$LINENO"; then :
13794   ac_cv_lib_krb5support_krb5int_setspecific=yes
13795 else
13796   ac_cv_lib_krb5support_krb5int_setspecific=no
13797 fi
13798 rm -f core conftest.err conftest.$ac_objext \
13799     conftest$ac_exeext conftest.$ac_ext
13800 LIBS=$ac_check_lib_save_LIBS
13801 fi
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
13803 $as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
13804 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then :
13805   rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
13806 fi
13807
13808 fi
13809
13810      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
13811 $as_echo_n "checking for error_message in -lcom_err... " >&6; }
13812 if ${ac_cv_lib_com_err_error_message+:} false; then :
13813   $as_echo_n "(cached) " >&6
13814 else
13815   ac_check_lib_save_LIBS=$LIBS
13816 LIBS="-lcom_err $rra_krb5_extra $LIBS"
13817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13818 /* end confdefs.h.  */
13819
13820 /* Override any GCC internal prototype to avoid an error.
13821    Use char because int might match the return type of a GCC
13822    builtin and then its argument prototype would still apply.  */
13823 #ifdef __cplusplus
13824 extern "C"
13825 #endif
13826 char error_message ();
13827 int
13828 main ()
13829 {
13830 return error_message ();
13831   ;
13832   return 0;
13833 }
13834 _ACEOF
13835 if ac_fn_c_try_link "$LINENO"; then :
13836   ac_cv_lib_com_err_error_message=yes
13837 else
13838   ac_cv_lib_com_err_error_message=no
13839 fi
13840 rm -f core conftest.err conftest.$ac_objext \
13841     conftest$ac_exeext conftest.$ac_ext
13842 LIBS=$ac_check_lib_save_LIBS
13843 fi
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
13845 $as_echo "$ac_cv_lib_com_err_error_message" >&6; }
13846 if test "x$ac_cv_lib_com_err_error_message" = xyes; then :
13847   rra_krb5_extra="-lcom_err $rra_krb5_extra"
13848 fi
13849
13850      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
13851 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
13852 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
13853   $as_echo_n "(cached) " >&6
13854 else
13855   ac_check_lib_save_LIBS=$LIBS
13856 LIBS="-lksvc $rra_krb5_extra $LIBS"
13857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13858 /* end confdefs.h.  */
13859
13860 /* Override any GCC internal prototype to avoid an error.
13861    Use char because int might match the return type of a GCC
13862    builtin and then its argument prototype would still apply.  */
13863 #ifdef __cplusplus
13864 extern "C"
13865 #endif
13866 char krb5_svc_get_msg ();
13867 int
13868 main ()
13869 {
13870 return krb5_svc_get_msg ();
13871   ;
13872   return 0;
13873 }
13874 _ACEOF
13875 if ac_fn_c_try_link "$LINENO"; then :
13876   ac_cv_lib_ksvc_krb5_svc_get_msg=yes
13877 else
13878   ac_cv_lib_ksvc_krb5_svc_get_msg=no
13879 fi
13880 rm -f core conftest.err conftest.$ac_objext \
13881     conftest$ac_exeext conftest.$ac_ext
13882 LIBS=$ac_check_lib_save_LIBS
13883 fi
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
13885 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
13886 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
13887   rra_krb5_extra="-lksvc $rra_krb5_extra"
13888 fi
13889
13890      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
13891 $as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
13892 if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then :
13893   $as_echo_n "(cached) " >&6
13894 else
13895   ac_check_lib_save_LIBS=$LIBS
13896 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
13897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13898 /* end confdefs.h.  */
13899
13900 /* Override any GCC internal prototype to avoid an error.
13901    Use char because int might match the return type of a GCC
13902    builtin and then its argument prototype would still apply.  */
13903 #ifdef __cplusplus
13904 extern "C"
13905 #endif
13906 char krb5int_hash_md5 ();
13907 int
13908 main ()
13909 {
13910 return krb5int_hash_md5 ();
13911   ;
13912   return 0;
13913 }
13914 _ACEOF
13915 if ac_fn_c_try_link "$LINENO"; then :
13916   ac_cv_lib_k5crypto_krb5int_hash_md5=yes
13917 else
13918   ac_cv_lib_k5crypto_krb5int_hash_md5=no
13919 fi
13920 rm -f core conftest.err conftest.$ac_objext \
13921     conftest$ac_exeext conftest.$ac_ext
13922 LIBS=$ac_check_lib_save_LIBS
13923 fi
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
13925 $as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
13926 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then :
13927   rra_krb5_extra="-lk5crypto $rra_krb5_extra"
13928 fi
13929
13930      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
13931 $as_echo_n "checking for profile_get_values in -lk5profile... " >&6; }
13932 if ${ac_cv_lib_k5profile_profile_get_values+:} false; then :
13933   $as_echo_n "(cached) " >&6
13934 else
13935   ac_check_lib_save_LIBS=$LIBS
13936 LIBS="-lk5profile $rra_krb5_extra $LIBS"
13937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13938 /* end confdefs.h.  */
13939
13940 /* Override any GCC internal prototype to avoid an error.
13941    Use char because int might match the return type of a GCC
13942    builtin and then its argument prototype would still apply.  */
13943 #ifdef __cplusplus
13944 extern "C"
13945 #endif
13946 char profile_get_values ();
13947 int
13948 main ()
13949 {
13950 return profile_get_values ();
13951   ;
13952   return 0;
13953 }
13954 _ACEOF
13955 if ac_fn_c_try_link "$LINENO"; then :
13956   ac_cv_lib_k5profile_profile_get_values=yes
13957 else
13958   ac_cv_lib_k5profile_profile_get_values=no
13959 fi
13960 rm -f core conftest.err conftest.$ac_objext \
13961     conftest$ac_exeext conftest.$ac_ext
13962 LIBS=$ac_check_lib_save_LIBS
13963 fi
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
13965 $as_echo "$ac_cv_lib_k5profile_profile_get_values" >&6; }
13966 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes; then :
13967   rra_krb5_extra="-lk5profile $rra_krb5_extra"
13968 fi
13969
13970      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
13971 $as_echo_n "checking for krb5_cc_default in -lkrb5... " >&6; }
13972 if ${ac_cv_lib_krb5_krb5_cc_default+:} false; then :
13973   $as_echo_n "(cached) " >&6
13974 else
13975   ac_check_lib_save_LIBS=$LIBS
13976 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
13977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13978 /* end confdefs.h.  */
13979
13980 /* Override any GCC internal prototype to avoid an error.
13981    Use char because int might match the return type of a GCC
13982    builtin and then its argument prototype would still apply.  */
13983 #ifdef __cplusplus
13984 extern "C"
13985 #endif
13986 char krb5_cc_default ();
13987 int
13988 main ()
13989 {
13990 return krb5_cc_default ();
13991   ;
13992   return 0;
13993 }
13994 _ACEOF
13995 if ac_fn_c_try_link "$LINENO"; then :
13996   ac_cv_lib_krb5_krb5_cc_default=yes
13997 else
13998   ac_cv_lib_krb5_krb5_cc_default=no
13999 fi
14000 rm -f core conftest.err conftest.$ac_objext \
14001     conftest$ac_exeext conftest.$ac_ext
14002 LIBS=$ac_check_lib_save_LIBS
14003 fi
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
14005 $as_echo "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
14006 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes; then :
14007   KRB5_LIBS="-lkrb5 $rra_krb5_extra"
14008 else
14009   if test x"true" = xtrue; then :
14010   as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
14011 fi
14012 fi
14013
14014 fi
14015
14016  LIBS="$KRB5_LIBS $LIBS"
14017  if test x"$rra_krb5_incroot" = x; then :
14018   for ac_header in krb5.h krb5/krb5.h
14019 do :
14020   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14021 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14022 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14023   cat >>confdefs.h <<_ACEOF
14024 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14025 _ACEOF
14026
14027 fi
14028
14029 done
14030
14031 else
14032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
14033 $as_echo_n "checking for krb5.h... " >&6; }
14034  if test -f "${rra_krb5_incroot}/krb5.h"; then :
14035
14036 cat >>confdefs.h <<_ACEOF
14037 #define HAVE_KRB5_H 1
14038 _ACEOF
14039
14040      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14041 $as_echo "yes" >&6; }
14042 else
14043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14044 $as_echo "no" >&6; }
14045 fi
14046       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
14047 $as_echo_n "checking for krb5/krb5.h... " >&6; }
14048  if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
14049
14050 cat >>confdefs.h <<_ACEOF
14051 #define HAVE_KRB5_KRB5_H 1
14052 _ACEOF
14053
14054      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14055 $as_echo "yes" >&6; }
14056 else
14057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14058 $as_echo "no" >&6; }
14059 fi
14060 fi
14061  for ac_func in krb5_get_error_message
14062 do :
14063   ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
14064 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
14065   cat >>confdefs.h <<_ACEOF
14066 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
14067 _ACEOF
14068  for ac_func in krb5_free_error_message
14069 do :
14070   ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
14071 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
14072   cat >>confdefs.h <<_ACEOF
14073 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
14074 _ACEOF
14075
14076 fi
14077 done
14078
14079 else
14080   for ac_func in krb5_get_error_string
14081 do :
14082   ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
14083 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
14084   cat >>confdefs.h <<_ACEOF
14085 #define HAVE_KRB5_GET_ERROR_STRING 1
14086 _ACEOF
14087
14088 else
14089   for ac_func in krb5_get_err_txt
14090 do :
14091   ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
14092 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
14093   cat >>confdefs.h <<_ACEOF
14094 #define HAVE_KRB5_GET_ERR_TXT 1
14095 _ACEOF
14096
14097 else
14098   for ac_func in krb5_svc_get_msg
14099 do :
14100   ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
14101 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
14102   cat >>confdefs.h <<_ACEOF
14103 #define HAVE_KRB5_SVC_GET_MSG 1
14104 _ACEOF
14105  for ac_header in ibm_svc/krb5_svc.h
14106 do :
14107   ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
14108 #if HAVE_KRB5_H
14109 # include <krb5.h>
14110 #else
14111 # include <krb5/krb5.h>
14112 #endif
14113
14114 "
14115 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
14116   cat >>confdefs.h <<_ACEOF
14117 #define HAVE_IBM_SVC_KRB5_SVC_H 1
14118 _ACEOF
14119
14120 fi
14121
14122 done
14123
14124 else
14125   for ac_header in et/com_err.h
14126 do :
14127   ac_fn_c_check_header_mongrel "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default"
14128 if test "x$ac_cv_header_et_com_err_h" = xyes; then :
14129   cat >>confdefs.h <<_ACEOF
14130 #define HAVE_ET_COM_ERR_H 1
14131 _ACEOF
14132
14133 fi
14134
14135 done
14136
14137 fi
14138 done
14139
14140 fi
14141 done
14142
14143 fi
14144 done
14145
14146 fi
14147 done
14148
14149  CPPFLAGS="$rra_krb5_save_CPPFLAGS"
14150  LDFLAGS="$rra_krb5_save_LDFLAGS"
14151  LIBS="$rra_krb5_save_LIBS"
14152 fi
14153
14154      rra_krb5_save_CPPFLAGS="$CPPFLAGS"
14155  rra_krb5_save_LDFLAGS="$LDFLAGS"
14156  rra_krb5_save_LIBS="$LIBS"
14157  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
14158  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
14159  LIBS="$KRB5_LIBS $LIBS"
14160      if test x"$rra_krb5_incroot" = x; then :
14161   for ac_header in krb5.h krb5/krb5.h
14162 do :
14163   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14164 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14165 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14166   cat >>confdefs.h <<_ACEOF
14167 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14168 _ACEOF
14169
14170 fi
14171
14172 done
14173
14174 else
14175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
14176 $as_echo_n "checking for krb5.h... " >&6; }
14177  if test -f "${rra_krb5_incroot}/krb5.h"; then :
14178
14179 cat >>confdefs.h <<_ACEOF
14180 #define HAVE_KRB5_H 1
14181 _ACEOF
14182
14183      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14184 $as_echo "yes" >&6; }
14185 else
14186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14187 $as_echo "no" >&6; }
14188 fi
14189           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
14190 $as_echo_n "checking for krb5/krb5.h... " >&6; }
14191  if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
14192
14193 cat >>confdefs.h <<_ACEOF
14194 #define HAVE_KRB5_KRB5_H 1
14195 _ACEOF
14196
14197      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14198 $as_echo "yes" >&6; }
14199 else
14200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14201 $as_echo "no" >&6; }
14202 fi
14203 fi
14204      for ac_func in krb5_get_error_message
14205 do :
14206   ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
14207 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
14208   cat >>confdefs.h <<_ACEOF
14209 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
14210 _ACEOF
14211  for ac_func in krb5_free_error_message
14212 do :
14213   ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
14214 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
14215   cat >>confdefs.h <<_ACEOF
14216 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
14217 _ACEOF
14218
14219 fi
14220 done
14221
14222 else
14223   for ac_func in krb5_get_error_string
14224 do :
14225   ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
14226 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
14227   cat >>confdefs.h <<_ACEOF
14228 #define HAVE_KRB5_GET_ERROR_STRING 1
14229 _ACEOF
14230
14231 else
14232   for ac_func in krb5_get_err_txt
14233 do :
14234   ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
14235 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
14236   cat >>confdefs.h <<_ACEOF
14237 #define HAVE_KRB5_GET_ERR_TXT 1
14238 _ACEOF
14239
14240 else
14241   for ac_func in krb5_svc_get_msg
14242 do :
14243   ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
14244 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
14245   cat >>confdefs.h <<_ACEOF
14246 #define HAVE_KRB5_SVC_GET_MSG 1
14247 _ACEOF
14248  for ac_header in ibm_svc/krb5_svc.h
14249 do :
14250   ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
14251 #if HAVE_KRB5_H
14252 # include <krb5.h>
14253 #else
14254 # include <krb5/krb5.h>
14255 #endif
14256
14257 "
14258 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
14259   cat >>confdefs.h <<_ACEOF
14260 #define HAVE_IBM_SVC_KRB5_SVC_H 1
14261 _ACEOF
14262
14263 fi
14264
14265 done
14266
14267 else
14268   for ac_header in et/com_err.h
14269 do :
14270   ac_fn_c_check_header_mongrel "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default"
14271 if test "x$ac_cv_header_et_com_err_h" = xyes; then :
14272   cat >>confdefs.h <<_ACEOF
14273 #define HAVE_ET_COM_ERR_H 1
14274 _ACEOF
14275
14276 fi
14277
14278 done
14279
14280 fi
14281 done
14282
14283 fi
14284 done
14285
14286 fi
14287 done
14288
14289 fi
14290 done
14291
14292      CPPFLAGS="$rra_krb5_save_CPPFLAGS"
14293  LDFLAGS="$rra_krb5_save_LDFLAGS"
14294  LIBS="$rra_krb5_save_LIBS"
14295 else
14296   if test x"$rra_krb5_libdir" != x; then :
14297   KRB5_LDFLAGS="-L$rra_krb5_libdir"
14298 else
14299   if test x"$rra_krb5_root" != x; then :
14300
14301  if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
14302   if test x"" = x; then :
14303   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
14304 else
14305   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
14306 fi
14307 else
14308   if test x"" = x; then :
14309   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
14310 else
14311   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
14312 fi
14313 fi
14314  KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
14315 fi
14316 fi
14317  if test x"$rra_krb5_includedir" != x; then :
14318   KRB5_CPPFLAGS="-I$rra_krb5_includedir"
14319 else
14320   if test x"$rra_krb5_root" != x; then :
14321   if test x"$rra_krb5_root" != x/usr; then :
14322   KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
14323 fi
14324 fi
14325 fi
14326      rra_krb5_save_CPPFLAGS="$CPPFLAGS"
14327  rra_krb5_save_LDFLAGS="$LDFLAGS"
14328  rra_krb5_save_LIBS="$LIBS"
14329  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
14330  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
14331  LIBS="$KRB5_LIBS $LIBS"
14332  rra_krb5_extra=
14333  LIBS=
14334  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
14335 $as_echo_n "checking for library containing res_search... " >&6; }
14336 if ${ac_cv_search_res_search+:} false; then :
14337   $as_echo_n "(cached) " >&6
14338 else
14339   ac_func_search_save_LIBS=$LIBS
14340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14341 /* end confdefs.h.  */
14342
14343 /* Override any GCC internal prototype to avoid an error.
14344    Use char because int might match the return type of a GCC
14345    builtin and then its argument prototype would still apply.  */
14346 #ifdef __cplusplus
14347 extern "C"
14348 #endif
14349 char res_search ();
14350 int
14351 main ()
14352 {
14353 return res_search ();
14354   ;
14355   return 0;
14356 }
14357 _ACEOF
14358 for ac_lib in '' resolv; do
14359   if test -z "$ac_lib"; then
14360     ac_res="none required"
14361   else
14362     ac_res=-l$ac_lib
14363     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14364   fi
14365   if ac_fn_c_try_link "$LINENO"; then :
14366   ac_cv_search_res_search=$ac_res
14367 fi
14368 rm -f core conftest.err conftest.$ac_objext \
14369     conftest$ac_exeext
14370   if ${ac_cv_search_res_search+:} false; then :
14371   break
14372 fi
14373 done
14374 if ${ac_cv_search_res_search+:} false; then :
14375
14376 else
14377   ac_cv_search_res_search=no
14378 fi
14379 rm conftest.$ac_ext
14380 LIBS=$ac_func_search_save_LIBS
14381 fi
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
14383 $as_echo "$ac_cv_search_res_search" >&6; }
14384 ac_res=$ac_cv_search_res_search
14385 if test "$ac_res" != no; then :
14386   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14387
14388 else
14389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
14390 $as_echo_n "checking for library containing __res_search... " >&6; }
14391 if ${ac_cv_search___res_search+:} false; then :
14392   $as_echo_n "(cached) " >&6
14393 else
14394   ac_func_search_save_LIBS=$LIBS
14395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14396 /* end confdefs.h.  */
14397
14398 /* Override any GCC internal prototype to avoid an error.
14399    Use char because int might match the return type of a GCC
14400    builtin and then its argument prototype would still apply.  */
14401 #ifdef __cplusplus
14402 extern "C"
14403 #endif
14404 char __res_search ();
14405 int
14406 main ()
14407 {
14408 return __res_search ();
14409   ;
14410   return 0;
14411 }
14412 _ACEOF
14413 for ac_lib in '' resolv; do
14414   if test -z "$ac_lib"; then
14415     ac_res="none required"
14416   else
14417     ac_res=-l$ac_lib
14418     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14419   fi
14420   if ac_fn_c_try_link "$LINENO"; then :
14421   ac_cv_search___res_search=$ac_res
14422 fi
14423 rm -f core conftest.err conftest.$ac_objext \
14424     conftest$ac_exeext
14425   if ${ac_cv_search___res_search+:} false; then :
14426   break
14427 fi
14428 done
14429 if ${ac_cv_search___res_search+:} false; then :
14430
14431 else
14432   ac_cv_search___res_search=no
14433 fi
14434 rm conftest.$ac_ext
14435 LIBS=$ac_func_search_save_LIBS
14436 fi
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
14438 $as_echo "$ac_cv_search___res_search" >&6; }
14439 ac_res=$ac_cv_search___res_search
14440 if test "$ac_res" != no; then :
14441   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14442
14443 fi
14444
14445 fi
14446
14447  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14448 $as_echo_n "checking for library containing gethostbyname... " >&6; }
14449 if ${ac_cv_search_gethostbyname+:} false; then :
14450   $as_echo_n "(cached) " >&6
14451 else
14452   ac_func_search_save_LIBS=$LIBS
14453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14454 /* end confdefs.h.  */
14455
14456 /* Override any GCC internal prototype to avoid an error.
14457    Use char because int might match the return type of a GCC
14458    builtin and then its argument prototype would still apply.  */
14459 #ifdef __cplusplus
14460 extern "C"
14461 #endif
14462 char gethostbyname ();
14463 int
14464 main ()
14465 {
14466 return gethostbyname ();
14467   ;
14468   return 0;
14469 }
14470 _ACEOF
14471 for ac_lib in '' nsl; do
14472   if test -z "$ac_lib"; then
14473     ac_res="none required"
14474   else
14475     ac_res=-l$ac_lib
14476     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14477   fi
14478   if ac_fn_c_try_link "$LINENO"; then :
14479   ac_cv_search_gethostbyname=$ac_res
14480 fi
14481 rm -f core conftest.err conftest.$ac_objext \
14482     conftest$ac_exeext
14483   if ${ac_cv_search_gethostbyname+:} false; then :
14484   break
14485 fi
14486 done
14487 if ${ac_cv_search_gethostbyname+:} false; then :
14488
14489 else
14490   ac_cv_search_gethostbyname=no
14491 fi
14492 rm conftest.$ac_ext
14493 LIBS=$ac_func_search_save_LIBS
14494 fi
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14496 $as_echo "$ac_cv_search_gethostbyname" >&6; }
14497 ac_res=$ac_cv_search_gethostbyname
14498 if test "$ac_res" != no; then :
14499   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14500
14501 fi
14502
14503  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
14504 $as_echo_n "checking for library containing socket... " >&6; }
14505 if ${ac_cv_search_socket+:} false; then :
14506   $as_echo_n "(cached) " >&6
14507 else
14508   ac_func_search_save_LIBS=$LIBS
14509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14510 /* end confdefs.h.  */
14511
14512 /* Override any GCC internal prototype to avoid an error.
14513    Use char because int might match the return type of a GCC
14514    builtin and then its argument prototype would still apply.  */
14515 #ifdef __cplusplus
14516 extern "C"
14517 #endif
14518 char socket ();
14519 int
14520 main ()
14521 {
14522 return socket ();
14523   ;
14524   return 0;
14525 }
14526 _ACEOF
14527 for ac_lib in '' socket; do
14528   if test -z "$ac_lib"; then
14529     ac_res="none required"
14530   else
14531     ac_res=-l$ac_lib
14532     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14533   fi
14534   if ac_fn_c_try_link "$LINENO"; then :
14535   ac_cv_search_socket=$ac_res
14536 fi
14537 rm -f core conftest.err conftest.$ac_objext \
14538     conftest$ac_exeext
14539   if ${ac_cv_search_socket+:} false; then :
14540   break
14541 fi
14542 done
14543 if ${ac_cv_search_socket+:} false; then :
14544
14545 else
14546   ac_cv_search_socket=no
14547 fi
14548 rm conftest.$ac_ext
14549 LIBS=$ac_func_search_save_LIBS
14550 fi
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14552 $as_echo "$ac_cv_search_socket" >&6; }
14553 ac_res=$ac_cv_search_socket
14554 if test "$ac_res" != no; then :
14555   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14556
14557 else
14558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
14559 $as_echo_n "checking for socket in -lnsl... " >&6; }
14560 if ${ac_cv_lib_nsl_socket+:} false; then :
14561   $as_echo_n "(cached) " >&6
14562 else
14563   ac_check_lib_save_LIBS=$LIBS
14564 LIBS="-lnsl -lsocket $LIBS"
14565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14566 /* end confdefs.h.  */
14567
14568 /* Override any GCC internal prototype to avoid an error.
14569    Use char because int might match the return type of a GCC
14570    builtin and then its argument prototype would still apply.  */
14571 #ifdef __cplusplus
14572 extern "C"
14573 #endif
14574 char socket ();
14575 int
14576 main ()
14577 {
14578 return socket ();
14579   ;
14580   return 0;
14581 }
14582 _ACEOF
14583 if ac_fn_c_try_link "$LINENO"; then :
14584   ac_cv_lib_nsl_socket=yes
14585 else
14586   ac_cv_lib_nsl_socket=no
14587 fi
14588 rm -f core conftest.err conftest.$ac_objext \
14589     conftest$ac_exeext conftest.$ac_ext
14590 LIBS=$ac_check_lib_save_LIBS
14591 fi
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
14593 $as_echo "$ac_cv_lib_nsl_socket" >&6; }
14594 if test "x$ac_cv_lib_nsl_socket" = xyes; then :
14595   LIBS="-lnsl -lsocket $LIBS"
14596 fi
14597
14598 fi
14599
14600  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
14601 $as_echo_n "checking for library containing crypt... " >&6; }
14602 if ${ac_cv_search_crypt+:} false; then :
14603   $as_echo_n "(cached) " >&6
14604 else
14605   ac_func_search_save_LIBS=$LIBS
14606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14607 /* end confdefs.h.  */
14608
14609 /* Override any GCC internal prototype to avoid an error.
14610    Use char because int might match the return type of a GCC
14611    builtin and then its argument prototype would still apply.  */
14612 #ifdef __cplusplus
14613 extern "C"
14614 #endif
14615 char crypt ();
14616 int
14617 main ()
14618 {
14619 return crypt ();
14620   ;
14621   return 0;
14622 }
14623 _ACEOF
14624 for ac_lib in '' crypt; do
14625   if test -z "$ac_lib"; then
14626     ac_res="none required"
14627   else
14628     ac_res=-l$ac_lib
14629     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14630   fi
14631   if ac_fn_c_try_link "$LINENO"; then :
14632   ac_cv_search_crypt=$ac_res
14633 fi
14634 rm -f core conftest.err conftest.$ac_objext \
14635     conftest$ac_exeext
14636   if ${ac_cv_search_crypt+:} false; then :
14637   break
14638 fi
14639 done
14640 if ${ac_cv_search_crypt+:} false; then :
14641
14642 else
14643   ac_cv_search_crypt=no
14644 fi
14645 rm conftest.$ac_ext
14646 LIBS=$ac_func_search_save_LIBS
14647 fi
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
14649 $as_echo "$ac_cv_search_crypt" >&6; }
14650 ac_res=$ac_cv_search_crypt
14651 if test "$ac_res" != no; then :
14652   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14653
14654 fi
14655
14656  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
14657 $as_echo_n "checking for library containing roken_concat... " >&6; }
14658 if ${ac_cv_search_roken_concat+:} false; then :
14659   $as_echo_n "(cached) " >&6
14660 else
14661   ac_func_search_save_LIBS=$LIBS
14662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14663 /* end confdefs.h.  */
14664
14665 /* Override any GCC internal prototype to avoid an error.
14666    Use char because int might match the return type of a GCC
14667    builtin and then its argument prototype would still apply.  */
14668 #ifdef __cplusplus
14669 extern "C"
14670 #endif
14671 char roken_concat ();
14672 int
14673 main ()
14674 {
14675 return roken_concat ();
14676   ;
14677   return 0;
14678 }
14679 _ACEOF
14680 for ac_lib in '' roken; do
14681   if test -z "$ac_lib"; then
14682     ac_res="none required"
14683   else
14684     ac_res=-l$ac_lib
14685     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14686   fi
14687   if ac_fn_c_try_link "$LINENO"; then :
14688   ac_cv_search_roken_concat=$ac_res
14689 fi
14690 rm -f core conftest.err conftest.$ac_objext \
14691     conftest$ac_exeext
14692   if ${ac_cv_search_roken_concat+:} false; then :
14693   break
14694 fi
14695 done
14696 if ${ac_cv_search_roken_concat+:} false; then :
14697
14698 else
14699   ac_cv_search_roken_concat=no
14700 fi
14701 rm conftest.$ac_ext
14702 LIBS=$ac_func_search_save_LIBS
14703 fi
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
14705 $as_echo "$ac_cv_search_roken_concat" >&6; }
14706 ac_res=$ac_cv_search_roken_concat
14707 if test "$ac_res" != no; then :
14708   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14709
14710 fi
14711
14712  rra_krb5_extra="$LIBS"
14713  LIBS="$rra_krb5_save_LIBS"
14714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14715 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14716 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
14717   $as_echo_n "(cached) " >&6
14718 else
14719   ac_check_lib_save_LIBS=$LIBS
14720 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
14721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14722 /* end confdefs.h.  */
14723
14724 /* Override any GCC internal prototype to avoid an error.
14725    Use char because int might match the return type of a GCC
14726    builtin and then its argument prototype would still apply.  */
14727 #ifdef __cplusplus
14728 extern "C"
14729 #endif
14730 char krb5_init_context ();
14731 int
14732 main ()
14733 {
14734 return krb5_init_context ();
14735   ;
14736   return 0;
14737 }
14738 _ACEOF
14739 if ac_fn_c_try_link "$LINENO"; then :
14740   ac_cv_lib_krb5_krb5_init_context=yes
14741 else
14742   ac_cv_lib_krb5_krb5_init_context=no
14743 fi
14744 rm -f core conftest.err conftest.$ac_objext \
14745     conftest$ac_exeext conftest.$ac_ext
14746 LIBS=$ac_check_lib_save_LIBS
14747 fi
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14749 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14750 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
14751   KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
14752 else
14753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
14754 $as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
14755 if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
14756   $as_echo_n "(cached) " >&6
14757 else
14758   ac_check_lib_save_LIBS=$LIBS
14759 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
14760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14761 /* end confdefs.h.  */
14762
14763 /* Override any GCC internal prototype to avoid an error.
14764    Use char because int might match the return type of a GCC
14765    builtin and then its argument prototype would still apply.  */
14766 #ifdef __cplusplus
14767 extern "C"
14768 #endif
14769 char krb5int_getspecific ();
14770 int
14771 main ()
14772 {
14773 return krb5int_getspecific ();
14774   ;
14775   return 0;
14776 }
14777 _ACEOF
14778 if ac_fn_c_try_link "$LINENO"; then :
14779   ac_cv_lib_krb5support_krb5int_getspecific=yes
14780 else
14781   ac_cv_lib_krb5support_krb5int_getspecific=no
14782 fi
14783 rm -f core conftest.err conftest.$ac_objext \
14784     conftest$ac_exeext conftest.$ac_ext
14785 LIBS=$ac_check_lib_save_LIBS
14786 fi
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
14788 $as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
14789 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
14790   rra_krb5_extra="-lkrb5support $rra_krb5_extra"
14791 else
14792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
14793 $as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; }
14794 if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then :
14795   $as_echo_n "(cached) " >&6
14796 else
14797   ac_check_lib_save_LIBS=$LIBS
14798 LIBS="-lpthreads  $LIBS"
14799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14800 /* end confdefs.h.  */
14801
14802 /* Override any GCC internal prototype to avoid an error.
14803    Use char because int might match the return type of a GCC
14804    builtin and then its argument prototype would still apply.  */
14805 #ifdef __cplusplus
14806 extern "C"
14807 #endif
14808 char pthread_setspecific ();
14809 int
14810 main ()
14811 {
14812 return pthread_setspecific ();
14813   ;
14814   return 0;
14815 }
14816 _ACEOF
14817 if ac_fn_c_try_link "$LINENO"; then :
14818   ac_cv_lib_pthreads_pthread_setspecific=yes
14819 else
14820   ac_cv_lib_pthreads_pthread_setspecific=no
14821 fi
14822 rm -f core conftest.err conftest.$ac_objext \
14823     conftest$ac_exeext conftest.$ac_ext
14824 LIBS=$ac_check_lib_save_LIBS
14825 fi
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
14827 $as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
14828 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then :
14829   rra_krb5_pthread="-lpthreads"
14830 else
14831   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
14832 $as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; }
14833 if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then :
14834   $as_echo_n "(cached) " >&6
14835 else
14836   ac_check_lib_save_LIBS=$LIBS
14837 LIBS="-lpthread  $LIBS"
14838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14839 /* end confdefs.h.  */
14840
14841 /* Override any GCC internal prototype to avoid an error.
14842    Use char because int might match the return type of a GCC
14843    builtin and then its argument prototype would still apply.  */
14844 #ifdef __cplusplus
14845 extern "C"
14846 #endif
14847 char pthread_setspecific ();
14848 int
14849 main ()
14850 {
14851 return pthread_setspecific ();
14852   ;
14853   return 0;
14854 }
14855 _ACEOF
14856 if ac_fn_c_try_link "$LINENO"; then :
14857   ac_cv_lib_pthread_pthread_setspecific=yes
14858 else
14859   ac_cv_lib_pthread_pthread_setspecific=no
14860 fi
14861 rm -f core conftest.err conftest.$ac_objext \
14862     conftest$ac_exeext conftest.$ac_ext
14863 LIBS=$ac_check_lib_save_LIBS
14864 fi
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
14866 $as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
14867 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then :
14868   rra_krb5_pthread="-lpthread"
14869 fi
14870
14871 fi
14872
14873          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
14874 $as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; }
14875 if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then :
14876   $as_echo_n "(cached) " >&6
14877 else
14878   ac_check_lib_save_LIBS=$LIBS
14879 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
14880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14881 /* end confdefs.h.  */
14882
14883 /* Override any GCC internal prototype to avoid an error.
14884    Use char because int might match the return type of a GCC
14885    builtin and then its argument prototype would still apply.  */
14886 #ifdef __cplusplus
14887 extern "C"
14888 #endif
14889 char krb5int_setspecific ();
14890 int
14891 main ()
14892 {
14893 return krb5int_setspecific ();
14894   ;
14895   return 0;
14896 }
14897 _ACEOF
14898 if ac_fn_c_try_link "$LINENO"; then :
14899   ac_cv_lib_krb5support_krb5int_setspecific=yes
14900 else
14901   ac_cv_lib_krb5support_krb5int_setspecific=no
14902 fi
14903 rm -f core conftest.err conftest.$ac_objext \
14904     conftest$ac_exeext conftest.$ac_ext
14905 LIBS=$ac_check_lib_save_LIBS
14906 fi
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
14908 $as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
14909 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then :
14910   rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
14911 fi
14912
14913 fi
14914
14915      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
14916 $as_echo_n "checking for error_message in -lcom_err... " >&6; }
14917 if ${ac_cv_lib_com_err_error_message+:} false; then :
14918   $as_echo_n "(cached) " >&6
14919 else
14920   ac_check_lib_save_LIBS=$LIBS
14921 LIBS="-lcom_err $rra_krb5_extra $LIBS"
14922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14923 /* end confdefs.h.  */
14924
14925 /* Override any GCC internal prototype to avoid an error.
14926    Use char because int might match the return type of a GCC
14927    builtin and then its argument prototype would still apply.  */
14928 #ifdef __cplusplus
14929 extern "C"
14930 #endif
14931 char error_message ();
14932 int
14933 main ()
14934 {
14935 return error_message ();
14936   ;
14937   return 0;
14938 }
14939 _ACEOF
14940 if ac_fn_c_try_link "$LINENO"; then :
14941   ac_cv_lib_com_err_error_message=yes
14942 else
14943   ac_cv_lib_com_err_error_message=no
14944 fi
14945 rm -f core conftest.err conftest.$ac_objext \
14946     conftest$ac_exeext conftest.$ac_ext
14947 LIBS=$ac_check_lib_save_LIBS
14948 fi
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
14950 $as_echo "$ac_cv_lib_com_err_error_message" >&6; }
14951 if test "x$ac_cv_lib_com_err_error_message" = xyes; then :
14952   rra_krb5_extra="-lcom_err $rra_krb5_extra"
14953 fi
14954
14955      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
14956 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
14957 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
14958   $as_echo_n "(cached) " >&6
14959 else
14960   ac_check_lib_save_LIBS=$LIBS
14961 LIBS="-lksvc $rra_krb5_extra $LIBS"
14962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14963 /* end confdefs.h.  */
14964
14965 /* Override any GCC internal prototype to avoid an error.
14966    Use char because int might match the return type of a GCC
14967    builtin and then its argument prototype would still apply.  */
14968 #ifdef __cplusplus
14969 extern "C"
14970 #endif
14971 char krb5_svc_get_msg ();
14972 int
14973 main ()
14974 {
14975 return krb5_svc_get_msg ();
14976   ;
14977   return 0;
14978 }
14979 _ACEOF
14980 if ac_fn_c_try_link "$LINENO"; then :
14981   ac_cv_lib_ksvc_krb5_svc_get_msg=yes
14982 else
14983   ac_cv_lib_ksvc_krb5_svc_get_msg=no
14984 fi
14985 rm -f core conftest.err conftest.$ac_objext \
14986     conftest$ac_exeext conftest.$ac_ext
14987 LIBS=$ac_check_lib_save_LIBS
14988 fi
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
14990 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
14991 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
14992   rra_krb5_extra="-lksvc $rra_krb5_extra"
14993 fi
14994
14995      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
14996 $as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
14997 if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then :
14998   $as_echo_n "(cached) " >&6
14999 else
15000   ac_check_lib_save_LIBS=$LIBS
15001 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
15002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15003 /* end confdefs.h.  */
15004
15005 /* Override any GCC internal prototype to avoid an error.
15006    Use char because int might match the return type of a GCC
15007    builtin and then its argument prototype would still apply.  */
15008 #ifdef __cplusplus
15009 extern "C"
15010 #endif
15011 char krb5int_hash_md5 ();
15012 int
15013 main ()
15014 {
15015 return krb5int_hash_md5 ();
15016   ;
15017   return 0;
15018 }
15019 _ACEOF
15020 if ac_fn_c_try_link "$LINENO"; then :
15021   ac_cv_lib_k5crypto_krb5int_hash_md5=yes
15022 else
15023   ac_cv_lib_k5crypto_krb5int_hash_md5=no
15024 fi
15025 rm -f core conftest.err conftest.$ac_objext \
15026     conftest$ac_exeext conftest.$ac_ext
15027 LIBS=$ac_check_lib_save_LIBS
15028 fi
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
15030 $as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
15031 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then :
15032   rra_krb5_extra="-lk5crypto $rra_krb5_extra"
15033 fi
15034
15035      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
15036 $as_echo_n "checking for profile_get_values in -lk5profile... " >&6; }
15037 if ${ac_cv_lib_k5profile_profile_get_values+:} false; then :
15038   $as_echo_n "(cached) " >&6
15039 else
15040   ac_check_lib_save_LIBS=$LIBS
15041 LIBS="-lk5profile $rra_krb5_extra $LIBS"
15042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043 /* end confdefs.h.  */
15044
15045 /* Override any GCC internal prototype to avoid an error.
15046    Use char because int might match the return type of a GCC
15047    builtin and then its argument prototype would still apply.  */
15048 #ifdef __cplusplus
15049 extern "C"
15050 #endif
15051 char profile_get_values ();
15052 int
15053 main ()
15054 {
15055 return profile_get_values ();
15056   ;
15057   return 0;
15058 }
15059 _ACEOF
15060 if ac_fn_c_try_link "$LINENO"; then :
15061   ac_cv_lib_k5profile_profile_get_values=yes
15062 else
15063   ac_cv_lib_k5profile_profile_get_values=no
15064 fi
15065 rm -f core conftest.err conftest.$ac_objext \
15066     conftest$ac_exeext conftest.$ac_ext
15067 LIBS=$ac_check_lib_save_LIBS
15068 fi
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
15070 $as_echo "$ac_cv_lib_k5profile_profile_get_values" >&6; }
15071 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes; then :
15072   rra_krb5_extra="-lk5profile $rra_krb5_extra"
15073 fi
15074
15075      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
15076 $as_echo_n "checking for krb5_cc_default in -lkrb5... " >&6; }
15077 if ${ac_cv_lib_krb5_krb5_cc_default+:} false; then :
15078   $as_echo_n "(cached) " >&6
15079 else
15080   ac_check_lib_save_LIBS=$LIBS
15081 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
15082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15083 /* end confdefs.h.  */
15084
15085 /* Override any GCC internal prototype to avoid an error.
15086    Use char because int might match the return type of a GCC
15087    builtin and then its argument prototype would still apply.  */
15088 #ifdef __cplusplus
15089 extern "C"
15090 #endif
15091 char krb5_cc_default ();
15092 int
15093 main ()
15094 {
15095 return krb5_cc_default ();
15096   ;
15097   return 0;
15098 }
15099 _ACEOF
15100 if ac_fn_c_try_link "$LINENO"; then :
15101   ac_cv_lib_krb5_krb5_cc_default=yes
15102 else
15103   ac_cv_lib_krb5_krb5_cc_default=no
15104 fi
15105 rm -f core conftest.err conftest.$ac_objext \
15106     conftest$ac_exeext conftest.$ac_ext
15107 LIBS=$ac_check_lib_save_LIBS
15108 fi
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
15110 $as_echo "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
15111 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes; then :
15112   KRB5_LIBS="-lkrb5 $rra_krb5_extra"
15113 else
15114   if test x"true" = xtrue; then :
15115   as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
15116 fi
15117 fi
15118
15119 fi
15120
15121  LIBS="$KRB5_LIBS $LIBS"
15122  if test x"$rra_krb5_incroot" = x; then :
15123   for ac_header in krb5.h krb5/krb5.h
15124 do :
15125   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15126 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15127 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15128   cat >>confdefs.h <<_ACEOF
15129 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15130 _ACEOF
15131
15132 fi
15133
15134 done
15135
15136 else
15137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
15138 $as_echo_n "checking for krb5.h... " >&6; }
15139  if test -f "${rra_krb5_incroot}/krb5.h"; then :
15140
15141 cat >>confdefs.h <<_ACEOF
15142 #define HAVE_KRB5_H 1
15143 _ACEOF
15144
15145      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15146 $as_echo "yes" >&6; }
15147 else
15148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15149 $as_echo "no" >&6; }
15150 fi
15151       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
15152 $as_echo_n "checking for krb5/krb5.h... " >&6; }
15153  if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
15154
15155 cat >>confdefs.h <<_ACEOF
15156 #define HAVE_KRB5_KRB5_H 1
15157 _ACEOF
15158
15159      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15160 $as_echo "yes" >&6; }
15161 else
15162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15163 $as_echo "no" >&6; }
15164 fi
15165 fi
15166  for ac_func in krb5_get_error_message
15167 do :
15168   ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
15169 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
15170   cat >>confdefs.h <<_ACEOF
15171 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
15172 _ACEOF
15173  for ac_func in krb5_free_error_message
15174 do :
15175   ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
15176 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
15177   cat >>confdefs.h <<_ACEOF
15178 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
15179 _ACEOF
15180
15181 fi
15182 done
15183
15184 else
15185   for ac_func in krb5_get_error_string
15186 do :
15187   ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
15188 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
15189   cat >>confdefs.h <<_ACEOF
15190 #define HAVE_KRB5_GET_ERROR_STRING 1
15191 _ACEOF
15192
15193 else
15194   for ac_func in krb5_get_err_txt
15195 do :
15196   ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
15197 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
15198   cat >>confdefs.h <<_ACEOF
15199 #define HAVE_KRB5_GET_ERR_TXT 1
15200 _ACEOF
15201
15202 else
15203   for ac_func in krb5_svc_get_msg
15204 do :
15205   ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
15206 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
15207   cat >>confdefs.h <<_ACEOF
15208 #define HAVE_KRB5_SVC_GET_MSG 1
15209 _ACEOF
15210  for ac_header in ibm_svc/krb5_svc.h
15211 do :
15212   ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
15213 #if HAVE_KRB5_H
15214 # include <krb5.h>
15215 #else
15216 # include <krb5/krb5.h>
15217 #endif
15218
15219 "
15220 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
15221   cat >>confdefs.h <<_ACEOF
15222 #define HAVE_IBM_SVC_KRB5_SVC_H 1
15223 _ACEOF
15224
15225 fi
15226
15227 done
15228
15229 else
15230   for ac_header in et/com_err.h
15231 do :
15232   ac_fn_c_check_header_mongrel "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default"
15233 if test "x$ac_cv_header_et_com_err_h" = xyes; then :
15234   cat >>confdefs.h <<_ACEOF
15235 #define HAVE_ET_COM_ERR_H 1
15236 _ACEOF
15237
15238 fi
15239
15240 done
15241
15242 fi
15243 done
15244
15245 fi
15246 done
15247
15248 fi
15249 done
15250
15251 fi
15252 done
15253
15254  CPPFLAGS="$rra_krb5_save_CPPFLAGS"
15255  LDFLAGS="$rra_krb5_save_LDFLAGS"
15256  LIBS="$rra_krb5_save_LIBS"
15257 fi
15258 else
15259   if test x"$rra_krb5_libdir" != x; then :
15260   KRB5_LDFLAGS="-L$rra_krb5_libdir"
15261 else
15262   if test x"$rra_krb5_root" != x; then :
15263
15264  if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
15265   if test x"" = x; then :
15266   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
15267 else
15268   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
15269 fi
15270 else
15271   if test x"" = x; then :
15272   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
15273 else
15274   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
15275 fi
15276 fi
15277  KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
15278 fi
15279 fi
15280  if test x"$rra_krb5_includedir" != x; then :
15281   KRB5_CPPFLAGS="-I$rra_krb5_includedir"
15282 else
15283   if test x"$rra_krb5_root" != x; then :
15284   if test x"$rra_krb5_root" != x/usr; then :
15285   KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
15286 fi
15287 fi
15288 fi
15289          rra_krb5_save_CPPFLAGS="$CPPFLAGS"
15290  rra_krb5_save_LDFLAGS="$LDFLAGS"
15291  rra_krb5_save_LIBS="$LIBS"
15292  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
15293  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
15294  LIBS="$KRB5_LIBS $LIBS"
15295  rra_krb5_extra=
15296  LIBS=
15297  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
15298 $as_echo_n "checking for library containing res_search... " >&6; }
15299 if ${ac_cv_search_res_search+:} false; then :
15300   $as_echo_n "(cached) " >&6
15301 else
15302   ac_func_search_save_LIBS=$LIBS
15303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15304 /* end confdefs.h.  */
15305
15306 /* Override any GCC internal prototype to avoid an error.
15307    Use char because int might match the return type of a GCC
15308    builtin and then its argument prototype would still apply.  */
15309 #ifdef __cplusplus
15310 extern "C"
15311 #endif
15312 char res_search ();
15313 int
15314 main ()
15315 {
15316 return res_search ();
15317   ;
15318   return 0;
15319 }
15320 _ACEOF
15321 for ac_lib in '' resolv; do
15322   if test -z "$ac_lib"; then
15323     ac_res="none required"
15324   else
15325     ac_res=-l$ac_lib
15326     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15327   fi
15328   if ac_fn_c_try_link "$LINENO"; then :
15329   ac_cv_search_res_search=$ac_res
15330 fi
15331 rm -f core conftest.err conftest.$ac_objext \
15332     conftest$ac_exeext
15333   if ${ac_cv_search_res_search+:} false; then :
15334   break
15335 fi
15336 done
15337 if ${ac_cv_search_res_search+:} false; then :
15338
15339 else
15340   ac_cv_search_res_search=no
15341 fi
15342 rm conftest.$ac_ext
15343 LIBS=$ac_func_search_save_LIBS
15344 fi
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
15346 $as_echo "$ac_cv_search_res_search" >&6; }
15347 ac_res=$ac_cv_search_res_search
15348 if test "$ac_res" != no; then :
15349   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15350
15351 else
15352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
15353 $as_echo_n "checking for library containing __res_search... " >&6; }
15354 if ${ac_cv_search___res_search+:} false; then :
15355   $as_echo_n "(cached) " >&6
15356 else
15357   ac_func_search_save_LIBS=$LIBS
15358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15359 /* end confdefs.h.  */
15360
15361 /* Override any GCC internal prototype to avoid an error.
15362    Use char because int might match the return type of a GCC
15363    builtin and then its argument prototype would still apply.  */
15364 #ifdef __cplusplus
15365 extern "C"
15366 #endif
15367 char __res_search ();
15368 int
15369 main ()
15370 {
15371 return __res_search ();
15372   ;
15373   return 0;
15374 }
15375 _ACEOF
15376 for ac_lib in '' resolv; do
15377   if test -z "$ac_lib"; then
15378     ac_res="none required"
15379   else
15380     ac_res=-l$ac_lib
15381     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15382   fi
15383   if ac_fn_c_try_link "$LINENO"; then :
15384   ac_cv_search___res_search=$ac_res
15385 fi
15386 rm -f core conftest.err conftest.$ac_objext \
15387     conftest$ac_exeext
15388   if ${ac_cv_search___res_search+:} false; then :
15389   break
15390 fi
15391 done
15392 if ${ac_cv_search___res_search+:} false; then :
15393
15394 else
15395   ac_cv_search___res_search=no
15396 fi
15397 rm conftest.$ac_ext
15398 LIBS=$ac_func_search_save_LIBS
15399 fi
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
15401 $as_echo "$ac_cv_search___res_search" >&6; }
15402 ac_res=$ac_cv_search___res_search
15403 if test "$ac_res" != no; then :
15404   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15405
15406 fi
15407
15408 fi
15409
15410  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
15411 $as_echo_n "checking for library containing gethostbyname... " >&6; }
15412 if ${ac_cv_search_gethostbyname+:} false; then :
15413   $as_echo_n "(cached) " >&6
15414 else
15415   ac_func_search_save_LIBS=$LIBS
15416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15417 /* end confdefs.h.  */
15418
15419 /* Override any GCC internal prototype to avoid an error.
15420    Use char because int might match the return type of a GCC
15421    builtin and then its argument prototype would still apply.  */
15422 #ifdef __cplusplus
15423 extern "C"
15424 #endif
15425 char gethostbyname ();
15426 int
15427 main ()
15428 {
15429 return gethostbyname ();
15430   ;
15431   return 0;
15432 }
15433 _ACEOF
15434 for ac_lib in '' nsl; do
15435   if test -z "$ac_lib"; then
15436     ac_res="none required"
15437   else
15438     ac_res=-l$ac_lib
15439     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15440   fi
15441   if ac_fn_c_try_link "$LINENO"; then :
15442   ac_cv_search_gethostbyname=$ac_res
15443 fi
15444 rm -f core conftest.err conftest.$ac_objext \
15445     conftest$ac_exeext
15446   if ${ac_cv_search_gethostbyname+:} false; then :
15447   break
15448 fi
15449 done
15450 if ${ac_cv_search_gethostbyname+:} false; then :
15451
15452 else
15453   ac_cv_search_gethostbyname=no
15454 fi
15455 rm conftest.$ac_ext
15456 LIBS=$ac_func_search_save_LIBS
15457 fi
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
15459 $as_echo "$ac_cv_search_gethostbyname" >&6; }
15460 ac_res=$ac_cv_search_gethostbyname
15461 if test "$ac_res" != no; then :
15462   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15463
15464 fi
15465
15466  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
15467 $as_echo_n "checking for library containing socket... " >&6; }
15468 if ${ac_cv_search_socket+:} false; then :
15469   $as_echo_n "(cached) " >&6
15470 else
15471   ac_func_search_save_LIBS=$LIBS
15472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15473 /* end confdefs.h.  */
15474
15475 /* Override any GCC internal prototype to avoid an error.
15476    Use char because int might match the return type of a GCC
15477    builtin and then its argument prototype would still apply.  */
15478 #ifdef __cplusplus
15479 extern "C"
15480 #endif
15481 char socket ();
15482 int
15483 main ()
15484 {
15485 return socket ();
15486   ;
15487   return 0;
15488 }
15489 _ACEOF
15490 for ac_lib in '' socket; do
15491   if test -z "$ac_lib"; then
15492     ac_res="none required"
15493   else
15494     ac_res=-l$ac_lib
15495     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15496   fi
15497   if ac_fn_c_try_link "$LINENO"; then :
15498   ac_cv_search_socket=$ac_res
15499 fi
15500 rm -f core conftest.err conftest.$ac_objext \
15501     conftest$ac_exeext
15502   if ${ac_cv_search_socket+:} false; then :
15503   break
15504 fi
15505 done
15506 if ${ac_cv_search_socket+:} false; then :
15507
15508 else
15509   ac_cv_search_socket=no
15510 fi
15511 rm conftest.$ac_ext
15512 LIBS=$ac_func_search_save_LIBS
15513 fi
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
15515 $as_echo "$ac_cv_search_socket" >&6; }
15516 ac_res=$ac_cv_search_socket
15517 if test "$ac_res" != no; then :
15518   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15519
15520 else
15521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
15522 $as_echo_n "checking for socket in -lnsl... " >&6; }
15523 if ${ac_cv_lib_nsl_socket+:} false; then :
15524   $as_echo_n "(cached) " >&6
15525 else
15526   ac_check_lib_save_LIBS=$LIBS
15527 LIBS="-lnsl -lsocket $LIBS"
15528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15529 /* end confdefs.h.  */
15530
15531 /* Override any GCC internal prototype to avoid an error.
15532    Use char because int might match the return type of a GCC
15533    builtin and then its argument prototype would still apply.  */
15534 #ifdef __cplusplus
15535 extern "C"
15536 #endif
15537 char socket ();
15538 int
15539 main ()
15540 {
15541 return socket ();
15542   ;
15543   return 0;
15544 }
15545 _ACEOF
15546 if ac_fn_c_try_link "$LINENO"; then :
15547   ac_cv_lib_nsl_socket=yes
15548 else
15549   ac_cv_lib_nsl_socket=no
15550 fi
15551 rm -f core conftest.err conftest.$ac_objext \
15552     conftest$ac_exeext conftest.$ac_ext
15553 LIBS=$ac_check_lib_save_LIBS
15554 fi
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
15556 $as_echo "$ac_cv_lib_nsl_socket" >&6; }
15557 if test "x$ac_cv_lib_nsl_socket" = xyes; then :
15558   LIBS="-lnsl -lsocket $LIBS"
15559 fi
15560
15561 fi
15562
15563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
15564 $as_echo_n "checking for library containing crypt... " >&6; }
15565 if ${ac_cv_search_crypt+:} false; then :
15566   $as_echo_n "(cached) " >&6
15567 else
15568   ac_func_search_save_LIBS=$LIBS
15569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15570 /* end confdefs.h.  */
15571
15572 /* Override any GCC internal prototype to avoid an error.
15573    Use char because int might match the return type of a GCC
15574    builtin and then its argument prototype would still apply.  */
15575 #ifdef __cplusplus
15576 extern "C"
15577 #endif
15578 char crypt ();
15579 int
15580 main ()
15581 {
15582 return crypt ();
15583   ;
15584   return 0;
15585 }
15586 _ACEOF
15587 for ac_lib in '' crypt; do
15588   if test -z "$ac_lib"; then
15589     ac_res="none required"
15590   else
15591     ac_res=-l$ac_lib
15592     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15593   fi
15594   if ac_fn_c_try_link "$LINENO"; then :
15595   ac_cv_search_crypt=$ac_res
15596 fi
15597 rm -f core conftest.err conftest.$ac_objext \
15598     conftest$ac_exeext
15599   if ${ac_cv_search_crypt+:} false; then :
15600   break
15601 fi
15602 done
15603 if ${ac_cv_search_crypt+:} false; then :
15604
15605 else
15606   ac_cv_search_crypt=no
15607 fi
15608 rm conftest.$ac_ext
15609 LIBS=$ac_func_search_save_LIBS
15610 fi
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
15612 $as_echo "$ac_cv_search_crypt" >&6; }
15613 ac_res=$ac_cv_search_crypt
15614 if test "$ac_res" != no; then :
15615   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15616
15617 fi
15618
15619  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
15620 $as_echo_n "checking for library containing roken_concat... " >&6; }
15621 if ${ac_cv_search_roken_concat+:} false; then :
15622   $as_echo_n "(cached) " >&6
15623 else
15624   ac_func_search_save_LIBS=$LIBS
15625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15626 /* end confdefs.h.  */
15627
15628 /* Override any GCC internal prototype to avoid an error.
15629    Use char because int might match the return type of a GCC
15630    builtin and then its argument prototype would still apply.  */
15631 #ifdef __cplusplus
15632 extern "C"
15633 #endif
15634 char roken_concat ();
15635 int
15636 main ()
15637 {
15638 return roken_concat ();
15639   ;
15640   return 0;
15641 }
15642 _ACEOF
15643 for ac_lib in '' roken; do
15644   if test -z "$ac_lib"; then
15645     ac_res="none required"
15646   else
15647     ac_res=-l$ac_lib
15648     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15649   fi
15650   if ac_fn_c_try_link "$LINENO"; then :
15651   ac_cv_search_roken_concat=$ac_res
15652 fi
15653 rm -f core conftest.err conftest.$ac_objext \
15654     conftest$ac_exeext
15655   if ${ac_cv_search_roken_concat+:} false; then :
15656   break
15657 fi
15658 done
15659 if ${ac_cv_search_roken_concat+:} false; then :
15660
15661 else
15662   ac_cv_search_roken_concat=no
15663 fi
15664 rm conftest.$ac_ext
15665 LIBS=$ac_func_search_save_LIBS
15666 fi
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
15668 $as_echo "$ac_cv_search_roken_concat" >&6; }
15669 ac_res=$ac_cv_search_roken_concat
15670 if test "$ac_res" != no; then :
15671   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15672
15673 fi
15674
15675  rra_krb5_extra="$LIBS"
15676  LIBS="$rra_krb5_save_LIBS"
15677  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15678 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15679 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
15680   $as_echo_n "(cached) " >&6
15681 else
15682   ac_check_lib_save_LIBS=$LIBS
15683 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
15684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15685 /* end confdefs.h.  */
15686
15687 /* Override any GCC internal prototype to avoid an error.
15688    Use char because int might match the return type of a GCC
15689    builtin and then its argument prototype would still apply.  */
15690 #ifdef __cplusplus
15691 extern "C"
15692 #endif
15693 char krb5_init_context ();
15694 int
15695 main ()
15696 {
15697 return krb5_init_context ();
15698   ;
15699   return 0;
15700 }
15701 _ACEOF
15702 if ac_fn_c_try_link "$LINENO"; then :
15703   ac_cv_lib_krb5_krb5_init_context=yes
15704 else
15705   ac_cv_lib_krb5_krb5_init_context=no
15706 fi
15707 rm -f core conftest.err conftest.$ac_objext \
15708     conftest$ac_exeext conftest.$ac_ext
15709 LIBS=$ac_check_lib_save_LIBS
15710 fi
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15712 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15713 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
15714   KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
15715 else
15716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
15717 $as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
15718 if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
15719   $as_echo_n "(cached) " >&6
15720 else
15721   ac_check_lib_save_LIBS=$LIBS
15722 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
15723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15724 /* end confdefs.h.  */
15725
15726 /* Override any GCC internal prototype to avoid an error.
15727    Use char because int might match the return type of a GCC
15728    builtin and then its argument prototype would still apply.  */
15729 #ifdef __cplusplus
15730 extern "C"
15731 #endif
15732 char krb5int_getspecific ();
15733 int
15734 main ()
15735 {
15736 return krb5int_getspecific ();
15737   ;
15738   return 0;
15739 }
15740 _ACEOF
15741 if ac_fn_c_try_link "$LINENO"; then :
15742   ac_cv_lib_krb5support_krb5int_getspecific=yes
15743 else
15744   ac_cv_lib_krb5support_krb5int_getspecific=no
15745 fi
15746 rm -f core conftest.err conftest.$ac_objext \
15747     conftest$ac_exeext conftest.$ac_ext
15748 LIBS=$ac_check_lib_save_LIBS
15749 fi
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
15751 $as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
15752 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
15753   rra_krb5_extra="-lkrb5support $rra_krb5_extra"
15754 else
15755   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
15756 $as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; }
15757 if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then :
15758   $as_echo_n "(cached) " >&6
15759 else
15760   ac_check_lib_save_LIBS=$LIBS
15761 LIBS="-lpthreads  $LIBS"
15762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15763 /* end confdefs.h.  */
15764
15765 /* Override any GCC internal prototype to avoid an error.
15766    Use char because int might match the return type of a GCC
15767    builtin and then its argument prototype would still apply.  */
15768 #ifdef __cplusplus
15769 extern "C"
15770 #endif
15771 char pthread_setspecific ();
15772 int
15773 main ()
15774 {
15775 return pthread_setspecific ();
15776   ;
15777   return 0;
15778 }
15779 _ACEOF
15780 if ac_fn_c_try_link "$LINENO"; then :
15781   ac_cv_lib_pthreads_pthread_setspecific=yes
15782 else
15783   ac_cv_lib_pthreads_pthread_setspecific=no
15784 fi
15785 rm -f core conftest.err conftest.$ac_objext \
15786     conftest$ac_exeext conftest.$ac_ext
15787 LIBS=$ac_check_lib_save_LIBS
15788 fi
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
15790 $as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
15791 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then :
15792   rra_krb5_pthread="-lpthreads"
15793 else
15794   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
15795 $as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; }
15796 if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then :
15797   $as_echo_n "(cached) " >&6
15798 else
15799   ac_check_lib_save_LIBS=$LIBS
15800 LIBS="-lpthread  $LIBS"
15801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15802 /* end confdefs.h.  */
15803
15804 /* Override any GCC internal prototype to avoid an error.
15805    Use char because int might match the return type of a GCC
15806    builtin and then its argument prototype would still apply.  */
15807 #ifdef __cplusplus
15808 extern "C"
15809 #endif
15810 char pthread_setspecific ();
15811 int
15812 main ()
15813 {
15814 return pthread_setspecific ();
15815   ;
15816   return 0;
15817 }
15818 _ACEOF
15819 if ac_fn_c_try_link "$LINENO"; then :
15820   ac_cv_lib_pthread_pthread_setspecific=yes
15821 else
15822   ac_cv_lib_pthread_pthread_setspecific=no
15823 fi
15824 rm -f core conftest.err conftest.$ac_objext \
15825     conftest$ac_exeext conftest.$ac_ext
15826 LIBS=$ac_check_lib_save_LIBS
15827 fi
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
15829 $as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
15830 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then :
15831   rra_krb5_pthread="-lpthread"
15832 fi
15833
15834 fi
15835
15836          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
15837 $as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; }
15838 if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then :
15839   $as_echo_n "(cached) " >&6
15840 else
15841   ac_check_lib_save_LIBS=$LIBS
15842 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
15843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15844 /* end confdefs.h.  */
15845
15846 /* Override any GCC internal prototype to avoid an error.
15847    Use char because int might match the return type of a GCC
15848    builtin and then its argument prototype would still apply.  */
15849 #ifdef __cplusplus
15850 extern "C"
15851 #endif
15852 char krb5int_setspecific ();
15853 int
15854 main ()
15855 {
15856 return krb5int_setspecific ();
15857   ;
15858   return 0;
15859 }
15860 _ACEOF
15861 if ac_fn_c_try_link "$LINENO"; then :
15862   ac_cv_lib_krb5support_krb5int_setspecific=yes
15863 else
15864   ac_cv_lib_krb5support_krb5int_setspecific=no
15865 fi
15866 rm -f core conftest.err conftest.$ac_objext \
15867     conftest$ac_exeext conftest.$ac_ext
15868 LIBS=$ac_check_lib_save_LIBS
15869 fi
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
15871 $as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
15872 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then :
15873   rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
15874 fi
15875
15876 fi
15877
15878      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
15879 $as_echo_n "checking for error_message in -lcom_err... " >&6; }
15880 if ${ac_cv_lib_com_err_error_message+:} false; then :
15881   $as_echo_n "(cached) " >&6
15882 else
15883   ac_check_lib_save_LIBS=$LIBS
15884 LIBS="-lcom_err $rra_krb5_extra $LIBS"
15885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15886 /* end confdefs.h.  */
15887
15888 /* Override any GCC internal prototype to avoid an error.
15889    Use char because int might match the return type of a GCC
15890    builtin and then its argument prototype would still apply.  */
15891 #ifdef __cplusplus
15892 extern "C"
15893 #endif
15894 char error_message ();
15895 int
15896 main ()
15897 {
15898 return error_message ();
15899   ;
15900   return 0;
15901 }
15902 _ACEOF
15903 if ac_fn_c_try_link "$LINENO"; then :
15904   ac_cv_lib_com_err_error_message=yes
15905 else
15906   ac_cv_lib_com_err_error_message=no
15907 fi
15908 rm -f core conftest.err conftest.$ac_objext \
15909     conftest$ac_exeext conftest.$ac_ext
15910 LIBS=$ac_check_lib_save_LIBS
15911 fi
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
15913 $as_echo "$ac_cv_lib_com_err_error_message" >&6; }
15914 if test "x$ac_cv_lib_com_err_error_message" = xyes; then :
15915   rra_krb5_extra="-lcom_err $rra_krb5_extra"
15916 fi
15917
15918      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
15919 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
15920 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
15921   $as_echo_n "(cached) " >&6
15922 else
15923   ac_check_lib_save_LIBS=$LIBS
15924 LIBS="-lksvc $rra_krb5_extra $LIBS"
15925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15926 /* end confdefs.h.  */
15927
15928 /* Override any GCC internal prototype to avoid an error.
15929    Use char because int might match the return type of a GCC
15930    builtin and then its argument prototype would still apply.  */
15931 #ifdef __cplusplus
15932 extern "C"
15933 #endif
15934 char krb5_svc_get_msg ();
15935 int
15936 main ()
15937 {
15938 return krb5_svc_get_msg ();
15939   ;
15940   return 0;
15941 }
15942 _ACEOF
15943 if ac_fn_c_try_link "$LINENO"; then :
15944   ac_cv_lib_ksvc_krb5_svc_get_msg=yes
15945 else
15946   ac_cv_lib_ksvc_krb5_svc_get_msg=no
15947 fi
15948 rm -f core conftest.err conftest.$ac_objext \
15949     conftest$ac_exeext conftest.$ac_ext
15950 LIBS=$ac_check_lib_save_LIBS
15951 fi
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
15953 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
15954 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
15955   rra_krb5_extra="-lksvc $rra_krb5_extra"
15956 fi
15957
15958      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
15959 $as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
15960 if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then :
15961   $as_echo_n "(cached) " >&6
15962 else
15963   ac_check_lib_save_LIBS=$LIBS
15964 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
15965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15966 /* end confdefs.h.  */
15967
15968 /* Override any GCC internal prototype to avoid an error.
15969    Use char because int might match the return type of a GCC
15970    builtin and then its argument prototype would still apply.  */
15971 #ifdef __cplusplus
15972 extern "C"
15973 #endif
15974 char krb5int_hash_md5 ();
15975 int
15976 main ()
15977 {
15978 return krb5int_hash_md5 ();
15979   ;
15980   return 0;
15981 }
15982 _ACEOF
15983 if ac_fn_c_try_link "$LINENO"; then :
15984   ac_cv_lib_k5crypto_krb5int_hash_md5=yes
15985 else
15986   ac_cv_lib_k5crypto_krb5int_hash_md5=no
15987 fi
15988 rm -f core conftest.err conftest.$ac_objext \
15989     conftest$ac_exeext conftest.$ac_ext
15990 LIBS=$ac_check_lib_save_LIBS
15991 fi
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
15993 $as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
15994 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then :
15995   rra_krb5_extra="-lk5crypto $rra_krb5_extra"
15996 fi
15997
15998      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
15999 $as_echo_n "checking for profile_get_values in -lk5profile... " >&6; }
16000 if ${ac_cv_lib_k5profile_profile_get_values+:} false; then :
16001   $as_echo_n "(cached) " >&6
16002 else
16003   ac_check_lib_save_LIBS=$LIBS
16004 LIBS="-lk5profile $rra_krb5_extra $LIBS"
16005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16006 /* end confdefs.h.  */
16007
16008 /* Override any GCC internal prototype to avoid an error.
16009    Use char because int might match the return type of a GCC
16010    builtin and then its argument prototype would still apply.  */
16011 #ifdef __cplusplus
16012 extern "C"
16013 #endif
16014 char profile_get_values ();
16015 int
16016 main ()
16017 {
16018 return profile_get_values ();
16019   ;
16020   return 0;
16021 }
16022 _ACEOF
16023 if ac_fn_c_try_link "$LINENO"; then :
16024   ac_cv_lib_k5profile_profile_get_values=yes
16025 else
16026   ac_cv_lib_k5profile_profile_get_values=no
16027 fi
16028 rm -f core conftest.err conftest.$ac_objext \
16029     conftest$ac_exeext conftest.$ac_ext
16030 LIBS=$ac_check_lib_save_LIBS
16031 fi
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
16033 $as_echo "$ac_cv_lib_k5profile_profile_get_values" >&6; }
16034 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes; then :
16035   rra_krb5_extra="-lk5profile $rra_krb5_extra"
16036 fi
16037
16038      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
16039 $as_echo_n "checking for krb5_cc_default in -lkrb5... " >&6; }
16040 if ${ac_cv_lib_krb5_krb5_cc_default+:} false; then :
16041   $as_echo_n "(cached) " >&6
16042 else
16043   ac_check_lib_save_LIBS=$LIBS
16044 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
16045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16046 /* end confdefs.h.  */
16047
16048 /* Override any GCC internal prototype to avoid an error.
16049    Use char because int might match the return type of a GCC
16050    builtin and then its argument prototype would still apply.  */
16051 #ifdef __cplusplus
16052 extern "C"
16053 #endif
16054 char krb5_cc_default ();
16055 int
16056 main ()
16057 {
16058 return krb5_cc_default ();
16059   ;
16060   return 0;
16061 }
16062 _ACEOF
16063 if ac_fn_c_try_link "$LINENO"; then :
16064   ac_cv_lib_krb5_krb5_cc_default=yes
16065 else
16066   ac_cv_lib_krb5_krb5_cc_default=no
16067 fi
16068 rm -f core conftest.err conftest.$ac_objext \
16069     conftest$ac_exeext conftest.$ac_ext
16070 LIBS=$ac_check_lib_save_LIBS
16071 fi
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
16073 $as_echo "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
16074 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes; then :
16075   KRB5_LIBS="-lkrb5 $rra_krb5_extra"
16076 else
16077   if test x"true" = xtrue; then :
16078   as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
16079 fi
16080 fi
16081
16082 fi
16083
16084  LIBS="$KRB5_LIBS $LIBS"
16085  if test x"$rra_krb5_incroot" = x; then :
16086   for ac_header in krb5.h krb5/krb5.h
16087 do :
16088   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16089 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16090 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16091   cat >>confdefs.h <<_ACEOF
16092 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16093 _ACEOF
16094
16095 fi
16096
16097 done
16098
16099 else
16100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
16101 $as_echo_n "checking for krb5.h... " >&6; }
16102  if test -f "${rra_krb5_incroot}/krb5.h"; then :
16103
16104 cat >>confdefs.h <<_ACEOF
16105 #define HAVE_KRB5_H 1
16106 _ACEOF
16107
16108      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16109 $as_echo "yes" >&6; }
16110 else
16111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16112 $as_echo "no" >&6; }
16113 fi
16114       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
16115 $as_echo_n "checking for krb5/krb5.h... " >&6; }
16116  if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
16117
16118 cat >>confdefs.h <<_ACEOF
16119 #define HAVE_KRB5_KRB5_H 1
16120 _ACEOF
16121
16122      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16123 $as_echo "yes" >&6; }
16124 else
16125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16126 $as_echo "no" >&6; }
16127 fi
16128 fi
16129  for ac_func in krb5_get_error_message
16130 do :
16131   ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
16132 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
16133   cat >>confdefs.h <<_ACEOF
16134 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
16135 _ACEOF
16136  for ac_func in krb5_free_error_message
16137 do :
16138   ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
16139 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
16140   cat >>confdefs.h <<_ACEOF
16141 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
16142 _ACEOF
16143
16144 fi
16145 done
16146
16147 else
16148   for ac_func in krb5_get_error_string
16149 do :
16150   ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
16151 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
16152   cat >>confdefs.h <<_ACEOF
16153 #define HAVE_KRB5_GET_ERROR_STRING 1
16154 _ACEOF
16155
16156 else
16157   for ac_func in krb5_get_err_txt
16158 do :
16159   ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
16160 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
16161   cat >>confdefs.h <<_ACEOF
16162 #define HAVE_KRB5_GET_ERR_TXT 1
16163 _ACEOF
16164
16165 else
16166   for ac_func in krb5_svc_get_msg
16167 do :
16168   ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
16169 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
16170   cat >>confdefs.h <<_ACEOF
16171 #define HAVE_KRB5_SVC_GET_MSG 1
16172 _ACEOF
16173  for ac_header in ibm_svc/krb5_svc.h
16174 do :
16175   ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
16176 #if HAVE_KRB5_H
16177 # include <krb5.h>
16178 #else
16179 # include <krb5/krb5.h>
16180 #endif
16181
16182 "
16183 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
16184   cat >>confdefs.h <<_ACEOF
16185 #define HAVE_IBM_SVC_KRB5_SVC_H 1
16186 _ACEOF
16187
16188 fi
16189
16190 done
16191
16192 else
16193   for ac_header in et/com_err.h
16194 do :
16195   ac_fn_c_check_header_mongrel "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default"
16196 if test "x$ac_cv_header_et_com_err_h" = xyes; then :
16197   cat >>confdefs.h <<_ACEOF
16198 #define HAVE_ET_COM_ERR_H 1
16199 _ACEOF
16200
16201 fi
16202
16203 done
16204
16205 fi
16206 done
16207
16208 fi
16209 done
16210
16211 fi
16212 done
16213
16214 fi
16215 done
16216
16217  CPPFLAGS="$rra_krb5_save_CPPFLAGS"
16218  LDFLAGS="$rra_krb5_save_LDFLAGS"
16219  LIBS="$rra_krb5_save_LIBS"
16220 fi
16221 fi
16222  rra_krb5_uses_com_err=false
16223  case $KRB5_LIBS in #(
16224   *-lcom_err*) :
16225     rra_krb5_uses_com_err=true ;; #(
16226   *) :
16227      ;;
16228 esac
16229   if test x"$rra_krb5_uses_com_err" = xtrue; then
16230   KRB5_USES_COM_ERR_TRUE=
16231   KRB5_USES_COM_ERR_FALSE='#'
16232 else
16233   KRB5_USES_COM_ERR_TRUE='#'
16234   KRB5_USES_COM_ERR_FALSE=
16235 fi
16236
16237
16238 $as_echo "#define HAVE_KRB5 1" >>confdefs.h
16239
16240 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
16241  rra_krb5_save_LDFLAGS="$LDFLAGS"
16242  rra_krb5_save_LIBS="$LIBS"
16243  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
16244  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
16245  LIBS="$KRB5_LIBS $LIBS"
16246 for ac_header in kadm5/kadm5-pwcheck.h kadm5/kadm5_err.h
16247 do :
16248   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16249 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
16250 #if HAVE_KRB5_H
16251 # include <krb5.h>
16252 #else
16253 # include <krb5/krb5.h>
16254 #endif
16255
16256 "
16257 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16258   cat >>confdefs.h <<_ACEOF
16259 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16260 _ACEOF
16261
16262 fi
16263
16264 done
16265
16266 for ac_header in krb5/pwqual_plugin.h
16267 do :
16268   ac_fn_c_check_header_compile "$LINENO" "krb5/pwqual_plugin.h" "ac_cv_header_krb5_pwqual_plugin_h" "
16269 #if HAVE_KRB5_H
16270 # include <krb5.h>
16271 #else
16272 # include <krb5/krb5.h>
16273 #endif
16274
16275 "
16276 if test "x$ac_cv_header_krb5_pwqual_plugin_h" = xyes; then :
16277   cat >>confdefs.h <<_ACEOF
16278 #define HAVE_KRB5_PWQUAL_PLUGIN_H 1
16279 _ACEOF
16280
16281 fi
16282
16283 done
16284
16285 ac_fn_c_check_type "$LINENO" "krb5_realm" "ac_cv_type_krb5_realm" "
16286 #if HAVE_KRB5_H
16287 # include <krb5.h>
16288 #else
16289 # include <krb5/krb5.h>
16290 #endif
16291
16292 "
16293 if test "x$ac_cv_type_krb5_realm" = xyes; then :
16294
16295 cat >>confdefs.h <<_ACEOF
16296 #define HAVE_KRB5_REALM 1
16297 _ACEOF
16298
16299
16300 fi
16301
16302 for ac_func in krb5_free_default_realm \
16303     krb5_free_string \
16304     krb5_get_init_creds_opt_alloc \
16305     krb5_get_init_creds_opt_set_default_flags \
16306     krb5_principal_get_realm \
16307     krb5_xfree
16308 do :
16309   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16310 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16311 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16312   cat >>confdefs.h <<_ACEOF
16313 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16314 _ACEOF
16315
16316 fi
16317 done
16318
16319 for ac_func in krb5_get_init_creds_opt_free
16320 do :
16321   ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_free" "ac_cv_func_krb5_get_init_creds_opt_free"
16322 if test "x$ac_cv_func_krb5_get_init_creds_opt_free" = xyes; then :
16323   cat >>confdefs.h <<_ACEOF
16324 #define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE 1
16325 _ACEOF
16326  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if krb5_get_init_creds_opt_free takes two arguments" >&5
16327 $as_echo_n "checking if krb5_get_init_creds_opt_free takes two arguments... " >&6; }
16328 if ${rra_cv_func_krb5_get_init_creds_opt_free_args+:} false; then :
16329   $as_echo_n "(cached) " >&6
16330 else
16331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16332 /* end confdefs.h.  */
16333
16334 #if HAVE_KRB5_H
16335 # include <krb5.h>
16336 #else
16337 # include <krb5/krb5.h>
16338 #endif
16339
16340 int
16341 main(void)
16342 {
16343     krb5_get_init_creds_opt *opts;
16344     krb5_context c;
16345     krb5_get_init_creds_opt_free(c, opts);
16346 }
16347
16348 _ACEOF
16349 if ac_fn_c_try_compile "$LINENO"; then :
16350   rra_cv_func_krb5_get_init_creds_opt_free_args=yes
16351 else
16352   rra_cv_func_krb5_get_init_creds_opt_free_args=no
16353 fi
16354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16355 fi
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_func_krb5_get_init_creds_opt_free_args" >&5
16357 $as_echo "$rra_cv_func_krb5_get_init_creds_opt_free_args" >&6; }
16358  if test $rra_cv_func_krb5_get_init_creds_opt_free_args = yes; then :
16359
16360 $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_2_ARGS 1" >>confdefs.h
16361
16362 fi
16363 fi
16364 done
16365
16366 ac_fn_c_check_decl "$LINENO" "krb5_kt_free_entry" "ac_cv_have_decl_krb5_kt_free_entry" "
16367 #if HAVE_KRB5_H
16368 # include <krb5.h>
16369 #else
16370 # include <krb5/krb5.h>
16371 #endif
16372
16373 "
16374 if test "x$ac_cv_have_decl_krb5_kt_free_entry" = xyes; then :
16375   ac_have_decl=1
16376 else
16377   ac_have_decl=0
16378 fi
16379
16380 cat >>confdefs.h <<_ACEOF
16381 #define HAVE_DECL_KRB5_KT_FREE_ENTRY $ac_have_decl
16382 _ACEOF
16383
16384 case " $LIBOBJS " in
16385   *" krb5-extra.$ac_objext "* ) ;;
16386   *) LIBOBJS="$LIBOBJS krb5-extra.$ac_objext"
16387  ;;
16388 esac
16389
16390 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
16391  LDFLAGS="$rra_krb5_save_LDFLAGS"
16392  LIBS="$rra_krb5_save_LIBS"
16393
16394
16395
16396
16397
16398
16399
16400 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16401         if test -n "$ac_tool_prefix"; then
16402   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16403 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16405 $as_echo_n "checking for $ac_word... " >&6; }
16406 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16407   $as_echo_n "(cached) " >&6
16408 else
16409   case $PKG_CONFIG in
16410   [\\/]* | ?:[\\/]*)
16411   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16412   ;;
16413   *)
16414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16415 for as_dir in $PATH
16416 do
16417   IFS=$as_save_IFS
16418   test -z "$as_dir" && as_dir=.
16419     for ac_exec_ext in '' $ac_executable_extensions; do
16420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16421     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16423     break 2
16424   fi
16425 done
16426   done
16427 IFS=$as_save_IFS
16428
16429   ;;
16430 esac
16431 fi
16432 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16433 if test -n "$PKG_CONFIG"; then
16434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16435 $as_echo "$PKG_CONFIG" >&6; }
16436 else
16437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16438 $as_echo "no" >&6; }
16439 fi
16440
16441
16442 fi
16443 if test -z "$ac_cv_path_PKG_CONFIG"; then
16444   ac_pt_PKG_CONFIG=$PKG_CONFIG
16445   # Extract the first word of "pkg-config", so it can be a program name with args.
16446 set dummy pkg-config; ac_word=$2
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16448 $as_echo_n "checking for $ac_word... " >&6; }
16449 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16450   $as_echo_n "(cached) " >&6
16451 else
16452   case $ac_pt_PKG_CONFIG in
16453   [\\/]* | ?:[\\/]*)
16454   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16455   ;;
16456   *)
16457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16458 for as_dir in $PATH
16459 do
16460   IFS=$as_save_IFS
16461   test -z "$as_dir" && as_dir=.
16462     for ac_exec_ext in '' $ac_executable_extensions; do
16463   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16464     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16466     break 2
16467   fi
16468 done
16469   done
16470 IFS=$as_save_IFS
16471
16472   ;;
16473 esac
16474 fi
16475 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16476 if test -n "$ac_pt_PKG_CONFIG"; then
16477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16478 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16479 else
16480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16481 $as_echo "no" >&6; }
16482 fi
16483
16484   if test "x$ac_pt_PKG_CONFIG" = x; then
16485     PKG_CONFIG=""
16486   else
16487     case $cross_compiling:$ac_tool_warned in
16488 yes:)
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16491 ac_tool_warned=yes ;;
16492 esac
16493     PKG_CONFIG=$ac_pt_PKG_CONFIG
16494   fi
16495 else
16496   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16497 fi
16498
16499 fi
16500 if test -n "$PKG_CONFIG"; then
16501         _pkg_min_version=0.9.0
16502         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16503 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16504         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16505                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16506 $as_echo "yes" >&6; }
16507         else
16508                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16509 $as_echo "no" >&6; }
16510                 PKG_CONFIG=""
16511         fi
16512 fi
16513 rra_SQLITE_root=
16514  rra_SQLITE_libdir=
16515  rra_SQLITE_includedir=
16516  rra_use_SQLITE=
16517  SQLITE_CPPFLAGS=
16518  SQLITE_LDFLAGS=
16519  SQLITE_LIBS=
16520
16521
16522
16523
16524 # Check whether --with-sqlite was given.
16525 if test "${with_sqlite+set}" = set; then :
16526   withval=$with_sqlite; if test x"$withval" = xno; then :
16527   rra_use_SQLITE=false
16528 else
16529   if test x"$withval" != xyes; then :
16530   rra_SQLITE_root="$withval"
16531 fi
16532          rra_use_SQLITE=true
16533 fi
16534 fi
16535
16536
16537 # Check whether --with-sqlite-include was given.
16538 if test "${with_sqlite_include+set}" = set; then :
16539   withval=$with_sqlite_include; if test x"$withval" != xyes && test x"$withval" != xno; then :
16540   rra_SQLITE_includedir="$withval"
16541 fi
16542 fi
16543
16544
16545 # Check whether --with-sqlite-lib was given.
16546 if test "${with_sqlite_lib+set}" = set; then :
16547   withval=$with_sqlite_lib; if test x"$withval" != xyes && test x"$withval" != xno; then :
16548   rra_SQLITE_libdir="$withval"
16549 fi
16550 fi
16551
16552  if test x"$rra_use_SQLITE" != xfalse; then :
16553   if test x"$rra_use_SQLITE" = xtrue; then :
16554   if test x"$rra_SQLITE_libdir" != x; then :
16555   SQLITE_LDFLAGS="-L$rra_SQLITE_libdir"
16556 else
16557   if test x"$rra_SQLITE_root" != x; then :
16558
16559  if test -d "${rra_SQLITE_root}/$rra_lib_arch_name"; then :
16560   if test x"" = x; then :
16561   SQLITE_LDFLAGS="$SQLITE_LDFLAGS -L${rra_SQLITE_root}/${rra_lib_arch_name}"
16562 else
16563   SQLITE_LDFLAGS="$SQLITE_LDFLAGS -L${rra_SQLITE_root}/${rra_lib_arch_name}/"
16564 fi
16565 else
16566   if test x"" = x; then :
16567   SQLITE_LDFLAGS="$SQLITE_LDFLAGS -L${rra_SQLITE_root}/lib"
16568 else
16569   SQLITE_LDFLAGS="$SQLITE_LDFLAGS -L${rra_SQLITE_root}/lib/"
16570 fi
16571 fi
16572  SQLITE_LDFLAGS=`echo "$SQLITE_LDFLAGS" | sed -e 's/^ *//'`
16573 fi
16574 fi
16575  if test x"$rra_SQLITE_includedir" != x; then :
16576   SQLITE_CPPFLAGS="-I$rra_SQLITE_includedir"
16577 else
16578   if test x"$rra_SQLITE_root" != x; then :
16579   if test x"$rra_SQLITE_root" != x/usr; then :
16580   SQLITE_CPPFLAGS="-I${rra_SQLITE_root}/include"
16581 fi
16582 fi
16583 fi
16584  if test x"$SQLITE_CPPFLAGS" = x && test x"$SQLITE_LDFLAGS" = x; then :
16585   if test -n "$PKG_CONFIG" && \
16586     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
16587   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
16588   ac_status=$?
16589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16590   test $ac_status = 0; }; then
16591
16592 pkg_failed=no
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
16594 $as_echo_n "checking for SQLITE... " >&6; }
16595
16596 if test -n "$SQLITE_CFLAGS"; then
16597     pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
16598  elif test -n "$PKG_CONFIG"; then
16599     if test -n "$PKG_CONFIG" && \
16600     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
16601   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
16602   ac_status=$?
16603   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16604   test $ac_status = 0; }; then
16605   pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
16606                       test "x$?" != "x0" && pkg_failed=yes
16607 else
16608   pkg_failed=yes
16609 fi
16610  else
16611     pkg_failed=untried
16612 fi
16613 if test -n "$SQLITE_LIBS"; then
16614     pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
16615  elif test -n "$PKG_CONFIG"; then
16616     if test -n "$PKG_CONFIG" && \
16617     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
16618   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
16619   ac_status=$?
16620   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16621   test $ac_status = 0; }; then
16622   pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
16623                       test "x$?" != "x0" && pkg_failed=yes
16624 else
16625   pkg_failed=yes
16626 fi
16627  else
16628     pkg_failed=untried
16629 fi
16630
16631
16632
16633 if test $pkg_failed = yes; then
16634         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16635 $as_echo "no" >&6; }
16636
16637 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16638         _pkg_short_errors_supported=yes
16639 else
16640         _pkg_short_errors_supported=no
16641 fi
16642         if test $_pkg_short_errors_supported = yes; then
16643                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1`
16644         else
16645                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1`
16646         fi
16647         # Put the nasty error message in config.log where it belongs
16648         echo "$SQLITE_PKG_ERRORS" >&5
16649
16650         as_fn_error $? "Package requirements (sqlite3) were not met:
16651
16652 $SQLITE_PKG_ERRORS
16653
16654 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16655 installed software in a non-standard prefix.
16656
16657 Alternatively, you may set the environment variables SQLITE_CFLAGS
16658 and SQLITE_LIBS to avoid the need to call pkg-config.
16659 See the pkg-config man page for more details." "$LINENO" 5
16660 elif test $pkg_failed = untried; then
16661         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16662 $as_echo "no" >&6; }
16663         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16665 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16666 is in your PATH or set the PKG_CONFIG environment variable to the full
16667 path to pkg-config.
16668
16669 Alternatively, you may set the environment variables SQLITE_CFLAGS
16670 and SQLITE_LIBS to avoid the need to call pkg-config.
16671 See the pkg-config man page for more details.
16672
16673 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16674 See \`config.log' for more details" "$LINENO" 5; }
16675 else
16676         SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
16677         SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
16678         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16679 $as_echo "yes" >&6; }
16680
16681 fi
16682          SQLITE_CPPFLAGS="$SQLITE_CFLAGS"
16683 fi
16684 fi
16685  if test x"$SQLITE_LIBS" = x; then :
16686   rra_SQLITE_save_CPPFLAGS="$CPPFLAGS"
16687  rra_SQLITE_save_LDFLAGS="$LDFLAGS"
16688  rra_SQLITE_save_LIBS="$LIBS"
16689  CPPFLAGS="$SQLITE_CPPFLAGS $CPPFLAGS"
16690  LDFLAGS="$SQLITE_LDFLAGS $LDFLAGS"
16691  LIBS="$SQLITE_LIBS $LIBS"
16692      LIBS=
16693      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqlite3_open_v2" >&5
16694 $as_echo_n "checking for library containing sqlite3_open_v2... " >&6; }
16695 if ${ac_cv_search_sqlite3_open_v2+:} false; then :
16696   $as_echo_n "(cached) " >&6
16697 else
16698   ac_func_search_save_LIBS=$LIBS
16699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16700 /* end confdefs.h.  */
16701
16702 /* Override any GCC internal prototype to avoid an error.
16703    Use char because int might match the return type of a GCC
16704    builtin and then its argument prototype would still apply.  */
16705 #ifdef __cplusplus
16706 extern "C"
16707 #endif
16708 char sqlite3_open_v2 ();
16709 int
16710 main ()
16711 {
16712 return sqlite3_open_v2 ();
16713   ;
16714   return 0;
16715 }
16716 _ACEOF
16717 for ac_lib in '' sqlite3; do
16718   if test -z "$ac_lib"; then
16719     ac_res="none required"
16720   else
16721     ac_res=-l$ac_lib
16722     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16723   fi
16724   if ac_fn_c_try_link "$LINENO"; then :
16725   ac_cv_search_sqlite3_open_v2=$ac_res
16726 fi
16727 rm -f core conftest.err conftest.$ac_objext \
16728     conftest$ac_exeext
16729   if ${ac_cv_search_sqlite3_open_v2+:} false; then :
16730   break
16731 fi
16732 done
16733 if ${ac_cv_search_sqlite3_open_v2+:} false; then :
16734
16735 else
16736   ac_cv_search_sqlite3_open_v2=no
16737 fi
16738 rm conftest.$ac_ext
16739 LIBS=$ac_func_search_save_LIBS
16740 fi
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqlite3_open_v2" >&5
16742 $as_echo "$ac_cv_search_sqlite3_open_v2" >&6; }
16743 ac_res=$ac_cv_search_sqlite3_open_v2
16744 if test "$ac_res" != no; then :
16745   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16746   SQLITE_LIBS="$LIBS"
16747 else
16748   if test x"true" = xtrue; then :
16749   as_fn_error $? "cannot find usable SQLite library" "$LINENO" 5
16750 fi
16751 fi
16752
16753      CPPFLAGS="$rra_SQLITE_save_CPPFLAGS"
16754  LDFLAGS="$rra_SQLITE_save_LDFLAGS"
16755  LIBS="$rra_SQLITE_save_LIBS"
16756 fi
16757  rra_SQLITE_save_CPPFLAGS="$CPPFLAGS"
16758  rra_SQLITE_save_LDFLAGS="$LDFLAGS"
16759  rra_SQLITE_save_LIBS="$LIBS"
16760  CPPFLAGS="$SQLITE_CPPFLAGS $CPPFLAGS"
16761  LDFLAGS="$SQLITE_LDFLAGS $LDFLAGS"
16762  LIBS="$SQLITE_LIBS $LIBS"
16763  for ac_header in sqlite3.h
16764 do :
16765   ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
16766 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
16767   cat >>confdefs.h <<_ACEOF
16768 #define HAVE_SQLITE3_H 1
16769 _ACEOF
16770
16771 fi
16772
16773 done
16774
16775  CPPFLAGS="$rra_SQLITE_save_CPPFLAGS"
16776  LDFLAGS="$rra_SQLITE_save_LDFLAGS"
16777  LIBS="$rra_SQLITE_save_LIBS"
16778 else
16779   if test x"$rra_SQLITE_libdir" != x; then :
16780   SQLITE_LDFLAGS="-L$rra_SQLITE_libdir"
16781 else
16782   if test x"$rra_SQLITE_root" != x; then :
16783
16784  if test -d "${rra_SQLITE_root}/$rra_lib_arch_name"; then :
16785   if test x"" = x; then :
16786   SQLITE_LDFLAGS="$SQLITE_LDFLAGS -L${rra_SQLITE_root}/${rra_lib_arch_name}"
16787 else
16788   SQLITE_LDFLAGS="$SQLITE_LDFLAGS -L${rra_SQLITE_root}/${rra_lib_arch_name}/"
16789 fi
16790 else
16791   if test x"" = x; then :
16792   SQLITE_LDFLAGS="$SQLITE_LDFLAGS -L${rra_SQLITE_root}/lib"
16793 else
16794   SQLITE_LDFLAGS="$SQLITE_LDFLAGS -L${rra_SQLITE_root}/lib/"
16795 fi
16796 fi
16797  SQLITE_LDFLAGS=`echo "$SQLITE_LDFLAGS" | sed -e 's/^ *//'`
16798 fi
16799 fi
16800  if test x"$rra_SQLITE_includedir" != x; then :
16801   SQLITE_CPPFLAGS="-I$rra_SQLITE_includedir"
16802 else
16803   if test x"$rra_SQLITE_root" != x; then :
16804   if test x"$rra_SQLITE_root" != x/usr; then :
16805   SQLITE_CPPFLAGS="-I${rra_SQLITE_root}/include"
16806 fi
16807 fi
16808 fi
16809  if test x"$SQLITE_CPPFLAGS" = x && test x"$SQLITE_LDFLAGS" = x; then :
16810   if test -n "$PKG_CONFIG" && \
16811     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
16812   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
16813   ac_status=$?
16814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16815   test $ac_status = 0; }; then
16816
16817 pkg_failed=no
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
16819 $as_echo_n "checking for SQLITE... " >&6; }
16820
16821 if test -n "$SQLITE_CFLAGS"; then
16822     pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
16823  elif test -n "$PKG_CONFIG"; then
16824     if test -n "$PKG_CONFIG" && \
16825     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
16826   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
16827   ac_status=$?
16828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16829   test $ac_status = 0; }; then
16830   pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
16831                       test "x$?" != "x0" && pkg_failed=yes
16832 else
16833   pkg_failed=yes
16834 fi
16835  else
16836     pkg_failed=untried
16837 fi
16838 if test -n "$SQLITE_LIBS"; then
16839     pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
16840  elif test -n "$PKG_CONFIG"; then
16841     if test -n "$PKG_CONFIG" && \
16842     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
16843   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
16844   ac_status=$?
16845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16846   test $ac_status = 0; }; then
16847   pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
16848                       test "x$?" != "x0" && pkg_failed=yes
16849 else
16850   pkg_failed=yes
16851 fi
16852  else
16853     pkg_failed=untried
16854 fi
16855
16856
16857
16858 if test $pkg_failed = yes; then
16859         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16860 $as_echo "no" >&6; }
16861
16862 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16863         _pkg_short_errors_supported=yes
16864 else
16865         _pkg_short_errors_supported=no
16866 fi
16867         if test $_pkg_short_errors_supported = yes; then
16868                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1`
16869         else
16870                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1`
16871         fi
16872         # Put the nasty error message in config.log where it belongs
16873         echo "$SQLITE_PKG_ERRORS" >&5
16874
16875         as_fn_error $? "Package requirements (sqlite3) were not met:
16876
16877 $SQLITE_PKG_ERRORS
16878
16879 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16880 installed software in a non-standard prefix.
16881
16882 Alternatively, you may set the environment variables SQLITE_CFLAGS
16883 and SQLITE_LIBS to avoid the need to call pkg-config.
16884 See the pkg-config man page for more details." "$LINENO" 5
16885 elif test $pkg_failed = untried; then
16886         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16887 $as_echo "no" >&6; }
16888         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16890 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16891 is in your PATH or set the PKG_CONFIG environment variable to the full
16892 path to pkg-config.
16893
16894 Alternatively, you may set the environment variables SQLITE_CFLAGS
16895 and SQLITE_LIBS to avoid the need to call pkg-config.
16896 See the pkg-config man page for more details.
16897
16898 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16899 See \`config.log' for more details" "$LINENO" 5; }
16900 else
16901         SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
16902         SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
16903         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16904 $as_echo "yes" >&6; }
16905
16906 fi
16907          SQLITE_CPPFLAGS="$SQLITE_CFLAGS"
16908 fi
16909 fi
16910  if test x"$SQLITE_LIBS" = x; then :
16911   rra_SQLITE_save_CPPFLAGS="$CPPFLAGS"
16912  rra_SQLITE_save_LDFLAGS="$LDFLAGS"
16913  rra_SQLITE_save_LIBS="$LIBS"
16914  CPPFLAGS="$SQLITE_CPPFLAGS $CPPFLAGS"
16915  LDFLAGS="$SQLITE_LDFLAGS $LDFLAGS"
16916  LIBS="$SQLITE_LIBS $LIBS"
16917      LIBS=
16918      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqlite3_open_v2" >&5
16919 $as_echo_n "checking for library containing sqlite3_open_v2... " >&6; }
16920 if ${ac_cv_search_sqlite3_open_v2+:} false; then :
16921   $as_echo_n "(cached) " >&6
16922 else
16923   ac_func_search_save_LIBS=$LIBS
16924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16925 /* end confdefs.h.  */
16926
16927 /* Override any GCC internal prototype to avoid an error.
16928    Use char because int might match the return type of a GCC
16929    builtin and then its argument prototype would still apply.  */
16930 #ifdef __cplusplus
16931 extern "C"
16932 #endif
16933 char sqlite3_open_v2 ();
16934 int
16935 main ()
16936 {
16937 return sqlite3_open_v2 ();
16938   ;
16939   return 0;
16940 }
16941 _ACEOF
16942 for ac_lib in '' sqlite3; do
16943   if test -z "$ac_lib"; then
16944     ac_res="none required"
16945   else
16946     ac_res=-l$ac_lib
16947     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16948   fi
16949   if ac_fn_c_try_link "$LINENO"; then :
16950   ac_cv_search_sqlite3_open_v2=$ac_res
16951 fi
16952 rm -f core conftest.err conftest.$ac_objext \
16953     conftest$ac_exeext
16954   if ${ac_cv_search_sqlite3_open_v2+:} false; then :
16955   break
16956 fi
16957 done
16958 if ${ac_cv_search_sqlite3_open_v2+:} false; then :
16959
16960 else
16961   ac_cv_search_sqlite3_open_v2=no
16962 fi
16963 rm conftest.$ac_ext
16964 LIBS=$ac_func_search_save_LIBS
16965 fi
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqlite3_open_v2" >&5
16967 $as_echo "$ac_cv_search_sqlite3_open_v2" >&6; }
16968 ac_res=$ac_cv_search_sqlite3_open_v2
16969 if test "$ac_res" != no; then :
16970   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16971   SQLITE_LIBS="$LIBS"
16972 else
16973   if test x"false" = xtrue; then :
16974   as_fn_error $? "cannot find usable SQLite library" "$LINENO" 5
16975 fi
16976 fi
16977
16978      CPPFLAGS="$rra_SQLITE_save_CPPFLAGS"
16979  LDFLAGS="$rra_SQLITE_save_LDFLAGS"
16980  LIBS="$rra_SQLITE_save_LIBS"
16981 fi
16982  rra_SQLITE_save_CPPFLAGS="$CPPFLAGS"
16983  rra_SQLITE_save_LDFLAGS="$LDFLAGS"
16984  rra_SQLITE_save_LIBS="$LIBS"
16985  CPPFLAGS="$SQLITE_CPPFLAGS $CPPFLAGS"
16986  LDFLAGS="$SQLITE_LDFLAGS $LDFLAGS"
16987  LIBS="$SQLITE_LIBS $LIBS"
16988  for ac_header in sqlite3.h
16989 do :
16990   ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
16991 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
16992   cat >>confdefs.h <<_ACEOF
16993 #define HAVE_SQLITE3_H 1
16994 _ACEOF
16995
16996 fi
16997
16998 done
16999
17000  CPPFLAGS="$rra_SQLITE_save_CPPFLAGS"
17001  LDFLAGS="$rra_SQLITE_save_LDFLAGS"
17002  LIBS="$rra_SQLITE_save_LIBS"
17003 fi
17004 fi
17005  if test x"$SQLITE_LIBS" != x; then :
17006   rra_use_SQLITE=true
17007
17008 $as_echo "#define HAVE_SQLITE 1" >>confdefs.h
17009
17010 fi
17011
17012 save_LIBS="$LIBS"
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17014 $as_echo_n "checking for library containing dlopen... " >&6; }
17015 if ${ac_cv_search_dlopen+:} false; then :
17016   $as_echo_n "(cached) " >&6
17017 else
17018   ac_func_search_save_LIBS=$LIBS
17019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17020 /* end confdefs.h.  */
17021
17022 /* Override any GCC internal prototype to avoid an error.
17023    Use char because int might match the return type of a GCC
17024    builtin and then its argument prototype would still apply.  */
17025 #ifdef __cplusplus
17026 extern "C"
17027 #endif
17028 char dlopen ();
17029 int
17030 main ()
17031 {
17032 return dlopen ();
17033   ;
17034   return 0;
17035 }
17036 _ACEOF
17037 for ac_lib in '' dl; do
17038   if test -z "$ac_lib"; then
17039     ac_res="none required"
17040   else
17041     ac_res=-l$ac_lib
17042     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17043   fi
17044   if ac_fn_c_try_link "$LINENO"; then :
17045   ac_cv_search_dlopen=$ac_res
17046 fi
17047 rm -f core conftest.err conftest.$ac_objext \
17048     conftest$ac_exeext
17049   if ${ac_cv_search_dlopen+:} false; then :
17050   break
17051 fi
17052 done
17053 if ${ac_cv_search_dlopen+:} false; then :
17054
17055 else
17056   ac_cv_search_dlopen=no
17057 fi
17058 rm conftest.$ac_ext
17059 LIBS=$ac_func_search_save_LIBS
17060 fi
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17062 $as_echo "$ac_cv_search_dlopen" >&6; }
17063 ac_res=$ac_cv_search_dlopen
17064 if test "$ac_res" != no; then :
17065   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17066   DL_LIBS="$LIBS"
17067 fi
17068
17069 LIBS="$save_LIBS"
17070
17071
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
17073 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
17074 if ${ac_cv_header_stdbool_h+:} false; then :
17075   $as_echo_n "(cached) " >&6
17076 else
17077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17078 /* end confdefs.h.  */
17079
17080              #include <stdbool.h>
17081              #ifndef bool
17082               "error: bool is not defined"
17083              #endif
17084              #ifndef false
17085               "error: false is not defined"
17086              #endif
17087              #if false
17088               "error: false is not 0"
17089              #endif
17090              #ifndef true
17091               "error: true is not defined"
17092              #endif
17093              #if true != 1
17094               "error: true is not 1"
17095              #endif
17096              #ifndef __bool_true_false_are_defined
17097               "error: __bool_true_false_are_defined is not defined"
17098              #endif
17099
17100              struct s { _Bool s: 1; _Bool t; } s;
17101
17102              char a[true == 1 ? 1 : -1];
17103              char b[false == 0 ? 1 : -1];
17104              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
17105              char d[(bool) 0.5 == true ? 1 : -1];
17106              /* See body of main program for 'e'.  */
17107              char f[(_Bool) 0.0 == false ? 1 : -1];
17108              char g[true];
17109              char h[sizeof (_Bool)];
17110              char i[sizeof s.t];
17111              enum { j = false, k = true, l = false * true, m = true * 256 };
17112              /* The following fails for
17113                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
17114              _Bool n[m];
17115              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
17116              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
17117              /* Catch a bug in an HP-UX C compiler.  See
17118                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
17119                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
17120               */
17121              _Bool q = true;
17122              _Bool *pq = &q;
17123
17124 int
17125 main ()
17126 {
17127
17128              bool e = &s;
17129              *pq |= q;
17130              *pq |= ! q;
17131              /* Refer to every declared value, to avoid compiler optimizations.  */
17132              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
17133                      + !m + !n + !o + !p + !q + !pq);
17134
17135   ;
17136   return 0;
17137 }
17138 _ACEOF
17139 if ac_fn_c_try_compile "$LINENO"; then :
17140   ac_cv_header_stdbool_h=yes
17141 else
17142   ac_cv_header_stdbool_h=no
17143 fi
17144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17145 fi
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
17147 $as_echo "$ac_cv_header_stdbool_h" >&6; }
17148    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
17149 if test "x$ac_cv_type__Bool" = xyes; then :
17150
17151 cat >>confdefs.h <<_ACEOF
17152 #define HAVE__BOOL 1
17153 _ACEOF
17154
17155
17156 fi
17157
17158
17159 if test $ac_cv_header_stdbool_h = yes; then
17160
17161 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
17162
17163 fi
17164
17165 for ac_header in sys/bittypes.h sys/select.h syslog.h
17166 do :
17167   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17168 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17169 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17170   cat >>confdefs.h <<_ACEOF
17171 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17172 _ACEOF
17173
17174 fi
17175
17176 done
17177
17178 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
17179 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
17180   ac_have_decl=1
17181 else
17182   ac_have_decl=0
17183 fi
17184
17185 cat >>confdefs.h <<_ACEOF
17186 #define HAVE_DECL_SNPRINTF $ac_have_decl
17187 _ACEOF
17188 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
17189 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
17190   ac_have_decl=1
17191 else
17192   ac_have_decl=0
17193 fi
17194
17195 cat >>confdefs.h <<_ACEOF
17196 #define HAVE_DECL_VSNPRINTF $ac_have_decl
17197 _ACEOF
17198
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 variadic macros" >&5
17200 $as_echo_n "checking for C99 variadic macros... " >&6; }
17201 if ${rra_cv_c_c99_vamacros+:} false; then :
17202   $as_echo_n "(cached) " >&6
17203 else
17204   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17205 /* end confdefs.h.  */
17206
17207 #include <stdio.h>
17208 #define error(...) fprintf(stderr, __VA_ARGS__)
17209
17210 int
17211 main(void) {
17212     error("foo");
17213     error("foo %d", 0);
17214     return 0;
17215 }
17216
17217 _ACEOF
17218 if ac_fn_c_try_compile "$LINENO"; then :
17219   rra_cv_c_c99_vamacros=yes
17220 else
17221   rra_cv_c_c99_vamacros=no
17222 fi
17223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17224 fi
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_c_c99_vamacros" >&5
17226 $as_echo "$rra_cv_c_c99_vamacros" >&6; }
17227  if test x"$rra_cv_c_c99_vamacros" = xyes; then :
17228
17229 $as_echo "#define HAVE_C99_VAMACROS 1" >>confdefs.h
17230
17231 fi
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU-style variadic macros" >&5
17233 $as_echo_n "checking for GNU-style variadic macros... " >&6; }
17234 if ${rra_cv_c_gnu_vamacros+:} false; then :
17235   $as_echo_n "(cached) " >&6
17236 else
17237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17238 /* end confdefs.h.  */
17239
17240 #include <stdio.h>
17241 #define error(args...) fprintf(stderr, args)
17242
17243 int
17244 main(void) {
17245     error("foo");
17246     error("foo %d", 0);
17247     return 0;
17248 }
17249
17250 _ACEOF
17251 if ac_fn_c_try_compile "$LINENO"; then :
17252   rra_cv_c_gnu_vamacros=yes
17253 else
17254   rra_cv_c_gnu_vamacros=no
17255 fi
17256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17257 fi
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_c_gnu_vamacros" >&5
17259 $as_echo "$rra_cv_c_gnu_vamacros" >&6; }
17260  if test x"$rra_cv_c_gnu_vamacros" = xyes; then :
17261
17262 $as_echo "#define HAVE_GNU_VAMACROS 1" >>confdefs.h
17263
17264 fi
17265
17266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17267 $as_echo_n "checking for unsigned long long int... " >&6; }
17268 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
17269   $as_echo_n "(cached) " >&6
17270 else
17271   ac_cv_type_unsigned_long_long_int=yes
17272      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17273        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17274 /* end confdefs.h.  */
17275
17276   /* For now, do not test the preprocessor; as of 2007 there are too many
17277          implementations with broken preprocessors.  Perhaps this can
17278          be revisited in 2012.  In the meantime, code should not expect
17279          #if to work with literals wider than 32 bits.  */
17280       /* Test literals.  */
17281       long long int ll = 9223372036854775807ll;
17282       long long int nll = -9223372036854775807LL;
17283       unsigned long long int ull = 18446744073709551615ULL;
17284       /* Test constant expressions.   */
17285       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17286                      ? 1 : -1)];
17287       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17288                      ? 1 : -1)];
17289       int i = 63;
17290 int
17291 main ()
17292 {
17293 /* Test availability of runtime routines for shift and division.  */
17294       long long int llmax = 9223372036854775807ll;
17295       unsigned long long int ullmax = 18446744073709551615ull;
17296       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17297               | (llmax / ll) | (llmax % ll)
17298               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17299               | (ullmax / ull) | (ullmax % ull));
17300   ;
17301   return 0;
17302 }
17303
17304 _ACEOF
17305 if ac_fn_c_try_link "$LINENO"; then :
17306
17307 else
17308   ac_cv_type_unsigned_long_long_int=no
17309 fi
17310 rm -f core conftest.err conftest.$ac_objext \
17311     conftest$ac_exeext conftest.$ac_ext
17312      fi
17313 fi
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17315 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17316   if test $ac_cv_type_unsigned_long_long_int = yes; then
17317
17318 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17319
17320   fi
17321
17322
17323
17324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17325 $as_echo_n "checking for long long int... " >&6; }
17326 if ${ac_cv_type_long_long_int+:} false; then :
17327   $as_echo_n "(cached) " >&6
17328 else
17329   ac_cv_type_long_long_int=yes
17330       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17331         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17332         if test $ac_cv_type_long_long_int = yes; then
17333                                         if test "$cross_compiling" = yes; then :
17334   :
17335 else
17336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17337 /* end confdefs.h.  */
17338 #include <limits.h>
17339                  #ifndef LLONG_MAX
17340                  # define HALF \
17341                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17342                  # define LLONG_MAX (HALF - 1 + HALF)
17343                  #endif
17344 int
17345 main ()
17346 {
17347 long long int n = 1;
17348                  int i;
17349                  for (i = 0; ; i++)
17350                    {
17351                      long long int m = n << i;
17352                      if (m >> i != n)
17353                        return 1;
17354                      if (LLONG_MAX / 2 < m)
17355                        break;
17356                    }
17357                  return 0;
17358   ;
17359   return 0;
17360 }
17361 _ACEOF
17362 if ac_fn_c_try_run "$LINENO"; then :
17363
17364 else
17365   ac_cv_type_long_long_int=no
17366 fi
17367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17368   conftest.$ac_objext conftest.beam conftest.$ac_ext
17369 fi
17370
17371         fi
17372       fi
17373 fi
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17375 $as_echo "$ac_cv_type_long_long_int" >&6; }
17376   if test $ac_cv_type_long_long_int = yes; then
17377
17378 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17379
17380   fi
17381
17382 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
17383 case $ac_cv_c_uint8_t in #(
17384   no|yes) ;; #(
17385   *)
17386
17387 $as_echo "#define _UINT8_T 1" >>confdefs.h
17388
17389
17390 cat >>confdefs.h <<_ACEOF
17391 #define uint8_t $ac_cv_c_uint8_t
17392 _ACEOF
17393 ;;
17394   esac
17395
17396 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
17397 case $ac_cv_c_uint16_t in #(
17398   no|yes) ;; #(
17399   *)
17400
17401
17402 cat >>confdefs.h <<_ACEOF
17403 #define uint16_t $ac_cv_c_uint16_t
17404 _ACEOF
17405 ;;
17406   esac
17407
17408 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
17409 case $ac_cv_c_uint32_t in #(
17410   no|yes) ;; #(
17411   *)
17412
17413 $as_echo "#define _UINT32_T 1" >>confdefs.h
17414
17415
17416 cat >>confdefs.h <<_ACEOF
17417 #define uint32_t $ac_cv_c_uint32_t
17418 _ACEOF
17419 ;;
17420   esac
17421
17422 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
17423 "
17424 if test "x$ac_cv_type_ssize_t" = xyes; then :
17425
17426 cat >>confdefs.h <<_ACEOF
17427 #define HAVE_SSIZE_T 1
17428 _ACEOF
17429
17430
17431 fi
17432
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working snprintf" >&5
17434 $as_echo_n "checking for working snprintf... " >&6; }
17435 if ${rra_cv_func_snprintf_works+:} false; then :
17436   $as_echo_n "(cached) " >&6
17437 else
17438   if test "$cross_compiling" = yes; then :
17439   rra_cv_func_snprintf_works=no
17440 else
17441   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17442 /* end confdefs.h.  */
17443
17444 #include <stdio.h>
17445 #include <stdarg.h>
17446
17447 char buf[2];
17448
17449 int
17450 test(char *format, ...)
17451 {
17452     va_list args;
17453     int count;
17454
17455     va_start(args, format);
17456     count = vsnprintf(buf, sizeof buf, format, args);
17457     va_end(args);
17458     return count;
17459 }
17460
17461 int
17462 main()
17463 {
17464     return ((test("%s", "abcd") == 4 && buf[0] == 'a' && buf[1] == '\0'
17465              && snprintf(NULL, 0, "%s", "abcd") == 4) ? 0 : 1);
17466 }
17467
17468 _ACEOF
17469 if ac_fn_c_try_run "$LINENO"; then :
17470   rra_cv_func_snprintf_works=yes
17471 else
17472   rra_cv_func_snprintf_works=no
17473 fi
17474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17475   conftest.$ac_objext conftest.beam conftest.$ac_ext
17476 fi
17477
17478 fi
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_func_snprintf_works" >&5
17480 $as_echo "$rra_cv_func_snprintf_works" >&6; }
17481  if test x"$rra_cv_func_snprintf_works" = xyes; then :
17482
17483 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
17484
17485 else
17486   case " $LIBOBJS " in
17487   *" snprintf.$ac_objext "* ) ;;
17488   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17489  ;;
17490 esac
17491
17492 fi
17493 for ac_func in setrlimit
17494 do :
17495   ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
17496 if test "x$ac_cv_func_setrlimit" = xyes; then :
17497   cat >>confdefs.h <<_ACEOF
17498 #define HAVE_SETRLIMIT 1
17499 _ACEOF
17500
17501 fi
17502 done
17503
17504 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
17505 if test "x$ac_cv_func_asprintf" = xyes; then :
17506   $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
17507
17508 else
17509   case " $LIBOBJS " in
17510   *" asprintf.$ac_objext "* ) ;;
17511   *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
17512  ;;
17513 esac
17514
17515 fi
17516
17517 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
17518 if test "x$ac_cv_func_mkstemp" = xyes; then :
17519   $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
17520
17521 else
17522   case " $LIBOBJS " in
17523   *" mkstemp.$ac_objext "* ) ;;
17524   *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
17525  ;;
17526 esac
17527
17528 fi
17529
17530 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
17531 if test "x$ac_cv_func_strndup" = xyes; then :
17532   $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
17533
17534 else
17535   case " $LIBOBJS " in
17536   *" strndup.$ac_objext "* ) ;;
17537   *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
17538  ;;
17539 esac
17540
17541 fi
17542
17543
17544
17545 ac_config_files="$ac_config_files Makefile"
17546
17547 ac_config_headers="$ac_config_headers config.h"
17548
17549 cat >confcache <<\_ACEOF
17550 # This file is a shell script that caches the results of configure
17551 # tests run on this system so they can be shared between configure
17552 # scripts and configure runs, see configure's option --config-cache.
17553 # It is not useful on other systems.  If it contains results you don't
17554 # want to keep, you may remove or edit it.
17555 #
17556 # config.status only pays attention to the cache file if you give it
17557 # the --recheck option to rerun configure.
17558 #
17559 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17560 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17561 # following values.
17562
17563 _ACEOF
17564
17565 # The following way of writing the cache mishandles newlines in values,
17566 # but we know of no workaround that is simple, portable, and efficient.
17567 # So, we kill variables containing newlines.
17568 # Ultrix sh set writes to stderr and can't be redirected directly,
17569 # and sets the high bit in the cache file unless we assign to the vars.
17570 (
17571   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17572     eval ac_val=\$$ac_var
17573     case $ac_val in #(
17574     *${as_nl}*)
17575       case $ac_var in #(
17576       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17577 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17578       esac
17579       case $ac_var in #(
17580       _ | IFS | as_nl) ;; #(
17581       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17582       *) { eval $ac_var=; unset $ac_var;} ;;
17583       esac ;;
17584     esac
17585   done
17586
17587   (set) 2>&1 |
17588     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17589     *${as_nl}ac_space=\ *)
17590       # `set' does not quote correctly, so add quotes: double-quote
17591       # substitution turns \\\\ into \\, and sed turns \\ into \.
17592       sed -n \
17593         "s/'/'\\\\''/g;
17594           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17595       ;; #(
17596     *)
17597       # `set' quotes correctly as required by POSIX, so do not add quotes.
17598       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17599       ;;
17600     esac |
17601     sort
17602 ) |
17603   sed '
17604      /^ac_cv_env_/b end
17605      t clear
17606      :clear
17607      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17608      t end
17609      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17610      :end' >>confcache
17611 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17612   if test -w "$cache_file"; then
17613     if test "x$cache_file" != "x/dev/null"; then
17614       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17615 $as_echo "$as_me: updating cache $cache_file" >&6;}
17616       if test ! -f "$cache_file" || test -h "$cache_file"; then
17617         cat confcache >"$cache_file"
17618       else
17619         case $cache_file in #(
17620         */* | ?:*)
17621           mv -f confcache "$cache_file"$$ &&
17622           mv -f "$cache_file"$$ "$cache_file" ;; #(
17623         *)
17624           mv -f confcache "$cache_file" ;;
17625         esac
17626       fi
17627     fi
17628   else
17629     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17630 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17631   fi
17632 fi
17633 rm -f confcache
17634
17635 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17636 # Let make expand exec_prefix.
17637 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17638
17639 DEFS=-DHAVE_CONFIG_H
17640
17641 ac_libobjs=
17642 ac_ltlibobjs=
17643 U=
17644 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17645   # 1. Remove the extension, and $U if already installed.
17646   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17647   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17648   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17649   #    will be set to the directory where LIBOBJS objects are built.
17650   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17651   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17652 done
17653 LIBOBJS=$ac_libobjs
17654
17655 LTLIBOBJS=$ac_ltlibobjs
17656
17657
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17659 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17660    if test -n "$am_sleep_pid"; then
17661      # Hide warnings about reused PIDs.
17662      wait $am_sleep_pid 2>/dev/null
17663    fi
17664    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17665 $as_echo "done" >&6; }
17666  if test -n "$EXEEXT"; then
17667   am__EXEEXT_TRUE=
17668   am__EXEEXT_FALSE='#'
17669 else
17670   am__EXEEXT_TRUE='#'
17671   am__EXEEXT_FALSE=
17672 fi
17673
17674 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17675   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17677 fi
17678 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17679   as_fn_error $? "conditional \"AMDEP\" was never defined.
17680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17681 fi
17682 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17683   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17685 fi
17686 if test -z "${EMBEDDED_CRACKLIB_TRUE}" && test -z "${EMBEDDED_CRACKLIB_FALSE}"; then
17687   as_fn_error $? "conditional \"EMBEDDED_CRACKLIB\" was never defined.
17688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17689 fi
17690 if test -z "${KRB5_USES_COM_ERR_TRUE}" && test -z "${KRB5_USES_COM_ERR_FALSE}"; then
17691   as_fn_error $? "conditional \"KRB5_USES_COM_ERR\" was never defined.
17692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17693 fi
17694
17695 : "${CONFIG_STATUS=./config.status}"
17696 ac_write_fail=0
17697 ac_clean_files_save=$ac_clean_files
17698 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17700 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17701 as_write_fail=0
17702 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17703 #! $SHELL
17704 # Generated by $as_me.
17705 # Run this file to recreate the current configuration.
17706 # Compiler output produced by configure, useful for debugging
17707 # configure, is in config.log if it exists.
17708
17709 debug=false
17710 ac_cs_recheck=false
17711 ac_cs_silent=false
17712
17713 SHELL=\${CONFIG_SHELL-$SHELL}
17714 export SHELL
17715 _ASEOF
17716 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17717 ## -------------------- ##
17718 ## M4sh Initialization. ##
17719 ## -------------------- ##
17720
17721 # Be more Bourne compatible
17722 DUALCASE=1; export DUALCASE # for MKS sh
17723 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17724   emulate sh
17725   NULLCMD=:
17726   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17727   # is contrary to our usage.  Disable this feature.
17728   alias -g '${1+"$@"}'='"$@"'
17729   setopt NO_GLOB_SUBST
17730 else
17731   case `(set -o) 2>/dev/null` in #(
17732   *posix*) :
17733     set -o posix ;; #(
17734   *) :
17735      ;;
17736 esac
17737 fi
17738
17739
17740 as_nl='
17741 '
17742 export as_nl
17743 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17744 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17745 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17746 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17747 # Prefer a ksh shell builtin over an external printf program on Solaris,
17748 # but without wasting forks for bash or zsh.
17749 if test -z "$BASH_VERSION$ZSH_VERSION" \
17750     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17751   as_echo='print -r --'
17752   as_echo_n='print -rn --'
17753 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17754   as_echo='printf %s\n'
17755   as_echo_n='printf %s'
17756 else
17757   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17758     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17759     as_echo_n='/usr/ucb/echo -n'
17760   else
17761     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17762     as_echo_n_body='eval
17763       arg=$1;
17764       case $arg in #(
17765       *"$as_nl"*)
17766         expr "X$arg" : "X\\(.*\\)$as_nl";
17767         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17768       esac;
17769       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17770     '
17771     export as_echo_n_body
17772     as_echo_n='sh -c $as_echo_n_body as_echo'
17773   fi
17774   export as_echo_body
17775   as_echo='sh -c $as_echo_body as_echo'
17776 fi
17777
17778 # The user is always right.
17779 if test "${PATH_SEPARATOR+set}" != set; then
17780   PATH_SEPARATOR=:
17781   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17782     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17783       PATH_SEPARATOR=';'
17784   }
17785 fi
17786
17787
17788 # IFS
17789 # We need space, tab and new line, in precisely that order.  Quoting is
17790 # there to prevent editors from complaining about space-tab.
17791 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17792 # splitting by setting IFS to empty value.)
17793 IFS=" ""        $as_nl"
17794
17795 # Find who we are.  Look in the path if we contain no directory separator.
17796 as_myself=
17797 case $0 in #((
17798   *[\\/]* ) as_myself=$0 ;;
17799   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17800 for as_dir in $PATH
17801 do
17802   IFS=$as_save_IFS
17803   test -z "$as_dir" && as_dir=.
17804     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17805   done
17806 IFS=$as_save_IFS
17807
17808      ;;
17809 esac
17810 # We did not find ourselves, most probably we were run as `sh COMMAND'
17811 # in which case we are not to be found in the path.
17812 if test "x$as_myself" = x; then
17813   as_myself=$0
17814 fi
17815 if test ! -f "$as_myself"; then
17816   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17817   exit 1
17818 fi
17819
17820 # Unset variables that we do not need and which cause bugs (e.g. in
17821 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17822 # suppresses any "Segmentation fault" message there.  '((' could
17823 # trigger a bug in pdksh 5.2.14.
17824 for as_var in BASH_ENV ENV MAIL MAILPATH
17825 do eval test x\${$as_var+set} = xset \
17826   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17827 done
17828 PS1='$ '
17829 PS2='> '
17830 PS4='+ '
17831
17832 # NLS nuisances.
17833 LC_ALL=C
17834 export LC_ALL
17835 LANGUAGE=C
17836 export LANGUAGE
17837
17838 # CDPATH.
17839 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17840
17841
17842 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17843 # ----------------------------------------
17844 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17845 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17846 # script with STATUS, using 1 if that was 0.
17847 as_fn_error ()
17848 {
17849   as_status=$1; test $as_status -eq 0 && as_status=1
17850   if test "$4"; then
17851     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17852     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17853   fi
17854   $as_echo "$as_me: error: $2" >&2
17855   as_fn_exit $as_status
17856 } # as_fn_error
17857
17858
17859 # as_fn_set_status STATUS
17860 # -----------------------
17861 # Set $? to STATUS, without forking.
17862 as_fn_set_status ()
17863 {
17864   return $1
17865 } # as_fn_set_status
17866
17867 # as_fn_exit STATUS
17868 # -----------------
17869 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17870 as_fn_exit ()
17871 {
17872   set +e
17873   as_fn_set_status $1
17874   exit $1
17875 } # as_fn_exit
17876
17877 # as_fn_unset VAR
17878 # ---------------
17879 # Portably unset VAR.
17880 as_fn_unset ()
17881 {
17882   { eval $1=; unset $1;}
17883 }
17884 as_unset=as_fn_unset
17885 # as_fn_append VAR VALUE
17886 # ----------------------
17887 # Append the text in VALUE to the end of the definition contained in VAR. Take
17888 # advantage of any shell optimizations that allow amortized linear growth over
17889 # repeated appends, instead of the typical quadratic growth present in naive
17890 # implementations.
17891 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17892   eval 'as_fn_append ()
17893   {
17894     eval $1+=\$2
17895   }'
17896 else
17897   as_fn_append ()
17898   {
17899     eval $1=\$$1\$2
17900   }
17901 fi # as_fn_append
17902
17903 # as_fn_arith ARG...
17904 # ------------------
17905 # Perform arithmetic evaluation on the ARGs, and store the result in the
17906 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17907 # must be portable across $(()) and expr.
17908 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17909   eval 'as_fn_arith ()
17910   {
17911     as_val=$(( $* ))
17912   }'
17913 else
17914   as_fn_arith ()
17915   {
17916     as_val=`expr "$@" || test $? -eq 1`
17917   }
17918 fi # as_fn_arith
17919
17920
17921 if expr a : '\(a\)' >/dev/null 2>&1 &&
17922    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17923   as_expr=expr
17924 else
17925   as_expr=false
17926 fi
17927
17928 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17929   as_basename=basename
17930 else
17931   as_basename=false
17932 fi
17933
17934 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17935   as_dirname=dirname
17936 else
17937   as_dirname=false
17938 fi
17939
17940 as_me=`$as_basename -- "$0" ||
17941 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17942          X"$0" : 'X\(//\)$' \| \
17943          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17944 $as_echo X/"$0" |
17945     sed '/^.*\/\([^/][^/]*\)\/*$/{
17946             s//\1/
17947             q
17948           }
17949           /^X\/\(\/\/\)$/{
17950             s//\1/
17951             q
17952           }
17953           /^X\/\(\/\).*/{
17954             s//\1/
17955             q
17956           }
17957           s/.*/./; q'`
17958
17959 # Avoid depending upon Character Ranges.
17960 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17961 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17962 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17963 as_cr_digits='0123456789'
17964 as_cr_alnum=$as_cr_Letters$as_cr_digits
17965
17966 ECHO_C= ECHO_N= ECHO_T=
17967 case `echo -n x` in #(((((
17968 -n*)
17969   case `echo 'xy\c'` in
17970   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17971   xy)  ECHO_C='\c';;
17972   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17973        ECHO_T=' ';;
17974   esac;;
17975 *)
17976   ECHO_N='-n';;
17977 esac
17978
17979 rm -f conf$$ conf$$.exe conf$$.file
17980 if test -d conf$$.dir; then
17981   rm -f conf$$.dir/conf$$.file
17982 else
17983   rm -f conf$$.dir
17984   mkdir conf$$.dir 2>/dev/null
17985 fi
17986 if (echo >conf$$.file) 2>/dev/null; then
17987   if ln -s conf$$.file conf$$ 2>/dev/null; then
17988     as_ln_s='ln -s'
17989     # ... but there are two gotchas:
17990     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17991     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17992     # In both cases, we have to default to `cp -pR'.
17993     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17994       as_ln_s='cp -pR'
17995   elif ln conf$$.file conf$$ 2>/dev/null; then
17996     as_ln_s=ln
17997   else
17998     as_ln_s='cp -pR'
17999   fi
18000 else
18001   as_ln_s='cp -pR'
18002 fi
18003 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18004 rmdir conf$$.dir 2>/dev/null
18005
18006
18007 # as_fn_mkdir_p
18008 # -------------
18009 # Create "$as_dir" as a directory, including parents if necessary.
18010 as_fn_mkdir_p ()
18011 {
18012
18013   case $as_dir in #(
18014   -*) as_dir=./$as_dir;;
18015   esac
18016   test -d "$as_dir" || eval $as_mkdir_p || {
18017     as_dirs=
18018     while :; do
18019       case $as_dir in #(
18020       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18021       *) as_qdir=$as_dir;;
18022       esac
18023       as_dirs="'$as_qdir' $as_dirs"
18024       as_dir=`$as_dirname -- "$as_dir" ||
18025 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18026          X"$as_dir" : 'X\(//\)[^/]' \| \
18027          X"$as_dir" : 'X\(//\)$' \| \
18028          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18029 $as_echo X"$as_dir" |
18030     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18031             s//\1/
18032             q
18033           }
18034           /^X\(\/\/\)[^/].*/{
18035             s//\1/
18036             q
18037           }
18038           /^X\(\/\/\)$/{
18039             s//\1/
18040             q
18041           }
18042           /^X\(\/\).*/{
18043             s//\1/
18044             q
18045           }
18046           s/.*/./; q'`
18047       test -d "$as_dir" && break
18048     done
18049     test -z "$as_dirs" || eval "mkdir $as_dirs"
18050   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18051
18052
18053 } # as_fn_mkdir_p
18054 if mkdir -p . 2>/dev/null; then
18055   as_mkdir_p='mkdir -p "$as_dir"'
18056 else
18057   test -d ./-p && rmdir ./-p
18058   as_mkdir_p=false
18059 fi
18060
18061
18062 # as_fn_executable_p FILE
18063 # -----------------------
18064 # Test if FILE is an executable regular file.
18065 as_fn_executable_p ()
18066 {
18067   test -f "$1" && test -x "$1"
18068 } # as_fn_executable_p
18069 as_test_x='test -x'
18070 as_executable_p=as_fn_executable_p
18071
18072 # Sed expression to map a string onto a valid CPP name.
18073 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18074
18075 # Sed expression to map a string onto a valid variable name.
18076 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18077
18078
18079 exec 6>&1
18080 ## ----------------------------------- ##
18081 ## Main body of $CONFIG_STATUS script. ##
18082 ## ----------------------------------- ##
18083 _ASEOF
18084 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18085
18086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18087 # Save the log message, to keep $0 and so on meaningful, and to
18088 # report actual input values of CONFIG_FILES etc. instead of their
18089 # values after options handling.
18090 ac_log="
18091 This file was extended by krb5-strength $as_me 3.0, which was
18092 generated by GNU Autoconf 2.69.  Invocation command line was
18093
18094   CONFIG_FILES    = $CONFIG_FILES
18095   CONFIG_HEADERS  = $CONFIG_HEADERS
18096   CONFIG_LINKS    = $CONFIG_LINKS
18097   CONFIG_COMMANDS = $CONFIG_COMMANDS
18098   $ $0 $@
18099
18100 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18101 "
18102
18103 _ACEOF
18104
18105 case $ac_config_files in *"
18106 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18107 esac
18108
18109 case $ac_config_headers in *"
18110 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18111 esac
18112
18113
18114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18115 # Files that config.status was made for.
18116 config_files="$ac_config_files"
18117 config_headers="$ac_config_headers"
18118 config_commands="$ac_config_commands"
18119
18120 _ACEOF
18121
18122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18123 ac_cs_usage="\
18124 \`$as_me' instantiates files and other configuration actions
18125 from templates according to the current configuration.  Unless the files
18126 and actions are specified as TAGs, all are instantiated by default.
18127
18128 Usage: $0 [OPTION]... [TAG]...
18129
18130   -h, --help       print this help, then exit
18131   -V, --version    print version number and configuration settings, then exit
18132       --config     print configuration, then exit
18133   -q, --quiet, --silent
18134                    do not print progress messages
18135   -d, --debug      don't remove temporary files
18136       --recheck    update $as_me by reconfiguring in the same conditions
18137       --file=FILE[:TEMPLATE]
18138                    instantiate the configuration file FILE
18139       --header=FILE[:TEMPLATE]
18140                    instantiate the configuration header FILE
18141
18142 Configuration files:
18143 $config_files
18144
18145 Configuration headers:
18146 $config_headers
18147
18148 Configuration commands:
18149 $config_commands
18150
18151 Report bugs to <eagle@eyrie.org>."
18152
18153 _ACEOF
18154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18155 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18156 ac_cs_version="\\
18157 krb5-strength config.status 3.0
18158 configured by $0, generated by GNU Autoconf 2.69,
18159   with options \\"\$ac_cs_config\\"
18160
18161 Copyright (C) 2012 Free Software Foundation, Inc.
18162 This config.status script is free software; the Free Software Foundation
18163 gives unlimited permission to copy, distribute and modify it."
18164
18165 ac_pwd='$ac_pwd'
18166 srcdir='$srcdir'
18167 INSTALL='$INSTALL'
18168 MKDIR_P='$MKDIR_P'
18169 AWK='$AWK'
18170 test -n "\$AWK" || AWK=awk
18171 _ACEOF
18172
18173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18174 # The default lists apply if the user does not specify any file.
18175 ac_need_defaults=:
18176 while test $# != 0
18177 do
18178   case $1 in
18179   --*=?*)
18180     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18181     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18182     ac_shift=:
18183     ;;
18184   --*=)
18185     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18186     ac_optarg=
18187     ac_shift=:
18188     ;;
18189   *)
18190     ac_option=$1
18191     ac_optarg=$2
18192     ac_shift=shift
18193     ;;
18194   esac
18195
18196   case $ac_option in
18197   # Handling of the options.
18198   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18199     ac_cs_recheck=: ;;
18200   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18201     $as_echo "$ac_cs_version"; exit ;;
18202   --config | --confi | --conf | --con | --co | --c )
18203     $as_echo "$ac_cs_config"; exit ;;
18204   --debug | --debu | --deb | --de | --d | -d )
18205     debug=: ;;
18206   --file | --fil | --fi | --f )
18207     $ac_shift
18208     case $ac_optarg in
18209     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18210     '') as_fn_error $? "missing file argument" ;;
18211     esac
18212     as_fn_append CONFIG_FILES " '$ac_optarg'"
18213     ac_need_defaults=false;;
18214   --header | --heade | --head | --hea )
18215     $ac_shift
18216     case $ac_optarg in
18217     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18218     esac
18219     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18220     ac_need_defaults=false;;
18221   --he | --h)
18222     # Conflict between --help and --header
18223     as_fn_error $? "ambiguous option: \`$1'
18224 Try \`$0 --help' for more information.";;
18225   --help | --hel | -h )
18226     $as_echo "$ac_cs_usage"; exit ;;
18227   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18228   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18229     ac_cs_silent=: ;;
18230
18231   # This is an error.
18232   -*) as_fn_error $? "unrecognized option: \`$1'
18233 Try \`$0 --help' for more information." ;;
18234
18235   *) as_fn_append ac_config_targets " $1"
18236      ac_need_defaults=false ;;
18237
18238   esac
18239   shift
18240 done
18241
18242 ac_configure_extra_args=
18243
18244 if $ac_cs_silent; then
18245   exec 6>/dev/null
18246   ac_configure_extra_args="$ac_configure_extra_args --silent"
18247 fi
18248
18249 _ACEOF
18250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18251 if \$ac_cs_recheck; then
18252   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18253   shift
18254   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18255   CONFIG_SHELL='$SHELL'
18256   export CONFIG_SHELL
18257   exec "\$@"
18258 fi
18259
18260 _ACEOF
18261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18262 exec 5>>config.log
18263 {
18264   echo
18265   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18266 ## Running $as_me. ##
18267 _ASBOX
18268   $as_echo "$ac_log"
18269 } >&5
18270
18271 _ACEOF
18272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18273 #
18274 # INIT-COMMANDS
18275 #
18276 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18277
18278
18279 # The HP-UX ksh and POSIX shell print the target directory to stdout
18280 # if CDPATH is set.
18281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18282
18283 sed_quote_subst='$sed_quote_subst'
18284 double_quote_subst='$double_quote_subst'
18285 delay_variable_subst='$delay_variable_subst'
18286 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18287 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18288 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18289 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18290 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18291 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18292 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18293 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18294 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18295 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18296 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18297 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18298 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18299 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18300 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18301 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18302 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18303 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18304 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18305 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18306 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18307 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18308 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18309 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18310 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18311 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18312 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18313 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18314 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18315 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18316 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18317 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18318 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18319 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18320 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18321 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18322 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18323 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18324 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18325 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18326 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18327 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18328 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18329 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18330 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18331 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18332 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18333 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18334 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18335 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18336 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18337 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18338 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18339 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18340 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18341 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18342 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"`'
18343 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18344 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18345 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18346 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18347 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18348 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18349 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18350 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18351 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18352 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18353 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18354 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18355 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18356 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18357 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18358 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18359 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18360 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18361 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18362 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18363 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18364 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18365 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18366 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18367 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18368 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18369 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18370 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18371 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18372 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18373 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18374 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18375 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18376 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18377 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18378 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18379 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18380 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18381 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18382 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18383 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18384 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18385 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18386 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18387 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18388 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18389 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18390 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18391 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18392 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18393 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18394 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18395 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18396 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18397 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18398 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18399 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18400 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18401 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18402 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18403 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18404 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18405 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18406 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18407 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18408 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18409 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18410 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18411 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18412 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18413 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18414 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18415 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18416
18417 LTCC='$LTCC'
18418 LTCFLAGS='$LTCFLAGS'
18419 compiler='$compiler_DEFAULT'
18420
18421 # A function that is used when there is no print builtin or printf.
18422 func_fallback_echo ()
18423 {
18424   eval 'cat <<_LTECHO_EOF
18425 \$1
18426 _LTECHO_EOF'
18427 }
18428
18429 # Quote evaled strings.
18430 for var in SHELL \
18431 ECHO \
18432 PATH_SEPARATOR \
18433 SED \
18434 GREP \
18435 EGREP \
18436 FGREP \
18437 LD \
18438 NM \
18439 LN_S \
18440 lt_SP2NL \
18441 lt_NL2SP \
18442 reload_flag \
18443 OBJDUMP \
18444 deplibs_check_method \
18445 file_magic_cmd \
18446 file_magic_glob \
18447 want_nocaseglob \
18448 DLLTOOL \
18449 sharedlib_from_linklib_cmd \
18450 AR \
18451 AR_FLAGS \
18452 archiver_list_spec \
18453 STRIP \
18454 RANLIB \
18455 CC \
18456 CFLAGS \
18457 compiler \
18458 lt_cv_sys_global_symbol_pipe \
18459 lt_cv_sys_global_symbol_to_cdecl \
18460 lt_cv_sys_global_symbol_to_c_name_address \
18461 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18462 nm_file_list_spec \
18463 lt_prog_compiler_no_builtin_flag \
18464 lt_prog_compiler_pic \
18465 lt_prog_compiler_wl \
18466 lt_prog_compiler_static \
18467 lt_cv_prog_compiler_c_o \
18468 need_locks \
18469 MANIFEST_TOOL \
18470 DSYMUTIL \
18471 NMEDIT \
18472 LIPO \
18473 OTOOL \
18474 OTOOL64 \
18475 shrext_cmds \
18476 export_dynamic_flag_spec \
18477 whole_archive_flag_spec \
18478 compiler_needs_object \
18479 with_gnu_ld \
18480 allow_undefined_flag \
18481 no_undefined_flag \
18482 hardcode_libdir_flag_spec \
18483 hardcode_libdir_separator \
18484 exclude_expsyms \
18485 include_expsyms \
18486 file_list_spec \
18487 variables_saved_for_relink \
18488 libname_spec \
18489 library_names_spec \
18490 soname_spec \
18491 install_override_mode \
18492 finish_eval \
18493 old_striplib \
18494 striplib; do
18495     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18496     *[\\\\\\\`\\"\\\$]*)
18497       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18498       ;;
18499     *)
18500       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18501       ;;
18502     esac
18503 done
18504
18505 # Double-quote double-evaled strings.
18506 for var in reload_cmds \
18507 old_postinstall_cmds \
18508 old_postuninstall_cmds \
18509 old_archive_cmds \
18510 extract_expsyms_cmds \
18511 old_archive_from_new_cmds \
18512 old_archive_from_expsyms_cmds \
18513 archive_cmds \
18514 archive_expsym_cmds \
18515 module_cmds \
18516 module_expsym_cmds \
18517 export_symbols_cmds \
18518 prelink_cmds \
18519 postlink_cmds \
18520 postinstall_cmds \
18521 postuninstall_cmds \
18522 finish_cmds \
18523 sys_lib_search_path_spec \
18524 sys_lib_dlsearch_path_spec; do
18525     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18526     *[\\\\\\\`\\"\\\$]*)
18527       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18528       ;;
18529     *)
18530       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18531       ;;
18532     esac
18533 done
18534
18535 ac_aux_dir='$ac_aux_dir'
18536 xsi_shell='$xsi_shell'
18537 lt_shell_append='$lt_shell_append'
18538
18539 # See if we are running on zsh, and set the options which allow our
18540 # commands through without removal of \ escapes INIT.
18541 if test -n "\${ZSH_VERSION+set}" ; then
18542    setopt NO_GLOB_SUBST
18543 fi
18544
18545
18546     PACKAGE='$PACKAGE'
18547     VERSION='$VERSION'
18548     TIMESTAMP='$TIMESTAMP'
18549     RM='$RM'
18550     ofile='$ofile'
18551
18552
18553
18554
18555 _ACEOF
18556
18557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18558
18559 # Handling of arguments.
18560 for ac_config_target in $ac_config_targets
18561 do
18562   case $ac_config_target in
18563     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18564     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18565     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18566     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18567
18568   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18569   esac
18570 done
18571
18572
18573 # If the user did not use the arguments to specify the items to instantiate,
18574 # then the envvar interface is used.  Set only those that are not.
18575 # We use the long form for the default assignment because of an extremely
18576 # bizarre bug on SunOS 4.1.3.
18577 if $ac_need_defaults; then
18578   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18579   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18580   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18581 fi
18582
18583 # Have a temporary directory for convenience.  Make it in the build tree
18584 # simply because there is no reason against having it here, and in addition,
18585 # creating and moving files from /tmp can sometimes cause problems.
18586 # Hook for its removal unless debugging.
18587 # Note that there is a small window in which the directory will not be cleaned:
18588 # after its creation but before its name has been assigned to `$tmp'.
18589 $debug ||
18590 {
18591   tmp= ac_tmp=
18592   trap 'exit_status=$?
18593   : "${ac_tmp:=$tmp}"
18594   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18595 ' 0
18596   trap 'as_fn_exit 1' 1 2 13 15
18597 }
18598 # Create a (secure) tmp directory for tmp files.
18599
18600 {
18601   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18602   test -d "$tmp"
18603 }  ||
18604 {
18605   tmp=./conf$$-$RANDOM
18606   (umask 077 && mkdir "$tmp")
18607 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18608 ac_tmp=$tmp
18609
18610 # Set up the scripts for CONFIG_FILES section.
18611 # No need to generate them if there are no CONFIG_FILES.
18612 # This happens for instance with `./config.status config.h'.
18613 if test -n "$CONFIG_FILES"; then
18614
18615
18616 ac_cr=`echo X | tr X '\015'`
18617 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18618 # But we know of no other shell where ac_cr would be empty at this
18619 # point, so we can use a bashism as a fallback.
18620 if test "x$ac_cr" = x; then
18621   eval ac_cr=\$\'\\r\'
18622 fi
18623 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18624 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18625   ac_cs_awk_cr='\\r'
18626 else
18627   ac_cs_awk_cr=$ac_cr
18628 fi
18629
18630 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18631 _ACEOF
18632
18633
18634 {
18635   echo "cat >conf$$subs.awk <<_ACEOF" &&
18636   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18637   echo "_ACEOF"
18638 } >conf$$subs.sh ||
18639   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18640 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18641 ac_delim='%!_!# '
18642 for ac_last_try in false false false false false :; do
18643   . ./conf$$subs.sh ||
18644     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18645
18646   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18647   if test $ac_delim_n = $ac_delim_num; then
18648     break
18649   elif $ac_last_try; then
18650     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18651   else
18652     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18653   fi
18654 done
18655 rm -f conf$$subs.sh
18656
18657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18658 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18659 _ACEOF
18660 sed -n '
18661 h
18662 s/^/S["/; s/!.*/"]=/
18663 p
18664 g
18665 s/^[^!]*!//
18666 :repl
18667 t repl
18668 s/'"$ac_delim"'$//
18669 t delim
18670 :nl
18671 h
18672 s/\(.\{148\}\)..*/\1/
18673 t more1
18674 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18675 p
18676 n
18677 b repl
18678 :more1
18679 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18680 p
18681 g
18682 s/.\{148\}//
18683 t nl
18684 :delim
18685 h
18686 s/\(.\{148\}\)..*/\1/
18687 t more2
18688 s/["\\]/\\&/g; s/^/"/; s/$/"/
18689 p
18690 b
18691 :more2
18692 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18693 p
18694 g
18695 s/.\{148\}//
18696 t delim
18697 ' <conf$$subs.awk | sed '
18698 /^[^""]/{
18699   N
18700   s/\n//
18701 }
18702 ' >>$CONFIG_STATUS || ac_write_fail=1
18703 rm -f conf$$subs.awk
18704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18705 _ACAWK
18706 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18707   for (key in S) S_is_set[key] = 1
18708   FS = "\a"
18709
18710 }
18711 {
18712   line = $ 0
18713   nfields = split(line, field, "@")
18714   substed = 0
18715   len = length(field[1])
18716   for (i = 2; i < nfields; i++) {
18717     key = field[i]
18718     keylen = length(key)
18719     if (S_is_set[key]) {
18720       value = S[key]
18721       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18722       len += length(value) + length(field[++i])
18723       substed = 1
18724     } else
18725       len += 1 + keylen
18726   }
18727
18728   print line
18729 }
18730
18731 _ACAWK
18732 _ACEOF
18733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18734 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18735   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18736 else
18737   cat
18738 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18739   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18740 _ACEOF
18741
18742 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18743 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18744 # trailing colons and then remove the whole line if VPATH becomes empty
18745 # (actually we leave an empty line to preserve line numbers).
18746 if test "x$srcdir" = x.; then
18747   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18748 h
18749 s///
18750 s/^/:/
18751 s/[      ]*$/:/
18752 s/:\$(srcdir):/:/g
18753 s/:\${srcdir}:/:/g
18754 s/:@srcdir@:/:/g
18755 s/^:*//
18756 s/:*$//
18757 x
18758 s/\(=[   ]*\).*/\1/
18759 G
18760 s/\n//
18761 s/^[^=]*=[       ]*$//
18762 }'
18763 fi
18764
18765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18766 fi # test -n "$CONFIG_FILES"
18767
18768 # Set up the scripts for CONFIG_HEADERS section.
18769 # No need to generate them if there are no CONFIG_HEADERS.
18770 # This happens for instance with `./config.status Makefile'.
18771 if test -n "$CONFIG_HEADERS"; then
18772 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18773 BEGIN {
18774 _ACEOF
18775
18776 # Transform confdefs.h into an awk script `defines.awk', embedded as
18777 # here-document in config.status, that substitutes the proper values into
18778 # config.h.in to produce config.h.
18779
18780 # Create a delimiter string that does not exist in confdefs.h, to ease
18781 # handling of long lines.
18782 ac_delim='%!_!# '
18783 for ac_last_try in false false :; do
18784   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18785   if test -z "$ac_tt"; then
18786     break
18787   elif $ac_last_try; then
18788     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18789   else
18790     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18791   fi
18792 done
18793
18794 # For the awk script, D is an array of macro values keyed by name,
18795 # likewise P contains macro parameters if any.  Preserve backslash
18796 # newline sequences.
18797
18798 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18799 sed -n '
18800 s/.\{148\}/&'"$ac_delim"'/g
18801 t rset
18802 :rset
18803 s/^[     ]*#[    ]*define[       ][      ]*/ /
18804 t def
18805 d
18806 :def
18807 s/\\$//
18808 t bsnl
18809 s/["\\]/\\&/g
18810 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18811 D["\1"]=" \3"/p
18812 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18813 d
18814 :bsnl
18815 s/["\\]/\\&/g
18816 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18817 D["\1"]=" \3\\\\\\n"\\/p
18818 t cont
18819 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18820 t cont
18821 d
18822 :cont
18823 n
18824 s/.\{148\}/&'"$ac_delim"'/g
18825 t clear
18826 :clear
18827 s/\\$//
18828 t bsnlc
18829 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18830 d
18831 :bsnlc
18832 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18833 b cont
18834 ' <confdefs.h | sed '
18835 s/'"$ac_delim"'/"\\\
18836 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18837
18838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18839   for (key in D) D_is_set[key] = 1
18840   FS = "\a"
18841 }
18842 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18843   line = \$ 0
18844   split(line, arg, " ")
18845   if (arg[1] == "#") {
18846     defundef = arg[2]
18847     mac1 = arg[3]
18848   } else {
18849     defundef = substr(arg[1], 2)
18850     mac1 = arg[2]
18851   }
18852   split(mac1, mac2, "(") #)
18853   macro = mac2[1]
18854   prefix = substr(line, 1, index(line, defundef) - 1)
18855   if (D_is_set[macro]) {
18856     # Preserve the white space surrounding the "#".
18857     print prefix "define", macro P[macro] D[macro]
18858     next
18859   } else {
18860     # Replace #undef with comments.  This is necessary, for example,
18861     # in the case of _POSIX_SOURCE, which is predefined and required
18862     # on some systems where configure will not decide to define it.
18863     if (defundef == "undef") {
18864       print "/*", prefix defundef, macro, "*/"
18865       next
18866     }
18867   }
18868 }
18869 { print }
18870 _ACAWK
18871 _ACEOF
18872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18873   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18874 fi # test -n "$CONFIG_HEADERS"
18875
18876
18877 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18878 shift
18879 for ac_tag
18880 do
18881   case $ac_tag in
18882   :[FHLC]) ac_mode=$ac_tag; continue;;
18883   esac
18884   case $ac_mode$ac_tag in
18885   :[FHL]*:*);;
18886   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18887   :[FH]-) ac_tag=-:-;;
18888   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18889   esac
18890   ac_save_IFS=$IFS
18891   IFS=:
18892   set x $ac_tag
18893   IFS=$ac_save_IFS
18894   shift
18895   ac_file=$1
18896   shift
18897
18898   case $ac_mode in
18899   :L) ac_source=$1;;
18900   :[FH])
18901     ac_file_inputs=
18902     for ac_f
18903     do
18904       case $ac_f in
18905       -) ac_f="$ac_tmp/stdin";;
18906       *) # Look for the file first in the build tree, then in the source tree
18907          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18908          # because $ac_f cannot contain `:'.
18909          test -f "$ac_f" ||
18910            case $ac_f in
18911            [\\/$]*) false;;
18912            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18913            esac ||
18914            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18915       esac
18916       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18917       as_fn_append ac_file_inputs " '$ac_f'"
18918     done
18919
18920     # Let's still pretend it is `configure' which instantiates (i.e., don't
18921     # use $as_me), people would be surprised to read:
18922     #    /* config.h.  Generated by config.status.  */
18923     configure_input='Generated from '`
18924           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18925         `' by configure.'
18926     if test x"$ac_file" != x-; then
18927       configure_input="$ac_file.  $configure_input"
18928       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18929 $as_echo "$as_me: creating $ac_file" >&6;}
18930     fi
18931     # Neutralize special characters interpreted by sed in replacement strings.
18932     case $configure_input in #(
18933     *\&* | *\|* | *\\* )
18934        ac_sed_conf_input=`$as_echo "$configure_input" |
18935        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18936     *) ac_sed_conf_input=$configure_input;;
18937     esac
18938
18939     case $ac_tag in
18940     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18941       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18942     esac
18943     ;;
18944   esac
18945
18946   ac_dir=`$as_dirname -- "$ac_file" ||
18947 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18948          X"$ac_file" : 'X\(//\)[^/]' \| \
18949          X"$ac_file" : 'X\(//\)$' \| \
18950          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18951 $as_echo X"$ac_file" |
18952     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18953             s//\1/
18954             q
18955           }
18956           /^X\(\/\/\)[^/].*/{
18957             s//\1/
18958             q
18959           }
18960           /^X\(\/\/\)$/{
18961             s//\1/
18962             q
18963           }
18964           /^X\(\/\).*/{
18965             s//\1/
18966             q
18967           }
18968           s/.*/./; q'`
18969   as_dir="$ac_dir"; as_fn_mkdir_p
18970   ac_builddir=.
18971
18972 case "$ac_dir" in
18973 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18974 *)
18975   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18976   # A ".." for each directory in $ac_dir_suffix.
18977   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18978   case $ac_top_builddir_sub in
18979   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18980   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18981   esac ;;
18982 esac
18983 ac_abs_top_builddir=$ac_pwd
18984 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18985 # for backward compatibility:
18986 ac_top_builddir=$ac_top_build_prefix
18987
18988 case $srcdir in
18989   .)  # We are building in place.
18990     ac_srcdir=.
18991     ac_top_srcdir=$ac_top_builddir_sub
18992     ac_abs_top_srcdir=$ac_pwd ;;
18993   [\\/]* | ?:[\\/]* )  # Absolute name.
18994     ac_srcdir=$srcdir$ac_dir_suffix;
18995     ac_top_srcdir=$srcdir
18996     ac_abs_top_srcdir=$srcdir ;;
18997   *) # Relative name.
18998     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18999     ac_top_srcdir=$ac_top_build_prefix$srcdir
19000     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19001 esac
19002 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19003
19004
19005   case $ac_mode in
19006   :F)
19007   #
19008   # CONFIG_FILE
19009   #
19010
19011   case $INSTALL in
19012   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19013   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19014   esac
19015   ac_MKDIR_P=$MKDIR_P
19016   case $MKDIR_P in
19017   [\\/$]* | ?:[\\/]* ) ;;
19018   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19019   esac
19020 _ACEOF
19021
19022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19023 # If the template does not know about datarootdir, expand it.
19024 # FIXME: This hack should be removed a few years after 2.60.
19025 ac_datarootdir_hack=; ac_datarootdir_seen=
19026 ac_sed_dataroot='
19027 /datarootdir/ {
19028   p
19029   q
19030 }
19031 /@datadir@/p
19032 /@docdir@/p
19033 /@infodir@/p
19034 /@localedir@/p
19035 /@mandir@/p'
19036 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19037 *datarootdir*) ac_datarootdir_seen=yes;;
19038 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19039   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19040 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19041 _ACEOF
19042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19043   ac_datarootdir_hack='
19044   s&@datadir@&$datadir&g
19045   s&@docdir@&$docdir&g
19046   s&@infodir@&$infodir&g
19047   s&@localedir@&$localedir&g
19048   s&@mandir@&$mandir&g
19049   s&\\\${datarootdir}&$datarootdir&g' ;;
19050 esac
19051 _ACEOF
19052
19053 # Neutralize VPATH when `$srcdir' = `.'.
19054 # Shell code in configure.ac might set extrasub.
19055 # FIXME: do we really want to maintain this feature?
19056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19057 ac_sed_extra="$ac_vpsub
19058 $extrasub
19059 _ACEOF
19060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19061 :t
19062 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19063 s|@configure_input@|$ac_sed_conf_input|;t t
19064 s&@top_builddir@&$ac_top_builddir_sub&;t t
19065 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19066 s&@srcdir@&$ac_srcdir&;t t
19067 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19068 s&@top_srcdir@&$ac_top_srcdir&;t t
19069 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19070 s&@builddir@&$ac_builddir&;t t
19071 s&@abs_builddir@&$ac_abs_builddir&;t t
19072 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19073 s&@INSTALL@&$ac_INSTALL&;t t
19074 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19075 $ac_datarootdir_hack
19076 "
19077 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19078   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19079
19080 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19081   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19082   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
19083       "$ac_tmp/out"`; test -z "$ac_out"; } &&
19084   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19085 which seems to be undefined.  Please make sure it is defined" >&5
19086 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19087 which seems to be undefined.  Please make sure it is defined" >&2;}
19088
19089   rm -f "$ac_tmp/stdin"
19090   case $ac_file in
19091   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19092   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19093   esac \
19094   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19095  ;;
19096   :H)
19097   #
19098   # CONFIG_HEADER
19099   #
19100   if test x"$ac_file" != x-; then
19101     {
19102       $as_echo "/* $configure_input  */" \
19103       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19104     } >"$ac_tmp/config.h" \
19105       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19106     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19107       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19108 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19109     else
19110       rm -f "$ac_file"
19111       mv "$ac_tmp/config.h" "$ac_file" \
19112         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19113     fi
19114   else
19115     $as_echo "/* $configure_input  */" \
19116       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19117       || as_fn_error $? "could not create -" "$LINENO" 5
19118   fi
19119 # Compute "$ac_file"'s index in $config_headers.
19120 _am_arg="$ac_file"
19121 _am_stamp_count=1
19122 for _am_header in $config_headers :; do
19123   case $_am_header in
19124     $_am_arg | $_am_arg:* )
19125       break ;;
19126     * )
19127       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19128   esac
19129 done
19130 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19131 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19132          X"$_am_arg" : 'X\(//\)[^/]' \| \
19133          X"$_am_arg" : 'X\(//\)$' \| \
19134          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19135 $as_echo X"$_am_arg" |
19136     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19137             s//\1/
19138             q
19139           }
19140           /^X\(\/\/\)[^/].*/{
19141             s//\1/
19142             q
19143           }
19144           /^X\(\/\/\)$/{
19145             s//\1/
19146             q
19147           }
19148           /^X\(\/\).*/{
19149             s//\1/
19150             q
19151           }
19152           s/.*/./; q'`/stamp-h$_am_stamp_count
19153  ;;
19154
19155   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19156 $as_echo "$as_me: executing $ac_file commands" >&6;}
19157  ;;
19158   esac
19159
19160
19161   case $ac_file$ac_mode in
19162     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19163   # Older Autoconf quotes --file arguments for eval, but not when files
19164   # are listed without --file.  Let's play safe and only enable the eval
19165   # if we detect the quoting.
19166   case $CONFIG_FILES in
19167   *\'*) eval set x "$CONFIG_FILES" ;;
19168   *)   set x $CONFIG_FILES ;;
19169   esac
19170   shift
19171   for mf
19172   do
19173     # Strip MF so we end up with the name of the file.
19174     mf=`echo "$mf" | sed -e 's/:.*$//'`
19175     # Check whether this is an Automake generated Makefile or not.
19176     # We used to match only the files named 'Makefile.in', but
19177     # some people rename them; so instead we look at the file content.
19178     # Grep'ing the first line is not enough: some people post-process
19179     # each Makefile.in and add a new line on top of each file to say so.
19180     # Grep'ing the whole file is not good either: AIX grep has a line
19181     # limit of 2048, but all sed's we know have understand at least 4000.
19182     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19183       dirpart=`$as_dirname -- "$mf" ||
19184 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19185          X"$mf" : 'X\(//\)[^/]' \| \
19186          X"$mf" : 'X\(//\)$' \| \
19187          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19188 $as_echo X"$mf" |
19189     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19190             s//\1/
19191             q
19192           }
19193           /^X\(\/\/\)[^/].*/{
19194             s//\1/
19195             q
19196           }
19197           /^X\(\/\/\)$/{
19198             s//\1/
19199             q
19200           }
19201           /^X\(\/\).*/{
19202             s//\1/
19203             q
19204           }
19205           s/.*/./; q'`
19206     else
19207       continue
19208     fi
19209     # Extract the definition of DEPDIR, am__include, and am__quote
19210     # from the Makefile without running 'make'.
19211     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19212     test -z "$DEPDIR" && continue
19213     am__include=`sed -n 's/^am__include = //p' < "$mf"`
19214     test -z "$am__include" && continue
19215     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19216     # Find all dependency output files, they are included files with
19217     # $(DEPDIR) in their names.  We invoke sed twice because it is the
19218     # simplest approach to changing $(DEPDIR) to its actual value in the
19219     # expansion.
19220     for file in `sed -n "
19221       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19222          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19223       # Make sure the directory exists.
19224       test -f "$dirpart/$file" && continue
19225       fdir=`$as_dirname -- "$file" ||
19226 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19227          X"$file" : 'X\(//\)[^/]' \| \
19228          X"$file" : 'X\(//\)$' \| \
19229          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19230 $as_echo X"$file" |
19231     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19232             s//\1/
19233             q
19234           }
19235           /^X\(\/\/\)[^/].*/{
19236             s//\1/
19237             q
19238           }
19239           /^X\(\/\/\)$/{
19240             s//\1/
19241             q
19242           }
19243           /^X\(\/\).*/{
19244             s//\1/
19245             q
19246           }
19247           s/.*/./; q'`
19248       as_dir=$dirpart/$fdir; as_fn_mkdir_p
19249       # echo "creating $dirpart/$file"
19250       echo '# dummy' > "$dirpart/$file"
19251     done
19252   done
19253 }
19254  ;;
19255     "libtool":C)
19256
19257     # See if we are running on zsh, and set the options which allow our
19258     # commands through without removal of \ escapes.
19259     if test -n "${ZSH_VERSION+set}" ; then
19260       setopt NO_GLOB_SUBST
19261     fi
19262
19263     cfgfile="${ofile}T"
19264     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19265     $RM "$cfgfile"
19266
19267     cat <<_LT_EOF >> "$cfgfile"
19268 #! $SHELL
19269
19270 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19271 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19272 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19273 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19274 #
19275 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19276 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19277 #                 Foundation, Inc.
19278 #   Written by Gordon Matzigkeit, 1996
19279 #
19280 #   This file is part of GNU Libtool.
19281 #
19282 # GNU Libtool is free software; you can redistribute it and/or
19283 # modify it under the terms of the GNU General Public License as
19284 # published by the Free Software Foundation; either version 2 of
19285 # the License, or (at your option) any later version.
19286 #
19287 # As a special exception to the GNU General Public License,
19288 # if you distribute this file as part of a program or library that
19289 # is built using GNU Libtool, you may include this file under the
19290 # same distribution terms that you use for the rest of that program.
19291 #
19292 # GNU Libtool is distributed in the hope that it will be useful,
19293 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19294 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19295 # GNU General Public License for more details.
19296 #
19297 # You should have received a copy of the GNU General Public License
19298 # along with GNU Libtool; see the file COPYING.  If not, a copy
19299 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19300 # obtained by writing to the Free Software Foundation, Inc.,
19301 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19302
19303
19304 # The names of the tagged configurations supported by this script.
19305 available_tags=""
19306
19307 # ### BEGIN LIBTOOL CONFIG
19308
19309 # Whether or not to build static libraries.
19310 build_old_libs=$enable_static
19311
19312 # Which release of libtool.m4 was used?
19313 macro_version=$macro_version
19314 macro_revision=$macro_revision
19315
19316 # Whether or not to build shared libraries.
19317 build_libtool_libs=$enable_shared
19318
19319 # What type of objects to build.
19320 pic_mode=$pic_mode
19321
19322 # Whether or not to optimize for fast installation.
19323 fast_install=$enable_fast_install
19324
19325 # Shell to use when invoking shell scripts.
19326 SHELL=$lt_SHELL
19327
19328 # An echo program that protects backslashes.
19329 ECHO=$lt_ECHO
19330
19331 # The PATH separator for the build system.
19332 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19333
19334 # The host system.
19335 host_alias=$host_alias
19336 host=$host
19337 host_os=$host_os
19338
19339 # The build system.
19340 build_alias=$build_alias
19341 build=$build
19342 build_os=$build_os
19343
19344 # A sed program that does not truncate output.
19345 SED=$lt_SED
19346
19347 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19348 Xsed="\$SED -e 1s/^X//"
19349
19350 # A grep program that handles long lines.
19351 GREP=$lt_GREP
19352
19353 # An ERE matcher.
19354 EGREP=$lt_EGREP
19355
19356 # A literal string matcher.
19357 FGREP=$lt_FGREP
19358
19359 # A BSD- or MS-compatible name lister.
19360 NM=$lt_NM
19361
19362 # Whether we need soft or hard links.
19363 LN_S=$lt_LN_S
19364
19365 # What is the maximum length of a command?
19366 max_cmd_len=$max_cmd_len
19367
19368 # Object file suffix (normally "o").
19369 objext=$ac_objext
19370
19371 # Executable file suffix (normally "").
19372 exeext=$exeext
19373
19374 # whether the shell understands "unset".
19375 lt_unset=$lt_unset
19376
19377 # turn spaces into newlines.
19378 SP2NL=$lt_lt_SP2NL
19379
19380 # turn newlines into spaces.
19381 NL2SP=$lt_lt_NL2SP
19382
19383 # convert \$build file names to \$host format.
19384 to_host_file_cmd=$lt_cv_to_host_file_cmd
19385
19386 # convert \$build files to toolchain format.
19387 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19388
19389 # An object symbol dumper.
19390 OBJDUMP=$lt_OBJDUMP
19391
19392 # Method to check whether dependent libraries are shared objects.
19393 deplibs_check_method=$lt_deplibs_check_method
19394
19395 # Command to use when deplibs_check_method = "file_magic".
19396 file_magic_cmd=$lt_file_magic_cmd
19397
19398 # How to find potential files when deplibs_check_method = "file_magic".
19399 file_magic_glob=$lt_file_magic_glob
19400
19401 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19402 want_nocaseglob=$lt_want_nocaseglob
19403
19404 # DLL creation program.
19405 DLLTOOL=$lt_DLLTOOL
19406
19407 # Command to associate shared and link libraries.
19408 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19409
19410 # The archiver.
19411 AR=$lt_AR
19412
19413 # Flags to create an archive.
19414 AR_FLAGS=$lt_AR_FLAGS
19415
19416 # How to feed a file listing to the archiver.
19417 archiver_list_spec=$lt_archiver_list_spec
19418
19419 # A symbol stripping program.
19420 STRIP=$lt_STRIP
19421
19422 # Commands used to install an old-style archive.
19423 RANLIB=$lt_RANLIB
19424 old_postinstall_cmds=$lt_old_postinstall_cmds
19425 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19426
19427 # Whether to use a lock for old archive extraction.
19428 lock_old_archive_extraction=$lock_old_archive_extraction
19429
19430 # A C compiler.
19431 LTCC=$lt_CC
19432
19433 # LTCC compiler flags.
19434 LTCFLAGS=$lt_CFLAGS
19435
19436 # Take the output of nm and produce a listing of raw symbols and C names.
19437 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19438
19439 # Transform the output of nm in a proper C declaration.
19440 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19441
19442 # Transform the output of nm in a C name address pair.
19443 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19444
19445 # Transform the output of nm in a C name address pair when lib prefix is needed.
19446 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19447
19448 # Specify filename containing input files for \$NM.
19449 nm_file_list_spec=$lt_nm_file_list_spec
19450
19451 # The root where to search for dependent libraries,and in which our libraries should be installed.
19452 lt_sysroot=$lt_sysroot
19453
19454 # The name of the directory that contains temporary libtool files.
19455 objdir=$objdir
19456
19457 # Used to examine libraries when file_magic_cmd begins with "file".
19458 MAGIC_CMD=$MAGIC_CMD
19459
19460 # Must we lock files when doing compilation?
19461 need_locks=$lt_need_locks
19462
19463 # Manifest tool.
19464 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19465
19466 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19467 DSYMUTIL=$lt_DSYMUTIL
19468
19469 # Tool to change global to local symbols on Mac OS X.
19470 NMEDIT=$lt_NMEDIT
19471
19472 # Tool to manipulate fat objects and archives on Mac OS X.
19473 LIPO=$lt_LIPO
19474
19475 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19476 OTOOL=$lt_OTOOL
19477
19478 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19479 OTOOL64=$lt_OTOOL64
19480
19481 # Old archive suffix (normally "a").
19482 libext=$libext
19483
19484 # Shared library suffix (normally ".so").
19485 shrext_cmds=$lt_shrext_cmds
19486
19487 # The commands to extract the exported symbol list from a shared archive.
19488 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19489
19490 # Variables whose values should be saved in libtool wrapper scripts and
19491 # restored at link time.
19492 variables_saved_for_relink=$lt_variables_saved_for_relink
19493
19494 # Do we need the "lib" prefix for modules?
19495 need_lib_prefix=$need_lib_prefix
19496
19497 # Do we need a version for libraries?
19498 need_version=$need_version
19499
19500 # Library versioning type.
19501 version_type=$version_type
19502
19503 # Shared library runtime path variable.
19504 runpath_var=$runpath_var
19505
19506 # Shared library path variable.
19507 shlibpath_var=$shlibpath_var
19508
19509 # Is shlibpath searched before the hard-coded library search path?
19510 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19511
19512 # Format of library name prefix.
19513 libname_spec=$lt_libname_spec
19514
19515 # List of archive names.  First name is the real one, the rest are links.
19516 # The last name is the one that the linker finds with -lNAME
19517 library_names_spec=$lt_library_names_spec
19518
19519 # The coded name of the library, if different from the real name.
19520 soname_spec=$lt_soname_spec
19521
19522 # Permission mode override for installation of shared libraries.
19523 install_override_mode=$lt_install_override_mode
19524
19525 # Command to use after installation of a shared archive.
19526 postinstall_cmds=$lt_postinstall_cmds
19527
19528 # Command to use after uninstallation of a shared archive.
19529 postuninstall_cmds=$lt_postuninstall_cmds
19530
19531 # Commands used to finish a libtool library installation in a directory.
19532 finish_cmds=$lt_finish_cmds
19533
19534 # As "finish_cmds", except a single script fragment to be evaled but
19535 # not shown.
19536 finish_eval=$lt_finish_eval
19537
19538 # Whether we should hardcode library paths into libraries.
19539 hardcode_into_libs=$hardcode_into_libs
19540
19541 # Compile-time system search path for libraries.
19542 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19543
19544 # Run-time system search path for libraries.
19545 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19546
19547 # Whether dlopen is supported.
19548 dlopen_support=$enable_dlopen
19549
19550 # Whether dlopen of programs is supported.
19551 dlopen_self=$enable_dlopen_self
19552
19553 # Whether dlopen of statically linked programs is supported.
19554 dlopen_self_static=$enable_dlopen_self_static
19555
19556 # Commands to strip libraries.
19557 old_striplib=$lt_old_striplib
19558 striplib=$lt_striplib
19559
19560
19561 # The linker used to build libraries.
19562 LD=$lt_LD
19563
19564 # How to create reloadable object files.
19565 reload_flag=$lt_reload_flag
19566 reload_cmds=$lt_reload_cmds
19567
19568 # Commands used to build an old-style archive.
19569 old_archive_cmds=$lt_old_archive_cmds
19570
19571 # A language specific compiler.
19572 CC=$lt_compiler
19573
19574 # Is the compiler the GNU compiler?
19575 with_gcc=$GCC
19576
19577 # Compiler flag to turn off builtin functions.
19578 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19579
19580 # Additional compiler flags for building library objects.
19581 pic_flag=$lt_lt_prog_compiler_pic
19582
19583 # How to pass a linker flag through the compiler.
19584 wl=$lt_lt_prog_compiler_wl
19585
19586 # Compiler flag to prevent dynamic linking.
19587 link_static_flag=$lt_lt_prog_compiler_static
19588
19589 # Does compiler simultaneously support -c and -o options?
19590 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19591
19592 # Whether or not to add -lc for building shared libraries.
19593 build_libtool_need_lc=$archive_cmds_need_lc
19594
19595 # Whether or not to disallow shared libs when runtime libs are static.
19596 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19597
19598 # Compiler flag to allow reflexive dlopens.
19599 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19600
19601 # Compiler flag to generate shared objects directly from archives.
19602 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19603
19604 # Whether the compiler copes with passing no objects directly.
19605 compiler_needs_object=$lt_compiler_needs_object
19606
19607 # Create an old-style archive from a shared archive.
19608 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19609
19610 # Create a temporary old-style archive to link instead of a shared archive.
19611 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19612
19613 # Commands used to build a shared archive.
19614 archive_cmds=$lt_archive_cmds
19615 archive_expsym_cmds=$lt_archive_expsym_cmds
19616
19617 # Commands used to build a loadable module if different from building
19618 # a shared archive.
19619 module_cmds=$lt_module_cmds
19620 module_expsym_cmds=$lt_module_expsym_cmds
19621
19622 # Whether we are building with GNU ld or not.
19623 with_gnu_ld=$lt_with_gnu_ld
19624
19625 # Flag that allows shared libraries with undefined symbols to be built.
19626 allow_undefined_flag=$lt_allow_undefined_flag
19627
19628 # Flag that enforces no undefined symbols.
19629 no_undefined_flag=$lt_no_undefined_flag
19630
19631 # Flag to hardcode \$libdir into a binary during linking.
19632 # This must work even if \$libdir does not exist
19633 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19634
19635 # Whether we need a single "-rpath" flag with a separated argument.
19636 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19637
19638 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19639 # DIR into the resulting binary.
19640 hardcode_direct=$hardcode_direct
19641
19642 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19643 # DIR into the resulting binary and the resulting library dependency is
19644 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19645 # library is relocated.
19646 hardcode_direct_absolute=$hardcode_direct_absolute
19647
19648 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19649 # into the resulting binary.
19650 hardcode_minus_L=$hardcode_minus_L
19651
19652 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19653 # into the resulting binary.
19654 hardcode_shlibpath_var=$hardcode_shlibpath_var
19655
19656 # Set to "yes" if building a shared library automatically hardcodes DIR
19657 # into the library and all subsequent libraries and executables linked
19658 # against it.
19659 hardcode_automatic=$hardcode_automatic
19660
19661 # Set to yes if linker adds runtime paths of dependent libraries
19662 # to runtime path list.
19663 inherit_rpath=$inherit_rpath
19664
19665 # Whether libtool must link a program against all its dependency libraries.
19666 link_all_deplibs=$link_all_deplibs
19667
19668 # Set to "yes" if exported symbols are required.
19669 always_export_symbols=$always_export_symbols
19670
19671 # The commands to list exported symbols.
19672 export_symbols_cmds=$lt_export_symbols_cmds
19673
19674 # Symbols that should not be listed in the preloaded symbols.
19675 exclude_expsyms=$lt_exclude_expsyms
19676
19677 # Symbols that must always be exported.
19678 include_expsyms=$lt_include_expsyms
19679
19680 # Commands necessary for linking programs (against libraries) with templates.
19681 prelink_cmds=$lt_prelink_cmds
19682
19683 # Commands necessary for finishing linking programs.
19684 postlink_cmds=$lt_postlink_cmds
19685
19686 # Specify filename containing input files.
19687 file_list_spec=$lt_file_list_spec
19688
19689 # How to hardcode a shared library path into an executable.
19690 hardcode_action=$hardcode_action
19691
19692 # ### END LIBTOOL CONFIG
19693
19694 _LT_EOF
19695
19696   case $host_os in
19697   aix3*)
19698     cat <<\_LT_EOF >> "$cfgfile"
19699 # AIX sometimes has problems with the GCC collect2 program.  For some
19700 # reason, if we set the COLLECT_NAMES environment variable, the problems
19701 # vanish in a puff of smoke.
19702 if test "X${COLLECT_NAMES+set}" != Xset; then
19703   COLLECT_NAMES=
19704   export COLLECT_NAMES
19705 fi
19706 _LT_EOF
19707     ;;
19708   esac
19709
19710
19711 ltmain="$ac_aux_dir/ltmain.sh"
19712
19713
19714   # We use sed instead of cat because bash on DJGPP gets confused if
19715   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19716   # text mode, it properly converts lines to CR/LF.  This bash problem
19717   # is reportedly fixed, but why not run on old versions too?
19718   sed '$q' "$ltmain" >> "$cfgfile" \
19719      || (rm -f "$cfgfile"; exit 1)
19720
19721   if test x"$xsi_shell" = xyes; then
19722   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19723 func_dirname ()\
19724 {\
19725 \    case ${1} in\
19726 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19727 \      *  ) func_dirname_result="${3}" ;;\
19728 \    esac\
19729 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19730   && mv -f "$cfgfile.tmp" "$cfgfile" \
19731     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19732 test 0 -eq $? || _lt_function_replace_fail=:
19733
19734
19735   sed -e '/^func_basename ()$/,/^} # func_basename /c\
19736 func_basename ()\
19737 {\
19738 \    func_basename_result="${1##*/}"\
19739 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19740   && mv -f "$cfgfile.tmp" "$cfgfile" \
19741     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19742 test 0 -eq $? || _lt_function_replace_fail=:
19743
19744
19745   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19746 func_dirname_and_basename ()\
19747 {\
19748 \    case ${1} in\
19749 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19750 \      *  ) func_dirname_result="${3}" ;;\
19751 \    esac\
19752 \    func_basename_result="${1##*/}"\
19753 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19754   && mv -f "$cfgfile.tmp" "$cfgfile" \
19755     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19756 test 0 -eq $? || _lt_function_replace_fail=:
19757
19758
19759   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19760 func_stripname ()\
19761 {\
19762 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19763 \    # positional parameters, so assign one to ordinary parameter first.\
19764 \    func_stripname_result=${3}\
19765 \    func_stripname_result=${func_stripname_result#"${1}"}\
19766 \    func_stripname_result=${func_stripname_result%"${2}"}\
19767 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19768   && mv -f "$cfgfile.tmp" "$cfgfile" \
19769     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19770 test 0 -eq $? || _lt_function_replace_fail=:
19771
19772
19773   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19774 func_split_long_opt ()\
19775 {\
19776 \    func_split_long_opt_name=${1%%=*}\
19777 \    func_split_long_opt_arg=${1#*=}\
19778 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19779   && mv -f "$cfgfile.tmp" "$cfgfile" \
19780     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19781 test 0 -eq $? || _lt_function_replace_fail=:
19782
19783
19784   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19785 func_split_short_opt ()\
19786 {\
19787 \    func_split_short_opt_arg=${1#??}\
19788 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19789 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19790   && mv -f "$cfgfile.tmp" "$cfgfile" \
19791     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19792 test 0 -eq $? || _lt_function_replace_fail=:
19793
19794
19795   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19796 func_lo2o ()\
19797 {\
19798 \    case ${1} in\
19799 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19800 \      *)    func_lo2o_result=${1} ;;\
19801 \    esac\
19802 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19803   && mv -f "$cfgfile.tmp" "$cfgfile" \
19804     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19805 test 0 -eq $? || _lt_function_replace_fail=:
19806
19807
19808   sed -e '/^func_xform ()$/,/^} # func_xform /c\
19809 func_xform ()\
19810 {\
19811     func_xform_result=${1%.*}.lo\
19812 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19813   && mv -f "$cfgfile.tmp" "$cfgfile" \
19814     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19815 test 0 -eq $? || _lt_function_replace_fail=:
19816
19817
19818   sed -e '/^func_arith ()$/,/^} # func_arith /c\
19819 func_arith ()\
19820 {\
19821     func_arith_result=$(( $* ))\
19822 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19823   && mv -f "$cfgfile.tmp" "$cfgfile" \
19824     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19825 test 0 -eq $? || _lt_function_replace_fail=:
19826
19827
19828   sed -e '/^func_len ()$/,/^} # func_len /c\
19829 func_len ()\
19830 {\
19831     func_len_result=${#1}\
19832 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19833   && mv -f "$cfgfile.tmp" "$cfgfile" \
19834     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19835 test 0 -eq $? || _lt_function_replace_fail=:
19836
19837 fi
19838
19839 if test x"$lt_shell_append" = xyes; then
19840   sed -e '/^func_append ()$/,/^} # func_append /c\
19841 func_append ()\
19842 {\
19843     eval "${1}+=\\${2}"\
19844 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19845   && mv -f "$cfgfile.tmp" "$cfgfile" \
19846     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19847 test 0 -eq $? || _lt_function_replace_fail=:
19848
19849
19850   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19851 func_append_quoted ()\
19852 {\
19853 \    func_quote_for_eval "${2}"\
19854 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19855 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19856   && mv -f "$cfgfile.tmp" "$cfgfile" \
19857     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19858 test 0 -eq $? || _lt_function_replace_fail=:
19859
19860
19861   # Save a `func_append' function call where possible by direct use of '+='
19862   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19863     && mv -f "$cfgfile.tmp" "$cfgfile" \
19864       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19865   test 0 -eq $? || _lt_function_replace_fail=:
19866 else
19867   # Save a `func_append' function call even when '+=' is not available
19868   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19869     && mv -f "$cfgfile.tmp" "$cfgfile" \
19870       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19871   test 0 -eq $? || _lt_function_replace_fail=:
19872 fi
19873
19874 if test x"$_lt_function_replace_fail" = x":"; then
19875   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19876 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19877 fi
19878
19879
19880    mv -f "$cfgfile" "$ofile" ||
19881     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19882   chmod +x "$ofile"
19883
19884  ;;
19885
19886   esac
19887 done # for ac_tag
19888
19889
19890 as_fn_exit 0
19891 _ACEOF
19892 ac_clean_files=$ac_clean_files_save
19893
19894 test $ac_write_fail = 0 ||
19895   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19896
19897
19898 # configure is writing to config.log, and then calls config.status.
19899 # config.status does its own redirection, appending to config.log.
19900 # Unfortunately, on DOS this fails, as config.log is still kept open
19901 # by configure, so config.status won't be able to write to it; its
19902 # output is simply discarded.  So we exec the FD to /dev/null,
19903 # effectively closing config.log, so it can be properly (re)opened and
19904 # appended to by config.status.  When coming back to configure, we
19905 # need to make the FD available again.
19906 if test "$no_create" != yes; then
19907   ac_cs_success=:
19908   ac_config_status_args=
19909   test "$silent" = yes &&
19910     ac_config_status_args="$ac_config_status_args --quiet"
19911   exec 5>/dev/null
19912   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19913   exec 5>>config.log
19914   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19915   # would make configure fail if this is the last instruction.
19916   $ac_cs_success || as_fn_exit 1
19917 fi
19918 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19919   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19920 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19921 fi
19922