Fix svace defects
[platform/upstream/xmlsec1.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xmlsec1 1.2.22.
4 #
5 # Report bugs to <http://www.aleksey.com/xmlsec>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://www.aleksey.com/xmlsec about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='xmlsec1'
592 PACKAGE_TARNAME='xmlsec1'
593 PACKAGE_VERSION='1.2.22'
594 PACKAGE_STRING='xmlsec1 1.2.22'
595 PACKAGE_BUGREPORT='http://www.aleksey.com/xmlsec'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 #  include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 #  include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 XMLSEC_CRYPTO_PC_FILES_LIST
639 XMLSEC_CRYPTO_LIBS
640 XMLSEC_CRYPTO_CFLAGS
641 XMLSEC_CRYPTO_LIB
642 XMLSEC_CRYPTO_DISABLED_LIST
643 XMLSEC_CRYPTO_LIST
644 XMLSEC_DEFAULT_CRYPTO
645 XMLSEC_CRYPTO_EXTRA_LDFLAGS
646 XMLSEC_EXTRA_LDFLAGS
647 XMLSEC_APP_DEFINES
648 XMLSEC_DEFINES
649 XMLSEC_LIBS
650 XMLSEC_CFLAGS
651 XMLSEC_NSS_LIBS
652 XMLSEC_NSS_CFLAGS
653 XMLSEC_GNUTLS_LIBS
654 XMLSEC_GNUTLS_CFLAGS
655 XMLSEC_GCRYPT_LIBS
656 XMLSEC_GCRYPT_CFLAGS
657 XMLSEC_OPENSSL_LIBS
658 XMLSEC_OPENSSL_CFLAGS
659 XMLSEC_LIBDIR
660 XMLSEC_CORE_LIBS
661 XMLSEC_CORE_CFLAGS
662 XMLSEC_STATIC_BINARIES
663 XMLSEC_DOCDIR
664 XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING
665 XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_FALSE
666 XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_TRUE
667 XMLSEC_DL_LIBS
668 XMLSEC_DL_INCLUDES
669 XMLSEC_NO_CRYPTO_DYNAMIC_LOADING
670 XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_FALSE
671 XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_TRUE
672 XMLSEC_NO_XMLENC
673 XMLSEC_NO_XMLENC_FALSE
674 XMLSEC_NO_XMLENC_TRUE
675 XMLSEC_NO_XMLDSIG
676 XMLSEC_NO_XMLDSIG_FALSE
677 XMLSEC_NO_XMLDSIG_TRUE
678 XMLSEC_NO_GOST2012
679 XMLSEC_NO_GOST2012_FALSE
680 XMLSEC_NO_GOST2012_TRUE
681 XMLSEC_NO_GOST
682 XMLSEC_NO_GOST_FALSE
683 XMLSEC_NO_GOST_TRUE
684 XMLSEC_NO_AES
685 XMLSEC_NO_AES_FALSE
686 XMLSEC_NO_AES_TRUE
687 XMLSEC_NO_DES
688 XMLSEC_NO_DES_FALSE
689 XMLSEC_NO_DES_TRUE
690 XMLSEC_NO_X509
691 XMLSEC_NO_X509_FALSE
692 XMLSEC_NO_X509_TRUE
693 XMLSEC_NO_RSA
694 XMLSEC_NO_RSA_FALSE
695 XMLSEC_NO_RSA_TRUE
696 XMLSEC_NO_DSA
697 XMLSEC_NO_DSA_FALSE
698 XMLSEC_NO_DSA_TRUE
699 XMLSEC_NO_HMAC
700 XMLSEC_NO_HMAC_FALSE
701 XMLSEC_NO_HMAC_TRUE
702 XMLSEC_NO_SHA512
703 XMLSEC_NO_SHA512_FALSE
704 XMLSEC_NO_SHA512_TRUE
705 XMLSEC_NO_SHA384
706 XMLSEC_NO_SHA384_FALSE
707 XMLSEC_NO_SHA384_TRUE
708 XMLSEC_NO_SHA256
709 XMLSEC_NO_SHA256_FALSE
710 XMLSEC_NO_SHA256_TRUE
711 XMLSEC_NO_SHA224
712 XMLSEC_NO_SHA224_FALSE
713 XMLSEC_NO_SHA224_TRUE
714 XMLSEC_NO_SHA1
715 XMLSEC_NO_SHA1_FALSE
716 XMLSEC_NO_SHA1_TRUE
717 XMLSEC_NO_RIPEMD160
718 XMLSEC_NO_RIPEMD160_FALSE
719 XMLSEC_NO_RIPEMD160_TRUE
720 XMLSEC_NO_MD5
721 XMLSEC_NO_MD5_FALSE
722 XMLSEC_NO_MD5_TRUE
723 MSCRYPTO_CRYPTO_LIB
724 MSCRYPTO_LIBS
725 MSCRYPTO_CFLAGS
726 XMLSEC_NO_MSCRYPTO
727 XMLSEC_NO_MSCRYPTO_FALSE
728 XMLSEC_NO_MSCRYPTO_TRUE
729 GNUTLS_MIN_VERSION
730 GNUTLS_CRYPTO_LIB
731 XMLSEC_NO_GNUTLS
732 XMLSEC_NO_GNUTLS_FALSE
733 XMLSEC_NO_GNUTLS_TRUE
734 GNUTLS_LIBS
735 GNUTLS_CFLAGS
736 GCRYPT_MIN_VERSION
737 GCRYPT_CRYPTO_LIB
738 XMLSEC_NO_GCRYPT
739 XMLSEC_NO_GCRYPT_FALSE
740 XMLSEC_NO_GCRYPT_TRUE
741 GCRYPT_LIBS
742 GCRYPT_CFLAGS
743 MOZILLA_MIN_VERSION
744 NSPR_MIN_VERSION
745 NSS_MIN_VERSION
746 NSS_CRYPTO_LIB
747 NSS_PACKAGE
748 NSPR_PACKAGE
749 XMLSEC_NO_NSS
750 XMLSEC_NO_NSS_FALSE
751 XMLSEC_NO_NSS_TRUE
752 NSS_LIBS
753 NSS_CFLAGS
754 OPENSSL_MIN_VERSION
755 OPENSSL_CRYPTO_LIB
756 XMLSEC_NO_OPENSSL
757 XMLSEC_NO_OPENSSL_FALSE
758 XMLSEC_NO_OPENSSL_TRUE
759 OPENSSL_LIBS
760 OPENSSL_CFLAGS
761 LIBXSLT_PC_FILE_COND
762 LIBXSLT_MIN_VERSION
763 XMLSEC_NO_LIBXSLT
764 LIBXSLT_CONFIG
765 LIBXSLT_LIBS
766 LIBXSLT_CFLAGS
767 LIBXML_MIN_VERSION
768 LIBXML_CONFIG
769 LIBXML_LIBS
770 LIBXML_CFLAGS
771 PKG_CONFIG_LIBDIR
772 PKG_CONFIG_PATH
773 PKG_CONFIG
774 PKGCONFIG_PRESENT
775 SHAREDLIB_HACK_FALSE
776 SHAREDLIB_HACK_TRUE
777 BUILD_API_DOCS_FALSE
778 BUILD_API_DOCS_TRUE
779 BUILD_MAN_DOCS_FALSE
780 BUILD_MAN_DOCS_TRUE
781 HAS_XSLTPROC_FALSE
782 HAS_XSLTPROC_TRUE
783 HAS_MAN2HTML_FALSE
784 HAS_MAN2HTML_TRUE
785 GTKDOC_SCAN
786 GTKDOC_MKDB
787 GTKDOC_MKTMPL
788 GTKDOC_MKHTML
789 MAN2HTML
790 XSLTPROC
791 BUILD_MANPAGES_FALSE
792 BUILD_MANPAGES_TRUE
793 HAS_HELP2MAN_FALSE
794 HAS_HELP2MAN_TRUE
795 HELP2MAN
796 PERL
797 TAR
798 MV
799 CP
800 RM
801 OTOOL64
802 OTOOL
803 LIPO
804 NMEDIT
805 DSYMUTIL
806 MANIFEST_TOOL
807 RANLIB
808 ac_ct_AR
809 AR
810 DLLTOOL
811 OBJDUMP
812 LN_S
813 NM
814 ac_ct_DUMPBIN
815 DUMPBIN
816 LD
817 FGREP
818 SED
819 LIBTOOL
820 EGREP
821 GREP
822 CPP
823 am__fastdepCC_FALSE
824 am__fastdepCC_TRUE
825 CCDEPMODE
826 am__nodep
827 AMDEPBACKSLASH
828 AMDEP_FALSE
829 AMDEP_TRUE
830 am__quote
831 am__include
832 DEPDIR
833 OBJEXT
834 EXEEXT
835 ac_ct_CC
836 CPPFLAGS
837 LDFLAGS
838 CFLAGS
839 CC
840 MAINT
841 MAINTAINER_MODE_FALSE
842 MAINTAINER_MODE_TRUE
843 AM_BACKSLASH
844 AM_DEFAULT_VERBOSITY
845 AM_DEFAULT_V
846 AM_V
847 am__untar
848 am__tar
849 AMTAR
850 am__leading_dot
851 SET_MAKE
852 AWK
853 mkdir_p
854 MKDIR_P
855 INSTALL_STRIP_PROGRAM
856 STRIP
857 install_sh
858 MAKEINFO
859 AUTOHEADER
860 AUTOMAKE
861 AUTOCONF
862 ACLOCAL
863 VERSION
864 PACKAGE
865 CYGPATH_W
866 am__isrc
867 INSTALL_DATA
868 INSTALL_SCRIPT
869 INSTALL_PROGRAM
870 XMLSEC_VERSION_INFO
871 XMLSEC_VERSION_SUBMINOR
872 XMLSEC_VERSION_MINOR
873 XMLSEC_VERSION_MAJOR
874 XMLSEC_VERSION_SAFE
875 XMLSEC_PACKAGE
876 XMLSEC_VERSION
877 host_os
878 host_vendor
879 host_cpu
880 host
881 build_os
882 build_vendor
883 build_cpu
884 build
885 target_alias
886 host_alias
887 build_alias
888 LIBS
889 ECHO_T
890 ECHO_N
891 ECHO_C
892 DEFS
893 mandir
894 localedir
895 libdir
896 psdir
897 pdfdir
898 dvidir
899 htmldir
900 infodir
901 docdir
902 oldincludedir
903 includedir
904 localstatedir
905 sharedstatedir
906 sysconfdir
907 datadir
908 datarootdir
909 libexecdir
910 sbindir
911 bindir
912 program_transform_name
913 prefix
914 exec_prefix
915 PACKAGE_URL
916 PACKAGE_BUGREPORT
917 PACKAGE_STRING
918 PACKAGE_VERSION
919 PACKAGE_TARNAME
920 PACKAGE_NAME
921 PATH_SEPARATOR
922 SHELL'
923 ac_subst_files=''
924 ac_user_opts='
925 enable_option_checking
926 enable_silent_rules
927 enable_maintainer_mode
928 enable_dependency_tracking
929 enable_shared
930 enable_static
931 with_pic
932 enable_fast_install
933 with_gnu_ld
934 with_sysroot
935 enable_libtool_lock
936 enable_development
937 enable_manpages_build
938 enable_docs_build
939 enable_pkgconfig
940 with_libxml
941 with_libxml_src
942 with_libxslt
943 with_libxslt_src
944 with_openssl
945 with_nss
946 with_nspr
947 with_seamonkey_ver
948 with_mozilla_ver
949 with_gcrypt
950 with_gnutls
951 enable_mscrypto
952 with_default_crypto
953 enable_md5
954 enable_ripemd160
955 enable_sha1
956 enable_sha224
957 enable_sha256
958 enable_sha384
959 enable_sha512
960 enable_hmac
961 enable_dsa
962 enable_rsa
963 enable_x509
964 enable_des
965 enable_aes
966 enable_gost
967 enable_xmldsig
968 enable_xmlenc
969 enable_crypto_dl
970 enable_apps_crypto_dl
971 with_html_dir
972 enable_skm
973 enable_tmpl_tests
974 enable_debugging
975 enable_profiling
976 enable_pedantic
977 enable_static_linking
978 '
979       ac_precious_vars='build_alias
980 host_alias
981 target_alias
982 CC
983 CFLAGS
984 LDFLAGS
985 LIBS
986 CPPFLAGS
987 CPP
988 PKG_CONFIG
989 PKG_CONFIG_PATH
990 PKG_CONFIG_LIBDIR
991 LIBXML_CFLAGS
992 LIBXML_LIBS
993 LIBXSLT_CFLAGS
994 LIBXSLT_LIBS
995 OPENSSL_CFLAGS
996 OPENSSL_LIBS
997 NSS_CFLAGS
998 NSS_LIBS
999 GCRYPT_CFLAGS
1000 GCRYPT_LIBS
1001 GNUTLS_CFLAGS
1002 GNUTLS_LIBS'
1003
1004
1005 # Initialize some variables set by options.
1006 ac_init_help=
1007 ac_init_version=false
1008 ac_unrecognized_opts=
1009 ac_unrecognized_sep=
1010 # The variables have the same names as the options, with
1011 # dashes changed to underlines.
1012 cache_file=/dev/null
1013 exec_prefix=NONE
1014 no_create=
1015 no_recursion=
1016 prefix=NONE
1017 program_prefix=NONE
1018 program_suffix=NONE
1019 program_transform_name=s,x,x,
1020 silent=
1021 site=
1022 srcdir=
1023 verbose=
1024 x_includes=NONE
1025 x_libraries=NONE
1026
1027 # Installation directory options.
1028 # These are left unexpanded so users can "make install exec_prefix=/foo"
1029 # and all the variables that are supposed to be based on exec_prefix
1030 # by default will actually change.
1031 # Use braces instead of parens because sh, perl, etc. also accept them.
1032 # (The list follows the same order as the GNU Coding Standards.)
1033 bindir='${exec_prefix}/bin'
1034 sbindir='${exec_prefix}/sbin'
1035 libexecdir='${exec_prefix}/libexec'
1036 datarootdir='${prefix}/share'
1037 datadir='${datarootdir}'
1038 sysconfdir='${prefix}/etc'
1039 sharedstatedir='${prefix}/com'
1040 localstatedir='${prefix}/var'
1041 includedir='${prefix}/include'
1042 oldincludedir='/usr/include'
1043 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1044 infodir='${datarootdir}/info'
1045 htmldir='${docdir}'
1046 dvidir='${docdir}'
1047 pdfdir='${docdir}'
1048 psdir='${docdir}'
1049 libdir='${exec_prefix}/lib'
1050 localedir='${datarootdir}/locale'
1051 mandir='${datarootdir}/man'
1052
1053 ac_prev=
1054 ac_dashdash=
1055 for ac_option
1056 do
1057   # If the previous option needs an argument, assign it.
1058   if test -n "$ac_prev"; then
1059     eval $ac_prev=\$ac_option
1060     ac_prev=
1061     continue
1062   fi
1063
1064   case $ac_option in
1065   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1066   *=)   ac_optarg= ;;
1067   *)    ac_optarg=yes ;;
1068   esac
1069
1070   # Accept the important Cygnus configure options, so we can diagnose typos.
1071
1072   case $ac_dashdash$ac_option in
1073   --)
1074     ac_dashdash=yes ;;
1075
1076   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1077     ac_prev=bindir ;;
1078   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1079     bindir=$ac_optarg ;;
1080
1081   -build | --build | --buil | --bui | --bu)
1082     ac_prev=build_alias ;;
1083   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1084     build_alias=$ac_optarg ;;
1085
1086   -cache-file | --cache-file | --cache-fil | --cache-fi \
1087   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1088     ac_prev=cache_file ;;
1089   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1090   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1091     cache_file=$ac_optarg ;;
1092
1093   --config-cache | -C)
1094     cache_file=config.cache ;;
1095
1096   -datadir | --datadir | --datadi | --datad)
1097     ac_prev=datadir ;;
1098   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1099     datadir=$ac_optarg ;;
1100
1101   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1102   | --dataroo | --dataro | --datar)
1103     ac_prev=datarootdir ;;
1104   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1105   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1106     datarootdir=$ac_optarg ;;
1107
1108   -disable-* | --disable-*)
1109     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1110     # Reject names that are not valid shell variable names.
1111     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112       as_fn_error $? "invalid feature name: $ac_useropt"
1113     ac_useropt_orig=$ac_useropt
1114     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115     case $ac_user_opts in
1116       *"
1117 "enable_$ac_useropt"
1118 "*) ;;
1119       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1120          ac_unrecognized_sep=', ';;
1121     esac
1122     eval enable_$ac_useropt=no ;;
1123
1124   -docdir | --docdir | --docdi | --doc | --do)
1125     ac_prev=docdir ;;
1126   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1127     docdir=$ac_optarg ;;
1128
1129   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1130     ac_prev=dvidir ;;
1131   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1132     dvidir=$ac_optarg ;;
1133
1134   -enable-* | --enable-*)
1135     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1136     # Reject names that are not valid shell variable names.
1137     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138       as_fn_error $? "invalid feature name: $ac_useropt"
1139     ac_useropt_orig=$ac_useropt
1140     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141     case $ac_user_opts in
1142       *"
1143 "enable_$ac_useropt"
1144 "*) ;;
1145       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1146          ac_unrecognized_sep=', ';;
1147     esac
1148     eval enable_$ac_useropt=\$ac_optarg ;;
1149
1150   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1151   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1152   | --exec | --exe | --ex)
1153     ac_prev=exec_prefix ;;
1154   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1155   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1156   | --exec=* | --exe=* | --ex=*)
1157     exec_prefix=$ac_optarg ;;
1158
1159   -gas | --gas | --ga | --g)
1160     # Obsolete; use --with-gas.
1161     with_gas=yes ;;
1162
1163   -help | --help | --hel | --he | -h)
1164     ac_init_help=long ;;
1165   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1166     ac_init_help=recursive ;;
1167   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1168     ac_init_help=short ;;
1169
1170   -host | --host | --hos | --ho)
1171     ac_prev=host_alias ;;
1172   -host=* | --host=* | --hos=* | --ho=*)
1173     host_alias=$ac_optarg ;;
1174
1175   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1176     ac_prev=htmldir ;;
1177   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1178   | --ht=*)
1179     htmldir=$ac_optarg ;;
1180
1181   -includedir | --includedir | --includedi | --included | --include \
1182   | --includ | --inclu | --incl | --inc)
1183     ac_prev=includedir ;;
1184   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1185   | --includ=* | --inclu=* | --incl=* | --inc=*)
1186     includedir=$ac_optarg ;;
1187
1188   -infodir | --infodir | --infodi | --infod | --info | --inf)
1189     ac_prev=infodir ;;
1190   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1191     infodir=$ac_optarg ;;
1192
1193   -libdir | --libdir | --libdi | --libd)
1194     ac_prev=libdir ;;
1195   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1196     libdir=$ac_optarg ;;
1197
1198   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1199   | --libexe | --libex | --libe)
1200     ac_prev=libexecdir ;;
1201   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1202   | --libexe=* | --libex=* | --libe=*)
1203     libexecdir=$ac_optarg ;;
1204
1205   -localedir | --localedir | --localedi | --localed | --locale)
1206     ac_prev=localedir ;;
1207   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1208     localedir=$ac_optarg ;;
1209
1210   -localstatedir | --localstatedir | --localstatedi | --localstated \
1211   | --localstate | --localstat | --localsta | --localst | --locals)
1212     ac_prev=localstatedir ;;
1213   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1214   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1215     localstatedir=$ac_optarg ;;
1216
1217   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1218     ac_prev=mandir ;;
1219   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1220     mandir=$ac_optarg ;;
1221
1222   -nfp | --nfp | --nf)
1223     # Obsolete; use --without-fp.
1224     with_fp=no ;;
1225
1226   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1227   | --no-cr | --no-c | -n)
1228     no_create=yes ;;
1229
1230   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1231   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1232     no_recursion=yes ;;
1233
1234   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1235   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1236   | --oldin | --oldi | --old | --ol | --o)
1237     ac_prev=oldincludedir ;;
1238   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1239   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1240   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1241     oldincludedir=$ac_optarg ;;
1242
1243   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1244     ac_prev=prefix ;;
1245   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1246     prefix=$ac_optarg ;;
1247
1248   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1249   | --program-pre | --program-pr | --program-p)
1250     ac_prev=program_prefix ;;
1251   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1252   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1253     program_prefix=$ac_optarg ;;
1254
1255   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1256   | --program-suf | --program-su | --program-s)
1257     ac_prev=program_suffix ;;
1258   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1259   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1260     program_suffix=$ac_optarg ;;
1261
1262   -program-transform-name | --program-transform-name \
1263   | --program-transform-nam | --program-transform-na \
1264   | --program-transform-n | --program-transform- \
1265   | --program-transform | --program-transfor \
1266   | --program-transfo | --program-transf \
1267   | --program-trans | --program-tran \
1268   | --progr-tra | --program-tr | --program-t)
1269     ac_prev=program_transform_name ;;
1270   -program-transform-name=* | --program-transform-name=* \
1271   | --program-transform-nam=* | --program-transform-na=* \
1272   | --program-transform-n=* | --program-transform-=* \
1273   | --program-transform=* | --program-transfor=* \
1274   | --program-transfo=* | --program-transf=* \
1275   | --program-trans=* | --program-tran=* \
1276   | --progr-tra=* | --program-tr=* | --program-t=*)
1277     program_transform_name=$ac_optarg ;;
1278
1279   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1280     ac_prev=pdfdir ;;
1281   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1282     pdfdir=$ac_optarg ;;
1283
1284   -psdir | --psdir | --psdi | --psd | --ps)
1285     ac_prev=psdir ;;
1286   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1287     psdir=$ac_optarg ;;
1288
1289   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1290   | -silent | --silent | --silen | --sile | --sil)
1291     silent=yes ;;
1292
1293   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1294     ac_prev=sbindir ;;
1295   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1296   | --sbi=* | --sb=*)
1297     sbindir=$ac_optarg ;;
1298
1299   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1300   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1301   | --sharedst | --shareds | --shared | --share | --shar \
1302   | --sha | --sh)
1303     ac_prev=sharedstatedir ;;
1304   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1305   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1306   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1307   | --sha=* | --sh=*)
1308     sharedstatedir=$ac_optarg ;;
1309
1310   -site | --site | --sit)
1311     ac_prev=site ;;
1312   -site=* | --site=* | --sit=*)
1313     site=$ac_optarg ;;
1314
1315   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1316     ac_prev=srcdir ;;
1317   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1318     srcdir=$ac_optarg ;;
1319
1320   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1321   | --syscon | --sysco | --sysc | --sys | --sy)
1322     ac_prev=sysconfdir ;;
1323   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1324   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1325     sysconfdir=$ac_optarg ;;
1326
1327   -target | --target | --targe | --targ | --tar | --ta | --t)
1328     ac_prev=target_alias ;;
1329   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1330     target_alias=$ac_optarg ;;
1331
1332   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1333     verbose=yes ;;
1334
1335   -version | --version | --versio | --versi | --vers | -V)
1336     ac_init_version=: ;;
1337
1338   -with-* | --with-*)
1339     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1340     # Reject names that are not valid shell variable names.
1341     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1342       as_fn_error $? "invalid package name: $ac_useropt"
1343     ac_useropt_orig=$ac_useropt
1344     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1345     case $ac_user_opts in
1346       *"
1347 "with_$ac_useropt"
1348 "*) ;;
1349       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1350          ac_unrecognized_sep=', ';;
1351     esac
1352     eval with_$ac_useropt=\$ac_optarg ;;
1353
1354   -without-* | --without-*)
1355     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1356     # Reject names that are not valid shell variable names.
1357     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1358       as_fn_error $? "invalid package name: $ac_useropt"
1359     ac_useropt_orig=$ac_useropt
1360     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1361     case $ac_user_opts in
1362       *"
1363 "with_$ac_useropt"
1364 "*) ;;
1365       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1366          ac_unrecognized_sep=', ';;
1367     esac
1368     eval with_$ac_useropt=no ;;
1369
1370   --x)
1371     # Obsolete; use --with-x.
1372     with_x=yes ;;
1373
1374   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1375   | --x-incl | --x-inc | --x-in | --x-i)
1376     ac_prev=x_includes ;;
1377   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1378   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1379     x_includes=$ac_optarg ;;
1380
1381   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1382   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1383     ac_prev=x_libraries ;;
1384   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1385   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1386     x_libraries=$ac_optarg ;;
1387
1388   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1389 Try \`$0 --help' for more information"
1390     ;;
1391
1392   *=*)
1393     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1394     # Reject names that are not valid shell variable names.
1395     case $ac_envvar in #(
1396       '' | [0-9]* | *[!_$as_cr_alnum]* )
1397       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1398     esac
1399     eval $ac_envvar=\$ac_optarg
1400     export $ac_envvar ;;
1401
1402   *)
1403     # FIXME: should be removed in autoconf 3.0.
1404     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1405     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1406       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1407     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1408     ;;
1409
1410   esac
1411 done
1412
1413 if test -n "$ac_prev"; then
1414   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1415   as_fn_error $? "missing argument to $ac_option"
1416 fi
1417
1418 if test -n "$ac_unrecognized_opts"; then
1419   case $enable_option_checking in
1420     no) ;;
1421     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1422     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1423   esac
1424 fi
1425
1426 # Check all directory arguments for consistency.
1427 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1428                 datadir sysconfdir sharedstatedir localstatedir includedir \
1429                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1430                 libdir localedir mandir
1431 do
1432   eval ac_val=\$$ac_var
1433   # Remove trailing slashes.
1434   case $ac_val in
1435     */ )
1436       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1437       eval $ac_var=\$ac_val;;
1438   esac
1439   # Be sure to have absolute directory names.
1440   case $ac_val in
1441     [\\/$]* | ?:[\\/]* )  continue;;
1442     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1443   esac
1444   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1445 done
1446
1447 # There might be people who depend on the old broken behavior: `$host'
1448 # used to hold the argument of --host etc.
1449 # FIXME: To remove some day.
1450 build=$build_alias
1451 host=$host_alias
1452 target=$target_alias
1453
1454 # FIXME: To remove some day.
1455 if test "x$host_alias" != x; then
1456   if test "x$build_alias" = x; then
1457     cross_compiling=maybe
1458   elif test "x$build_alias" != "x$host_alias"; then
1459     cross_compiling=yes
1460   fi
1461 fi
1462
1463 ac_tool_prefix=
1464 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1465
1466 test "$silent" = yes && exec 6>/dev/null
1467
1468
1469 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1470 ac_ls_di=`ls -di .` &&
1471 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1472   as_fn_error $? "working directory cannot be determined"
1473 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1474   as_fn_error $? "pwd does not report name of working directory"
1475
1476
1477 # Find the source files, if location was not specified.
1478 if test -z "$srcdir"; then
1479   ac_srcdir_defaulted=yes
1480   # Try the directory containing this script, then the parent directory.
1481   ac_confdir=`$as_dirname -- "$as_myself" ||
1482 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1483          X"$as_myself" : 'X\(//\)[^/]' \| \
1484          X"$as_myself" : 'X\(//\)$' \| \
1485          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1486 $as_echo X"$as_myself" |
1487     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1488             s//\1/
1489             q
1490           }
1491           /^X\(\/\/\)[^/].*/{
1492             s//\1/
1493             q
1494           }
1495           /^X\(\/\/\)$/{
1496             s//\1/
1497             q
1498           }
1499           /^X\(\/\).*/{
1500             s//\1/
1501             q
1502           }
1503           s/.*/./; q'`
1504   srcdir=$ac_confdir
1505   if test ! -r "$srcdir/$ac_unique_file"; then
1506     srcdir=..
1507   fi
1508 else
1509   ac_srcdir_defaulted=no
1510 fi
1511 if test ! -r "$srcdir/$ac_unique_file"; then
1512   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1513   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1514 fi
1515 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1516 ac_abs_confdir=`(
1517         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1518         pwd)`
1519 # When building in place, set srcdir=.
1520 if test "$ac_abs_confdir" = "$ac_pwd"; then
1521   srcdir=.
1522 fi
1523 # Remove unnecessary trailing slashes from srcdir.
1524 # Double slashes in file names in object file debugging info
1525 # mess up M-x gdb in Emacs.
1526 case $srcdir in
1527 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1528 esac
1529 for ac_var in $ac_precious_vars; do
1530   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1531   eval ac_env_${ac_var}_value=\$${ac_var}
1532   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1533   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1534 done
1535
1536 #
1537 # Report the --help message.
1538 #
1539 if test "$ac_init_help" = "long"; then
1540   # Omit some internal or obsolete options to make the list less imposing.
1541   # This message is too long to be a string in the A/UX 3.1 sh.
1542   cat <<_ACEOF
1543 \`configure' configures xmlsec1 1.2.22 to adapt to many kinds of systems.
1544
1545 Usage: $0 [OPTION]... [VAR=VALUE]...
1546
1547 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1548 VAR=VALUE.  See below for descriptions of some of the useful variables.
1549
1550 Defaults for the options are specified in brackets.
1551
1552 Configuration:
1553   -h, --help              display this help and exit
1554       --help=short        display options specific to this package
1555       --help=recursive    display the short help of all the included packages
1556   -V, --version           display version information and exit
1557   -q, --quiet, --silent   do not print \`checking ...' messages
1558       --cache-file=FILE   cache test results in FILE [disabled]
1559   -C, --config-cache      alias for \`--cache-file=config.cache'
1560   -n, --no-create         do not create output files
1561       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1562
1563 Installation directories:
1564   --prefix=PREFIX         install architecture-independent files in PREFIX
1565                           [$ac_default_prefix]
1566   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1567                           [PREFIX]
1568
1569 By default, \`make install' will install all the files in
1570 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1571 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1572 for instance \`--prefix=\$HOME'.
1573
1574 For better control, use the options below.
1575
1576 Fine tuning of the installation directories:
1577   --bindir=DIR            user executables [EPREFIX/bin]
1578   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1579   --libexecdir=DIR        program executables [EPREFIX/libexec]
1580   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1581   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1582   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1583   --libdir=DIR            object code libraries [EPREFIX/lib]
1584   --includedir=DIR        C header files [PREFIX/include]
1585   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1586   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1587   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1588   --infodir=DIR           info documentation [DATAROOTDIR/info]
1589   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1590   --mandir=DIR            man documentation [DATAROOTDIR/man]
1591   --docdir=DIR            documentation root [DATAROOTDIR/doc/xmlsec1]
1592   --htmldir=DIR           html documentation [DOCDIR]
1593   --dvidir=DIR            dvi documentation [DOCDIR]
1594   --pdfdir=DIR            pdf documentation [DOCDIR]
1595   --psdir=DIR             ps documentation [DOCDIR]
1596 _ACEOF
1597
1598   cat <<\_ACEOF
1599
1600 Program names:
1601   --program-prefix=PREFIX            prepend PREFIX to installed program names
1602   --program-suffix=SUFFIX            append SUFFIX to installed program names
1603   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1604
1605 System types:
1606   --build=BUILD     configure for building on BUILD [guessed]
1607   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1608 _ACEOF
1609 fi
1610
1611 if test -n "$ac_init_help"; then
1612   case $ac_init_help in
1613      short | recursive ) echo "Configuration of xmlsec1 1.2.22:";;
1614    esac
1615   cat <<\_ACEOF
1616
1617 Optional Features:
1618   --disable-option-checking  ignore unrecognized --enable/--with options
1619   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1620   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1621   --enable-silent-rules   less verbose build output (undo: "make V=1")
1622   --disable-silent-rules  verbose build output (undo: "make V=0")
1623   --enable-maintainer-mode
1624                           enable make rules and dependencies not useful (and
1625                           sometimes confusing) to the casual installer
1626   --enable-dependency-tracking
1627                           do not reject slow dependency extractors
1628   --disable-dependency-tracking
1629                           speeds up one-time build
1630   --enable-shared[=PKGS]  build shared libraries [default=yes]
1631   --enable-static[=PKGS]  build static libraries [default=yes]
1632   --enable-fast-install[=PKGS]
1633                           optimize for fast installation [default=yes]
1634   --disable-libtool-lock  avoid locking (might break parallel builds)
1635   --enable-development    enable development environment (no)
1636   --enable-manpages-build man pages build (no)
1637   --enable-docs-build     docs build (no)
1638   --enable-pkgconfig      enable pkgconfig for configuration (yes)
1639   --enable-mscrypto       enable mscrypto (no)
1640   --enable-md5            enable MD5 support (yes)
1641   --enable-ripemd160      enable RIPEMD-160 support (yes)
1642   --enable-sha1           enable SHA1 support (yes)
1643   --enable-sha224         enable SHA224 support (yes)
1644   --enable-sha256         enable SHA256 support (yes)
1645   --enable-sha384         enable SHA384 support (yes)
1646   --enable-sha512         enable SHA512 support (yes)
1647   --enable-hmac           enable HMAC support (yes)
1648   --enable-dsa            enable DSA support (yes)
1649   --enable-rsa            enable RSA support (yes)
1650   --enable-x509           enable x509 support (yes)
1651   --enable-des            enable DES support (yes)
1652   --enable-aes            enable AES support
1653   --enable-gost           enable GOST support (no)
1654   --enable-gost2012       enable EXPERMIENTAL GOST2012 support (no)
1655   --enable-xmldsig        enable XMLDSig support (yes)
1656   --enable-xmlenc         enable XMLEnc support (yes)
1657   --enable-crypto-dl      enable dynamic loading support for xmlsec-crypto libraries (yes)
1658   --enable-apps-crypto-dl  enable dynamic loading support for xmlsec-crypto libraries in xmlsec command line tool (yes)
1659   --enable-skm            enable Simple Keys Manager testing (yes)
1660   --enable-tmpl-tests     enable templates testing in xmlsec utility (yes)
1661   --enable-debugging      enable debugging compilation flags (no)
1662   --enable-profiling      enable profiling compilation flags (no)
1663   --enable-pedantic       enable pedantic compilation flags (no)
1664   --enable-static-linking enable static linking (no)
1665
1666 Optional Packages:
1667   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1668   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1669   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1670                           both]
1671   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1672   --with-sysroot=DIR Search for dependent libraries within DIR
1673                         (or the compiler's sysroot if not specified).
1674   --with-libxml=PFX       libxml2 location
1675
1676   --with-libxml-src=PFX   not installed yet libxml2 location
1677
1678   --with-libxslt=PFX      libxslt location
1679
1680   --with-libxslt-src=PFX  not installed yet libxslt location
1681
1682   --with-openssl=PFX      openssl location
1683   --with-nss=PFX          nss location
1684   --with-nspr=PFX         nspr location (needed for NSS)
1685   --with-seamonkey-ver=VER  mozilla version (alt to --with-nss, --with-nspr)
1686   --with-mozilla-ver=VER  mozilla version (alt to --with-nss, --with-nspr)
1687   --with-gcrypt=PFX       gcrypt location
1688   --with-gnutls=PFX       gnutls location
1689   --with-default-crypto=name default crypto name
1690   --with-html-dir=PATH    path to installed docs
1691
1692 Some influential environment variables:
1693   CC          C compiler command
1694   CFLAGS      C compiler flags
1695   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1696               nonstandard directory <lib dir>
1697   LIBS        libraries to pass to the linker, e.g. -l<library>
1698   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1699               you have headers in a nonstandard directory <include dir>
1700   CPP         C preprocessor
1701   PKG_CONFIG  path to pkg-config utility
1702   PKG_CONFIG_PATH
1703               directories to add to pkg-config's search path
1704   PKG_CONFIG_LIBDIR
1705               path overriding pkg-config's built-in search path
1706   LIBXML_CFLAGS
1707               C compiler flags for LIBXML, overriding pkg-config
1708   LIBXML_LIBS linker flags for LIBXML, overriding pkg-config
1709   LIBXSLT_CFLAGS
1710               C compiler flags for LIBXSLT, overriding pkg-config
1711   LIBXSLT_LIBS
1712               linker flags for LIBXSLT, overriding pkg-config
1713   OPENSSL_CFLAGS
1714               C compiler flags for OPENSSL, overriding pkg-config
1715   OPENSSL_LIBS
1716               linker flags for OPENSSL, overriding pkg-config
1717   NSS_CFLAGS  C compiler flags for NSS, overriding pkg-config
1718   NSS_LIBS    linker flags for NSS, overriding pkg-config
1719   GCRYPT_CFLAGS
1720               C compiler flags for GCRYPT, overriding pkg-config
1721   GCRYPT_LIBS linker flags for GCRYPT, overriding pkg-config
1722   GNUTLS_CFLAGS
1723               C compiler flags for GNUTLS, overriding pkg-config
1724   GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
1725
1726 Use these variables to override the choices made by `configure' or to help
1727 it to find libraries and programs with nonstandard names/locations.
1728
1729 Report bugs to <http://www.aleksey.com/xmlsec>.
1730 _ACEOF
1731 ac_status=$?
1732 fi
1733
1734 if test "$ac_init_help" = "recursive"; then
1735   # If there are subdirs, report their specific --help.
1736   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1737     test -d "$ac_dir" ||
1738       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1739       continue
1740     ac_builddir=.
1741
1742 case "$ac_dir" in
1743 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1744 *)
1745   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1746   # A ".." for each directory in $ac_dir_suffix.
1747   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1748   case $ac_top_builddir_sub in
1749   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1750   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1751   esac ;;
1752 esac
1753 ac_abs_top_builddir=$ac_pwd
1754 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1755 # for backward compatibility:
1756 ac_top_builddir=$ac_top_build_prefix
1757
1758 case $srcdir in
1759   .)  # We are building in place.
1760     ac_srcdir=.
1761     ac_top_srcdir=$ac_top_builddir_sub
1762     ac_abs_top_srcdir=$ac_pwd ;;
1763   [\\/]* | ?:[\\/]* )  # Absolute name.
1764     ac_srcdir=$srcdir$ac_dir_suffix;
1765     ac_top_srcdir=$srcdir
1766     ac_abs_top_srcdir=$srcdir ;;
1767   *) # Relative name.
1768     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1769     ac_top_srcdir=$ac_top_build_prefix$srcdir
1770     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1771 esac
1772 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1773
1774     cd "$ac_dir" || { ac_status=$?; continue; }
1775     # Check for guested configure.
1776     if test -f "$ac_srcdir/configure.gnu"; then
1777       echo &&
1778       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1779     elif test -f "$ac_srcdir/configure"; then
1780       echo &&
1781       $SHELL "$ac_srcdir/configure" --help=recursive
1782     else
1783       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1784     fi || ac_status=$?
1785     cd "$ac_pwd" || { ac_status=$?; break; }
1786   done
1787 fi
1788
1789 test -n "$ac_init_help" && exit $ac_status
1790 if $ac_init_version; then
1791   cat <<\_ACEOF
1792 xmlsec1 configure 1.2.22
1793 generated by GNU Autoconf 2.69
1794
1795 Copyright (C) 2012 Free Software Foundation, Inc.
1796 This configure script is free software; the Free Software Foundation
1797 gives unlimited permission to copy, distribute and modify it.
1798 _ACEOF
1799   exit
1800 fi
1801
1802 ## ------------------------ ##
1803 ## Autoconf initialization. ##
1804 ## ------------------------ ##
1805
1806 # ac_fn_c_try_compile LINENO
1807 # --------------------------
1808 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1809 ac_fn_c_try_compile ()
1810 {
1811   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812   rm -f conftest.$ac_objext
1813   if { { ac_try="$ac_compile"
1814 case "(($ac_try" in
1815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816   *) ac_try_echo=$ac_try;;
1817 esac
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820   (eval "$ac_compile") 2>conftest.err
1821   ac_status=$?
1822   if test -s conftest.err; then
1823     grep -v '^ *+' conftest.err >conftest.er1
1824     cat conftest.er1 >&5
1825     mv -f conftest.er1 conftest.err
1826   fi
1827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828   test $ac_status = 0; } && {
1829          test -z "$ac_c_werror_flag" ||
1830          test ! -s conftest.err
1831        } && test -s conftest.$ac_objext; then :
1832   ac_retval=0
1833 else
1834   $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1836
1837         ac_retval=1
1838 fi
1839   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840   as_fn_set_status $ac_retval
1841
1842 } # ac_fn_c_try_compile
1843
1844 # ac_fn_c_try_cpp LINENO
1845 # ----------------------
1846 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1847 ac_fn_c_try_cpp ()
1848 {
1849   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850   if { { ac_try="$ac_cpp conftest.$ac_ext"
1851 case "(($ac_try" in
1852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853   *) ac_try_echo=$ac_try;;
1854 esac
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1858   ac_status=$?
1859   if test -s conftest.err; then
1860     grep -v '^ *+' conftest.err >conftest.er1
1861     cat conftest.er1 >&5
1862     mv -f conftest.er1 conftest.err
1863   fi
1864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865   test $ac_status = 0; } > conftest.i && {
1866          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1867          test ! -s conftest.err
1868        }; then :
1869   ac_retval=0
1870 else
1871   $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1873
1874     ac_retval=1
1875 fi
1876   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877   as_fn_set_status $ac_retval
1878
1879 } # ac_fn_c_try_cpp
1880
1881 # ac_fn_c_try_run LINENO
1882 # ----------------------
1883 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1884 # that executables *can* be run.
1885 ac_fn_c_try_run ()
1886 {
1887   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888   if { { ac_try="$ac_link"
1889 case "(($ac_try" in
1890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891   *) ac_try_echo=$ac_try;;
1892 esac
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895   (eval "$ac_link") 2>&5
1896   ac_status=$?
1897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1899   { { case "(($ac_try" in
1900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901   *) ac_try_echo=$ac_try;;
1902 esac
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905   (eval "$ac_try") 2>&5
1906   ac_status=$?
1907   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908   test $ac_status = 0; }; }; then :
1909   ac_retval=0
1910 else
1911   $as_echo "$as_me: program exited with status $ac_status" >&5
1912        $as_echo "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1914
1915        ac_retval=$ac_status
1916 fi
1917   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1918   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919   as_fn_set_status $ac_retval
1920
1921 } # ac_fn_c_try_run
1922
1923 # ac_fn_c_try_link LINENO
1924 # -----------------------
1925 # Try to link conftest.$ac_ext, and return whether this succeeded.
1926 ac_fn_c_try_link ()
1927 {
1928   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929   rm -f conftest.$ac_objext conftest$ac_exeext
1930   if { { ac_try="$ac_link"
1931 case "(($ac_try" in
1932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933   *) ac_try_echo=$ac_try;;
1934 esac
1935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936 $as_echo "$ac_try_echo"; } >&5
1937   (eval "$ac_link") 2>conftest.err
1938   ac_status=$?
1939   if test -s conftest.err; then
1940     grep -v '^ *+' conftest.err >conftest.er1
1941     cat conftest.er1 >&5
1942     mv -f conftest.er1 conftest.err
1943   fi
1944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945   test $ac_status = 0; } && {
1946          test -z "$ac_c_werror_flag" ||
1947          test ! -s conftest.err
1948        } && test -s conftest$ac_exeext && {
1949          test "$cross_compiling" = yes ||
1950          test -x conftest$ac_exeext
1951        }; then :
1952   ac_retval=0
1953 else
1954   $as_echo "$as_me: failed program was:" >&5
1955 sed 's/^/| /' conftest.$ac_ext >&5
1956
1957         ac_retval=1
1958 fi
1959   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1960   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1961   # interfere with the next link command; also delete a directory that is
1962   # left behind by Apple's compiler.  We do this before executing the actions.
1963   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1964   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965   as_fn_set_status $ac_retval
1966
1967 } # ac_fn_c_try_link
1968
1969 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1970 # -------------------------------------------------------
1971 # Tests whether HEADER exists and can be compiled using the include files in
1972 # INCLUDES, setting the cache variable VAR accordingly.
1973 ac_fn_c_check_header_compile ()
1974 {
1975   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977 $as_echo_n "checking for $2... " >&6; }
1978 if eval \${$3+:} false; then :
1979   $as_echo_n "(cached) " >&6
1980 else
1981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h.  */
1983 $4
1984 #include <$2>
1985 _ACEOF
1986 if ac_fn_c_try_compile "$LINENO"; then :
1987   eval "$3=yes"
1988 else
1989   eval "$3=no"
1990 fi
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992 fi
1993 eval ac_res=\$$3
1994                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997
1998 } # ac_fn_c_check_header_compile
1999
2000 # ac_fn_c_check_func LINENO FUNC VAR
2001 # ----------------------------------
2002 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2003 ac_fn_c_check_func ()
2004 {
2005   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007 $as_echo_n "checking for $2... " >&6; }
2008 if eval \${$3+:} false; then :
2009   $as_echo_n "(cached) " >&6
2010 else
2011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h.  */
2013 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2014    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2015 #define $2 innocuous_$2
2016
2017 /* System header to define __stub macros and hopefully few prototypes,
2018     which can conflict with char $2 (); below.
2019     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2020     <limits.h> exists even on freestanding compilers.  */
2021
2022 #ifdef __STDC__
2023 # include <limits.h>
2024 #else
2025 # include <assert.h>
2026 #endif
2027
2028 #undef $2
2029
2030 /* Override any GCC internal prototype to avoid an error.
2031    Use char because int might match the return type of a GCC
2032    builtin and then its argument prototype would still apply.  */
2033 #ifdef __cplusplus
2034 extern "C"
2035 #endif
2036 char $2 ();
2037 /* The GNU C library defines this for functions which it implements
2038     to always fail with ENOSYS.  Some functions are actually named
2039     something starting with __ and the normal name is an alias.  */
2040 #if defined __stub_$2 || defined __stub___$2
2041 choke me
2042 #endif
2043
2044 int
2045 main ()
2046 {
2047 return $2 ();
2048   ;
2049   return 0;
2050 }
2051 _ACEOF
2052 if ac_fn_c_try_link "$LINENO"; then :
2053   eval "$3=yes"
2054 else
2055   eval "$3=no"
2056 fi
2057 rm -f core conftest.err conftest.$ac_objext \
2058     conftest$ac_exeext conftest.$ac_ext
2059 fi
2060 eval ac_res=\$$3
2061                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2062 $as_echo "$ac_res" >&6; }
2063   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064
2065 } # ac_fn_c_check_func
2066
2067 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2068 # -------------------------------------------------------
2069 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2070 # the include files in INCLUDES and setting the cache variable VAR
2071 # accordingly.
2072 ac_fn_c_check_header_mongrel ()
2073 {
2074   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075   if eval \${$3+:} false; then :
2076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2077 $as_echo_n "checking for $2... " >&6; }
2078 if eval \${$3+:} false; then :
2079   $as_echo_n "(cached) " >&6
2080 fi
2081 eval ac_res=\$$3
2082                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083 $as_echo "$ac_res" >&6; }
2084 else
2085   # Is the header compilable?
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2087 $as_echo_n "checking $2 usability... " >&6; }
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h.  */
2090 $4
2091 #include <$2>
2092 _ACEOF
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094   ac_header_compiler=yes
2095 else
2096   ac_header_compiler=no
2097 fi
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2100 $as_echo "$ac_header_compiler" >&6; }
2101
2102 # Is the header present?
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2104 $as_echo_n "checking $2 presence... " >&6; }
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h.  */
2107 #include <$2>
2108 _ACEOF
2109 if ac_fn_c_try_cpp "$LINENO"; then :
2110   ac_header_preproc=yes
2111 else
2112   ac_header_preproc=no
2113 fi
2114 rm -f conftest.err conftest.i conftest.$ac_ext
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2116 $as_echo "$ac_header_preproc" >&6; }
2117
2118 # So?  What about this header?
2119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2120   yes:no: )
2121     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2122 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2123     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2124 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2125     ;;
2126   no:yes:* )
2127     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2128 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2129     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2130 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2131     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2132 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2133     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2134 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2135     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2136 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2137 ( $as_echo "## -------------------------------------------- ##
2138 ## Report this to http://www.aleksey.com/xmlsec ##
2139 ## -------------------------------------------- ##"
2140      ) | sed "s/^/$as_me: WARNING:     /" >&2
2141     ;;
2142 esac
2143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2144 $as_echo_n "checking for $2... " >&6; }
2145 if eval \${$3+:} false; then :
2146   $as_echo_n "(cached) " >&6
2147 else
2148   eval "$3=\$ac_header_compiler"
2149 fi
2150 eval ac_res=\$$3
2151                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152 $as_echo "$ac_res" >&6; }
2153 fi
2154   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2155
2156 } # ac_fn_c_check_header_mongrel
2157
2158 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2159 # --------------------------------------------
2160 # Tries to find the compile-time value of EXPR in a program that includes
2161 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2162 # computed
2163 ac_fn_c_compute_int ()
2164 {
2165   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166   if test "$cross_compiling" = yes; then
2167     # Depending upon the size, compute the lo and hi bounds.
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h.  */
2170 $4
2171 int
2172 main ()
2173 {
2174 static int test_array [1 - 2 * !(($2) >= 0)];
2175 test_array [0] = 0;
2176 return test_array [0];
2177
2178   ;
2179   return 0;
2180 }
2181 _ACEOF
2182 if ac_fn_c_try_compile "$LINENO"; then :
2183   ac_lo=0 ac_mid=0
2184   while :; do
2185     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h.  */
2187 $4
2188 int
2189 main ()
2190 {
2191 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2192 test_array [0] = 0;
2193 return test_array [0];
2194
2195   ;
2196   return 0;
2197 }
2198 _ACEOF
2199 if ac_fn_c_try_compile "$LINENO"; then :
2200   ac_hi=$ac_mid; break
2201 else
2202   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2203                         if test $ac_lo -le $ac_mid; then
2204                           ac_lo= ac_hi=
2205                           break
2206                         fi
2207                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2208 fi
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210   done
2211 else
2212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h.  */
2214 $4
2215 int
2216 main ()
2217 {
2218 static int test_array [1 - 2 * !(($2) < 0)];
2219 test_array [0] = 0;
2220 return test_array [0];
2221
2222   ;
2223   return 0;
2224 }
2225 _ACEOF
2226 if ac_fn_c_try_compile "$LINENO"; then :
2227   ac_hi=-1 ac_mid=-1
2228   while :; do
2229     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h.  */
2231 $4
2232 int
2233 main ()
2234 {
2235 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2236 test_array [0] = 0;
2237 return test_array [0];
2238
2239   ;
2240   return 0;
2241 }
2242 _ACEOF
2243 if ac_fn_c_try_compile "$LINENO"; then :
2244   ac_lo=$ac_mid; break
2245 else
2246   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2247                         if test $ac_mid -le $ac_hi; then
2248                           ac_lo= ac_hi=
2249                           break
2250                         fi
2251                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2252 fi
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254   done
2255 else
2256   ac_lo= ac_hi=
2257 fi
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259 fi
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 # Binary search between lo and hi bounds.
2262 while test "x$ac_lo" != "x$ac_hi"; do
2263   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h.  */
2266 $4
2267 int
2268 main ()
2269 {
2270 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2271 test_array [0] = 0;
2272 return test_array [0];
2273
2274   ;
2275   return 0;
2276 }
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279   ac_hi=$ac_mid
2280 else
2281   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2282 fi
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284 done
2285 case $ac_lo in #((
2286 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2287 '') ac_retval=1 ;;
2288 esac
2289   else
2290     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291 /* end confdefs.h.  */
2292 $4
2293 static long int longval () { return $2; }
2294 static unsigned long int ulongval () { return $2; }
2295 #include <stdio.h>
2296 #include <stdlib.h>
2297 int
2298 main ()
2299 {
2300
2301   FILE *f = fopen ("conftest.val", "w");
2302   if (! f)
2303     return 1;
2304   if (($2) < 0)
2305     {
2306       long int i = longval ();
2307       if (i != ($2))
2308         return 1;
2309       fprintf (f, "%ld", i);
2310     }
2311   else
2312     {
2313       unsigned long int i = ulongval ();
2314       if (i != ($2))
2315         return 1;
2316       fprintf (f, "%lu", i);
2317     }
2318   /* Do not output a trailing newline, as this causes \r\n confusion
2319      on some platforms.  */
2320   return ferror (f) || fclose (f) != 0;
2321
2322   ;
2323   return 0;
2324 }
2325 _ACEOF
2326 if ac_fn_c_try_run "$LINENO"; then :
2327   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2328 else
2329   ac_retval=1
2330 fi
2331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2332   conftest.$ac_objext conftest.beam conftest.$ac_ext
2333 rm -f conftest.val
2334
2335   fi
2336   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2337   as_fn_set_status $ac_retval
2338
2339 } # ac_fn_c_compute_int
2340 cat >config.log <<_ACEOF
2341 This file contains any messages produced by compilers while
2342 running configure, to aid debugging if configure makes a mistake.
2343
2344 It was created by xmlsec1 $as_me 1.2.22, which was
2345 generated by GNU Autoconf 2.69.  Invocation command line was
2346
2347   $ $0 $@
2348
2349 _ACEOF
2350 exec 5>>config.log
2351 {
2352 cat <<_ASUNAME
2353 ## --------- ##
2354 ## Platform. ##
2355 ## --------- ##
2356
2357 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2358 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2359 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2360 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2361 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2362
2363 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2364 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2365
2366 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2367 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2368 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2369 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2370 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2371 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2372 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2373
2374 _ASUNAME
2375
2376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377 for as_dir in $PATH
2378 do
2379   IFS=$as_save_IFS
2380   test -z "$as_dir" && as_dir=.
2381     $as_echo "PATH: $as_dir"
2382   done
2383 IFS=$as_save_IFS
2384
2385 } >&5
2386
2387 cat >&5 <<_ACEOF
2388
2389
2390 ## ----------- ##
2391 ## Core tests. ##
2392 ## ----------- ##
2393
2394 _ACEOF
2395
2396
2397 # Keep a trace of the command line.
2398 # Strip out --no-create and --no-recursion so they do not pile up.
2399 # Strip out --silent because we don't want to record it for future runs.
2400 # Also quote any args containing shell meta-characters.
2401 # Make two passes to allow for proper duplicate-argument suppression.
2402 ac_configure_args=
2403 ac_configure_args0=
2404 ac_configure_args1=
2405 ac_must_keep_next=false
2406 for ac_pass in 1 2
2407 do
2408   for ac_arg
2409   do
2410     case $ac_arg in
2411     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2412     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2413     | -silent | --silent | --silen | --sile | --sil)
2414       continue ;;
2415     *\'*)
2416       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2417     esac
2418     case $ac_pass in
2419     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2420     2)
2421       as_fn_append ac_configure_args1 " '$ac_arg'"
2422       if test $ac_must_keep_next = true; then
2423         ac_must_keep_next=false # Got value, back to normal.
2424       else
2425         case $ac_arg in
2426           *=* | --config-cache | -C | -disable-* | --disable-* \
2427           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2428           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2429           | -with-* | --with-* | -without-* | --without-* | --x)
2430             case "$ac_configure_args0 " in
2431               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2432             esac
2433             ;;
2434           -* ) ac_must_keep_next=true ;;
2435         esac
2436       fi
2437       as_fn_append ac_configure_args " '$ac_arg'"
2438       ;;
2439     esac
2440   done
2441 done
2442 { ac_configure_args0=; unset ac_configure_args0;}
2443 { ac_configure_args1=; unset ac_configure_args1;}
2444
2445 # When interrupted or exit'd, cleanup temporary files, and complete
2446 # config.log.  We remove comments because anyway the quotes in there
2447 # would cause problems or look ugly.
2448 # WARNING: Use '\'' to represent an apostrophe within the trap.
2449 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2450 trap 'exit_status=$?
2451   # Save into config.log some information that might help in debugging.
2452   {
2453     echo
2454
2455     $as_echo "## ---------------- ##
2456 ## Cache variables. ##
2457 ## ---------------- ##"
2458     echo
2459     # The following way of writing the cache mishandles newlines in values,
2460 (
2461   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2462     eval ac_val=\$$ac_var
2463     case $ac_val in #(
2464     *${as_nl}*)
2465       case $ac_var in #(
2466       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2467 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2468       esac
2469       case $ac_var in #(
2470       _ | IFS | as_nl) ;; #(
2471       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2472       *) { eval $ac_var=; unset $ac_var;} ;;
2473       esac ;;
2474     esac
2475   done
2476   (set) 2>&1 |
2477     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2478     *${as_nl}ac_space=\ *)
2479       sed -n \
2480         "s/'\''/'\''\\\\'\'''\''/g;
2481           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2482       ;; #(
2483     *)
2484       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2485       ;;
2486     esac |
2487     sort
2488 )
2489     echo
2490
2491     $as_echo "## ----------------- ##
2492 ## Output variables. ##
2493 ## ----------------- ##"
2494     echo
2495     for ac_var in $ac_subst_vars
2496     do
2497       eval ac_val=\$$ac_var
2498       case $ac_val in
2499       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2500       esac
2501       $as_echo "$ac_var='\''$ac_val'\''"
2502     done | sort
2503     echo
2504
2505     if test -n "$ac_subst_files"; then
2506       $as_echo "## ------------------- ##
2507 ## File substitutions. ##
2508 ## ------------------- ##"
2509       echo
2510       for ac_var in $ac_subst_files
2511       do
2512         eval ac_val=\$$ac_var
2513         case $ac_val in
2514         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2515         esac
2516         $as_echo "$ac_var='\''$ac_val'\''"
2517       done | sort
2518       echo
2519     fi
2520
2521     if test -s confdefs.h; then
2522       $as_echo "## ----------- ##
2523 ## confdefs.h. ##
2524 ## ----------- ##"
2525       echo
2526       cat confdefs.h
2527       echo
2528     fi
2529     test "$ac_signal" != 0 &&
2530       $as_echo "$as_me: caught signal $ac_signal"
2531     $as_echo "$as_me: exit $exit_status"
2532   } >&5
2533   rm -f core *.core core.conftest.* &&
2534     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2535     exit $exit_status
2536 ' 0
2537 for ac_signal in 1 2 13 15; do
2538   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2539 done
2540 ac_signal=0
2541
2542 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2543 rm -f -r conftest* confdefs.h
2544
2545 $as_echo "/* confdefs.h */" > confdefs.h
2546
2547 # Predefined preprocessor variables.
2548
2549 cat >>confdefs.h <<_ACEOF
2550 #define PACKAGE_NAME "$PACKAGE_NAME"
2551 _ACEOF
2552
2553 cat >>confdefs.h <<_ACEOF
2554 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2555 _ACEOF
2556
2557 cat >>confdefs.h <<_ACEOF
2558 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2559 _ACEOF
2560
2561 cat >>confdefs.h <<_ACEOF
2562 #define PACKAGE_STRING "$PACKAGE_STRING"
2563 _ACEOF
2564
2565 cat >>confdefs.h <<_ACEOF
2566 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2567 _ACEOF
2568
2569 cat >>confdefs.h <<_ACEOF
2570 #define PACKAGE_URL "$PACKAGE_URL"
2571 _ACEOF
2572
2573
2574 # Let the site file select an alternate cache file if it wants to.
2575 # Prefer an explicitly selected file to automatically selected ones.
2576 ac_site_file1=NONE
2577 ac_site_file2=NONE
2578 if test -n "$CONFIG_SITE"; then
2579   # We do not want a PATH search for config.site.
2580   case $CONFIG_SITE in #((
2581     -*)  ac_site_file1=./$CONFIG_SITE;;
2582     */*) ac_site_file1=$CONFIG_SITE;;
2583     *)   ac_site_file1=./$CONFIG_SITE;;
2584   esac
2585 elif test "x$prefix" != xNONE; then
2586   ac_site_file1=$prefix/share/config.site
2587   ac_site_file2=$prefix/etc/config.site
2588 else
2589   ac_site_file1=$ac_default_prefix/share/config.site
2590   ac_site_file2=$ac_default_prefix/etc/config.site
2591 fi
2592 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2593 do
2594   test "x$ac_site_file" = xNONE && continue
2595   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2596     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2597 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2598     sed 's/^/| /' "$ac_site_file" >&5
2599     . "$ac_site_file" \
2600       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2602 as_fn_error $? "failed to load site script $ac_site_file
2603 See \`config.log' for more details" "$LINENO" 5; }
2604   fi
2605 done
2606
2607 if test -r "$cache_file"; then
2608   # Some versions of bash will fail to source /dev/null (special files
2609   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2610   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2611     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2612 $as_echo "$as_me: loading cache $cache_file" >&6;}
2613     case $cache_file in
2614       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2615       *)                      . "./$cache_file";;
2616     esac
2617   fi
2618 else
2619   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2620 $as_echo "$as_me: creating cache $cache_file" >&6;}
2621   >$cache_file
2622 fi
2623
2624 # Check that the precious variables saved in the cache have kept the same
2625 # value.
2626 ac_cache_corrupted=false
2627 for ac_var in $ac_precious_vars; do
2628   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2629   eval ac_new_set=\$ac_env_${ac_var}_set
2630   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2631   eval ac_new_val=\$ac_env_${ac_var}_value
2632   case $ac_old_set,$ac_new_set in
2633     set,)
2634       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2635 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2636       ac_cache_corrupted=: ;;
2637     ,set)
2638       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2639 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2640       ac_cache_corrupted=: ;;
2641     ,);;
2642     *)
2643       if test "x$ac_old_val" != "x$ac_new_val"; then
2644         # differences in whitespace do not lead to failure.
2645         ac_old_val_w=`echo x $ac_old_val`
2646         ac_new_val_w=`echo x $ac_new_val`
2647         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2648           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2649 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2650           ac_cache_corrupted=:
2651         else
2652           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2653 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2654           eval $ac_var=\$ac_old_val
2655         fi
2656         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2657 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2658         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2659 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2660       fi;;
2661   esac
2662   # Pass precious variables to config.status.
2663   if test "$ac_new_set" = set; then
2664     case $ac_new_val in
2665     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2666     *) ac_arg=$ac_var=$ac_new_val ;;
2667     esac
2668     case " $ac_configure_args " in
2669       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2670       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2671     esac
2672   fi
2673 done
2674 if $ac_cache_corrupted; then
2675   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2677   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2678 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2679   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2680 fi
2681 ## -------------------- ##
2682 ## Main body of script. ##
2683 ## -------------------- ##
2684
2685 ac_ext=c
2686 ac_cpp='$CPP $CPPFLAGS'
2687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2690
2691
2692
2693 XMLSEC_PACKAGE=xmlsec1
2694 XMLSEC_VERSION_MAJOR=1
2695 XMLSEC_VERSION_MINOR=2
2696 XMLSEC_VERSION_SUBMINOR=22
2697 XMLSEC_VERSION="$XMLSEC_VERSION_MAJOR.$XMLSEC_VERSION_MINOR.$XMLSEC_VERSION_SUBMINOR"
2698 XMLSEC_VERSION_INFO=`echo $XMLSEC_VERSION | awk -F. '{ printf "%d:%d:%d", $1+$2, $3, $2 }'`
2699 XMLSEC_VERSION_SAFE=`echo $XMLSEC_VERSION | sed 's/\./_/g'`
2700
2701
2702 ac_aux_dir=
2703 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2704   if test -f "$ac_dir/install-sh"; then
2705     ac_aux_dir=$ac_dir
2706     ac_install_sh="$ac_aux_dir/install-sh -c"
2707     break
2708   elif test -f "$ac_dir/install.sh"; then
2709     ac_aux_dir=$ac_dir
2710     ac_install_sh="$ac_aux_dir/install.sh -c"
2711     break
2712   elif test -f "$ac_dir/shtool"; then
2713     ac_aux_dir=$ac_dir
2714     ac_install_sh="$ac_aux_dir/shtool install -c"
2715     break
2716   fi
2717 done
2718 if test -z "$ac_aux_dir"; then
2719   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2720 fi
2721
2722 # These three variables are undocumented and unsupported,
2723 # and are intended to be withdrawn in a future Autoconf release.
2724 # They can cause serious problems if a builder's source tree is in a directory
2725 # whose full name contains unusual characters.
2726 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2727 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2728 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2729
2730
2731 # Make sure we can run config.sub.
2732 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2733   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2734
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2736 $as_echo_n "checking build system type... " >&6; }
2737 if ${ac_cv_build+:} false; then :
2738   $as_echo_n "(cached) " >&6
2739 else
2740   ac_build_alias=$build_alias
2741 test "x$ac_build_alias" = x &&
2742   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2743 test "x$ac_build_alias" = x &&
2744   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2745 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2746   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2747
2748 fi
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2750 $as_echo "$ac_cv_build" >&6; }
2751 case $ac_cv_build in
2752 *-*-*) ;;
2753 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2754 esac
2755 build=$ac_cv_build
2756 ac_save_IFS=$IFS; IFS='-'
2757 set x $ac_cv_build
2758 shift
2759 build_cpu=$1
2760 build_vendor=$2
2761 shift; shift
2762 # Remember, the first character of IFS is used to create $*,
2763 # except with old shells:
2764 build_os=$*
2765 IFS=$ac_save_IFS
2766 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2767
2768
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2770 $as_echo_n "checking host system type... " >&6; }
2771 if ${ac_cv_host+:} false; then :
2772   $as_echo_n "(cached) " >&6
2773 else
2774   if test "x$host_alias" = x; then
2775   ac_cv_host=$ac_cv_build
2776 else
2777   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2778     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2779 fi
2780
2781 fi
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2783 $as_echo "$ac_cv_host" >&6; }
2784 case $ac_cv_host in
2785 *-*-*) ;;
2786 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2787 esac
2788 host=$ac_cv_host
2789 ac_save_IFS=$IFS; IFS='-'
2790 set x $ac_cv_host
2791 shift
2792 host_cpu=$1
2793 host_vendor=$2
2794 shift; shift
2795 # Remember, the first character of IFS is used to create $*,
2796 # except with old shells:
2797 host_os=$*
2798 IFS=$ac_save_IFS
2799 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812 am__api_version='1.15'
2813
2814 # Find a good install program.  We prefer a C program (faster),
2815 # so one script is as good as another.  But avoid the broken or
2816 # incompatible versions:
2817 # SysV /etc/install, /usr/sbin/install
2818 # SunOS /usr/etc/install
2819 # IRIX /sbin/install
2820 # AIX /bin/install
2821 # AmigaOS /C/install, which installs bootblocks on floppy discs
2822 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2823 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2824 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2825 # OS/2's system install, which has a completely different semantic
2826 # ./install, which can be erroneously created by make from ./install.sh.
2827 # Reject install programs that cannot install multiple files.
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2829 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2830 if test -z "$INSTALL"; then
2831 if ${ac_cv_path_install+:} false; then :
2832   $as_echo_n "(cached) " >&6
2833 else
2834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837   IFS=$as_save_IFS
2838   test -z "$as_dir" && as_dir=.
2839     # Account for people who put trailing slashes in PATH elements.
2840 case $as_dir/ in #((
2841   ./ | .// | /[cC]/* | \
2842   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2843   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2844   /usr/ucb/* ) ;;
2845   *)
2846     # OSF1 and SCO ODT 3.0 have their own names for install.
2847     # Don't use installbsd from OSF since it installs stuff as root
2848     # by default.
2849     for ac_prog in ginstall scoinst install; do
2850       for ac_exec_ext in '' $ac_executable_extensions; do
2851         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2852           if test $ac_prog = install &&
2853             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2854             # AIX install.  It has an incompatible calling convention.
2855             :
2856           elif test $ac_prog = install &&
2857             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2858             # program-specific install script used by HP pwplus--don't use.
2859             :
2860           else
2861             rm -rf conftest.one conftest.two conftest.dir
2862             echo one > conftest.one
2863             echo two > conftest.two
2864             mkdir conftest.dir
2865             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2866               test -s conftest.one && test -s conftest.two &&
2867               test -s conftest.dir/conftest.one &&
2868               test -s conftest.dir/conftest.two
2869             then
2870               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2871               break 3
2872             fi
2873           fi
2874         fi
2875       done
2876     done
2877     ;;
2878 esac
2879
2880   done
2881 IFS=$as_save_IFS
2882
2883 rm -rf conftest.one conftest.two conftest.dir
2884
2885 fi
2886   if test "${ac_cv_path_install+set}" = set; then
2887     INSTALL=$ac_cv_path_install
2888   else
2889     # As a last resort, use the slow shell script.  Don't cache a
2890     # value for INSTALL within a source directory, because that will
2891     # break other packages using the cache if that directory is
2892     # removed, or if the value is a relative name.
2893     INSTALL=$ac_install_sh
2894   fi
2895 fi
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2897 $as_echo "$INSTALL" >&6; }
2898
2899 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2900 # It thinks the first close brace ends the variable substitution.
2901 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2902
2903 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2904
2905 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2906
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2908 $as_echo_n "checking whether build environment is sane... " >&6; }
2909 # Reject unsafe characters in $srcdir or the absolute working directory
2910 # name.  Accept space and tab only in the latter.
2911 am_lf='
2912 '
2913 case `pwd` in
2914   *[\\\"\#\$\&\'\`$am_lf]*)
2915     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2916 esac
2917 case $srcdir in
2918   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2919     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2920 esac
2921
2922 # Do 'set' in a subshell so we don't clobber the current shell's
2923 # arguments.  Must try -L first in case configure is actually a
2924 # symlink; some systems play weird games with the mod time of symlinks
2925 # (eg FreeBSD returns the mod time of the symlink's containing
2926 # directory).
2927 if (
2928    am_has_slept=no
2929    for am_try in 1 2; do
2930      echo "timestamp, slept: $am_has_slept" > conftest.file
2931      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2932      if test "$*" = "X"; then
2933         # -L didn't work.
2934         set X `ls -t "$srcdir/configure" conftest.file`
2935      fi
2936      if test "$*" != "X $srcdir/configure conftest.file" \
2937         && test "$*" != "X conftest.file $srcdir/configure"; then
2938
2939         # If neither matched, then we have a broken ls.  This can happen
2940         # if, for instance, CONFIG_SHELL is bash and it inherits a
2941         # broken ls alias from the environment.  This has actually
2942         # happened.  Such a system could not be considered "sane".
2943         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2944   alias in your environment" "$LINENO" 5
2945      fi
2946      if test "$2" = conftest.file || test $am_try -eq 2; then
2947        break
2948      fi
2949      # Just in case.
2950      sleep 1
2951      am_has_slept=yes
2952    done
2953    test "$2" = conftest.file
2954    )
2955 then
2956    # Ok.
2957    :
2958 else
2959    as_fn_error $? "newly created file is older than distributed files!
2960 Check your system clock" "$LINENO" 5
2961 fi
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2963 $as_echo "yes" >&6; }
2964 # If we didn't sleep, we still need to ensure time stamps of config.status and
2965 # generated files are strictly newer.
2966 am_sleep_pid=
2967 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2968   ( sleep 1 ) &
2969   am_sleep_pid=$!
2970 fi
2971
2972 rm -f conftest.file
2973
2974 test "$program_prefix" != NONE &&
2975   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2976 # Use a double $ so make ignores it.
2977 test "$program_suffix" != NONE &&
2978   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2979 # Double any \ or $.
2980 # By default was `s,x,x', remove it if useless.
2981 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2982 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2983
2984 # Expand $ac_aux_dir to an absolute path.
2985 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2986
2987 if test x"${MISSING+set}" != xset; then
2988   case $am_aux_dir in
2989   *\ * | *\     *)
2990     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2991   *)
2992     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2993   esac
2994 fi
2995 # Use eval to expand $SHELL
2996 if eval "$MISSING --is-lightweight"; then
2997   am_missing_run="$MISSING "
2998 else
2999   am_missing_run=
3000   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3001 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3002 fi
3003
3004 if test x"${install_sh+set}" != xset; then
3005   case $am_aux_dir in
3006   *\ * | *\     *)
3007     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3008   *)
3009     install_sh="\${SHELL} $am_aux_dir/install-sh"
3010   esac
3011 fi
3012
3013 # Installed binaries are usually stripped using 'strip' when the user
3014 # run "make install-strip".  However 'strip' might not be the right
3015 # tool to use in cross-compilation environments, therefore Automake
3016 # will honor the 'STRIP' environment variable to overrule this program.
3017 if test "$cross_compiling" != no; then
3018   if test -n "$ac_tool_prefix"; then
3019   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3020 set dummy ${ac_tool_prefix}strip; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if ${ac_cv_prog_STRIP+:} false; then :
3024   $as_echo_n "(cached) " >&6
3025 else
3026   if test -n "$STRIP"; then
3027   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3031 do
3032   IFS=$as_save_IFS
3033   test -z "$as_dir" && as_dir=.
3034     for ac_exec_ext in '' $ac_executable_extensions; do
3035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3036     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038     break 2
3039   fi
3040 done
3041   done
3042 IFS=$as_save_IFS
3043
3044 fi
3045 fi
3046 STRIP=$ac_cv_prog_STRIP
3047 if test -n "$STRIP"; then
3048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3049 $as_echo "$STRIP" >&6; }
3050 else
3051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053 fi
3054
3055
3056 fi
3057 if test -z "$ac_cv_prog_STRIP"; then
3058   ac_ct_STRIP=$STRIP
3059   # Extract the first word of "strip", so it can be a program name with args.
3060 set dummy strip; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3064   $as_echo_n "(cached) " >&6
3065 else
3066   if test -n "$ac_ct_STRIP"; then
3067   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3068 else
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3071 do
3072   IFS=$as_save_IFS
3073   test -z "$as_dir" && as_dir=.
3074     for ac_exec_ext in '' $ac_executable_extensions; do
3075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076     ac_cv_prog_ac_ct_STRIP="strip"
3077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078     break 2
3079   fi
3080 done
3081   done
3082 IFS=$as_save_IFS
3083
3084 fi
3085 fi
3086 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3087 if test -n "$ac_ct_STRIP"; then
3088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3089 $as_echo "$ac_ct_STRIP" >&6; }
3090 else
3091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3093 fi
3094
3095   if test "x$ac_ct_STRIP" = x; then
3096     STRIP=":"
3097   else
3098     case $cross_compiling:$ac_tool_warned in
3099 yes:)
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3102 ac_tool_warned=yes ;;
3103 esac
3104     STRIP=$ac_ct_STRIP
3105   fi
3106 else
3107   STRIP="$ac_cv_prog_STRIP"
3108 fi
3109
3110 fi
3111 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3112
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3114 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3115 if test -z "$MKDIR_P"; then
3116   if ${ac_cv_path_mkdir+:} false; then :
3117   $as_echo_n "(cached) " >&6
3118 else
3119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3121 do
3122   IFS=$as_save_IFS
3123   test -z "$as_dir" && as_dir=.
3124     for ac_prog in mkdir gmkdir; do
3125          for ac_exec_ext in '' $ac_executable_extensions; do
3126            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3127            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3128              'mkdir (GNU coreutils) '* | \
3129              'mkdir (coreutils) '* | \
3130              'mkdir (fileutils) '4.1*)
3131                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3132                break 3;;
3133            esac
3134          done
3135        done
3136   done
3137 IFS=$as_save_IFS
3138
3139 fi
3140
3141   test -d ./--version && rmdir ./--version
3142   if test "${ac_cv_path_mkdir+set}" = set; then
3143     MKDIR_P="$ac_cv_path_mkdir -p"
3144   else
3145     # As a last resort, use the slow shell script.  Don't cache a
3146     # value for MKDIR_P within a source directory, because that will
3147     # break other packages using the cache if that directory is
3148     # removed, or if the value is a relative name.
3149     MKDIR_P="$ac_install_sh -d"
3150   fi
3151 fi
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3153 $as_echo "$MKDIR_P" >&6; }
3154
3155 for ac_prog in gawk mawk nawk awk
3156 do
3157   # Extract the first word of "$ac_prog", so it can be a program name with args.
3158 set dummy $ac_prog; ac_word=$2
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160 $as_echo_n "checking for $ac_word... " >&6; }
3161 if ${ac_cv_prog_AWK+:} false; then :
3162   $as_echo_n "(cached) " >&6
3163 else
3164   if test -n "$AWK"; then
3165   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3166 else
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 for as_dir in $PATH
3169 do
3170   IFS=$as_save_IFS
3171   test -z "$as_dir" && as_dir=.
3172     for ac_exec_ext in '' $ac_executable_extensions; do
3173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3174     ac_cv_prog_AWK="$ac_prog"
3175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176     break 2
3177   fi
3178 done
3179   done
3180 IFS=$as_save_IFS
3181
3182 fi
3183 fi
3184 AWK=$ac_cv_prog_AWK
3185 if test -n "$AWK"; then
3186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3187 $as_echo "$AWK" >&6; }
3188 else
3189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3191 fi
3192
3193
3194   test -n "$AWK" && break
3195 done
3196
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3198 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3199 set x ${MAKE-make}
3200 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3201 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3202   $as_echo_n "(cached) " >&6
3203 else
3204   cat >conftest.make <<\_ACEOF
3205 SHELL = /bin/sh
3206 all:
3207         @echo '@@@%%%=$(MAKE)=@@@%%%'
3208 _ACEOF
3209 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3210 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3211   *@@@%%%=?*=@@@%%%*)
3212     eval ac_cv_prog_make_${ac_make}_set=yes;;
3213   *)
3214     eval ac_cv_prog_make_${ac_make}_set=no;;
3215 esac
3216 rm -f conftest.make
3217 fi
3218 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3220 $as_echo "yes" >&6; }
3221   SET_MAKE=
3222 else
3223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224 $as_echo "no" >&6; }
3225   SET_MAKE="MAKE=${MAKE-make}"
3226 fi
3227
3228 rm -rf .tst 2>/dev/null
3229 mkdir .tst 2>/dev/null
3230 if test -d .tst; then
3231   am__leading_dot=.
3232 else
3233   am__leading_dot=_
3234 fi
3235 rmdir .tst 2>/dev/null
3236
3237 # Check whether --enable-silent-rules was given.
3238 if test "${enable_silent_rules+set}" = set; then :
3239   enableval=$enable_silent_rules;
3240 fi
3241
3242 case $enable_silent_rules in # (((
3243   yes) AM_DEFAULT_VERBOSITY=0;;
3244    no) AM_DEFAULT_VERBOSITY=1;;
3245     *) AM_DEFAULT_VERBOSITY=1;;
3246 esac
3247 am_make=${MAKE-make}
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3249 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3250 if ${am_cv_make_support_nested_variables+:} false; then :
3251   $as_echo_n "(cached) " >&6
3252 else
3253   if $as_echo 'TRUE=$(BAR$(V))
3254 BAR0=false
3255 BAR1=true
3256 V=1
3257 am__doit:
3258         @$(TRUE)
3259 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3260   am_cv_make_support_nested_variables=yes
3261 else
3262   am_cv_make_support_nested_variables=no
3263 fi
3264 fi
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3266 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3267 if test $am_cv_make_support_nested_variables = yes; then
3268     AM_V='$(V)'
3269   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3270 else
3271   AM_V=$AM_DEFAULT_VERBOSITY
3272   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3273 fi
3274 AM_BACKSLASH='\'
3275
3276 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3277   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3278   # is not polluted with repeated "-I."
3279   am__isrc=' -I$(srcdir)'
3280   # test to see if srcdir already configured
3281   if test -f $srcdir/config.status; then
3282     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3283   fi
3284 fi
3285
3286 # test whether we have cygpath
3287 if test -z "$CYGPATH_W"; then
3288   if (cygpath --version) >/dev/null 2>/dev/null; then
3289     CYGPATH_W='cygpath -w'
3290   else
3291     CYGPATH_W=echo
3292   fi
3293 fi
3294
3295
3296 # Define the identity of the package.
3297  PACKAGE='xmlsec1'
3298  VERSION='1.2.22'
3299
3300
3301 cat >>confdefs.h <<_ACEOF
3302 #define PACKAGE "$PACKAGE"
3303 _ACEOF
3304
3305
3306 cat >>confdefs.h <<_ACEOF
3307 #define VERSION "$VERSION"
3308 _ACEOF
3309
3310 # Some tools Automake needs.
3311
3312 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3313
3314
3315 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3316
3317
3318 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3319
3320
3321 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3322
3323
3324 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3325
3326 # For better backward compatibility.  To be removed once Automake 1.9.x
3327 # dies out for good.  For more background, see:
3328 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3329 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3330 mkdir_p='$(MKDIR_P)'
3331
3332 # We need awk for the "check" target (and possibly the TAP driver).  The
3333 # system "awk" is bad on some platforms.
3334 # Always define AMTAR for backward compatibility.  Yes, it's still used
3335 # in the wild :-(  We should find a proper way to deprecate it ...
3336 AMTAR='$${TAR-tar}'
3337
3338
3339 # We'll loop over all known methods to create a tar archive until one works.
3340 _am_tools='gnutar plaintar pax cpio none'
3341
3342 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3343       # There is notably a 21 bits limit for the UID and the GID.  In fact,
3344       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3345       # and bug#13588).
3346       am_max_uid=2097151 # 2^21 - 1
3347       am_max_gid=$am_max_uid
3348       # The $UID and $GID variables are not portable, so we need to resort
3349       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3350       # below are definitely unexpected, so allow the users to see them
3351       # (that is, avoid stderr redirection).
3352       am_uid=`id -u || echo unknown`
3353       am_gid=`id -g || echo unknown`
3354       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3355 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3356       if test $am_uid -le $am_max_uid; then
3357          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3358 $as_echo "yes" >&6; }
3359       else
3360          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361 $as_echo "no" >&6; }
3362          _am_tools=none
3363       fi
3364       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3365 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3366       if test $am_gid -le $am_max_gid; then
3367          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3368 $as_echo "yes" >&6; }
3369       else
3370         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3372         _am_tools=none
3373       fi
3374
3375   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3376 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3377
3378   # Go ahead even if we have the value already cached.  We do so because we
3379   # need to set the values for the 'am__tar' and 'am__untar' variables.
3380   _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3381
3382   for _am_tool in $_am_tools; do
3383     case $_am_tool in
3384     gnutar)
3385       for _am_tar in tar gnutar gtar; do
3386         { echo "$as_me:$LINENO: $_am_tar --version" >&5
3387    ($_am_tar --version) >&5 2>&5
3388    ac_status=$?
3389    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390    (exit $ac_status); } && break
3391       done
3392       am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3393       am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3394       am__untar="$_am_tar -xf -"
3395       ;;
3396     plaintar)
3397       # Must skip GNU tar: if it does not support --format= it doesn't create
3398       # ustar tarball either.
3399       (tar --version) >/dev/null 2>&1 && continue
3400       am__tar='tar chf - "$$tardir"'
3401       am__tar_='tar chf - "$tardir"'
3402       am__untar='tar xf -'
3403       ;;
3404     pax)
3405       am__tar='pax -L -x ustar -w "$$tardir"'
3406       am__tar_='pax -L -x ustar -w "$tardir"'
3407       am__untar='pax -r'
3408       ;;
3409     cpio)
3410       am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3411       am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3412       am__untar='cpio -i -H ustar -d'
3413       ;;
3414     none)
3415       am__tar=false
3416       am__tar_=false
3417       am__untar=false
3418       ;;
3419     esac
3420
3421     # If the value was cached, stop now.  We just wanted to have am__tar
3422     # and am__untar set.
3423     test -n "${am_cv_prog_tar_ustar}" && break
3424
3425     # tar/untar a dummy directory, and stop if the command works.
3426     rm -rf conftest.dir
3427     mkdir conftest.dir
3428     echo GrepMe > conftest.dir/file
3429     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3430    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3431    ac_status=$?
3432    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433    (exit $ac_status); }
3434     rm -rf conftest.dir
3435     if test -s conftest.tar; then
3436       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3437    ($am__untar <conftest.tar) >&5 2>&5
3438    ac_status=$?
3439    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440    (exit $ac_status); }
3441       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3442    (cat conftest.dir/file) >&5 2>&5
3443    ac_status=$?
3444    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445    (exit $ac_status); }
3446       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3447     fi
3448   done
3449   rm -rf conftest.dir
3450
3451   if ${am_cv_prog_tar_ustar+:} false; then :
3452   $as_echo_n "(cached) " >&6
3453 else
3454   am_cv_prog_tar_ustar=$_am_tool
3455 fi
3456
3457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3458 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3459
3460
3461
3462
3463
3464
3465 # POSIX will say in a future version that running "rm -f" with no argument
3466 # is OK; and we want to be able to make that assumption in our Makefile
3467 # recipes.  So use an aggressive probe to check that the usage we want is
3468 # actually supported "in the wild" to an acceptable degree.
3469 # See automake bug#10828.
3470 # To make any issue more visible, cause the running configure to be aborted
3471 # by default if the 'rm' program in use doesn't match our expectations; the
3472 # user can still override this though.
3473 if rm -f && rm -fr && rm -rf; then : OK; else
3474   cat >&2 <<'END'
3475 Oops!
3476
3477 Your 'rm' program seems unable to run without file operands specified
3478 on the command line, even when the '-f' option is present.  This is contrary
3479 to the behaviour of most rm programs out there, and not conforming with
3480 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3481
3482 Please tell bug-automake@gnu.org about your system, including the value
3483 of your $PATH and any error possibly output before this message.  This
3484 can help us improve future automake versions.
3485
3486 END
3487   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3488     echo 'Configuration will proceed anyway, since you have set the' >&2
3489     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3490     echo >&2
3491   else
3492     cat >&2 <<'END'
3493 Aborting the configuration process, to ensure you take notice of the issue.
3494
3495 You can download and install GNU coreutils to get an 'rm' implementation
3496 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3497
3498 If you want to complete the configuration process using your problematic
3499 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3500 to "yes", and re-run configure.
3501
3502 END
3503     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3504   fi
3505 fi
3506
3507 ac_config_headers="$ac_config_headers config.h"
3508
3509
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3511 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3512     # Check whether --enable-maintainer-mode was given.
3513 if test "${enable_maintainer_mode+set}" = set; then :
3514   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3515 else
3516   USE_MAINTAINER_MODE=no
3517 fi
3518
3519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3520 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3521    if test $USE_MAINTAINER_MODE = yes; then
3522   MAINTAINER_MODE_TRUE=
3523   MAINTAINER_MODE_FALSE='#'
3524 else
3525   MAINTAINER_MODE_TRUE='#'
3526   MAINTAINER_MODE_FALSE=
3527 fi
3528
3529   MAINT=$MAINTAINER_MODE_TRUE
3530
3531
3532
3533 # Support silent build rules, requires at least automake-1.11. Disable
3534 # by either passing --disable-silent-rules to configure or passing V=1
3535 # to make
3536 # Check whether --enable-silent-rules was given.
3537 if test "${enable_silent_rules+set}" = set; then :
3538   enableval=$enable_silent_rules;
3539 fi
3540
3541 case $enable_silent_rules in # (((
3542   yes) AM_DEFAULT_VERBOSITY=0;;
3543    no) AM_DEFAULT_VERBOSITY=1;;
3544     *) AM_DEFAULT_VERBOSITY=0;;
3545 esac
3546 am_make=${MAKE-make}
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3548 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3549 if ${am_cv_make_support_nested_variables+:} false; then :
3550   $as_echo_n "(cached) " >&6
3551 else
3552   if $as_echo 'TRUE=$(BAR$(V))
3553 BAR0=false
3554 BAR1=true
3555 V=1
3556 am__doit:
3557         @$(TRUE)
3558 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3559   am_cv_make_support_nested_variables=yes
3560 else
3561   am_cv_make_support_nested_variables=no
3562 fi
3563 fi
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3565 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3566 if test $am_cv_make_support_nested_variables = yes; then
3567     AM_V='$(V)'
3568   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3569 else
3570   AM_V=$AM_DEFAULT_VERBOSITY
3571   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3572 fi
3573 AM_BACKSLASH='\'
3574
3575
3576 ac_ext=c
3577 ac_cpp='$CPP $CPPFLAGS'
3578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3581 if test -n "$ac_tool_prefix"; then
3582   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3583 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585 $as_echo_n "checking for $ac_word... " >&6; }
3586 if ${ac_cv_prog_CC+:} false; then :
3587   $as_echo_n "(cached) " >&6
3588 else
3589   if test -n "$CC"; then
3590   ac_cv_prog_CC="$CC" # Let the user override the test.
3591 else
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 for as_dir in $PATH
3594 do
3595   IFS=$as_save_IFS
3596   test -z "$as_dir" && as_dir=.
3597     for ac_exec_ext in '' $ac_executable_extensions; do
3598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3599     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3601     break 2
3602   fi
3603 done
3604   done
3605 IFS=$as_save_IFS
3606
3607 fi
3608 fi
3609 CC=$ac_cv_prog_CC
3610 if test -n "$CC"; then
3611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3612 $as_echo "$CC" >&6; }
3613 else
3614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615 $as_echo "no" >&6; }
3616 fi
3617
3618
3619 fi
3620 if test -z "$ac_cv_prog_CC"; then
3621   ac_ct_CC=$CC
3622   # Extract the first word of "gcc", so it can be a program name with args.
3623 set dummy gcc; ac_word=$2
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3625 $as_echo_n "checking for $ac_word... " >&6; }
3626 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3627   $as_echo_n "(cached) " >&6
3628 else
3629   if test -n "$ac_ct_CC"; then
3630   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3631 else
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 for as_dir in $PATH
3634 do
3635   IFS=$as_save_IFS
3636   test -z "$as_dir" && as_dir=.
3637     for ac_exec_ext in '' $ac_executable_extensions; do
3638   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3639     ac_cv_prog_ac_ct_CC="gcc"
3640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3641     break 2
3642   fi
3643 done
3644   done
3645 IFS=$as_save_IFS
3646
3647 fi
3648 fi
3649 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3650 if test -n "$ac_ct_CC"; then
3651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3652 $as_echo "$ac_ct_CC" >&6; }
3653 else
3654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655 $as_echo "no" >&6; }
3656 fi
3657
3658   if test "x$ac_ct_CC" = x; then
3659     CC=""
3660   else
3661     case $cross_compiling:$ac_tool_warned in
3662 yes:)
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3665 ac_tool_warned=yes ;;
3666 esac
3667     CC=$ac_ct_CC
3668   fi
3669 else
3670   CC="$ac_cv_prog_CC"
3671 fi
3672
3673 if test -z "$CC"; then
3674           if test -n "$ac_tool_prefix"; then
3675     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3676 set dummy ${ac_tool_prefix}cc; ac_word=$2
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 $as_echo_n "checking for $ac_word... " >&6; }
3679 if ${ac_cv_prog_CC+:} false; then :
3680   $as_echo_n "(cached) " >&6
3681 else
3682   if test -n "$CC"; then
3683   ac_cv_prog_CC="$CC" # Let the user override the test.
3684 else
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 for as_dir in $PATH
3687 do
3688   IFS=$as_save_IFS
3689   test -z "$as_dir" && as_dir=.
3690     for ac_exec_ext in '' $ac_executable_extensions; do
3691   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3692     ac_cv_prog_CC="${ac_tool_prefix}cc"
3693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3694     break 2
3695   fi
3696 done
3697   done
3698 IFS=$as_save_IFS
3699
3700 fi
3701 fi
3702 CC=$ac_cv_prog_CC
3703 if test -n "$CC"; then
3704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3705 $as_echo "$CC" >&6; }
3706 else
3707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3709 fi
3710
3711
3712   fi
3713 fi
3714 if test -z "$CC"; then
3715   # Extract the first word of "cc", so it can be a program name with args.
3716 set dummy cc; ac_word=$2
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3718 $as_echo_n "checking for $ac_word... " >&6; }
3719 if ${ac_cv_prog_CC+:} false; then :
3720   $as_echo_n "(cached) " >&6
3721 else
3722   if test -n "$CC"; then
3723   ac_cv_prog_CC="$CC" # Let the user override the test.
3724 else
3725   ac_prog_rejected=no
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH
3728 do
3729   IFS=$as_save_IFS
3730   test -z "$as_dir" && as_dir=.
3731     for ac_exec_ext in '' $ac_executable_extensions; do
3732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3733     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3734        ac_prog_rejected=yes
3735        continue
3736      fi
3737     ac_cv_prog_CC="cc"
3738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3739     break 2
3740   fi
3741 done
3742   done
3743 IFS=$as_save_IFS
3744
3745 if test $ac_prog_rejected = yes; then
3746   # We found a bogon in the path, so make sure we never use it.
3747   set dummy $ac_cv_prog_CC
3748   shift
3749   if test $# != 0; then
3750     # We chose a different compiler from the bogus one.
3751     # However, it has the same basename, so the bogon will be chosen
3752     # first if we set CC to just the basename; use the full file name.
3753     shift
3754     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3755   fi
3756 fi
3757 fi
3758 fi
3759 CC=$ac_cv_prog_CC
3760 if test -n "$CC"; then
3761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3762 $as_echo "$CC" >&6; }
3763 else
3764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765 $as_echo "no" >&6; }
3766 fi
3767
3768
3769 fi
3770 if test -z "$CC"; then
3771   if test -n "$ac_tool_prefix"; then
3772   for ac_prog in cl.exe
3773   do
3774     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3775 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3777 $as_echo_n "checking for $ac_word... " >&6; }
3778 if ${ac_cv_prog_CC+:} false; then :
3779   $as_echo_n "(cached) " >&6
3780 else
3781   if test -n "$CC"; then
3782   ac_cv_prog_CC="$CC" # Let the user override the test.
3783 else
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 for as_dir in $PATH
3786 do
3787   IFS=$as_save_IFS
3788   test -z "$as_dir" && as_dir=.
3789     for ac_exec_ext in '' $ac_executable_extensions; do
3790   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3791     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3793     break 2
3794   fi
3795 done
3796   done
3797 IFS=$as_save_IFS
3798
3799 fi
3800 fi
3801 CC=$ac_cv_prog_CC
3802 if test -n "$CC"; then
3803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3804 $as_echo "$CC" >&6; }
3805 else
3806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3807 $as_echo "no" >&6; }
3808 fi
3809
3810
3811     test -n "$CC" && break
3812   done
3813 fi
3814 if test -z "$CC"; then
3815   ac_ct_CC=$CC
3816   for ac_prog in cl.exe
3817 do
3818   # Extract the first word of "$ac_prog", so it can be a program name with args.
3819 set dummy $ac_prog; ac_word=$2
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3821 $as_echo_n "checking for $ac_word... " >&6; }
3822 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3823   $as_echo_n "(cached) " >&6
3824 else
3825   if test -n "$ac_ct_CC"; then
3826   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3827 else
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 for as_dir in $PATH
3830 do
3831   IFS=$as_save_IFS
3832   test -z "$as_dir" && as_dir=.
3833     for ac_exec_ext in '' $ac_executable_extensions; do
3834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3835     ac_cv_prog_ac_ct_CC="$ac_prog"
3836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3837     break 2
3838   fi
3839 done
3840   done
3841 IFS=$as_save_IFS
3842
3843 fi
3844 fi
3845 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3846 if test -n "$ac_ct_CC"; then
3847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3848 $as_echo "$ac_ct_CC" >&6; }
3849 else
3850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851 $as_echo "no" >&6; }
3852 fi
3853
3854
3855   test -n "$ac_ct_CC" && break
3856 done
3857
3858   if test "x$ac_ct_CC" = x; then
3859     CC=""
3860   else
3861     case $cross_compiling:$ac_tool_warned in
3862 yes:)
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3865 ac_tool_warned=yes ;;
3866 esac
3867     CC=$ac_ct_CC
3868   fi
3869 fi
3870
3871 fi
3872
3873
3874 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3876 as_fn_error $? "no acceptable C compiler found in \$PATH
3877 See \`config.log' for more details" "$LINENO" 5; }
3878
3879 # Provide some information about the compiler.
3880 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3881 set X $ac_compile
3882 ac_compiler=$2
3883 for ac_option in --version -v -V -qversion; do
3884   { { ac_try="$ac_compiler $ac_option >&5"
3885 case "(($ac_try" in
3886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887   *) ac_try_echo=$ac_try;;
3888 esac
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3892   ac_status=$?
3893   if test -s conftest.err; then
3894     sed '10a\
3895 ... rest of stderr output deleted ...
3896          10q' conftest.err >conftest.er1
3897     cat conftest.er1 >&5
3898   fi
3899   rm -f conftest.er1 conftest.err
3900   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901   test $ac_status = 0; }
3902 done
3903
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h.  */
3906
3907 int
3908 main ()
3909 {
3910
3911   ;
3912   return 0;
3913 }
3914 _ACEOF
3915 ac_clean_files_save=$ac_clean_files
3916 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3917 # Try to create an executable without -o first, disregard a.out.
3918 # It will help us diagnose broken compilers, and finding out an intuition
3919 # of exeext.
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3921 $as_echo_n "checking whether the C compiler works... " >&6; }
3922 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3923
3924 # The possible output files:
3925 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3926
3927 ac_rmfiles=
3928 for ac_file in $ac_files
3929 do
3930   case $ac_file in
3931     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3932     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3933   esac
3934 done
3935 rm -f $ac_rmfiles
3936
3937 if { { ac_try="$ac_link_default"
3938 case "(($ac_try" in
3939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940   *) ac_try_echo=$ac_try;;
3941 esac
3942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3943 $as_echo "$ac_try_echo"; } >&5
3944   (eval "$ac_link_default") 2>&5
3945   ac_status=$?
3946   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3947   test $ac_status = 0; }; then :
3948   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3949 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3950 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3951 # so that the user can short-circuit this test for compilers unknown to
3952 # Autoconf.
3953 for ac_file in $ac_files ''
3954 do
3955   test -f "$ac_file" || continue
3956   case $ac_file in
3957     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3958         ;;
3959     [ab].out )
3960         # We found the default executable, but exeext='' is most
3961         # certainly right.
3962         break;;
3963     *.* )
3964         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3965         then :; else
3966            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3967         fi
3968         # We set ac_cv_exeext here because the later test for it is not
3969         # safe: cross compilers may not add the suffix if given an `-o'
3970         # argument, so we may need to know it at that point already.
3971         # Even if this section looks crufty: it has the advantage of
3972         # actually working.
3973         break;;
3974     * )
3975         break;;
3976   esac
3977 done
3978 test "$ac_cv_exeext" = no && ac_cv_exeext=
3979
3980 else
3981   ac_file=''
3982 fi
3983 if test -z "$ac_file"; then :
3984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3985 $as_echo "no" >&6; }
3986 $as_echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3988
3989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3991 as_fn_error 77 "C compiler cannot create executables
3992 See \`config.log' for more details" "$LINENO" 5; }
3993 else
3994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3995 $as_echo "yes" >&6; }
3996 fi
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3998 $as_echo_n "checking for C compiler default output file name... " >&6; }
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4000 $as_echo "$ac_file" >&6; }
4001 ac_exeext=$ac_cv_exeext
4002
4003 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4004 ac_clean_files=$ac_clean_files_save
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4006 $as_echo_n "checking for suffix of executables... " >&6; }
4007 if { { ac_try="$ac_link"
4008 case "(($ac_try" in
4009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010   *) ac_try_echo=$ac_try;;
4011 esac
4012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4013 $as_echo "$ac_try_echo"; } >&5
4014   (eval "$ac_link") 2>&5
4015   ac_status=$?
4016   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4017   test $ac_status = 0; }; then :
4018   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4019 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4020 # work properly (i.e., refer to `conftest.exe'), while it won't with
4021 # `rm'.
4022 for ac_file in conftest.exe conftest conftest.*; do
4023   test -f "$ac_file" || continue
4024   case $ac_file in
4025     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4026     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4027           break;;
4028     * ) break;;
4029   esac
4030 done
4031 else
4032   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4034 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4035 See \`config.log' for more details" "$LINENO" 5; }
4036 fi
4037 rm -f conftest conftest$ac_cv_exeext
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4039 $as_echo "$ac_cv_exeext" >&6; }
4040
4041 rm -f conftest.$ac_ext
4042 EXEEXT=$ac_cv_exeext
4043 ac_exeext=$EXEEXT
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h.  */
4046 #include <stdio.h>
4047 int
4048 main ()
4049 {
4050 FILE *f = fopen ("conftest.out", "w");
4051  return ferror (f) || fclose (f) != 0;
4052
4053   ;
4054   return 0;
4055 }
4056 _ACEOF
4057 ac_clean_files="$ac_clean_files conftest.out"
4058 # Check that the compiler produces executables we can run.  If not, either
4059 # the compiler is broken, or we cross compile.
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4061 $as_echo_n "checking whether we are cross compiling... " >&6; }
4062 if test "$cross_compiling" != yes; then
4063   { { ac_try="$ac_link"
4064 case "(($ac_try" in
4065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066   *) ac_try_echo=$ac_try;;
4067 esac
4068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4069 $as_echo "$ac_try_echo"; } >&5
4070   (eval "$ac_link") 2>&5
4071   ac_status=$?
4072   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4073   test $ac_status = 0; }
4074   if { ac_try='./conftest$ac_cv_exeext'
4075   { { case "(($ac_try" in
4076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077   *) ac_try_echo=$ac_try;;
4078 esac
4079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4080 $as_echo "$ac_try_echo"; } >&5
4081   (eval "$ac_try") 2>&5
4082   ac_status=$?
4083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4084   test $ac_status = 0; }; }; then
4085     cross_compiling=no
4086   else
4087     if test "$cross_compiling" = maybe; then
4088         cross_compiling=yes
4089     else
4090         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4092 as_fn_error $? "cannot run C compiled programs.
4093 If you meant to cross compile, use \`--host'.
4094 See \`config.log' for more details" "$LINENO" 5; }
4095     fi
4096   fi
4097 fi
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4099 $as_echo "$cross_compiling" >&6; }
4100
4101 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4102 ac_clean_files=$ac_clean_files_save
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4104 $as_echo_n "checking for suffix of object files... " >&6; }
4105 if ${ac_cv_objext+:} false; then :
4106   $as_echo_n "(cached) " >&6
4107 else
4108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h.  */
4110
4111 int
4112 main ()
4113 {
4114
4115   ;
4116   return 0;
4117 }
4118 _ACEOF
4119 rm -f conftest.o conftest.obj
4120 if { { ac_try="$ac_compile"
4121 case "(($ac_try" in
4122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123   *) ac_try_echo=$ac_try;;
4124 esac
4125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4126 $as_echo "$ac_try_echo"; } >&5
4127   (eval "$ac_compile") 2>&5
4128   ac_status=$?
4129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4130   test $ac_status = 0; }; then :
4131   for ac_file in conftest.o conftest.obj conftest.*; do
4132   test -f "$ac_file" || continue;
4133   case $ac_file in
4134     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4135     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4136        break;;
4137   esac
4138 done
4139 else
4140   $as_echo "$as_me: failed program was:" >&5
4141 sed 's/^/| /' conftest.$ac_ext >&5
4142
4143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4145 as_fn_error $? "cannot compute suffix of object files: cannot compile
4146 See \`config.log' for more details" "$LINENO" 5; }
4147 fi
4148 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4149 fi
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4151 $as_echo "$ac_cv_objext" >&6; }
4152 OBJEXT=$ac_cv_objext
4153 ac_objext=$OBJEXT
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4155 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4156 if ${ac_cv_c_compiler_gnu+:} false; then :
4157   $as_echo_n "(cached) " >&6
4158 else
4159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h.  */
4161
4162 int
4163 main ()
4164 {
4165 #ifndef __GNUC__
4166        choke me
4167 #endif
4168
4169   ;
4170   return 0;
4171 }
4172 _ACEOF
4173 if ac_fn_c_try_compile "$LINENO"; then :
4174   ac_compiler_gnu=yes
4175 else
4176   ac_compiler_gnu=no
4177 fi
4178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4180
4181 fi
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4183 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4184 if test $ac_compiler_gnu = yes; then
4185   GCC=yes
4186 else
4187   GCC=
4188 fi
4189 ac_test_CFLAGS=${CFLAGS+set}
4190 ac_save_CFLAGS=$CFLAGS
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4192 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4193 if ${ac_cv_prog_cc_g+:} false; then :
4194   $as_echo_n "(cached) " >&6
4195 else
4196   ac_save_c_werror_flag=$ac_c_werror_flag
4197    ac_c_werror_flag=yes
4198    ac_cv_prog_cc_g=no
4199    CFLAGS="-g"
4200    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h.  */
4202
4203 int
4204 main ()
4205 {
4206
4207   ;
4208   return 0;
4209 }
4210 _ACEOF
4211 if ac_fn_c_try_compile "$LINENO"; then :
4212   ac_cv_prog_cc_g=yes
4213 else
4214   CFLAGS=""
4215       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h.  */
4217
4218 int
4219 main ()
4220 {
4221
4222   ;
4223   return 0;
4224 }
4225 _ACEOF
4226 if ac_fn_c_try_compile "$LINENO"; then :
4227
4228 else
4229   ac_c_werror_flag=$ac_save_c_werror_flag
4230          CFLAGS="-g"
4231          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h.  */
4233
4234 int
4235 main ()
4236 {
4237
4238   ;
4239   return 0;
4240 }
4241 _ACEOF
4242 if ac_fn_c_try_compile "$LINENO"; then :
4243   ac_cv_prog_cc_g=yes
4244 fi
4245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246 fi
4247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4248 fi
4249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4250    ac_c_werror_flag=$ac_save_c_werror_flag
4251 fi
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4253 $as_echo "$ac_cv_prog_cc_g" >&6; }
4254 if test "$ac_test_CFLAGS" = set; then
4255   CFLAGS=$ac_save_CFLAGS
4256 elif test $ac_cv_prog_cc_g = yes; then
4257   if test "$GCC" = yes; then
4258     CFLAGS="-g -O2"
4259   else
4260     CFLAGS="-g"
4261   fi
4262 else
4263   if test "$GCC" = yes; then
4264     CFLAGS="-O2"
4265   else
4266     CFLAGS=
4267   fi
4268 fi
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4270 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4271 if ${ac_cv_prog_cc_c89+:} false; then :
4272   $as_echo_n "(cached) " >&6
4273 else
4274   ac_cv_prog_cc_c89=no
4275 ac_save_CC=$CC
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h.  */
4278 #include <stdarg.h>
4279 #include <stdio.h>
4280 struct stat;
4281 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4282 struct buf { int x; };
4283 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4284 static char *e (p, i)
4285      char **p;
4286      int i;
4287 {
4288   return p[i];
4289 }
4290 static char *f (char * (*g) (char **, int), char **p, ...)
4291 {
4292   char *s;
4293   va_list v;
4294   va_start (v,p);
4295   s = g (p, va_arg (v,int));
4296   va_end (v);
4297   return s;
4298 }
4299
4300 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4301    function prototypes and stuff, but not '\xHH' hex character constants.
4302    These don't provoke an error unfortunately, instead are silently treated
4303    as 'x'.  The following induces an error, until -std is added to get
4304    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4305    array size at least.  It's necessary to write '\x00'==0 to get something
4306    that's true only with -std.  */
4307 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4308
4309 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4310    inside strings and character constants.  */
4311 #define FOO(x) 'x'
4312 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4313
4314 int test (int i, double x);
4315 struct s1 {int (*f) (int a);};
4316 struct s2 {int (*f) (double a);};
4317 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4318 int argc;
4319 char **argv;
4320 int
4321 main ()
4322 {
4323 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4324   ;
4325   return 0;
4326 }
4327 _ACEOF
4328 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4329         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4330 do
4331   CC="$ac_save_CC $ac_arg"
4332   if ac_fn_c_try_compile "$LINENO"; then :
4333   ac_cv_prog_cc_c89=$ac_arg
4334 fi
4335 rm -f core conftest.err conftest.$ac_objext
4336   test "x$ac_cv_prog_cc_c89" != "xno" && break
4337 done
4338 rm -f conftest.$ac_ext
4339 CC=$ac_save_CC
4340
4341 fi
4342 # AC_CACHE_VAL
4343 case "x$ac_cv_prog_cc_c89" in
4344   x)
4345     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4346 $as_echo "none needed" >&6; } ;;
4347   xno)
4348     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4349 $as_echo "unsupported" >&6; } ;;
4350   *)
4351     CC="$CC $ac_cv_prog_cc_c89"
4352     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4353 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4354 esac
4355 if test "x$ac_cv_prog_cc_c89" != xno; then :
4356
4357 fi
4358
4359 ac_ext=c
4360 ac_cpp='$CPP $CPPFLAGS'
4361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4364
4365 ac_ext=c
4366 ac_cpp='$CPP $CPPFLAGS'
4367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4371 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4372 if ${am_cv_prog_cc_c_o+:} false; then :
4373   $as_echo_n "(cached) " >&6
4374 else
4375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h.  */
4377
4378 int
4379 main ()
4380 {
4381
4382   ;
4383   return 0;
4384 }
4385 _ACEOF
4386   # Make sure it works both with $CC and with simple cc.
4387   # Following AC_PROG_CC_C_O, we do the test twice because some
4388   # compilers refuse to overwrite an existing .o file with -o,
4389   # though they will create one.
4390   am_cv_prog_cc_c_o=yes
4391   for am_i in 1 2; do
4392     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4393    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4394    ac_status=$?
4395    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396    (exit $ac_status); } \
4397          && test -f conftest2.$ac_objext; then
4398       : OK
4399     else
4400       am_cv_prog_cc_c_o=no
4401       break
4402     fi
4403   done
4404   rm -f core conftest*
4405   unset am_i
4406 fi
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4408 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4409 if test "$am_cv_prog_cc_c_o" != yes; then
4410    # Losing compiler, so override with the script.
4411    # FIXME: It is wrong to rewrite CC.
4412    # But if we don't then we get into trouble of one sort or another.
4413    # A longer-term fix would be to have automake use am__CC in this case,
4414    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4415    CC="$am_aux_dir/compile $CC"
4416 fi
4417 ac_ext=c
4418 ac_cpp='$CPP $CPPFLAGS'
4419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4422
4423 DEPDIR="${am__leading_dot}deps"
4424
4425 ac_config_commands="$ac_config_commands depfiles"
4426
4427
4428 am_make=${MAKE-make}
4429 cat > confinc << 'END'
4430 am__doit:
4431         @echo this is the am__doit target
4432 .PHONY: am__doit
4433 END
4434 # If we don't find an include directive, just comment out the code.
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4436 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4437 am__include="#"
4438 am__quote=
4439 _am_result=none
4440 # First try GNU make style include.
4441 echo "include confinc" > confmf
4442 # Ignore all kinds of additional output from 'make'.
4443 case `$am_make -s -f confmf 2> /dev/null` in #(
4444 *the\ am__doit\ target*)
4445   am__include=include
4446   am__quote=
4447   _am_result=GNU
4448   ;;
4449 esac
4450 # Now try BSD make style include.
4451 if test "$am__include" = "#"; then
4452    echo '.include "confinc"' > confmf
4453    case `$am_make -s -f confmf 2> /dev/null` in #(
4454    *the\ am__doit\ target*)
4455      am__include=.include
4456      am__quote="\""
4457      _am_result=BSD
4458      ;;
4459    esac
4460 fi
4461
4462
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4464 $as_echo "$_am_result" >&6; }
4465 rm -f confinc confmf
4466
4467 # Check whether --enable-dependency-tracking was given.
4468 if test "${enable_dependency_tracking+set}" = set; then :
4469   enableval=$enable_dependency_tracking;
4470 fi
4471
4472 if test "x$enable_dependency_tracking" != xno; then
4473   am_depcomp="$ac_aux_dir/depcomp"
4474   AMDEPBACKSLASH='\'
4475   am__nodep='_no'
4476 fi
4477  if test "x$enable_dependency_tracking" != xno; then
4478   AMDEP_TRUE=
4479   AMDEP_FALSE='#'
4480 else
4481   AMDEP_TRUE='#'
4482   AMDEP_FALSE=
4483 fi
4484
4485
4486
4487 depcc="$CC"   am_compiler_list=
4488
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4490 $as_echo_n "checking dependency style of $depcc... " >&6; }
4491 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4492   $as_echo_n "(cached) " >&6
4493 else
4494   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4495   # We make a subdir and do the tests there.  Otherwise we can end up
4496   # making bogus files that we don't know about and never remove.  For
4497   # instance it was reported that on HP-UX the gcc test will end up
4498   # making a dummy file named 'D' -- because '-MD' means "put the output
4499   # in D".
4500   rm -rf conftest.dir
4501   mkdir conftest.dir
4502   # Copy depcomp to subdir because otherwise we won't find it if we're
4503   # using a relative directory.
4504   cp "$am_depcomp" conftest.dir
4505   cd conftest.dir
4506   # We will build objects and dependencies in a subdirectory because
4507   # it helps to detect inapplicable dependency modes.  For instance
4508   # both Tru64's cc and ICC support -MD to output dependencies as a
4509   # side effect of compilation, but ICC will put the dependencies in
4510   # the current directory while Tru64 will put them in the object
4511   # directory.
4512   mkdir sub
4513
4514   am_cv_CC_dependencies_compiler_type=none
4515   if test "$am_compiler_list" = ""; then
4516      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4517   fi
4518   am__universal=false
4519   case " $depcc " in #(
4520      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4521      esac
4522
4523   for depmode in $am_compiler_list; do
4524     # Setup a source with many dependencies, because some compilers
4525     # like to wrap large dependency lists on column 80 (with \), and
4526     # we should not choose a depcomp mode which is confused by this.
4527     #
4528     # We need to recreate these files for each test, as the compiler may
4529     # overwrite some of them when testing with obscure command lines.
4530     # This happens at least with the AIX C compiler.
4531     : > sub/conftest.c
4532     for i in 1 2 3 4 5 6; do
4533       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4534       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4535       # Solaris 10 /bin/sh.
4536       echo '/* dummy */' > sub/conftst$i.h
4537     done
4538     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4539
4540     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4541     # mode.  It turns out that the SunPro C++ compiler does not properly
4542     # handle '-M -o', and we need to detect this.  Also, some Intel
4543     # versions had trouble with output in subdirs.
4544     am__obj=sub/conftest.${OBJEXT-o}
4545     am__minus_obj="-o $am__obj"
4546     case $depmode in
4547     gcc)
4548       # This depmode causes a compiler race in universal mode.
4549       test "$am__universal" = false || continue
4550       ;;
4551     nosideeffect)
4552       # After this tag, mechanisms are not by side-effect, so they'll
4553       # only be used when explicitly requested.
4554       if test "x$enable_dependency_tracking" = xyes; then
4555         continue
4556       else
4557         break
4558       fi
4559       ;;
4560     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4561       # This compiler won't grok '-c -o', but also, the minuso test has
4562       # not run yet.  These depmodes are late enough in the game, and
4563       # so weak that their functioning should not be impacted.
4564       am__obj=conftest.${OBJEXT-o}
4565       am__minus_obj=
4566       ;;
4567     none) break ;;
4568     esac
4569     if depmode=$depmode \
4570        source=sub/conftest.c object=$am__obj \
4571        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4572        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4573          >/dev/null 2>conftest.err &&
4574        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4575        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4576        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4577        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4578       # icc doesn't choke on unknown options, it will just issue warnings
4579       # or remarks (even with -Werror).  So we grep stderr for any message
4580       # that says an option was ignored or not supported.
4581       # When given -MP, icc 7.0 and 7.1 complain thusly:
4582       #   icc: Command line warning: ignoring option '-M'; no argument required
4583       # The diagnosis changed in icc 8.0:
4584       #   icc: Command line remark: option '-MP' not supported
4585       if (grep 'ignoring option' conftest.err ||
4586           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4587         am_cv_CC_dependencies_compiler_type=$depmode
4588         break
4589       fi
4590     fi
4591   done
4592
4593   cd ..
4594   rm -rf conftest.dir
4595 else
4596   am_cv_CC_dependencies_compiler_type=none
4597 fi
4598
4599 fi
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4601 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4602 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4603
4604  if
4605   test "x$enable_dependency_tracking" != xno \
4606   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4607   am__fastdepCC_TRUE=
4608   am__fastdepCC_FALSE='#'
4609 else
4610   am__fastdepCC_TRUE='#'
4611   am__fastdepCC_FALSE=
4612 fi
4613
4614
4615
4616
4617 ac_ext=c
4618 ac_cpp='$CPP $CPPFLAGS'
4619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4623 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4624 # On Suns, sometimes $CPP names a directory.
4625 if test -n "$CPP" && test -d "$CPP"; then
4626   CPP=
4627 fi
4628 if test -z "$CPP"; then
4629   if ${ac_cv_prog_CPP+:} false; then :
4630   $as_echo_n "(cached) " >&6
4631 else
4632       # Double quotes because CPP needs to be expanded
4633     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4634     do
4635       ac_preproc_ok=false
4636 for ac_c_preproc_warn_flag in '' yes
4637 do
4638   # Use a header file that comes with gcc, so configuring glibc
4639   # with a fresh cross-compiler works.
4640   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4641   # <limits.h> exists even on freestanding compilers.
4642   # On the NeXT, cc -E runs the code through the compiler's parser,
4643   # not just through cpp. "Syntax error" is here to catch this case.
4644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h.  */
4646 #ifdef __STDC__
4647 # include <limits.h>
4648 #else
4649 # include <assert.h>
4650 #endif
4651                      Syntax error
4652 _ACEOF
4653 if ac_fn_c_try_cpp "$LINENO"; then :
4654
4655 else
4656   # Broken: fails on valid input.
4657 continue
4658 fi
4659 rm -f conftest.err conftest.i conftest.$ac_ext
4660
4661   # OK, works on sane cases.  Now check whether nonexistent headers
4662   # can be detected and how.
4663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h.  */
4665 #include <ac_nonexistent.h>
4666 _ACEOF
4667 if ac_fn_c_try_cpp "$LINENO"; then :
4668   # Broken: success on invalid input.
4669 continue
4670 else
4671   # Passes both tests.
4672 ac_preproc_ok=:
4673 break
4674 fi
4675 rm -f conftest.err conftest.i conftest.$ac_ext
4676
4677 done
4678 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4679 rm -f conftest.i conftest.err conftest.$ac_ext
4680 if $ac_preproc_ok; then :
4681   break
4682 fi
4683
4684     done
4685     ac_cv_prog_CPP=$CPP
4686
4687 fi
4688   CPP=$ac_cv_prog_CPP
4689 else
4690   ac_cv_prog_CPP=$CPP
4691 fi
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4693 $as_echo "$CPP" >&6; }
4694 ac_preproc_ok=false
4695 for ac_c_preproc_warn_flag in '' yes
4696 do
4697   # Use a header file that comes with gcc, so configuring glibc
4698   # with a fresh cross-compiler works.
4699   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4700   # <limits.h> exists even on freestanding compilers.
4701   # On the NeXT, cc -E runs the code through the compiler's parser,
4702   # not just through cpp. "Syntax error" is here to catch this case.
4703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h.  */
4705 #ifdef __STDC__
4706 # include <limits.h>
4707 #else
4708 # include <assert.h>
4709 #endif
4710                      Syntax error
4711 _ACEOF
4712 if ac_fn_c_try_cpp "$LINENO"; then :
4713
4714 else
4715   # Broken: fails on valid input.
4716 continue
4717 fi
4718 rm -f conftest.err conftest.i conftest.$ac_ext
4719
4720   # OK, works on sane cases.  Now check whether nonexistent headers
4721   # can be detected and how.
4722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h.  */
4724 #include <ac_nonexistent.h>
4725 _ACEOF
4726 if ac_fn_c_try_cpp "$LINENO"; then :
4727   # Broken: success on invalid input.
4728 continue
4729 else
4730   # Passes both tests.
4731 ac_preproc_ok=:
4732 break
4733 fi
4734 rm -f conftest.err conftest.i conftest.$ac_ext
4735
4736 done
4737 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4738 rm -f conftest.i conftest.err conftest.$ac_ext
4739 if $ac_preproc_ok; then :
4740
4741 else
4742   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4744 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4745 See \`config.log' for more details" "$LINENO" 5; }
4746 fi
4747
4748 ac_ext=c
4749 ac_cpp='$CPP $CPPFLAGS'
4750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4753
4754
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4756 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4757 if ${ac_cv_path_GREP+:} false; then :
4758   $as_echo_n "(cached) " >&6
4759 else
4760   if test -z "$GREP"; then
4761   ac_path_GREP_found=false
4762   # Loop through the user's path and test for each of PROGNAME-LIST
4763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4765 do
4766   IFS=$as_save_IFS
4767   test -z "$as_dir" && as_dir=.
4768     for ac_prog in grep ggrep; do
4769     for ac_exec_ext in '' $ac_executable_extensions; do
4770       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4771       as_fn_executable_p "$ac_path_GREP" || continue
4772 # Check for GNU ac_path_GREP and select it if it is found.
4773   # Check for GNU $ac_path_GREP
4774 case `"$ac_path_GREP" --version 2>&1` in
4775 *GNU*)
4776   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4777 *)
4778   ac_count=0
4779   $as_echo_n 0123456789 >"conftest.in"
4780   while :
4781   do
4782     cat "conftest.in" "conftest.in" >"conftest.tmp"
4783     mv "conftest.tmp" "conftest.in"
4784     cp "conftest.in" "conftest.nl"
4785     $as_echo 'GREP' >> "conftest.nl"
4786     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4787     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4788     as_fn_arith $ac_count + 1 && ac_count=$as_val
4789     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4790       # Best one so far, save it but keep looking for a better one
4791       ac_cv_path_GREP="$ac_path_GREP"
4792       ac_path_GREP_max=$ac_count
4793     fi
4794     # 10*(2^10) chars as input seems more than enough
4795     test $ac_count -gt 10 && break
4796   done
4797   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4798 esac
4799
4800       $ac_path_GREP_found && break 3
4801     done
4802   done
4803   done
4804 IFS=$as_save_IFS
4805   if test -z "$ac_cv_path_GREP"; then
4806     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4807   fi
4808 else
4809   ac_cv_path_GREP=$GREP
4810 fi
4811
4812 fi
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4814 $as_echo "$ac_cv_path_GREP" >&6; }
4815  GREP="$ac_cv_path_GREP"
4816
4817
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4819 $as_echo_n "checking for egrep... " >&6; }
4820 if ${ac_cv_path_EGREP+:} false; then :
4821   $as_echo_n "(cached) " >&6
4822 else
4823   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4824    then ac_cv_path_EGREP="$GREP -E"
4825    else
4826      if test -z "$EGREP"; then
4827   ac_path_EGREP_found=false
4828   # Loop through the user's path and test for each of PROGNAME-LIST
4829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4831 do
4832   IFS=$as_save_IFS
4833   test -z "$as_dir" && as_dir=.
4834     for ac_prog in egrep; do
4835     for ac_exec_ext in '' $ac_executable_extensions; do
4836       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4837       as_fn_executable_p "$ac_path_EGREP" || continue
4838 # Check for GNU ac_path_EGREP and select it if it is found.
4839   # Check for GNU $ac_path_EGREP
4840 case `"$ac_path_EGREP" --version 2>&1` in
4841 *GNU*)
4842   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4843 *)
4844   ac_count=0
4845   $as_echo_n 0123456789 >"conftest.in"
4846   while :
4847   do
4848     cat "conftest.in" "conftest.in" >"conftest.tmp"
4849     mv "conftest.tmp" "conftest.in"
4850     cp "conftest.in" "conftest.nl"
4851     $as_echo 'EGREP' >> "conftest.nl"
4852     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4853     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4854     as_fn_arith $ac_count + 1 && ac_count=$as_val
4855     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4856       # Best one so far, save it but keep looking for a better one
4857       ac_cv_path_EGREP="$ac_path_EGREP"
4858       ac_path_EGREP_max=$ac_count
4859     fi
4860     # 10*(2^10) chars as input seems more than enough
4861     test $ac_count -gt 10 && break
4862   done
4863   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4864 esac
4865
4866       $ac_path_EGREP_found && break 3
4867     done
4868   done
4869   done
4870 IFS=$as_save_IFS
4871   if test -z "$ac_cv_path_EGREP"; then
4872     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4873   fi
4874 else
4875   ac_cv_path_EGREP=$EGREP
4876 fi
4877
4878    fi
4879 fi
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4881 $as_echo "$ac_cv_path_EGREP" >&6; }
4882  EGREP="$ac_cv_path_EGREP"
4883
4884
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4886 $as_echo_n "checking for ANSI C header files... " >&6; }
4887 if ${ac_cv_header_stdc+:} false; then :
4888   $as_echo_n "(cached) " >&6
4889 else
4890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h.  */
4892 #include <stdlib.h>
4893 #include <stdarg.h>
4894 #include <string.h>
4895 #include <float.h>
4896
4897 int
4898 main ()
4899 {
4900
4901   ;
4902   return 0;
4903 }
4904 _ACEOF
4905 if ac_fn_c_try_compile "$LINENO"; then :
4906   ac_cv_header_stdc=yes
4907 else
4908   ac_cv_header_stdc=no
4909 fi
4910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4911
4912 if test $ac_cv_header_stdc = yes; then
4913   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h.  */
4916 #include <string.h>
4917
4918 _ACEOF
4919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4920   $EGREP "memchr" >/dev/null 2>&1; then :
4921
4922 else
4923   ac_cv_header_stdc=no
4924 fi
4925 rm -f conftest*
4926
4927 fi
4928
4929 if test $ac_cv_header_stdc = yes; then
4930   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h.  */
4933 #include <stdlib.h>
4934
4935 _ACEOF
4936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4937   $EGREP "free" >/dev/null 2>&1; then :
4938
4939 else
4940   ac_cv_header_stdc=no
4941 fi
4942 rm -f conftest*
4943
4944 fi
4945
4946 if test $ac_cv_header_stdc = yes; then
4947   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4948   if test "$cross_compiling" = yes; then :
4949   :
4950 else
4951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952 /* end confdefs.h.  */
4953 #include <ctype.h>
4954 #include <stdlib.h>
4955 #if ((' ' & 0x0FF) == 0x020)
4956 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4957 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4958 #else
4959 # define ISLOWER(c) \
4960                    (('a' <= (c) && (c) <= 'i') \
4961                      || ('j' <= (c) && (c) <= 'r') \
4962                      || ('s' <= (c) && (c) <= 'z'))
4963 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4964 #endif
4965
4966 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4967 int
4968 main ()
4969 {
4970   int i;
4971   for (i = 0; i < 256; i++)
4972     if (XOR (islower (i), ISLOWER (i))
4973         || toupper (i) != TOUPPER (i))
4974       return 2;
4975   return 0;
4976 }
4977 _ACEOF
4978 if ac_fn_c_try_run "$LINENO"; then :
4979
4980 else
4981   ac_cv_header_stdc=no
4982 fi
4983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4984   conftest.$ac_objext conftest.beam conftest.$ac_ext
4985 fi
4986
4987 fi
4988 fi
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4990 $as_echo "$ac_cv_header_stdc" >&6; }
4991 if test $ac_cv_header_stdc = yes; then
4992
4993 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4994
4995 fi
4996
4997 case `pwd` in
4998   *\ * | *\     *)
4999     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5000 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5001 esac
5002
5003
5004
5005 macro_version='2.4.2'
5006 macro_revision='1.3337'
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020 ltmain="$ac_aux_dir/ltmain.sh"
5021
5022 # Backslashify metacharacters that are still active within
5023 # double-quoted strings.
5024 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5025
5026 # Same as above, but do not quote variable references.
5027 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5028
5029 # Sed substitution to delay expansion of an escaped shell variable in a
5030 # double_quote_subst'ed string.
5031 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5032
5033 # Sed substitution to delay expansion of an escaped single quote.
5034 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5035
5036 # Sed substitution to avoid accidental globbing in evaled expressions
5037 no_glob_subst='s/\*/\\\*/g'
5038
5039 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5040 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5041 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5042
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5044 $as_echo_n "checking how to print strings... " >&6; }
5045 # Test print first, because it will be a builtin if present.
5046 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5047    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5048   ECHO='print -r --'
5049 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5050   ECHO='printf %s\n'
5051 else
5052   # Use this function as a fallback that always works.
5053   func_fallback_echo ()
5054   {
5055     eval 'cat <<_LTECHO_EOF
5056 $1
5057 _LTECHO_EOF'
5058   }
5059   ECHO='func_fallback_echo'
5060 fi
5061
5062 # func_echo_all arg...
5063 # Invoke $ECHO with all args, space-separated.
5064 func_echo_all ()
5065 {
5066     $ECHO ""
5067 }
5068
5069 case "$ECHO" in
5070   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5071 $as_echo "printf" >&6; } ;;
5072   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5073 $as_echo "print -r" >&6; } ;;
5074   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5075 $as_echo "cat" >&6; } ;;
5076 esac
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5092 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5093 if ${ac_cv_path_SED+:} false; then :
5094   $as_echo_n "(cached) " >&6
5095 else
5096             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5097      for ac_i in 1 2 3 4 5 6 7; do
5098        ac_script="$ac_script$as_nl$ac_script"
5099      done
5100      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5101      { ac_script=; unset ac_script;}
5102      if test -z "$SED"; then
5103   ac_path_SED_found=false
5104   # Loop through the user's path and test for each of PROGNAME-LIST
5105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106 for as_dir in $PATH
5107 do
5108   IFS=$as_save_IFS
5109   test -z "$as_dir" && as_dir=.
5110     for ac_prog in sed gsed; do
5111     for ac_exec_ext in '' $ac_executable_extensions; do
5112       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5113       as_fn_executable_p "$ac_path_SED" || continue
5114 # Check for GNU ac_path_SED and select it if it is found.
5115   # Check for GNU $ac_path_SED
5116 case `"$ac_path_SED" --version 2>&1` in
5117 *GNU*)
5118   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5119 *)
5120   ac_count=0
5121   $as_echo_n 0123456789 >"conftest.in"
5122   while :
5123   do
5124     cat "conftest.in" "conftest.in" >"conftest.tmp"
5125     mv "conftest.tmp" "conftest.in"
5126     cp "conftest.in" "conftest.nl"
5127     $as_echo '' >> "conftest.nl"
5128     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5129     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5130     as_fn_arith $ac_count + 1 && ac_count=$as_val
5131     if test $ac_count -gt ${ac_path_SED_max-0}; then
5132       # Best one so far, save it but keep looking for a better one
5133       ac_cv_path_SED="$ac_path_SED"
5134       ac_path_SED_max=$ac_count
5135     fi
5136     # 10*(2^10) chars as input seems more than enough
5137     test $ac_count -gt 10 && break
5138   done
5139   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5140 esac
5141
5142       $ac_path_SED_found && break 3
5143     done
5144   done
5145   done
5146 IFS=$as_save_IFS
5147   if test -z "$ac_cv_path_SED"; then
5148     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5149   fi
5150 else
5151   ac_cv_path_SED=$SED
5152 fi
5153
5154 fi
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5156 $as_echo "$ac_cv_path_SED" >&6; }
5157  SED="$ac_cv_path_SED"
5158   rm -f conftest.sed
5159
5160 test -z "$SED" && SED=sed
5161 Xsed="$SED -e 1s/^X//"
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5174 $as_echo_n "checking for fgrep... " >&6; }
5175 if ${ac_cv_path_FGREP+:} false; then :
5176   $as_echo_n "(cached) " >&6
5177 else
5178   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5179    then ac_cv_path_FGREP="$GREP -F"
5180    else
5181      if test -z "$FGREP"; then
5182   ac_path_FGREP_found=false
5183   # Loop through the user's path and test for each of PROGNAME-LIST
5184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5186 do
5187   IFS=$as_save_IFS
5188   test -z "$as_dir" && as_dir=.
5189     for ac_prog in fgrep; do
5190     for ac_exec_ext in '' $ac_executable_extensions; do
5191       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5192       as_fn_executable_p "$ac_path_FGREP" || continue
5193 # Check for GNU ac_path_FGREP and select it if it is found.
5194   # Check for GNU $ac_path_FGREP
5195 case `"$ac_path_FGREP" --version 2>&1` in
5196 *GNU*)
5197   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5198 *)
5199   ac_count=0
5200   $as_echo_n 0123456789 >"conftest.in"
5201   while :
5202   do
5203     cat "conftest.in" "conftest.in" >"conftest.tmp"
5204     mv "conftest.tmp" "conftest.in"
5205     cp "conftest.in" "conftest.nl"
5206     $as_echo 'FGREP' >> "conftest.nl"
5207     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5208     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5209     as_fn_arith $ac_count + 1 && ac_count=$as_val
5210     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5211       # Best one so far, save it but keep looking for a better one
5212       ac_cv_path_FGREP="$ac_path_FGREP"
5213       ac_path_FGREP_max=$ac_count
5214     fi
5215     # 10*(2^10) chars as input seems more than enough
5216     test $ac_count -gt 10 && break
5217   done
5218   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5219 esac
5220
5221       $ac_path_FGREP_found && break 3
5222     done
5223   done
5224   done
5225 IFS=$as_save_IFS
5226   if test -z "$ac_cv_path_FGREP"; then
5227     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5228   fi
5229 else
5230   ac_cv_path_FGREP=$FGREP
5231 fi
5232
5233    fi
5234 fi
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5236 $as_echo "$ac_cv_path_FGREP" >&6; }
5237  FGREP="$ac_cv_path_FGREP"
5238
5239
5240 test -z "$GREP" && GREP=grep
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260 # Check whether --with-gnu-ld was given.
5261 if test "${with_gnu_ld+set}" = set; then :
5262   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5263 else
5264   with_gnu_ld=no
5265 fi
5266
5267 ac_prog=ld
5268 if test "$GCC" = yes; then
5269   # Check if gcc -print-prog-name=ld gives a path.
5270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5271 $as_echo_n "checking for ld used by $CC... " >&6; }
5272   case $host in
5273   *-*-mingw*)
5274     # gcc leaves a trailing carriage return which upsets mingw
5275     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5276   *)
5277     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5278   esac
5279   case $ac_prog in
5280     # Accept absolute paths.
5281     [\\/]* | ?:[\\/]*)
5282       re_direlt='/[^/][^/]*/\.\./'
5283       # Canonicalize the pathname of ld
5284       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5285       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5286         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5287       done
5288       test -z "$LD" && LD="$ac_prog"
5289       ;;
5290   "")
5291     # If it fails, then pretend we aren't using GCC.
5292     ac_prog=ld
5293     ;;
5294   *)
5295     # If it is relative, then search for the first ld in PATH.
5296     with_gnu_ld=unknown
5297     ;;
5298   esac
5299 elif test "$with_gnu_ld" = yes; then
5300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5301 $as_echo_n "checking for GNU ld... " >&6; }
5302 else
5303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5304 $as_echo_n "checking for non-GNU ld... " >&6; }
5305 fi
5306 if ${lt_cv_path_LD+:} false; then :
5307   $as_echo_n "(cached) " >&6
5308 else
5309   if test -z "$LD"; then
5310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5311   for ac_dir in $PATH; do
5312     IFS="$lt_save_ifs"
5313     test -z "$ac_dir" && ac_dir=.
5314     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5315       lt_cv_path_LD="$ac_dir/$ac_prog"
5316       # Check to see if the program is GNU ld.  I'd rather use --version,
5317       # but apparently some variants of GNU ld only accept -v.
5318       # Break only if it was the GNU/non-GNU ld that we prefer.
5319       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5320       *GNU* | *'with BFD'*)
5321         test "$with_gnu_ld" != no && break
5322         ;;
5323       *)
5324         test "$with_gnu_ld" != yes && break
5325         ;;
5326       esac
5327     fi
5328   done
5329   IFS="$lt_save_ifs"
5330 else
5331   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5332 fi
5333 fi
5334
5335 LD="$lt_cv_path_LD"
5336 if test -n "$LD"; then
5337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5338 $as_echo "$LD" >&6; }
5339 else
5340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 $as_echo "no" >&6; }
5342 fi
5343 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5345 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5346 if ${lt_cv_prog_gnu_ld+:} false; then :
5347   $as_echo_n "(cached) " >&6
5348 else
5349   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5350 case `$LD -v 2>&1 </dev/null` in
5351 *GNU* | *'with BFD'*)
5352   lt_cv_prog_gnu_ld=yes
5353   ;;
5354 *)
5355   lt_cv_prog_gnu_ld=no
5356   ;;
5357 esac
5358 fi
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5360 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5361 with_gnu_ld=$lt_cv_prog_gnu_ld
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5372 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5373 if ${lt_cv_path_NM+:} false; then :
5374   $as_echo_n "(cached) " >&6
5375 else
5376   if test -n "$NM"; then
5377   # Let the user override the test.
5378   lt_cv_path_NM="$NM"
5379 else
5380   lt_nm_to_check="${ac_tool_prefix}nm"
5381   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5382     lt_nm_to_check="$lt_nm_to_check nm"
5383   fi
5384   for lt_tmp_nm in $lt_nm_to_check; do
5385     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5386     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5387       IFS="$lt_save_ifs"
5388       test -z "$ac_dir" && ac_dir=.
5389       tmp_nm="$ac_dir/$lt_tmp_nm"
5390       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5391         # Check to see if the nm accepts a BSD-compat flag.
5392         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5393         #   nm: unknown option "B" ignored
5394         # Tru64's nm complains that /dev/null is an invalid object file
5395         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5396         */dev/null* | *'Invalid file or object type'*)
5397           lt_cv_path_NM="$tmp_nm -B"
5398           break
5399           ;;
5400         *)
5401           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5402           */dev/null*)
5403             lt_cv_path_NM="$tmp_nm -p"
5404             break
5405             ;;
5406           *)
5407             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5408             continue # so that we can try to find one that supports BSD flags
5409             ;;
5410           esac
5411           ;;
5412         esac
5413       fi
5414     done
5415     IFS="$lt_save_ifs"
5416   done
5417   : ${lt_cv_path_NM=no}
5418 fi
5419 fi
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5421 $as_echo "$lt_cv_path_NM" >&6; }
5422 if test "$lt_cv_path_NM" != "no"; then
5423   NM="$lt_cv_path_NM"
5424 else
5425   # Didn't find any BSD compatible name lister, look for dumpbin.
5426   if test -n "$DUMPBIN"; then :
5427     # Let the user override the test.
5428   else
5429     if test -n "$ac_tool_prefix"; then
5430   for ac_prog in dumpbin "link -dump"
5431   do
5432     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5435 $as_echo_n "checking for $ac_word... " >&6; }
5436 if ${ac_cv_prog_DUMPBIN+:} false; then :
5437   $as_echo_n "(cached) " >&6
5438 else
5439   if test -n "$DUMPBIN"; then
5440   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5441 else
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 for as_dir in $PATH
5444 do
5445   IFS=$as_save_IFS
5446   test -z "$as_dir" && as_dir=.
5447     for ac_exec_ext in '' $ac_executable_extensions; do
5448   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5451     break 2
5452   fi
5453 done
5454   done
5455 IFS=$as_save_IFS
5456
5457 fi
5458 fi
5459 DUMPBIN=$ac_cv_prog_DUMPBIN
5460 if test -n "$DUMPBIN"; then
5461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5462 $as_echo "$DUMPBIN" >&6; }
5463 else
5464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465 $as_echo "no" >&6; }
5466 fi
5467
5468
5469     test -n "$DUMPBIN" && break
5470   done
5471 fi
5472 if test -z "$DUMPBIN"; then
5473   ac_ct_DUMPBIN=$DUMPBIN
5474   for ac_prog in dumpbin "link -dump"
5475 do
5476   # Extract the first word of "$ac_prog", so it can be a program name with args.
5477 set dummy $ac_prog; ac_word=$2
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5481   $as_echo_n "(cached) " >&6
5482 else
5483   if test -n "$ac_ct_DUMPBIN"; then
5484   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5485 else
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 for as_dir in $PATH
5488 do
5489   IFS=$as_save_IFS
5490   test -z "$as_dir" && as_dir=.
5491     for ac_exec_ext in '' $ac_executable_extensions; do
5492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5493     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5495     break 2
5496   fi
5497 done
5498   done
5499 IFS=$as_save_IFS
5500
5501 fi
5502 fi
5503 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5504 if test -n "$ac_ct_DUMPBIN"; then
5505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5506 $as_echo "$ac_ct_DUMPBIN" >&6; }
5507 else
5508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509 $as_echo "no" >&6; }
5510 fi
5511
5512
5513   test -n "$ac_ct_DUMPBIN" && break
5514 done
5515
5516   if test "x$ac_ct_DUMPBIN" = x; then
5517     DUMPBIN=":"
5518   else
5519     case $cross_compiling:$ac_tool_warned in
5520 yes:)
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5523 ac_tool_warned=yes ;;
5524 esac
5525     DUMPBIN=$ac_ct_DUMPBIN
5526   fi
5527 fi
5528
5529     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5530     *COFF*)
5531       DUMPBIN="$DUMPBIN -symbols"
5532       ;;
5533     *)
5534       DUMPBIN=:
5535       ;;
5536     esac
5537   fi
5538
5539   if test "$DUMPBIN" != ":"; then
5540     NM="$DUMPBIN"
5541   fi
5542 fi
5543 test -z "$NM" && NM=nm
5544
5545
5546
5547
5548
5549
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5551 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5552 if ${lt_cv_nm_interface+:} false; then :
5553   $as_echo_n "(cached) " >&6
5554 else
5555   lt_cv_nm_interface="BSD nm"
5556   echo "int some_variable = 0;" > conftest.$ac_ext
5557   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5558   (eval "$ac_compile" 2>conftest.err)
5559   cat conftest.err >&5
5560   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5561   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5562   cat conftest.err >&5
5563   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5564   cat conftest.out >&5
5565   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5566     lt_cv_nm_interface="MS dumpbin"
5567   fi
5568   rm -f conftest*
5569 fi
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5571 $as_echo "$lt_cv_nm_interface" >&6; }
5572
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5574 $as_echo_n "checking whether ln -s works... " >&6; }
5575 LN_S=$as_ln_s
5576 if test "$LN_S" = "ln -s"; then
5577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5578 $as_echo "yes" >&6; }
5579 else
5580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5581 $as_echo "no, using $LN_S" >&6; }
5582 fi
5583
5584 # find the maximum length of command line arguments
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5586 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5587 if ${lt_cv_sys_max_cmd_len+:} false; then :
5588   $as_echo_n "(cached) " >&6
5589 else
5590     i=0
5591   teststring="ABCD"
5592
5593   case $build_os in
5594   msdosdjgpp*)
5595     # On DJGPP, this test can blow up pretty badly due to problems in libc
5596     # (any single argument exceeding 2000 bytes causes a buffer overrun
5597     # during glob expansion).  Even if it were fixed, the result of this
5598     # check would be larger than it should be.
5599     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5600     ;;
5601
5602   gnu*)
5603     # Under GNU Hurd, this test is not required because there is
5604     # no limit to the length of command line arguments.
5605     # Libtool will interpret -1 as no limit whatsoever
5606     lt_cv_sys_max_cmd_len=-1;
5607     ;;
5608
5609   cygwin* | mingw* | cegcc*)
5610     # On Win9x/ME, this test blows up -- it succeeds, but takes
5611     # about 5 minutes as the teststring grows exponentially.
5612     # Worse, since 9x/ME are not pre-emptively multitasking,
5613     # you end up with a "frozen" computer, even though with patience
5614     # the test eventually succeeds (with a max line length of 256k).
5615     # Instead, let's just punt: use the minimum linelength reported by
5616     # all of the supported platforms: 8192 (on NT/2K/XP).
5617     lt_cv_sys_max_cmd_len=8192;
5618     ;;
5619
5620   mint*)
5621     # On MiNT this can take a long time and run out of memory.
5622     lt_cv_sys_max_cmd_len=8192;
5623     ;;
5624
5625   amigaos*)
5626     # On AmigaOS with pdksh, this test takes hours, literally.
5627     # So we just punt and use a minimum line length of 8192.
5628     lt_cv_sys_max_cmd_len=8192;
5629     ;;
5630
5631   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5632     # This has been around since 386BSD, at least.  Likely further.
5633     if test -x /sbin/sysctl; then
5634       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5635     elif test -x /usr/sbin/sysctl; then
5636       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5637     else
5638       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5639     fi
5640     # And add a safety zone
5641     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5642     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5643     ;;
5644
5645   interix*)
5646     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5647     lt_cv_sys_max_cmd_len=196608
5648     ;;
5649
5650   os2*)
5651     # The test takes a long time on OS/2.
5652     lt_cv_sys_max_cmd_len=8192
5653     ;;
5654
5655   osf*)
5656     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5657     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5658     # nice to cause kernel panics so lets avoid the loop below.
5659     # First set a reasonable default.
5660     lt_cv_sys_max_cmd_len=16384
5661     #
5662     if test -x /sbin/sysconfig; then
5663       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5664         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5665       esac
5666     fi
5667     ;;
5668   sco3.2v5*)
5669     lt_cv_sys_max_cmd_len=102400
5670     ;;
5671   sysv5* | sco5v6* | sysv4.2uw2*)
5672     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5673     if test -n "$kargmax"; then
5674       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5675     else
5676       lt_cv_sys_max_cmd_len=32768
5677     fi
5678     ;;
5679   *)
5680     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5681     if test -n "$lt_cv_sys_max_cmd_len" && \
5682         test undefined != "$lt_cv_sys_max_cmd_len"; then
5683       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5684       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5685     else
5686       # Make teststring a little bigger before we do anything with it.
5687       # a 1K string should be a reasonable start.
5688       for i in 1 2 3 4 5 6 7 8 ; do
5689         teststring=$teststring$teststring
5690       done
5691       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5692       # If test is not a shell built-in, we'll probably end up computing a
5693       # maximum length that is only half of the actual maximum length, but
5694       # we can't tell.
5695       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5696                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5697               test $i != 17 # 1/2 MB should be enough
5698       do
5699         i=`expr $i + 1`
5700         teststring=$teststring$teststring
5701       done
5702       # Only check the string length outside the loop.
5703       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5704       teststring=
5705       # Add a significant safety factor because C++ compilers can tack on
5706       # massive amounts of additional arguments before passing them to the
5707       # linker.  It appears as though 1/2 is a usable value.
5708       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5709     fi
5710     ;;
5711   esac
5712
5713 fi
5714
5715 if test -n $lt_cv_sys_max_cmd_len ; then
5716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5717 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5718 else
5719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5720 $as_echo "none" >&6; }
5721 fi
5722 max_cmd_len=$lt_cv_sys_max_cmd_len
5723
5724
5725
5726
5727
5728
5729 : ${CP="cp -f"}
5730 : ${MV="mv -f"}
5731 : ${RM="rm -f"}
5732
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5734 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5735 # Try some XSI features
5736 xsi_shell=no
5737 ( _lt_dummy="a/b/c"
5738   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5739       = c,a/b,b/c, \
5740     && eval 'test $(( 1 + 1 )) -eq 2 \
5741     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5742   && xsi_shell=yes
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5744 $as_echo "$xsi_shell" >&6; }
5745
5746
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5748 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5749 lt_shell_append=no
5750 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5751     >/dev/null 2>&1 \
5752   && lt_shell_append=yes
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5754 $as_echo "$lt_shell_append" >&6; }
5755
5756
5757 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5758   lt_unset=unset
5759 else
5760   lt_unset=false
5761 fi
5762
5763
5764
5765
5766
5767 # test EBCDIC or ASCII
5768 case `echo X|tr X '\101'` in
5769  A) # ASCII based system
5770     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5771   lt_SP2NL='tr \040 \012'
5772   lt_NL2SP='tr \015\012 \040\040'
5773   ;;
5774  *) # EBCDIC based system
5775   lt_SP2NL='tr \100 \n'
5776   lt_NL2SP='tr \r\n \100\100'
5777   ;;
5778 esac
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5789 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5790 if ${lt_cv_to_host_file_cmd+:} false; then :
5791   $as_echo_n "(cached) " >&6
5792 else
5793   case $host in
5794   *-*-mingw* )
5795     case $build in
5796       *-*-mingw* ) # actually msys
5797         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5798         ;;
5799       *-*-cygwin* )
5800         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5801         ;;
5802       * ) # otherwise, assume *nix
5803         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5804         ;;
5805     esac
5806     ;;
5807   *-*-cygwin* )
5808     case $build in
5809       *-*-mingw* ) # actually msys
5810         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5811         ;;
5812       *-*-cygwin* )
5813         lt_cv_to_host_file_cmd=func_convert_file_noop
5814         ;;
5815       * ) # otherwise, assume *nix
5816         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5817         ;;
5818     esac
5819     ;;
5820   * ) # unhandled hosts (and "normal" native builds)
5821     lt_cv_to_host_file_cmd=func_convert_file_noop
5822     ;;
5823 esac
5824
5825 fi
5826
5827 to_host_file_cmd=$lt_cv_to_host_file_cmd
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5829 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5830
5831
5832
5833
5834
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5836 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5837 if ${lt_cv_to_tool_file_cmd+:} false; then :
5838   $as_echo_n "(cached) " >&6
5839 else
5840   #assume ordinary cross tools, or native build.
5841 lt_cv_to_tool_file_cmd=func_convert_file_noop
5842 case $host in
5843   *-*-mingw* )
5844     case $build in
5845       *-*-mingw* ) # actually msys
5846         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5847         ;;
5848     esac
5849     ;;
5850 esac
5851
5852 fi
5853
5854 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5856 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5857
5858
5859
5860
5861
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5863 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5864 if ${lt_cv_ld_reload_flag+:} false; then :
5865   $as_echo_n "(cached) " >&6
5866 else
5867   lt_cv_ld_reload_flag='-r'
5868 fi
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5870 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5871 reload_flag=$lt_cv_ld_reload_flag
5872 case $reload_flag in
5873 "" | " "*) ;;
5874 *) reload_flag=" $reload_flag" ;;
5875 esac
5876 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5877 case $host_os in
5878   cygwin* | mingw* | pw32* | cegcc*)
5879     if test "$GCC" != yes; then
5880       reload_cmds=false
5881     fi
5882     ;;
5883   darwin*)
5884     if test "$GCC" = yes; then
5885       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5886     else
5887       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5888     fi
5889     ;;
5890 esac
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900 if test -n "$ac_tool_prefix"; then
5901   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5902 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5904 $as_echo_n "checking for $ac_word... " >&6; }
5905 if ${ac_cv_prog_OBJDUMP+:} false; then :
5906   $as_echo_n "(cached) " >&6
5907 else
5908   if test -n "$OBJDUMP"; then
5909   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5910 else
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 for as_dir in $PATH
5913 do
5914   IFS=$as_save_IFS
5915   test -z "$as_dir" && as_dir=.
5916     for ac_exec_ext in '' $ac_executable_extensions; do
5917   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5918     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5920     break 2
5921   fi
5922 done
5923   done
5924 IFS=$as_save_IFS
5925
5926 fi
5927 fi
5928 OBJDUMP=$ac_cv_prog_OBJDUMP
5929 if test -n "$OBJDUMP"; then
5930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5931 $as_echo "$OBJDUMP" >&6; }
5932 else
5933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5934 $as_echo "no" >&6; }
5935 fi
5936
5937
5938 fi
5939 if test -z "$ac_cv_prog_OBJDUMP"; then
5940   ac_ct_OBJDUMP=$OBJDUMP
5941   # Extract the first word of "objdump", so it can be a program name with args.
5942 set dummy objdump; ac_word=$2
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5944 $as_echo_n "checking for $ac_word... " >&6; }
5945 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5946   $as_echo_n "(cached) " >&6
5947 else
5948   if test -n "$ac_ct_OBJDUMP"; then
5949   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5950 else
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5953 do
5954   IFS=$as_save_IFS
5955   test -z "$as_dir" && as_dir=.
5956     for ac_exec_ext in '' $ac_executable_extensions; do
5957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5958     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5960     break 2
5961   fi
5962 done
5963   done
5964 IFS=$as_save_IFS
5965
5966 fi
5967 fi
5968 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5969 if test -n "$ac_ct_OBJDUMP"; then
5970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5971 $as_echo "$ac_ct_OBJDUMP" >&6; }
5972 else
5973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5974 $as_echo "no" >&6; }
5975 fi
5976
5977   if test "x$ac_ct_OBJDUMP" = x; then
5978     OBJDUMP="false"
5979   else
5980     case $cross_compiling:$ac_tool_warned in
5981 yes:)
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5984 ac_tool_warned=yes ;;
5985 esac
5986     OBJDUMP=$ac_ct_OBJDUMP
5987   fi
5988 else
5989   OBJDUMP="$ac_cv_prog_OBJDUMP"
5990 fi
5991
5992 test -z "$OBJDUMP" && OBJDUMP=objdump
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6003 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6004 if ${lt_cv_deplibs_check_method+:} false; then :
6005   $as_echo_n "(cached) " >&6
6006 else
6007   lt_cv_file_magic_cmd='$MAGIC_CMD'
6008 lt_cv_file_magic_test_file=
6009 lt_cv_deplibs_check_method='unknown'
6010 # Need to set the preceding variable on all platforms that support
6011 # interlibrary dependencies.
6012 # 'none' -- dependencies not supported.
6013 # `unknown' -- same as none, but documents that we really don't know.
6014 # 'pass_all' -- all dependencies passed with no checks.
6015 # 'test_compile' -- check by making test program.
6016 # 'file_magic [[regex]]' -- check by looking for files in library path
6017 # which responds to the $file_magic_cmd with a given extended regex.
6018 # If you have `file' or equivalent on your system and you're not sure
6019 # whether `pass_all' will *always* work, you probably want this one.
6020
6021 case $host_os in
6022 aix[4-9]*)
6023   lt_cv_deplibs_check_method=pass_all
6024   ;;
6025
6026 beos*)
6027   lt_cv_deplibs_check_method=pass_all
6028   ;;
6029
6030 bsdi[45]*)
6031   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6032   lt_cv_file_magic_cmd='/usr/bin/file -L'
6033   lt_cv_file_magic_test_file=/shlib/libc.so
6034   ;;
6035
6036 cygwin*)
6037   # func_win32_libid is a shell function defined in ltmain.sh
6038   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6039   lt_cv_file_magic_cmd='func_win32_libid'
6040   ;;
6041
6042 mingw* | pw32*)
6043   # Base MSYS/MinGW do not provide the 'file' command needed by
6044   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6045   # unless we find 'file', for example because we are cross-compiling.
6046   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6047   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6048     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6049     lt_cv_file_magic_cmd='func_win32_libid'
6050   else
6051     # Keep this pattern in sync with the one in func_win32_libid.
6052     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6053     lt_cv_file_magic_cmd='$OBJDUMP -f'
6054   fi
6055   ;;
6056
6057 cegcc*)
6058   # use the weaker test based on 'objdump'. See mingw*.
6059   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6060   lt_cv_file_magic_cmd='$OBJDUMP -f'
6061   ;;
6062
6063 darwin* | rhapsody*)
6064   lt_cv_deplibs_check_method=pass_all
6065   ;;
6066
6067 freebsd* | dragonfly*)
6068   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6069     case $host_cpu in
6070     i*86 )
6071       # Not sure whether the presence of OpenBSD here was a mistake.
6072       # Let's accept both of them until this is cleared up.
6073       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6074       lt_cv_file_magic_cmd=/usr/bin/file
6075       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6076       ;;
6077     esac
6078   else
6079     lt_cv_deplibs_check_method=pass_all
6080   fi
6081   ;;
6082
6083 haiku*)
6084   lt_cv_deplibs_check_method=pass_all
6085   ;;
6086
6087 hpux10.20* | hpux11*)
6088   lt_cv_file_magic_cmd=/usr/bin/file
6089   case $host_cpu in
6090   ia64*)
6091     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6092     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6093     ;;
6094   hppa*64*)
6095     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]'
6096     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6097     ;;
6098   *)
6099     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6100     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6101     ;;
6102   esac
6103   ;;
6104
6105 interix[3-9]*)
6106   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6107   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6108   ;;
6109
6110 irix5* | irix6* | nonstopux*)
6111   case $LD in
6112   *-32|*"-32 ") libmagic=32-bit;;
6113   *-n32|*"-n32 ") libmagic=N32;;
6114   *-64|*"-64 ") libmagic=64-bit;;
6115   *) libmagic=never-match;;
6116   esac
6117   lt_cv_deplibs_check_method=pass_all
6118   ;;
6119
6120 # This must be glibc/ELF.
6121 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6122   lt_cv_deplibs_check_method=pass_all
6123   ;;
6124
6125 netbsd* | netbsdelf*-gnu)
6126   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6127     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6128   else
6129     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6130   fi
6131   ;;
6132
6133 newos6*)
6134   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6135   lt_cv_file_magic_cmd=/usr/bin/file
6136   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6137   ;;
6138
6139 *nto* | *qnx*)
6140   lt_cv_deplibs_check_method=pass_all
6141   ;;
6142
6143 openbsd*)
6144   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6145     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6146   else
6147     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6148   fi
6149   ;;
6150
6151 osf3* | osf4* | osf5*)
6152   lt_cv_deplibs_check_method=pass_all
6153   ;;
6154
6155 rdos*)
6156   lt_cv_deplibs_check_method=pass_all
6157   ;;
6158
6159 solaris*)
6160   lt_cv_deplibs_check_method=pass_all
6161   ;;
6162
6163 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6164   lt_cv_deplibs_check_method=pass_all
6165   ;;
6166
6167 sysv4 | sysv4.3*)
6168   case $host_vendor in
6169   motorola)
6170     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]'
6171     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6172     ;;
6173   ncr)
6174     lt_cv_deplibs_check_method=pass_all
6175     ;;
6176   sequent)
6177     lt_cv_file_magic_cmd='/bin/file'
6178     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6179     ;;
6180   sni)
6181     lt_cv_file_magic_cmd='/bin/file'
6182     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6183     lt_cv_file_magic_test_file=/lib/libc.so
6184     ;;
6185   siemens)
6186     lt_cv_deplibs_check_method=pass_all
6187     ;;
6188   pc)
6189     lt_cv_deplibs_check_method=pass_all
6190     ;;
6191   esac
6192   ;;
6193
6194 tpf*)
6195   lt_cv_deplibs_check_method=pass_all
6196   ;;
6197 esac
6198
6199 fi
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6201 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6202
6203 file_magic_glob=
6204 want_nocaseglob=no
6205 if test "$build" = "$host"; then
6206   case $host_os in
6207   mingw* | pw32*)
6208     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6209       want_nocaseglob=yes
6210     else
6211       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6212     fi
6213     ;;
6214   esac
6215 fi
6216
6217 file_magic_cmd=$lt_cv_file_magic_cmd
6218 deplibs_check_method=$lt_cv_deplibs_check_method
6219 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242 if test -n "$ac_tool_prefix"; then
6243   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6244 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246 $as_echo_n "checking for $ac_word... " >&6; }
6247 if ${ac_cv_prog_DLLTOOL+:} false; then :
6248   $as_echo_n "(cached) " >&6
6249 else
6250   if test -n "$DLLTOOL"; then
6251   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6252 else
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 for as_dir in $PATH
6255 do
6256   IFS=$as_save_IFS
6257   test -z "$as_dir" && as_dir=.
6258     for ac_exec_ext in '' $ac_executable_extensions; do
6259   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6260     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6262     break 2
6263   fi
6264 done
6265   done
6266 IFS=$as_save_IFS
6267
6268 fi
6269 fi
6270 DLLTOOL=$ac_cv_prog_DLLTOOL
6271 if test -n "$DLLTOOL"; then
6272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6273 $as_echo "$DLLTOOL" >&6; }
6274 else
6275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276 $as_echo "no" >&6; }
6277 fi
6278
6279
6280 fi
6281 if test -z "$ac_cv_prog_DLLTOOL"; then
6282   ac_ct_DLLTOOL=$DLLTOOL
6283   # Extract the first word of "dlltool", so it can be a program name with args.
6284 set dummy dlltool; ac_word=$2
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286 $as_echo_n "checking for $ac_word... " >&6; }
6287 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6288   $as_echo_n "(cached) " >&6
6289 else
6290   if test -n "$ac_ct_DLLTOOL"; then
6291   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6292 else
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6295 do
6296   IFS=$as_save_IFS
6297   test -z "$as_dir" && as_dir=.
6298     for ac_exec_ext in '' $ac_executable_extensions; do
6299   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6300     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6302     break 2
6303   fi
6304 done
6305   done
6306 IFS=$as_save_IFS
6307
6308 fi
6309 fi
6310 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6311 if test -n "$ac_ct_DLLTOOL"; then
6312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6313 $as_echo "$ac_ct_DLLTOOL" >&6; }
6314 else
6315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316 $as_echo "no" >&6; }
6317 fi
6318
6319   if test "x$ac_ct_DLLTOOL" = x; then
6320     DLLTOOL="false"
6321   else
6322     case $cross_compiling:$ac_tool_warned in
6323 yes:)
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6326 ac_tool_warned=yes ;;
6327 esac
6328     DLLTOOL=$ac_ct_DLLTOOL
6329   fi
6330 else
6331   DLLTOOL="$ac_cv_prog_DLLTOOL"
6332 fi
6333
6334 test -z "$DLLTOOL" && DLLTOOL=dlltool
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6346 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6347 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6348   $as_echo_n "(cached) " >&6
6349 else
6350   lt_cv_sharedlib_from_linklib_cmd='unknown'
6351
6352 case $host_os in
6353 cygwin* | mingw* | pw32* | cegcc*)
6354   # two different shell functions defined in ltmain.sh
6355   # decide which to use based on capabilities of $DLLTOOL
6356   case `$DLLTOOL --help 2>&1` in
6357   *--identify-strict*)
6358     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6359     ;;
6360   *)
6361     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6362     ;;
6363   esac
6364   ;;
6365 *)
6366   # fallback: assume linklib IS sharedlib
6367   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6368   ;;
6369 esac
6370
6371 fi
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6373 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6374 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6375 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6376
6377
6378
6379
6380
6381
6382
6383 if test -n "$ac_tool_prefix"; then
6384   for ac_prog in ar
6385   do
6386     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6387 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389 $as_echo_n "checking for $ac_word... " >&6; }
6390 if ${ac_cv_prog_AR+:} false; then :
6391   $as_echo_n "(cached) " >&6
6392 else
6393   if test -n "$AR"; then
6394   ac_cv_prog_AR="$AR" # Let the user override the test.
6395 else
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 for as_dir in $PATH
6398 do
6399   IFS=$as_save_IFS
6400   test -z "$as_dir" && as_dir=.
6401     for ac_exec_ext in '' $ac_executable_extensions; do
6402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6403     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405     break 2
6406   fi
6407 done
6408   done
6409 IFS=$as_save_IFS
6410
6411 fi
6412 fi
6413 AR=$ac_cv_prog_AR
6414 if test -n "$AR"; then
6415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6416 $as_echo "$AR" >&6; }
6417 else
6418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419 $as_echo "no" >&6; }
6420 fi
6421
6422
6423     test -n "$AR" && break
6424   done
6425 fi
6426 if test -z "$AR"; then
6427   ac_ct_AR=$AR
6428   for ac_prog in ar
6429 do
6430   # Extract the first word of "$ac_prog", so it can be a program name with args.
6431 set dummy $ac_prog; ac_word=$2
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433 $as_echo_n "checking for $ac_word... " >&6; }
6434 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6435   $as_echo_n "(cached) " >&6
6436 else
6437   if test -n "$ac_ct_AR"; then
6438   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6439 else
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $PATH
6442 do
6443   IFS=$as_save_IFS
6444   test -z "$as_dir" && as_dir=.
6445     for ac_exec_ext in '' $ac_executable_extensions; do
6446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6447     ac_cv_prog_ac_ct_AR="$ac_prog"
6448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6449     break 2
6450   fi
6451 done
6452   done
6453 IFS=$as_save_IFS
6454
6455 fi
6456 fi
6457 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6458 if test -n "$ac_ct_AR"; then
6459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6460 $as_echo "$ac_ct_AR" >&6; }
6461 else
6462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463 $as_echo "no" >&6; }
6464 fi
6465
6466
6467   test -n "$ac_ct_AR" && break
6468 done
6469
6470   if test "x$ac_ct_AR" = x; then
6471     AR="false"
6472   else
6473     case $cross_compiling:$ac_tool_warned in
6474 yes:)
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6477 ac_tool_warned=yes ;;
6478 esac
6479     AR=$ac_ct_AR
6480   fi
6481 fi
6482
6483 : ${AR=ar}
6484 : ${AR_FLAGS=cru}
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6497 $as_echo_n "checking for archiver @FILE support... " >&6; }
6498 if ${lt_cv_ar_at_file+:} false; then :
6499   $as_echo_n "(cached) " >&6
6500 else
6501   lt_cv_ar_at_file=no
6502    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h.  */
6504
6505 int
6506 main ()
6507 {
6508
6509   ;
6510   return 0;
6511 }
6512 _ACEOF
6513 if ac_fn_c_try_compile "$LINENO"; then :
6514   echo conftest.$ac_objext > conftest.lst
6515       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6516       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6517   (eval $lt_ar_try) 2>&5
6518   ac_status=$?
6519   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6520   test $ac_status = 0; }
6521       if test "$ac_status" -eq 0; then
6522         # Ensure the archiver fails upon bogus file names.
6523         rm -f conftest.$ac_objext libconftest.a
6524         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6525   (eval $lt_ar_try) 2>&5
6526   ac_status=$?
6527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6528   test $ac_status = 0; }
6529         if test "$ac_status" -ne 0; then
6530           lt_cv_ar_at_file=@
6531         fi
6532       fi
6533       rm -f conftest.* libconftest.a
6534
6535 fi
6536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6537
6538 fi
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6540 $as_echo "$lt_cv_ar_at_file" >&6; }
6541
6542 if test "x$lt_cv_ar_at_file" = xno; then
6543   archiver_list_spec=
6544 else
6545   archiver_list_spec=$lt_cv_ar_at_file
6546 fi
6547
6548
6549
6550
6551
6552
6553
6554 if test -n "$ac_tool_prefix"; then
6555   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6556 set dummy ${ac_tool_prefix}strip; ac_word=$2
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if ${ac_cv_prog_STRIP+:} false; then :
6560   $as_echo_n "(cached) " >&6
6561 else
6562   if test -n "$STRIP"; then
6563   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6564 else
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 for as_dir in $PATH
6567 do
6568   IFS=$as_save_IFS
6569   test -z "$as_dir" && as_dir=.
6570     for ac_exec_ext in '' $ac_executable_extensions; do
6571   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6572     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6574     break 2
6575   fi
6576 done
6577   done
6578 IFS=$as_save_IFS
6579
6580 fi
6581 fi
6582 STRIP=$ac_cv_prog_STRIP
6583 if test -n "$STRIP"; then
6584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6585 $as_echo "$STRIP" >&6; }
6586 else
6587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 $as_echo "no" >&6; }
6589 fi
6590
6591
6592 fi
6593 if test -z "$ac_cv_prog_STRIP"; then
6594   ac_ct_STRIP=$STRIP
6595   # Extract the first word of "strip", so it can be a program name with args.
6596 set dummy strip; ac_word=$2
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6600   $as_echo_n "(cached) " >&6
6601 else
6602   if test -n "$ac_ct_STRIP"; then
6603   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6604 else
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 for as_dir in $PATH
6607 do
6608   IFS=$as_save_IFS
6609   test -z "$as_dir" && as_dir=.
6610     for ac_exec_ext in '' $ac_executable_extensions; do
6611   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6612     ac_cv_prog_ac_ct_STRIP="strip"
6613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6614     break 2
6615   fi
6616 done
6617   done
6618 IFS=$as_save_IFS
6619
6620 fi
6621 fi
6622 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6623 if test -n "$ac_ct_STRIP"; then
6624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6625 $as_echo "$ac_ct_STRIP" >&6; }
6626 else
6627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628 $as_echo "no" >&6; }
6629 fi
6630
6631   if test "x$ac_ct_STRIP" = x; then
6632     STRIP=":"
6633   else
6634     case $cross_compiling:$ac_tool_warned in
6635 yes:)
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6638 ac_tool_warned=yes ;;
6639 esac
6640     STRIP=$ac_ct_STRIP
6641   fi
6642 else
6643   STRIP="$ac_cv_prog_STRIP"
6644 fi
6645
6646 test -z "$STRIP" && STRIP=:
6647
6648
6649
6650
6651
6652
6653 if test -n "$ac_tool_prefix"; then
6654   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6655 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657 $as_echo_n "checking for $ac_word... " >&6; }
6658 if ${ac_cv_prog_RANLIB+:} false; then :
6659   $as_echo_n "(cached) " >&6
6660 else
6661   if test -n "$RANLIB"; then
6662   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6663 else
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 for as_dir in $PATH
6666 do
6667   IFS=$as_save_IFS
6668   test -z "$as_dir" && as_dir=.
6669     for ac_exec_ext in '' $ac_executable_extensions; do
6670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6671     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6673     break 2
6674   fi
6675 done
6676   done
6677 IFS=$as_save_IFS
6678
6679 fi
6680 fi
6681 RANLIB=$ac_cv_prog_RANLIB
6682 if test -n "$RANLIB"; then
6683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6684 $as_echo "$RANLIB" >&6; }
6685 else
6686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687 $as_echo "no" >&6; }
6688 fi
6689
6690
6691 fi
6692 if test -z "$ac_cv_prog_RANLIB"; then
6693   ac_ct_RANLIB=$RANLIB
6694   # Extract the first word of "ranlib", so it can be a program name with args.
6695 set dummy ranlib; ac_word=$2
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697 $as_echo_n "checking for $ac_word... " >&6; }
6698 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6699   $as_echo_n "(cached) " >&6
6700 else
6701   if test -n "$ac_ct_RANLIB"; then
6702   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6703 else
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 for as_dir in $PATH
6706 do
6707   IFS=$as_save_IFS
6708   test -z "$as_dir" && as_dir=.
6709     for ac_exec_ext in '' $ac_executable_extensions; do
6710   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6711     ac_cv_prog_ac_ct_RANLIB="ranlib"
6712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6713     break 2
6714   fi
6715 done
6716   done
6717 IFS=$as_save_IFS
6718
6719 fi
6720 fi
6721 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6722 if test -n "$ac_ct_RANLIB"; then
6723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6724 $as_echo "$ac_ct_RANLIB" >&6; }
6725 else
6726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6727 $as_echo "no" >&6; }
6728 fi
6729
6730   if test "x$ac_ct_RANLIB" = x; then
6731     RANLIB=":"
6732   else
6733     case $cross_compiling:$ac_tool_warned in
6734 yes:)
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6737 ac_tool_warned=yes ;;
6738 esac
6739     RANLIB=$ac_ct_RANLIB
6740   fi
6741 else
6742   RANLIB="$ac_cv_prog_RANLIB"
6743 fi
6744
6745 test -z "$RANLIB" && RANLIB=:
6746
6747
6748
6749
6750
6751
6752 # Determine commands to create old-style static archives.
6753 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6754 old_postinstall_cmds='chmod 644 $oldlib'
6755 old_postuninstall_cmds=
6756
6757 if test -n "$RANLIB"; then
6758   case $host_os in
6759   openbsd*)
6760     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6761     ;;
6762   *)
6763     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6764     ;;
6765   esac
6766   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6767 fi
6768
6769 case $host_os in
6770   darwin*)
6771     lock_old_archive_extraction=yes ;;
6772   *)
6773     lock_old_archive_extraction=no ;;
6774 esac
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814 # If no C compiler was specified, use CC.
6815 LTCC=${LTCC-"$CC"}
6816
6817 # If no C compiler flags were specified, use CFLAGS.
6818 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6819
6820 # Allow CC to be a program name with arguments.
6821 compiler=$CC
6822
6823
6824 # Check for command to grab the raw symbol name followed by C symbol from nm.
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6826 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6827 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6828   $as_echo_n "(cached) " >&6
6829 else
6830
6831 # These are sane defaults that work on at least a few old systems.
6832 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6833
6834 # Character class describing NM global symbol codes.
6835 symcode='[BCDEGRST]'
6836
6837 # Regexp to match symbols that can be accessed directly from C.
6838 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6839
6840 # Define system-specific variables.
6841 case $host_os in
6842 aix*)
6843   symcode='[BCDT]'
6844   ;;
6845 cygwin* | mingw* | pw32* | cegcc*)
6846   symcode='[ABCDGISTW]'
6847   ;;
6848 hpux*)
6849   if test "$host_cpu" = ia64; then
6850     symcode='[ABCDEGRST]'
6851   fi
6852   ;;
6853 irix* | nonstopux*)
6854   symcode='[BCDEGRST]'
6855   ;;
6856 osf*)
6857   symcode='[BCDEGQRST]'
6858   ;;
6859 solaris*)
6860   symcode='[BDRT]'
6861   ;;
6862 sco3.2v5*)
6863   symcode='[DT]'
6864   ;;
6865 sysv4.2uw2*)
6866   symcode='[DT]'
6867   ;;
6868 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6869   symcode='[ABDT]'
6870   ;;
6871 sysv4)
6872   symcode='[DFNSTU]'
6873   ;;
6874 esac
6875
6876 # If we're using GNU nm, then use its standard symbol codes.
6877 case `$NM -V 2>&1` in
6878 *GNU* | *'with BFD'*)
6879   symcode='[ABCDGIRSTW]' ;;
6880 esac
6881
6882 # Transform an extracted symbol line into a proper C declaration.
6883 # Some systems (esp. on ia64) link data and code symbols differently,
6884 # so use this general approach.
6885 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6886
6887 # Transform an extracted symbol line into symbol name and symbol address
6888 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6889 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'"
6890
6891 # Handle CRLF in mingw tool chain
6892 opt_cr=
6893 case $build_os in
6894 mingw*)
6895   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6896   ;;
6897 esac
6898
6899 # Try without a prefix underscore, then with it.
6900 for ac_symprfx in "" "_"; do
6901
6902   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6903   symxfrm="\\1 $ac_symprfx\\2 \\2"
6904
6905   # Write the raw and C identifiers.
6906   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6907     # Fake it for dumpbin and say T for any non-static function
6908     # and D for any global variable.
6909     # Also find C++ and __fastcall symbols from MSVC++,
6910     # which start with @ or ?.
6911     lt_cv_sys_global_symbol_pipe="$AWK '"\
6912 "     {last_section=section; section=\$ 3};"\
6913 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6914 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6915 "     \$ 0!~/External *\|/{next};"\
6916 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6917 "     {if(hide[section]) next};"\
6918 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6919 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6920 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6921 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6922 "     ' prfx=^$ac_symprfx"
6923   else
6924     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6925   fi
6926   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6927
6928   # Check to see that the pipe works correctly.
6929   pipe_works=no
6930
6931   rm -f conftest*
6932   cat > conftest.$ac_ext <<_LT_EOF
6933 #ifdef __cplusplus
6934 extern "C" {
6935 #endif
6936 char nm_test_var;
6937 void nm_test_func(void);
6938 void nm_test_func(void){}
6939 #ifdef __cplusplus
6940 }
6941 #endif
6942 int main(){nm_test_var='a';nm_test_func();return(0);}
6943 _LT_EOF
6944
6945   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6946   (eval $ac_compile) 2>&5
6947   ac_status=$?
6948   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6949   test $ac_status = 0; }; then
6950     # Now try to grab the symbols.
6951     nlist=conftest.nm
6952     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6953   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6954   ac_status=$?
6955   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6956   test $ac_status = 0; } && test -s "$nlist"; then
6957       # Try sorting and uniquifying the output.
6958       if sort "$nlist" | uniq > "$nlist"T; then
6959         mv -f "$nlist"T "$nlist"
6960       else
6961         rm -f "$nlist"T
6962       fi
6963
6964       # Make sure that we snagged all the symbols we need.
6965       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6966         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6967           cat <<_LT_EOF > conftest.$ac_ext
6968 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6969 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6970 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6971    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6972 # define LT_DLSYM_CONST
6973 #elif defined(__osf__)
6974 /* This system does not cope well with relocations in const data.  */
6975 # define LT_DLSYM_CONST
6976 #else
6977 # define LT_DLSYM_CONST const
6978 #endif
6979
6980 #ifdef __cplusplus
6981 extern "C" {
6982 #endif
6983
6984 _LT_EOF
6985           # Now generate the symbol file.
6986           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6987
6988           cat <<_LT_EOF >> conftest.$ac_ext
6989
6990 /* The mapping between symbol names and symbols.  */
6991 LT_DLSYM_CONST struct {
6992   const char *name;
6993   void       *address;
6994 }
6995 lt__PROGRAM__LTX_preloaded_symbols[] =
6996 {
6997   { "@PROGRAM@", (void *) 0 },
6998 _LT_EOF
6999           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7000           cat <<\_LT_EOF >> conftest.$ac_ext
7001   {0, (void *) 0}
7002 };
7003
7004 /* This works around a problem in FreeBSD linker */
7005 #ifdef FREEBSD_WORKAROUND
7006 static const void *lt_preloaded_setup() {
7007   return lt__PROGRAM__LTX_preloaded_symbols;
7008 }
7009 #endif
7010
7011 #ifdef __cplusplus
7012 }
7013 #endif
7014 _LT_EOF
7015           # Now try linking the two files.
7016           mv conftest.$ac_objext conftstm.$ac_objext
7017           lt_globsym_save_LIBS=$LIBS
7018           lt_globsym_save_CFLAGS=$CFLAGS
7019           LIBS="conftstm.$ac_objext"
7020           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7021           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7022   (eval $ac_link) 2>&5
7023   ac_status=$?
7024   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7025   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7026             pipe_works=yes
7027           fi
7028           LIBS=$lt_globsym_save_LIBS
7029           CFLAGS=$lt_globsym_save_CFLAGS
7030         else
7031           echo "cannot find nm_test_func in $nlist" >&5
7032         fi
7033       else
7034         echo "cannot find nm_test_var in $nlist" >&5
7035       fi
7036     else
7037       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7038     fi
7039   else
7040     echo "$progname: failed program was:" >&5
7041     cat conftest.$ac_ext >&5
7042   fi
7043   rm -rf conftest* conftst*
7044
7045   # Do not use the global_symbol_pipe unless it works.
7046   if test "$pipe_works" = yes; then
7047     break
7048   else
7049     lt_cv_sys_global_symbol_pipe=
7050   fi
7051 done
7052
7053 fi
7054
7055 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7056   lt_cv_sys_global_symbol_to_cdecl=
7057 fi
7058 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7060 $as_echo "failed" >&6; }
7061 else
7062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7063 $as_echo "ok" >&6; }
7064 fi
7065
7066 # Response file support.
7067 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7068   nm_file_list_spec='@'
7069 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7070   nm_file_list_spec='@'
7071 fi
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7100 $as_echo_n "checking for sysroot... " >&6; }
7101
7102 # Check whether --with-sysroot was given.
7103 if test "${with_sysroot+set}" = set; then :
7104   withval=$with_sysroot;
7105 else
7106   with_sysroot=no
7107 fi
7108
7109
7110 lt_sysroot=
7111 case ${with_sysroot} in #(
7112  yes)
7113    if test "$GCC" = yes; then
7114      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7115    fi
7116    ;; #(
7117  /*)
7118    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7119    ;; #(
7120  no|'')
7121    ;; #(
7122  *)
7123    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7124 $as_echo "${with_sysroot}" >&6; }
7125    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7126    ;;
7127 esac
7128
7129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7130 $as_echo "${lt_sysroot:-no}" >&6; }
7131
7132
7133
7134
7135
7136 # Check whether --enable-libtool-lock was given.
7137 if test "${enable_libtool_lock+set}" = set; then :
7138   enableval=$enable_libtool_lock;
7139 fi
7140
7141 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7142
7143 # Some flags need to be propagated to the compiler or linker for good
7144 # libtool support.
7145 case $host in
7146 ia64-*-hpux*)
7147   # Find out which ABI we are using.
7148   echo 'int i;' > conftest.$ac_ext
7149   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7150   (eval $ac_compile) 2>&5
7151   ac_status=$?
7152   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7153   test $ac_status = 0; }; then
7154     case `/usr/bin/file conftest.$ac_objext` in
7155       *ELF-32*)
7156         HPUX_IA64_MODE="32"
7157         ;;
7158       *ELF-64*)
7159         HPUX_IA64_MODE="64"
7160         ;;
7161     esac
7162   fi
7163   rm -rf conftest*
7164   ;;
7165 *-*-irix6*)
7166   # Find out which ABI we are using.
7167   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7168   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7169   (eval $ac_compile) 2>&5
7170   ac_status=$?
7171   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7172   test $ac_status = 0; }; then
7173     if test "$lt_cv_prog_gnu_ld" = yes; then
7174       case `/usr/bin/file conftest.$ac_objext` in
7175         *32-bit*)
7176           LD="${LD-ld} -melf32bsmip"
7177           ;;
7178         *N32*)
7179           LD="${LD-ld} -melf32bmipn32"
7180           ;;
7181         *64-bit*)
7182           LD="${LD-ld} -melf64bmip"
7183         ;;
7184       esac
7185     else
7186       case `/usr/bin/file conftest.$ac_objext` in
7187         *32-bit*)
7188           LD="${LD-ld} -32"
7189           ;;
7190         *N32*)
7191           LD="${LD-ld} -n32"
7192           ;;
7193         *64-bit*)
7194           LD="${LD-ld} -64"
7195           ;;
7196       esac
7197     fi
7198   fi
7199   rm -rf conftest*
7200   ;;
7201
7202 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7203 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7204   # Find out which ABI we are using.
7205   echo 'int i;' > conftest.$ac_ext
7206   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7207   (eval $ac_compile) 2>&5
7208   ac_status=$?
7209   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7210   test $ac_status = 0; }; then
7211     case `/usr/bin/file conftest.o` in
7212       *32-bit*)
7213         case $host in
7214           x86_64-*kfreebsd*-gnu)
7215             LD="${LD-ld} -m elf_i386_fbsd"
7216             ;;
7217           x86_64-*linux*)
7218             case `/usr/bin/file conftest.o` in
7219               *x86-64*)
7220                 LD="${LD-ld} -m elf32_x86_64"
7221                 ;;
7222               *)
7223                 LD="${LD-ld} -m elf_i386"
7224                 ;;
7225             esac
7226             ;;
7227           powerpc64le-*)
7228             LD="${LD-ld} -m elf32lppclinux"
7229             ;;
7230           powerpc64-*)
7231             LD="${LD-ld} -m elf32ppclinux"
7232             ;;
7233           s390x-*linux*)
7234             LD="${LD-ld} -m elf_s390"
7235             ;;
7236           sparc64-*linux*)
7237             LD="${LD-ld} -m elf32_sparc"
7238             ;;
7239         esac
7240         ;;
7241       *64-bit*)
7242         case $host in
7243           x86_64-*kfreebsd*-gnu)
7244             LD="${LD-ld} -m elf_x86_64_fbsd"
7245             ;;
7246           x86_64-*linux*)
7247             LD="${LD-ld} -m elf_x86_64"
7248             ;;
7249           powerpcle-*)
7250             LD="${LD-ld} -m elf64lppc"
7251             ;;
7252           powerpc-*)
7253             LD="${LD-ld} -m elf64ppc"
7254             ;;
7255           s390*-*linux*|s390*-*tpf*)
7256             LD="${LD-ld} -m elf64_s390"
7257             ;;
7258           sparc*-*linux*)
7259             LD="${LD-ld} -m elf64_sparc"
7260             ;;
7261         esac
7262         ;;
7263     esac
7264   fi
7265   rm -rf conftest*
7266   ;;
7267
7268 *-*-sco3.2v5*)
7269   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7270   SAVE_CFLAGS="$CFLAGS"
7271   CFLAGS="$CFLAGS -belf"
7272   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7273 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7274 if ${lt_cv_cc_needs_belf+:} false; then :
7275   $as_echo_n "(cached) " >&6
7276 else
7277   ac_ext=c
7278 ac_cpp='$CPP $CPPFLAGS'
7279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7282
7283      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h.  */
7285
7286 int
7287 main ()
7288 {
7289
7290   ;
7291   return 0;
7292 }
7293 _ACEOF
7294 if ac_fn_c_try_link "$LINENO"; then :
7295   lt_cv_cc_needs_belf=yes
7296 else
7297   lt_cv_cc_needs_belf=no
7298 fi
7299 rm -f core conftest.err conftest.$ac_objext \
7300     conftest$ac_exeext conftest.$ac_ext
7301      ac_ext=c
7302 ac_cpp='$CPP $CPPFLAGS'
7303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7306
7307 fi
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7309 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7310   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7311     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7312     CFLAGS="$SAVE_CFLAGS"
7313   fi
7314   ;;
7315 *-*solaris*)
7316   # Find out which ABI we are using.
7317   echo 'int i;' > conftest.$ac_ext
7318   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7319   (eval $ac_compile) 2>&5
7320   ac_status=$?
7321   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7322   test $ac_status = 0; }; then
7323     case `/usr/bin/file conftest.o` in
7324     *64-bit*)
7325       case $lt_cv_prog_gnu_ld in
7326       yes*)
7327         case $host in
7328         i?86-*-solaris*)
7329           LD="${LD-ld} -m elf_x86_64"
7330           ;;
7331         sparc*-*-solaris*)
7332           LD="${LD-ld} -m elf64_sparc"
7333           ;;
7334         esac
7335         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7336         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7337           LD="${LD-ld}_sol2"
7338         fi
7339         ;;
7340       *)
7341         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7342           LD="${LD-ld} -64"
7343         fi
7344         ;;
7345       esac
7346       ;;
7347     esac
7348   fi
7349   rm -rf conftest*
7350   ;;
7351 esac
7352
7353 need_locks="$enable_libtool_lock"
7354
7355 if test -n "$ac_tool_prefix"; then
7356   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7357 set dummy ${ac_tool_prefix}mt; ac_word=$2
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7359 $as_echo_n "checking for $ac_word... " >&6; }
7360 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7361   $as_echo_n "(cached) " >&6
7362 else
7363   if test -n "$MANIFEST_TOOL"; then
7364   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7365 else
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 for as_dir in $PATH
7368 do
7369   IFS=$as_save_IFS
7370   test -z "$as_dir" && as_dir=.
7371     for ac_exec_ext in '' $ac_executable_extensions; do
7372   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7373     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7375     break 2
7376   fi
7377 done
7378   done
7379 IFS=$as_save_IFS
7380
7381 fi
7382 fi
7383 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7384 if test -n "$MANIFEST_TOOL"; then
7385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7386 $as_echo "$MANIFEST_TOOL" >&6; }
7387 else
7388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389 $as_echo "no" >&6; }
7390 fi
7391
7392
7393 fi
7394 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7395   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7396   # Extract the first word of "mt", so it can be a program name with args.
7397 set dummy mt; ac_word=$2
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399 $as_echo_n "checking for $ac_word... " >&6; }
7400 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7401   $as_echo_n "(cached) " >&6
7402 else
7403   if test -n "$ac_ct_MANIFEST_TOOL"; then
7404   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7405 else
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 for as_dir in $PATH
7408 do
7409   IFS=$as_save_IFS
7410   test -z "$as_dir" && as_dir=.
7411     for ac_exec_ext in '' $ac_executable_extensions; do
7412   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7413     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7415     break 2
7416   fi
7417 done
7418   done
7419 IFS=$as_save_IFS
7420
7421 fi
7422 fi
7423 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7424 if test -n "$ac_ct_MANIFEST_TOOL"; then
7425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7426 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7427 else
7428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 $as_echo "no" >&6; }
7430 fi
7431
7432   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7433     MANIFEST_TOOL=":"
7434   else
7435     case $cross_compiling:$ac_tool_warned in
7436 yes:)
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7439 ac_tool_warned=yes ;;
7440 esac
7441     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7442   fi
7443 else
7444   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7445 fi
7446
7447 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7449 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7450 if ${lt_cv_path_mainfest_tool+:} false; then :
7451   $as_echo_n "(cached) " >&6
7452 else
7453   lt_cv_path_mainfest_tool=no
7454   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7455   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7456   cat conftest.err >&5
7457   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7458     lt_cv_path_mainfest_tool=yes
7459   fi
7460   rm -f conftest*
7461 fi
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7463 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7464 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7465   MANIFEST_TOOL=:
7466 fi
7467
7468
7469
7470
7471
7472
7473   case $host_os in
7474     rhapsody* | darwin*)
7475     if test -n "$ac_tool_prefix"; then
7476   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7477 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479 $as_echo_n "checking for $ac_word... " >&6; }
7480 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7481   $as_echo_n "(cached) " >&6
7482 else
7483   if test -n "$DSYMUTIL"; then
7484   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7485 else
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 for as_dir in $PATH
7488 do
7489   IFS=$as_save_IFS
7490   test -z "$as_dir" && as_dir=.
7491     for ac_exec_ext in '' $ac_executable_extensions; do
7492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7493     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7495     break 2
7496   fi
7497 done
7498   done
7499 IFS=$as_save_IFS
7500
7501 fi
7502 fi
7503 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7504 if test -n "$DSYMUTIL"; then
7505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7506 $as_echo "$DSYMUTIL" >&6; }
7507 else
7508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 $as_echo "no" >&6; }
7510 fi
7511
7512
7513 fi
7514 if test -z "$ac_cv_prog_DSYMUTIL"; then
7515   ac_ct_DSYMUTIL=$DSYMUTIL
7516   # Extract the first word of "dsymutil", so it can be a program name with args.
7517 set dummy dsymutil; ac_word=$2
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7519 $as_echo_n "checking for $ac_word... " >&6; }
7520 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7521   $as_echo_n "(cached) " >&6
7522 else
7523   if test -n "$ac_ct_DSYMUTIL"; then
7524   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7525 else
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527 for as_dir in $PATH
7528 do
7529   IFS=$as_save_IFS
7530   test -z "$as_dir" && as_dir=.
7531     for ac_exec_ext in '' $ac_executable_extensions; do
7532   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7533     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7535     break 2
7536   fi
7537 done
7538   done
7539 IFS=$as_save_IFS
7540
7541 fi
7542 fi
7543 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7544 if test -n "$ac_ct_DSYMUTIL"; then
7545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7546 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7547 else
7548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549 $as_echo "no" >&6; }
7550 fi
7551
7552   if test "x$ac_ct_DSYMUTIL" = x; then
7553     DSYMUTIL=":"
7554   else
7555     case $cross_compiling:$ac_tool_warned in
7556 yes:)
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7559 ac_tool_warned=yes ;;
7560 esac
7561     DSYMUTIL=$ac_ct_DSYMUTIL
7562   fi
7563 else
7564   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7565 fi
7566
7567     if test -n "$ac_tool_prefix"; then
7568   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7569 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7571 $as_echo_n "checking for $ac_word... " >&6; }
7572 if ${ac_cv_prog_NMEDIT+:} false; then :
7573   $as_echo_n "(cached) " >&6
7574 else
7575   if test -n "$NMEDIT"; then
7576   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7577 else
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 for as_dir in $PATH
7580 do
7581   IFS=$as_save_IFS
7582   test -z "$as_dir" && as_dir=.
7583     for ac_exec_ext in '' $ac_executable_extensions; do
7584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7585     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7587     break 2
7588   fi
7589 done
7590   done
7591 IFS=$as_save_IFS
7592
7593 fi
7594 fi
7595 NMEDIT=$ac_cv_prog_NMEDIT
7596 if test -n "$NMEDIT"; then
7597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7598 $as_echo "$NMEDIT" >&6; }
7599 else
7600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7601 $as_echo "no" >&6; }
7602 fi
7603
7604
7605 fi
7606 if test -z "$ac_cv_prog_NMEDIT"; then
7607   ac_ct_NMEDIT=$NMEDIT
7608   # Extract the first word of "nmedit", so it can be a program name with args.
7609 set dummy nmedit; ac_word=$2
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7611 $as_echo_n "checking for $ac_word... " >&6; }
7612 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7613   $as_echo_n "(cached) " >&6
7614 else
7615   if test -n "$ac_ct_NMEDIT"; then
7616   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7617 else
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 for as_dir in $PATH
7620 do
7621   IFS=$as_save_IFS
7622   test -z "$as_dir" && as_dir=.
7623     for ac_exec_ext in '' $ac_executable_extensions; do
7624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7625     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7627     break 2
7628   fi
7629 done
7630   done
7631 IFS=$as_save_IFS
7632
7633 fi
7634 fi
7635 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7636 if test -n "$ac_ct_NMEDIT"; then
7637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7638 $as_echo "$ac_ct_NMEDIT" >&6; }
7639 else
7640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641 $as_echo "no" >&6; }
7642 fi
7643
7644   if test "x$ac_ct_NMEDIT" = x; then
7645     NMEDIT=":"
7646   else
7647     case $cross_compiling:$ac_tool_warned in
7648 yes:)
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7651 ac_tool_warned=yes ;;
7652 esac
7653     NMEDIT=$ac_ct_NMEDIT
7654   fi
7655 else
7656   NMEDIT="$ac_cv_prog_NMEDIT"
7657 fi
7658
7659     if test -n "$ac_tool_prefix"; then
7660   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7661 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7663 $as_echo_n "checking for $ac_word... " >&6; }
7664 if ${ac_cv_prog_LIPO+:} false; then :
7665   $as_echo_n "(cached) " >&6
7666 else
7667   if test -n "$LIPO"; then
7668   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7669 else
7670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 for as_dir in $PATH
7672 do
7673   IFS=$as_save_IFS
7674   test -z "$as_dir" && as_dir=.
7675     for ac_exec_ext in '' $ac_executable_extensions; do
7676   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7677     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7679     break 2
7680   fi
7681 done
7682   done
7683 IFS=$as_save_IFS
7684
7685 fi
7686 fi
7687 LIPO=$ac_cv_prog_LIPO
7688 if test -n "$LIPO"; then
7689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7690 $as_echo "$LIPO" >&6; }
7691 else
7692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7693 $as_echo "no" >&6; }
7694 fi
7695
7696
7697 fi
7698 if test -z "$ac_cv_prog_LIPO"; then
7699   ac_ct_LIPO=$LIPO
7700   # Extract the first word of "lipo", so it can be a program name with args.
7701 set dummy lipo; ac_word=$2
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7703 $as_echo_n "checking for $ac_word... " >&6; }
7704 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7705   $as_echo_n "(cached) " >&6
7706 else
7707   if test -n "$ac_ct_LIPO"; then
7708   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7709 else
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 for as_dir in $PATH
7712 do
7713   IFS=$as_save_IFS
7714   test -z "$as_dir" && as_dir=.
7715     for ac_exec_ext in '' $ac_executable_extensions; do
7716   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7717     ac_cv_prog_ac_ct_LIPO="lipo"
7718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7719     break 2
7720   fi
7721 done
7722   done
7723 IFS=$as_save_IFS
7724
7725 fi
7726 fi
7727 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7728 if test -n "$ac_ct_LIPO"; then
7729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7730 $as_echo "$ac_ct_LIPO" >&6; }
7731 else
7732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7733 $as_echo "no" >&6; }
7734 fi
7735
7736   if test "x$ac_ct_LIPO" = x; then
7737     LIPO=":"
7738   else
7739     case $cross_compiling:$ac_tool_warned in
7740 yes:)
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7743 ac_tool_warned=yes ;;
7744 esac
7745     LIPO=$ac_ct_LIPO
7746   fi
7747 else
7748   LIPO="$ac_cv_prog_LIPO"
7749 fi
7750
7751     if test -n "$ac_tool_prefix"; then
7752   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7753 set dummy ${ac_tool_prefix}otool; ac_word=$2
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755 $as_echo_n "checking for $ac_word... " >&6; }
7756 if ${ac_cv_prog_OTOOL+:} false; then :
7757   $as_echo_n "(cached) " >&6
7758 else
7759   if test -n "$OTOOL"; then
7760   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7761 else
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7764 do
7765   IFS=$as_save_IFS
7766   test -z "$as_dir" && as_dir=.
7767     for ac_exec_ext in '' $ac_executable_extensions; do
7768   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7769     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771     break 2
7772   fi
7773 done
7774   done
7775 IFS=$as_save_IFS
7776
7777 fi
7778 fi
7779 OTOOL=$ac_cv_prog_OTOOL
7780 if test -n "$OTOOL"; then
7781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7782 $as_echo "$OTOOL" >&6; }
7783 else
7784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785 $as_echo "no" >&6; }
7786 fi
7787
7788
7789 fi
7790 if test -z "$ac_cv_prog_OTOOL"; then
7791   ac_ct_OTOOL=$OTOOL
7792   # Extract the first word of "otool", so it can be a program name with args.
7793 set dummy otool; ac_word=$2
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795 $as_echo_n "checking for $ac_word... " >&6; }
7796 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7797   $as_echo_n "(cached) " >&6
7798 else
7799   if test -n "$ac_ct_OTOOL"; then
7800   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7801 else
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 for as_dir in $PATH
7804 do
7805   IFS=$as_save_IFS
7806   test -z "$as_dir" && as_dir=.
7807     for ac_exec_ext in '' $ac_executable_extensions; do
7808   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7809     ac_cv_prog_ac_ct_OTOOL="otool"
7810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7811     break 2
7812   fi
7813 done
7814   done
7815 IFS=$as_save_IFS
7816
7817 fi
7818 fi
7819 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7820 if test -n "$ac_ct_OTOOL"; then
7821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7822 $as_echo "$ac_ct_OTOOL" >&6; }
7823 else
7824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825 $as_echo "no" >&6; }
7826 fi
7827
7828   if test "x$ac_ct_OTOOL" = x; then
7829     OTOOL=":"
7830   else
7831     case $cross_compiling:$ac_tool_warned in
7832 yes:)
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7835 ac_tool_warned=yes ;;
7836 esac
7837     OTOOL=$ac_ct_OTOOL
7838   fi
7839 else
7840   OTOOL="$ac_cv_prog_OTOOL"
7841 fi
7842
7843     if test -n "$ac_tool_prefix"; then
7844   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7845 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7847 $as_echo_n "checking for $ac_word... " >&6; }
7848 if ${ac_cv_prog_OTOOL64+:} false; then :
7849   $as_echo_n "(cached) " >&6
7850 else
7851   if test -n "$OTOOL64"; then
7852   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7853 else
7854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 for as_dir in $PATH
7856 do
7857   IFS=$as_save_IFS
7858   test -z "$as_dir" && as_dir=.
7859     for ac_exec_ext in '' $ac_executable_extensions; do
7860   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7861     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7863     break 2
7864   fi
7865 done
7866   done
7867 IFS=$as_save_IFS
7868
7869 fi
7870 fi
7871 OTOOL64=$ac_cv_prog_OTOOL64
7872 if test -n "$OTOOL64"; then
7873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7874 $as_echo "$OTOOL64" >&6; }
7875 else
7876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7878 fi
7879
7880
7881 fi
7882 if test -z "$ac_cv_prog_OTOOL64"; then
7883   ac_ct_OTOOL64=$OTOOL64
7884   # Extract the first word of "otool64", so it can be a program name with args.
7885 set dummy otool64; ac_word=$2
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7887 $as_echo_n "checking for $ac_word... " >&6; }
7888 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7889   $as_echo_n "(cached) " >&6
7890 else
7891   if test -n "$ac_ct_OTOOL64"; then
7892   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7893 else
7894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7895 for as_dir in $PATH
7896 do
7897   IFS=$as_save_IFS
7898   test -z "$as_dir" && as_dir=.
7899     for ac_exec_ext in '' $ac_executable_extensions; do
7900   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7901     ac_cv_prog_ac_ct_OTOOL64="otool64"
7902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7903     break 2
7904   fi
7905 done
7906   done
7907 IFS=$as_save_IFS
7908
7909 fi
7910 fi
7911 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7912 if test -n "$ac_ct_OTOOL64"; then
7913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7914 $as_echo "$ac_ct_OTOOL64" >&6; }
7915 else
7916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917 $as_echo "no" >&6; }
7918 fi
7919
7920   if test "x$ac_ct_OTOOL64" = x; then
7921     OTOOL64=":"
7922   else
7923     case $cross_compiling:$ac_tool_warned in
7924 yes:)
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7927 ac_tool_warned=yes ;;
7928 esac
7929     OTOOL64=$ac_ct_OTOOL64
7930   fi
7931 else
7932   OTOOL64="$ac_cv_prog_OTOOL64"
7933 fi
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7962 $as_echo_n "checking for -single_module linker flag... " >&6; }
7963 if ${lt_cv_apple_cc_single_mod+:} false; then :
7964   $as_echo_n "(cached) " >&6
7965 else
7966   lt_cv_apple_cc_single_mod=no
7967       if test -z "${LT_MULTI_MODULE}"; then
7968         # By default we will add the -single_module flag. You can override
7969         # by either setting the environment variable LT_MULTI_MODULE
7970         # non-empty at configure time, or by adding -multi_module to the
7971         # link flags.
7972         rm -rf libconftest.dylib*
7973         echo "int foo(void){return 1;}" > conftest.c
7974         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7975 -dynamiclib -Wl,-single_module conftest.c" >&5
7976         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7977           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7978         _lt_result=$?
7979         # If there is a non-empty error log, and "single_module"
7980         # appears in it, assume the flag caused a linker warning
7981         if test -s conftest.err && $GREP single_module conftest.err; then
7982           cat conftest.err >&5
7983         # Otherwise, if the output was created with a 0 exit code from
7984         # the compiler, it worked.
7985         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7986           lt_cv_apple_cc_single_mod=yes
7987         else
7988           cat conftest.err >&5
7989         fi
7990         rm -rf libconftest.dylib*
7991         rm -f conftest.*
7992       fi
7993 fi
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7995 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7996
7997     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7998 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7999 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8000   $as_echo_n "(cached) " >&6
8001 else
8002   lt_cv_ld_exported_symbols_list=no
8003       save_LDFLAGS=$LDFLAGS
8004       echo "_main" > conftest.sym
8005       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8006       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h.  */
8008
8009 int
8010 main ()
8011 {
8012
8013   ;
8014   return 0;
8015 }
8016 _ACEOF
8017 if ac_fn_c_try_link "$LINENO"; then :
8018   lt_cv_ld_exported_symbols_list=yes
8019 else
8020   lt_cv_ld_exported_symbols_list=no
8021 fi
8022 rm -f core conftest.err conftest.$ac_objext \
8023     conftest$ac_exeext conftest.$ac_ext
8024         LDFLAGS="$save_LDFLAGS"
8025
8026 fi
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8028 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8029
8030     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8031 $as_echo_n "checking for -force_load linker flag... " >&6; }
8032 if ${lt_cv_ld_force_load+:} false; then :
8033   $as_echo_n "(cached) " >&6
8034 else
8035   lt_cv_ld_force_load=no
8036       cat > conftest.c << _LT_EOF
8037 int forced_loaded() { return 2;}
8038 _LT_EOF
8039       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8040       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8041       echo "$AR cru libconftest.a conftest.o" >&5
8042       $AR cru libconftest.a conftest.o 2>&5
8043       echo "$RANLIB libconftest.a" >&5
8044       $RANLIB libconftest.a 2>&5
8045       cat > conftest.c << _LT_EOF
8046 int main() { return 0;}
8047 _LT_EOF
8048       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8049       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8050       _lt_result=$?
8051       if test -s conftest.err && $GREP force_load conftest.err; then
8052         cat conftest.err >&5
8053       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8054         lt_cv_ld_force_load=yes
8055       else
8056         cat conftest.err >&5
8057       fi
8058         rm -f conftest.err libconftest.a conftest conftest.c
8059         rm -rf conftest.dSYM
8060
8061 fi
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8063 $as_echo "$lt_cv_ld_force_load" >&6; }
8064     case $host_os in
8065     rhapsody* | darwin1.[012])
8066       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8067     darwin1.*)
8068       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8069     darwin*) # darwin 5.x on
8070       # if running on 10.5 or later, the deployment target defaults
8071       # to the OS version, if on x86, and 10.4, the deployment
8072       # target defaults to 10.4. Don't you love it?
8073       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8074         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8075           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8076         10.[012]*)
8077           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8078         10.*)
8079           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8080       esac
8081     ;;
8082   esac
8083     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8084       _lt_dar_single_mod='$single_module'
8085     fi
8086     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8087       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8088     else
8089       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8090     fi
8091     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8092       _lt_dsymutil='~$DSYMUTIL $lib || :'
8093     else
8094       _lt_dsymutil=
8095     fi
8096     ;;
8097   esac
8098
8099 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8100 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8101                   inttypes.h stdint.h unistd.h
8102 do :
8103   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8104 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8105 "
8106 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8107   cat >>confdefs.h <<_ACEOF
8108 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8109 _ACEOF
8110
8111 fi
8112
8113 done
8114
8115
8116 for ac_header in dlfcn.h
8117 do :
8118   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8119 "
8120 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8121   cat >>confdefs.h <<_ACEOF
8122 #define HAVE_DLFCN_H 1
8123 _ACEOF
8124
8125 fi
8126
8127 done
8128
8129
8130
8131
8132
8133 # Set options
8134
8135
8136
8137         enable_dlopen=no
8138
8139
8140   enable_win32_dll=no
8141
8142
8143             # Check whether --enable-shared was given.
8144 if test "${enable_shared+set}" = set; then :
8145   enableval=$enable_shared; p=${PACKAGE-default}
8146     case $enableval in
8147     yes) enable_shared=yes ;;
8148     no) enable_shared=no ;;
8149     *)
8150       enable_shared=no
8151       # Look at the argument we got.  We use all the common list separators.
8152       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8153       for pkg in $enableval; do
8154         IFS="$lt_save_ifs"
8155         if test "X$pkg" = "X$p"; then
8156           enable_shared=yes
8157         fi
8158       done
8159       IFS="$lt_save_ifs"
8160       ;;
8161     esac
8162 else
8163   enable_shared=yes
8164 fi
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174   # Check whether --enable-static was given.
8175 if test "${enable_static+set}" = set; then :
8176   enableval=$enable_static; p=${PACKAGE-default}
8177     case $enableval in
8178     yes) enable_static=yes ;;
8179     no) enable_static=no ;;
8180     *)
8181      enable_static=no
8182       # Look at the argument we got.  We use all the common list separators.
8183       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8184       for pkg in $enableval; do
8185         IFS="$lt_save_ifs"
8186         if test "X$pkg" = "X$p"; then
8187           enable_static=yes
8188         fi
8189       done
8190       IFS="$lt_save_ifs"
8191       ;;
8192     esac
8193 else
8194   enable_static=yes
8195 fi
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206 # Check whether --with-pic was given.
8207 if test "${with_pic+set}" = set; then :
8208   withval=$with_pic; lt_p=${PACKAGE-default}
8209     case $withval in
8210     yes|no) pic_mode=$withval ;;
8211     *)
8212       pic_mode=default
8213       # Look at the argument we got.  We use all the common list separators.
8214       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8215       for lt_pkg in $withval; do
8216         IFS="$lt_save_ifs"
8217         if test "X$lt_pkg" = "X$lt_p"; then
8218           pic_mode=yes
8219         fi
8220       done
8221       IFS="$lt_save_ifs"
8222       ;;
8223     esac
8224 else
8225   pic_mode=default
8226 fi
8227
8228
8229 test -z "$pic_mode" && pic_mode=default
8230
8231
8232
8233
8234
8235
8236
8237   # Check whether --enable-fast-install was given.
8238 if test "${enable_fast_install+set}" = set; then :
8239   enableval=$enable_fast_install; p=${PACKAGE-default}
8240     case $enableval in
8241     yes) enable_fast_install=yes ;;
8242     no) enable_fast_install=no ;;
8243     *)
8244       enable_fast_install=no
8245       # Look at the argument we got.  We use all the common list separators.
8246       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8247       for pkg in $enableval; do
8248         IFS="$lt_save_ifs"
8249         if test "X$pkg" = "X$p"; then
8250           enable_fast_install=yes
8251         fi
8252       done
8253       IFS="$lt_save_ifs"
8254       ;;
8255     esac
8256 else
8257   enable_fast_install=yes
8258 fi
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270 # This can be used to rebuild libtool when needed
8271 LIBTOOL_DEPS="$ltmain"
8272
8273 # Always use our own libtool.
8274 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305 test -z "$LN_S" && LN_S="ln -s"
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320 if test -n "${ZSH_VERSION+set}" ; then
8321    setopt NO_GLOB_SUBST
8322 fi
8323
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8325 $as_echo_n "checking for objdir... " >&6; }
8326 if ${lt_cv_objdir+:} false; then :
8327   $as_echo_n "(cached) " >&6
8328 else
8329   rm -f .libs 2>/dev/null
8330 mkdir .libs 2>/dev/null
8331 if test -d .libs; then
8332   lt_cv_objdir=.libs
8333 else
8334   # MS-DOS does not allow filenames that begin with a dot.
8335   lt_cv_objdir=_libs
8336 fi
8337 rmdir .libs 2>/dev/null
8338 fi
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8340 $as_echo "$lt_cv_objdir" >&6; }
8341 objdir=$lt_cv_objdir
8342
8343
8344
8345
8346
8347 cat >>confdefs.h <<_ACEOF
8348 #define LT_OBJDIR "$lt_cv_objdir/"
8349 _ACEOF
8350
8351
8352
8353
8354 case $host_os in
8355 aix3*)
8356   # AIX sometimes has problems with the GCC collect2 program.  For some
8357   # reason, if we set the COLLECT_NAMES environment variable, the problems
8358   # vanish in a puff of smoke.
8359   if test "X${COLLECT_NAMES+set}" != Xset; then
8360     COLLECT_NAMES=
8361     export COLLECT_NAMES
8362   fi
8363   ;;
8364 esac
8365
8366 # Global variables:
8367 ofile=libtool
8368 can_build_shared=yes
8369
8370 # All known linkers require a `.a' archive for static linking (except MSVC,
8371 # which needs '.lib').
8372 libext=a
8373
8374 with_gnu_ld="$lt_cv_prog_gnu_ld"
8375
8376 old_CC="$CC"
8377 old_CFLAGS="$CFLAGS"
8378
8379 # Set sane defaults for various variables
8380 test -z "$CC" && CC=cc
8381 test -z "$LTCC" && LTCC=$CC
8382 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8383 test -z "$LD" && LD=ld
8384 test -z "$ac_objext" && ac_objext=o
8385
8386 for cc_temp in $compiler""; do
8387   case $cc_temp in
8388     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8389     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8390     \-*) ;;
8391     *) break;;
8392   esac
8393 done
8394 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8395
8396
8397 # Only perform the check for file, if the check method requires it
8398 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8399 case $deplibs_check_method in
8400 file_magic*)
8401   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8402     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8403 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8404 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8405   $as_echo_n "(cached) " >&6
8406 else
8407   case $MAGIC_CMD in
8408 [\\/*] |  ?:[\\/]*)
8409   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8410   ;;
8411 *)
8412   lt_save_MAGIC_CMD="$MAGIC_CMD"
8413   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8414   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8415   for ac_dir in $ac_dummy; do
8416     IFS="$lt_save_ifs"
8417     test -z "$ac_dir" && ac_dir=.
8418     if test -f $ac_dir/${ac_tool_prefix}file; then
8419       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8420       if test -n "$file_magic_test_file"; then
8421         case $deplibs_check_method in
8422         "file_magic "*)
8423           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8424           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8425           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8426             $EGREP "$file_magic_regex" > /dev/null; then
8427             :
8428           else
8429             cat <<_LT_EOF 1>&2
8430
8431 *** Warning: the command libtool uses to detect shared libraries,
8432 *** $file_magic_cmd, produces output that libtool cannot recognize.
8433 *** The result is that libtool may fail to recognize shared libraries
8434 *** as such.  This will affect the creation of libtool libraries that
8435 *** depend on shared libraries, but programs linked with such libtool
8436 *** libraries will work regardless of this problem.  Nevertheless, you
8437 *** may want to report the problem to your system manager and/or to
8438 *** bug-libtool@gnu.org
8439
8440 _LT_EOF
8441           fi ;;
8442         esac
8443       fi
8444       break
8445     fi
8446   done
8447   IFS="$lt_save_ifs"
8448   MAGIC_CMD="$lt_save_MAGIC_CMD"
8449   ;;
8450 esac
8451 fi
8452
8453 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8454 if test -n "$MAGIC_CMD"; then
8455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8456 $as_echo "$MAGIC_CMD" >&6; }
8457 else
8458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459 $as_echo "no" >&6; }
8460 fi
8461
8462
8463
8464
8465
8466 if test -z "$lt_cv_path_MAGIC_CMD"; then
8467   if test -n "$ac_tool_prefix"; then
8468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8469 $as_echo_n "checking for file... " >&6; }
8470 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8471   $as_echo_n "(cached) " >&6
8472 else
8473   case $MAGIC_CMD in
8474 [\\/*] |  ?:[\\/]*)
8475   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8476   ;;
8477 *)
8478   lt_save_MAGIC_CMD="$MAGIC_CMD"
8479   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8480   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8481   for ac_dir in $ac_dummy; do
8482     IFS="$lt_save_ifs"
8483     test -z "$ac_dir" && ac_dir=.
8484     if test -f $ac_dir/file; then
8485       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8486       if test -n "$file_magic_test_file"; then
8487         case $deplibs_check_method in
8488         "file_magic "*)
8489           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8490           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8491           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8492             $EGREP "$file_magic_regex" > /dev/null; then
8493             :
8494           else
8495             cat <<_LT_EOF 1>&2
8496
8497 *** Warning: the command libtool uses to detect shared libraries,
8498 *** $file_magic_cmd, produces output that libtool cannot recognize.
8499 *** The result is that libtool may fail to recognize shared libraries
8500 *** as such.  This will affect the creation of libtool libraries that
8501 *** depend on shared libraries, but programs linked with such libtool
8502 *** libraries will work regardless of this problem.  Nevertheless, you
8503 *** may want to report the problem to your system manager and/or to
8504 *** bug-libtool@gnu.org
8505
8506 _LT_EOF
8507           fi ;;
8508         esac
8509       fi
8510       break
8511     fi
8512   done
8513   IFS="$lt_save_ifs"
8514   MAGIC_CMD="$lt_save_MAGIC_CMD"
8515   ;;
8516 esac
8517 fi
8518
8519 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8520 if test -n "$MAGIC_CMD"; then
8521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8522 $as_echo "$MAGIC_CMD" >&6; }
8523 else
8524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8525 $as_echo "no" >&6; }
8526 fi
8527
8528
8529   else
8530     MAGIC_CMD=:
8531   fi
8532 fi
8533
8534   fi
8535   ;;
8536 esac
8537
8538 # Use C for the default configuration in the libtool script
8539
8540 lt_save_CC="$CC"
8541 ac_ext=c
8542 ac_cpp='$CPP $CPPFLAGS'
8543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8546
8547
8548 # Source file extension for C test sources.
8549 ac_ext=c
8550
8551 # Object file extension for compiled C test sources.
8552 objext=o
8553 objext=$objext
8554
8555 # Code to be used in simple compile tests
8556 lt_simple_compile_test_code="int some_variable = 0;"
8557
8558 # Code to be used in simple link tests
8559 lt_simple_link_test_code='int main(){return(0);}'
8560
8561
8562
8563
8564
8565
8566
8567 # If no C compiler was specified, use CC.
8568 LTCC=${LTCC-"$CC"}
8569
8570 # If no C compiler flags were specified, use CFLAGS.
8571 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8572
8573 # Allow CC to be a program name with arguments.
8574 compiler=$CC
8575
8576 # Save the default compiler, since it gets overwritten when the other
8577 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8578 compiler_DEFAULT=$CC
8579
8580 # save warnings/boilerplate of simple test code
8581 ac_outfile=conftest.$ac_objext
8582 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8583 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8584 _lt_compiler_boilerplate=`cat conftest.err`
8585 $RM conftest*
8586
8587 ac_outfile=conftest.$ac_objext
8588 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8589 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8590 _lt_linker_boilerplate=`cat conftest.err`
8591 $RM -r conftest*
8592
8593
8594 ## CAVEAT EMPTOR:
8595 ## There is no encapsulation within the following macros, do not change
8596 ## the running order or otherwise move them around unless you know exactly
8597 ## what you are doing...
8598 if test -n "$compiler"; then
8599
8600 lt_prog_compiler_no_builtin_flag=
8601
8602 if test "$GCC" = yes; then
8603   case $cc_basename in
8604   nvcc*)
8605     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8606   *)
8607     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8608   esac
8609
8610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8611 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8612 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8613   $as_echo_n "(cached) " >&6
8614 else
8615   lt_cv_prog_compiler_rtti_exceptions=no
8616    ac_outfile=conftest.$ac_objext
8617    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8618    lt_compiler_flag="-fno-rtti -fno-exceptions"
8619    # Insert the option either (1) after the last *FLAGS variable, or
8620    # (2) before a word containing "conftest.", or (3) at the end.
8621    # Note that $ac_compile itself does not contain backslashes and begins
8622    # with a dollar sign (not a hyphen), so the echo should work correctly.
8623    # The option is referenced via a variable to avoid confusing sed.
8624    lt_compile=`echo "$ac_compile" | $SED \
8625    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8626    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8627    -e 's:$: $lt_compiler_flag:'`
8628    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8629    (eval "$lt_compile" 2>conftest.err)
8630    ac_status=$?
8631    cat conftest.err >&5
8632    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633    if (exit $ac_status) && test -s "$ac_outfile"; then
8634      # The compiler can only warn and ignore the option if not recognized
8635      # So say no if there are warnings other than the usual output.
8636      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8637      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8638      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8639        lt_cv_prog_compiler_rtti_exceptions=yes
8640      fi
8641    fi
8642    $RM conftest*
8643
8644 fi
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8646 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8647
8648 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8649     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8650 else
8651     :
8652 fi
8653
8654 fi
8655
8656
8657
8658
8659
8660
8661   lt_prog_compiler_wl=
8662 lt_prog_compiler_pic=
8663 lt_prog_compiler_static=
8664
8665
8666   if test "$GCC" = yes; then
8667     lt_prog_compiler_wl='-Wl,'
8668     lt_prog_compiler_static='-static'
8669
8670     case $host_os in
8671       aix*)
8672       # All AIX code is PIC.
8673       if test "$host_cpu" = ia64; then
8674         # AIX 5 now supports IA64 processor
8675         lt_prog_compiler_static='-Bstatic'
8676       fi
8677       ;;
8678
8679     amigaos*)
8680       case $host_cpu in
8681       powerpc)
8682             # see comment about AmigaOS4 .so support
8683             lt_prog_compiler_pic='-fPIC'
8684         ;;
8685       m68k)
8686             # FIXME: we need at least 68020 code to build shared libraries, but
8687             # adding the `-m68020' flag to GCC prevents building anything better,
8688             # like `-m68040'.
8689             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8690         ;;
8691       esac
8692       ;;
8693
8694     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8695       # PIC is the default for these OSes.
8696       ;;
8697
8698     mingw* | cygwin* | pw32* | os2* | cegcc*)
8699       # This hack is so that the source file can tell whether it is being
8700       # built for inclusion in a dll (and should export symbols for example).
8701       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8702       # (--disable-auto-import) libraries
8703       lt_prog_compiler_pic='-DDLL_EXPORT'
8704       ;;
8705
8706     darwin* | rhapsody*)
8707       # PIC is the default on this platform
8708       # Common symbols not allowed in MH_DYLIB files
8709       lt_prog_compiler_pic='-fno-common'
8710       ;;
8711
8712     haiku*)
8713       # PIC is the default for Haiku.
8714       # The "-static" flag exists, but is broken.
8715       lt_prog_compiler_static=
8716       ;;
8717
8718     hpux*)
8719       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8720       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8721       # sets the default TLS model and affects inlining.
8722       case $host_cpu in
8723       hppa*64*)
8724         # +Z the default
8725         ;;
8726       *)
8727         lt_prog_compiler_pic='-fPIC'
8728         ;;
8729       esac
8730       ;;
8731
8732     interix[3-9]*)
8733       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8734       # Instead, we relocate shared libraries at runtime.
8735       ;;
8736
8737     msdosdjgpp*)
8738       # Just because we use GCC doesn't mean we suddenly get shared libraries
8739       # on systems that don't support them.
8740       lt_prog_compiler_can_build_shared=no
8741       enable_shared=no
8742       ;;
8743
8744     *nto* | *qnx*)
8745       # QNX uses GNU C++, but need to define -shared option too, otherwise
8746       # it will coredump.
8747       lt_prog_compiler_pic='-fPIC -shared'
8748       ;;
8749
8750     sysv4*MP*)
8751       if test -d /usr/nec; then
8752         lt_prog_compiler_pic=-Kconform_pic
8753       fi
8754       ;;
8755
8756     *)
8757       lt_prog_compiler_pic='-fPIC'
8758       ;;
8759     esac
8760
8761     case $cc_basename in
8762     nvcc*) # Cuda Compiler Driver 2.2
8763       lt_prog_compiler_wl='-Xlinker '
8764       if test -n "$lt_prog_compiler_pic"; then
8765         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8766       fi
8767       ;;
8768     esac
8769   else
8770     # PORTME Check for flag to pass linker flags through the system compiler.
8771     case $host_os in
8772     aix*)
8773       lt_prog_compiler_wl='-Wl,'
8774       if test "$host_cpu" = ia64; then
8775         # AIX 5 now supports IA64 processor
8776         lt_prog_compiler_static='-Bstatic'
8777       else
8778         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8779       fi
8780       ;;
8781
8782     mingw* | cygwin* | pw32* | os2* | cegcc*)
8783       # This hack is so that the source file can tell whether it is being
8784       # built for inclusion in a dll (and should export symbols for example).
8785       lt_prog_compiler_pic='-DDLL_EXPORT'
8786       ;;
8787
8788     hpux9* | hpux10* | hpux11*)
8789       lt_prog_compiler_wl='-Wl,'
8790       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8791       # not for PA HP-UX.
8792       case $host_cpu in
8793       hppa*64*|ia64*)
8794         # +Z the default
8795         ;;
8796       *)
8797         lt_prog_compiler_pic='+Z'
8798         ;;
8799       esac
8800       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8801       lt_prog_compiler_static='${wl}-a ${wl}archive'
8802       ;;
8803
8804     irix5* | irix6* | nonstopux*)
8805       lt_prog_compiler_wl='-Wl,'
8806       # PIC (with -KPIC) is the default.
8807       lt_prog_compiler_static='-non_shared'
8808       ;;
8809
8810     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8811       case $cc_basename in
8812       # old Intel for x86_64 which still supported -KPIC.
8813       ecc*)
8814         lt_prog_compiler_wl='-Wl,'
8815         lt_prog_compiler_pic='-KPIC'
8816         lt_prog_compiler_static='-static'
8817         ;;
8818       # icc used to be incompatible with GCC.
8819       # ICC 10 doesn't accept -KPIC any more.
8820       icc* | ifort*)
8821         lt_prog_compiler_wl='-Wl,'
8822         lt_prog_compiler_pic='-fPIC'
8823         lt_prog_compiler_static='-static'
8824         ;;
8825       # Lahey Fortran 8.1.
8826       lf95*)
8827         lt_prog_compiler_wl='-Wl,'
8828         lt_prog_compiler_pic='--shared'
8829         lt_prog_compiler_static='--static'
8830         ;;
8831       nagfor*)
8832         # NAG Fortran compiler
8833         lt_prog_compiler_wl='-Wl,-Wl,,'
8834         lt_prog_compiler_pic='-PIC'
8835         lt_prog_compiler_static='-Bstatic'
8836         ;;
8837       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8838         # Portland Group compilers (*not* the Pentium gcc compiler,
8839         # which looks to be a dead project)
8840         lt_prog_compiler_wl='-Wl,'
8841         lt_prog_compiler_pic='-fpic'
8842         lt_prog_compiler_static='-Bstatic'
8843         ;;
8844       ccc*)
8845         lt_prog_compiler_wl='-Wl,'
8846         # All Alpha code is PIC.
8847         lt_prog_compiler_static='-non_shared'
8848         ;;
8849       xl* | bgxl* | bgf* | mpixl*)
8850         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8851         lt_prog_compiler_wl='-Wl,'
8852         lt_prog_compiler_pic='-qpic'
8853         lt_prog_compiler_static='-qstaticlink'
8854         ;;
8855       *)
8856         case `$CC -V 2>&1 | sed 5q` in
8857         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8858           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8859           lt_prog_compiler_pic='-KPIC'
8860           lt_prog_compiler_static='-Bstatic'
8861           lt_prog_compiler_wl=''
8862           ;;
8863         *Sun\ F* | *Sun*Fortran*)
8864           lt_prog_compiler_pic='-KPIC'
8865           lt_prog_compiler_static='-Bstatic'
8866           lt_prog_compiler_wl='-Qoption ld '
8867           ;;
8868         *Sun\ C*)
8869           # Sun C 5.9
8870           lt_prog_compiler_pic='-KPIC'
8871           lt_prog_compiler_static='-Bstatic'
8872           lt_prog_compiler_wl='-Wl,'
8873           ;;
8874         *Intel*\ [CF]*Compiler*)
8875           lt_prog_compiler_wl='-Wl,'
8876           lt_prog_compiler_pic='-fPIC'
8877           lt_prog_compiler_static='-static'
8878           ;;
8879         *Portland\ Group*)
8880           lt_prog_compiler_wl='-Wl,'
8881           lt_prog_compiler_pic='-fpic'
8882           lt_prog_compiler_static='-Bstatic'
8883           ;;
8884         esac
8885         ;;
8886       esac
8887       ;;
8888
8889     newsos6)
8890       lt_prog_compiler_pic='-KPIC'
8891       lt_prog_compiler_static='-Bstatic'
8892       ;;
8893
8894     *nto* | *qnx*)
8895       # QNX uses GNU C++, but need to define -shared option too, otherwise
8896       # it will coredump.
8897       lt_prog_compiler_pic='-fPIC -shared'
8898       ;;
8899
8900     osf3* | osf4* | osf5*)
8901       lt_prog_compiler_wl='-Wl,'
8902       # All OSF/1 code is PIC.
8903       lt_prog_compiler_static='-non_shared'
8904       ;;
8905
8906     rdos*)
8907       lt_prog_compiler_static='-non_shared'
8908       ;;
8909
8910     solaris*)
8911       lt_prog_compiler_pic='-KPIC'
8912       lt_prog_compiler_static='-Bstatic'
8913       case $cc_basename in
8914       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8915         lt_prog_compiler_wl='-Qoption ld ';;
8916       *)
8917         lt_prog_compiler_wl='-Wl,';;
8918       esac
8919       ;;
8920
8921     sunos4*)
8922       lt_prog_compiler_wl='-Qoption ld '
8923       lt_prog_compiler_pic='-PIC'
8924       lt_prog_compiler_static='-Bstatic'
8925       ;;
8926
8927     sysv4 | sysv4.2uw2* | sysv4.3*)
8928       lt_prog_compiler_wl='-Wl,'
8929       lt_prog_compiler_pic='-KPIC'
8930       lt_prog_compiler_static='-Bstatic'
8931       ;;
8932
8933     sysv4*MP*)
8934       if test -d /usr/nec ;then
8935         lt_prog_compiler_pic='-Kconform_pic'
8936         lt_prog_compiler_static='-Bstatic'
8937       fi
8938       ;;
8939
8940     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8941       lt_prog_compiler_wl='-Wl,'
8942       lt_prog_compiler_pic='-KPIC'
8943       lt_prog_compiler_static='-Bstatic'
8944       ;;
8945
8946     unicos*)
8947       lt_prog_compiler_wl='-Wl,'
8948       lt_prog_compiler_can_build_shared=no
8949       ;;
8950
8951     uts4*)
8952       lt_prog_compiler_pic='-pic'
8953       lt_prog_compiler_static='-Bstatic'
8954       ;;
8955
8956     *)
8957       lt_prog_compiler_can_build_shared=no
8958       ;;
8959     esac
8960   fi
8961
8962 case $host_os in
8963   # For platforms which do not support PIC, -DPIC is meaningless:
8964   *djgpp*)
8965     lt_prog_compiler_pic=
8966     ;;
8967   *)
8968     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8969     ;;
8970 esac
8971
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8973 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8974 if ${lt_cv_prog_compiler_pic+:} false; then :
8975   $as_echo_n "(cached) " >&6
8976 else
8977   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8978 fi
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8980 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8981 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8982
8983 #
8984 # Check to make sure the PIC flag actually works.
8985 #
8986 if test -n "$lt_prog_compiler_pic"; then
8987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8988 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8989 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8990   $as_echo_n "(cached) " >&6
8991 else
8992   lt_cv_prog_compiler_pic_works=no
8993    ac_outfile=conftest.$ac_objext
8994    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8995    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8996    # Insert the option either (1) after the last *FLAGS variable, or
8997    # (2) before a word containing "conftest.", or (3) at the end.
8998    # Note that $ac_compile itself does not contain backslashes and begins
8999    # with a dollar sign (not a hyphen), so the echo should work correctly.
9000    # The option is referenced via a variable to avoid confusing sed.
9001    lt_compile=`echo "$ac_compile" | $SED \
9002    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9003    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9004    -e 's:$: $lt_compiler_flag:'`
9005    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9006    (eval "$lt_compile" 2>conftest.err)
9007    ac_status=$?
9008    cat conftest.err >&5
9009    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010    if (exit $ac_status) && test -s "$ac_outfile"; then
9011      # The compiler can only warn and ignore the option if not recognized
9012      # So say no if there are warnings other than the usual output.
9013      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9014      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9015      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9016        lt_cv_prog_compiler_pic_works=yes
9017      fi
9018    fi
9019    $RM conftest*
9020
9021 fi
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9023 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9024
9025 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9026     case $lt_prog_compiler_pic in
9027      "" | " "*) ;;
9028      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9029      esac
9030 else
9031     lt_prog_compiler_pic=
9032      lt_prog_compiler_can_build_shared=no
9033 fi
9034
9035 fi
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047 #
9048 # Check to make sure the static flag actually works.
9049 #
9050 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9052 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9053 if ${lt_cv_prog_compiler_static_works+:} false; then :
9054   $as_echo_n "(cached) " >&6
9055 else
9056   lt_cv_prog_compiler_static_works=no
9057    save_LDFLAGS="$LDFLAGS"
9058    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9059    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9060    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9061      # The linker can only warn and ignore the option if not recognized
9062      # So say no if there are warnings
9063      if test -s conftest.err; then
9064        # Append any errors to the config.log.
9065        cat conftest.err 1>&5
9066        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9067        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9068        if diff conftest.exp conftest.er2 >/dev/null; then
9069          lt_cv_prog_compiler_static_works=yes
9070        fi
9071      else
9072        lt_cv_prog_compiler_static_works=yes
9073      fi
9074    fi
9075    $RM -r conftest*
9076    LDFLAGS="$save_LDFLAGS"
9077
9078 fi
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9080 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9081
9082 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9083     :
9084 else
9085     lt_prog_compiler_static=
9086 fi
9087
9088
9089
9090
9091
9092
9093
9094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9095 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9096 if ${lt_cv_prog_compiler_c_o+:} false; then :
9097   $as_echo_n "(cached) " >&6
9098 else
9099   lt_cv_prog_compiler_c_o=no
9100    $RM -r conftest 2>/dev/null
9101    mkdir conftest
9102    cd conftest
9103    mkdir out
9104    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9105
9106    lt_compiler_flag="-o out/conftest2.$ac_objext"
9107    # Insert the option either (1) after the last *FLAGS variable, or
9108    # (2) before a word containing "conftest.", or (3) at the end.
9109    # Note that $ac_compile itself does not contain backslashes and begins
9110    # with a dollar sign (not a hyphen), so the echo should work correctly.
9111    lt_compile=`echo "$ac_compile" | $SED \
9112    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9113    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9114    -e 's:$: $lt_compiler_flag:'`
9115    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9116    (eval "$lt_compile" 2>out/conftest.err)
9117    ac_status=$?
9118    cat out/conftest.err >&5
9119    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9121    then
9122      # The compiler can only warn and ignore the option if not recognized
9123      # So say no if there are warnings
9124      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9125      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9126      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9127        lt_cv_prog_compiler_c_o=yes
9128      fi
9129    fi
9130    chmod u+w . 2>&5
9131    $RM conftest*
9132    # SGI C++ compiler will create directory out/ii_files/ for
9133    # template instantiation
9134    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9135    $RM out/* && rmdir out
9136    cd ..
9137    $RM -r conftest
9138    $RM conftest*
9139
9140 fi
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9142 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9143
9144
9145
9146
9147
9148
9149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9150 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9151 if ${lt_cv_prog_compiler_c_o+:} false; then :
9152   $as_echo_n "(cached) " >&6
9153 else
9154   lt_cv_prog_compiler_c_o=no
9155    $RM -r conftest 2>/dev/null
9156    mkdir conftest
9157    cd conftest
9158    mkdir out
9159    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9160
9161    lt_compiler_flag="-o out/conftest2.$ac_objext"
9162    # Insert the option either (1) after the last *FLAGS variable, or
9163    # (2) before a word containing "conftest.", or (3) at the end.
9164    # Note that $ac_compile itself does not contain backslashes and begins
9165    # with a dollar sign (not a hyphen), so the echo should work correctly.
9166    lt_compile=`echo "$ac_compile" | $SED \
9167    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9168    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9169    -e 's:$: $lt_compiler_flag:'`
9170    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9171    (eval "$lt_compile" 2>out/conftest.err)
9172    ac_status=$?
9173    cat out/conftest.err >&5
9174    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9176    then
9177      # The compiler can only warn and ignore the option if not recognized
9178      # So say no if there are warnings
9179      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9180      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9181      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9182        lt_cv_prog_compiler_c_o=yes
9183      fi
9184    fi
9185    chmod u+w . 2>&5
9186    $RM conftest*
9187    # SGI C++ compiler will create directory out/ii_files/ for
9188    # template instantiation
9189    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9190    $RM out/* && rmdir out
9191    cd ..
9192    $RM -r conftest
9193    $RM conftest*
9194
9195 fi
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9197 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9198
9199
9200
9201
9202 hard_links="nottested"
9203 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9204   # do not overwrite the value of need_locks provided by the user
9205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9206 $as_echo_n "checking if we can lock with hard links... " >&6; }
9207   hard_links=yes
9208   $RM conftest*
9209   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9210   touch conftest.a
9211   ln conftest.a conftest.b 2>&5 || hard_links=no
9212   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9214 $as_echo "$hard_links" >&6; }
9215   if test "$hard_links" = no; then
9216     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9217 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9218     need_locks=warn
9219   fi
9220 else
9221   need_locks=no
9222 fi
9223
9224
9225
9226
9227
9228
9229   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9230 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9231
9232   runpath_var=
9233   allow_undefined_flag=
9234   always_export_symbols=no
9235   archive_cmds=
9236   archive_expsym_cmds=
9237   compiler_needs_object=no
9238   enable_shared_with_static_runtimes=no
9239   export_dynamic_flag_spec=
9240   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9241   hardcode_automatic=no
9242   hardcode_direct=no
9243   hardcode_direct_absolute=no
9244   hardcode_libdir_flag_spec=
9245   hardcode_libdir_separator=
9246   hardcode_minus_L=no
9247   hardcode_shlibpath_var=unsupported
9248   inherit_rpath=no
9249   link_all_deplibs=unknown
9250   module_cmds=
9251   module_expsym_cmds=
9252   old_archive_from_new_cmds=
9253   old_archive_from_expsyms_cmds=
9254   thread_safe_flag_spec=
9255   whole_archive_flag_spec=
9256   # include_expsyms should be a list of space-separated symbols to be *always*
9257   # included in the symbol list
9258   include_expsyms=
9259   # exclude_expsyms can be an extended regexp of symbols to exclude
9260   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9261   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9262   # as well as any symbol that contains `d'.
9263   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9264   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9265   # platforms (ab)use it in PIC code, but their linkers get confused if
9266   # the symbol is explicitly referenced.  Since portable code cannot
9267   # rely on this symbol name, it's probably fine to never include it in
9268   # preloaded symbol tables.
9269   # Exclude shared library initialization/finalization symbols.
9270   extract_expsyms_cmds=
9271
9272   case $host_os in
9273   cygwin* | mingw* | pw32* | cegcc*)
9274     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9275     # When not using gcc, we currently assume that we are using
9276     # Microsoft Visual C++.
9277     if test "$GCC" != yes; then
9278       with_gnu_ld=no
9279     fi
9280     ;;
9281   interix*)
9282     # we just hope/assume this is gcc and not c89 (= MSVC++)
9283     with_gnu_ld=yes
9284     ;;
9285   openbsd*)
9286     with_gnu_ld=no
9287     ;;
9288   linux* | k*bsd*-gnu | gnu*)
9289     link_all_deplibs=no
9290     ;;
9291   esac
9292
9293   ld_shlibs=yes
9294
9295   # On some targets, GNU ld is compatible enough with the native linker
9296   # that we're better off using the native interface for both.
9297   lt_use_gnu_ld_interface=no
9298   if test "$with_gnu_ld" = yes; then
9299     case $host_os in
9300       aix*)
9301         # The AIX port of GNU ld has always aspired to compatibility
9302         # with the native linker.  However, as the warning in the GNU ld
9303         # block says, versions before 2.19.5* couldn't really create working
9304         # shared libraries, regardless of the interface used.
9305         case `$LD -v 2>&1` in
9306           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9307           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9308           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9309           *)
9310             lt_use_gnu_ld_interface=yes
9311             ;;
9312         esac
9313         ;;
9314       *)
9315         lt_use_gnu_ld_interface=yes
9316         ;;
9317     esac
9318   fi
9319
9320   if test "$lt_use_gnu_ld_interface" = yes; then
9321     # If archive_cmds runs LD, not CC, wlarc should be empty
9322     wlarc='${wl}'
9323
9324     # Set some defaults for GNU ld with shared library support. These
9325     # are reset later if shared libraries are not supported. Putting them
9326     # here allows them to be overridden if necessary.
9327     runpath_var=LD_RUN_PATH
9328     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9329     export_dynamic_flag_spec='${wl}--export-dynamic'
9330     # ancient GNU ld didn't support --whole-archive et. al.
9331     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9332       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9333     else
9334       whole_archive_flag_spec=
9335     fi
9336     supports_anon_versioning=no
9337     case `$LD -v 2>&1` in
9338       *GNU\ gold*) supports_anon_versioning=yes ;;
9339       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9340       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9341       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9342       *\ 2.11.*) ;; # other 2.11 versions
9343       *) supports_anon_versioning=yes ;;
9344     esac
9345
9346     # See if GNU ld supports shared libraries.
9347     case $host_os in
9348     aix[3-9]*)
9349       # On AIX/PPC, the GNU linker is very broken
9350       if test "$host_cpu" != ia64; then
9351         ld_shlibs=no
9352         cat <<_LT_EOF 1>&2
9353
9354 *** Warning: the GNU linker, at least up to release 2.19, is reported
9355 *** to be unable to reliably create shared libraries on AIX.
9356 *** Therefore, libtool is disabling shared libraries support.  If you
9357 *** really care for shared libraries, you may want to install binutils
9358 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9359 *** You will then need to restart the configuration process.
9360
9361 _LT_EOF
9362       fi
9363       ;;
9364
9365     amigaos*)
9366       case $host_cpu in
9367       powerpc)
9368             # see comment about AmigaOS4 .so support
9369             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9370             archive_expsym_cmds=''
9371         ;;
9372       m68k)
9373             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)'
9374             hardcode_libdir_flag_spec='-L$libdir'
9375             hardcode_minus_L=yes
9376         ;;
9377       esac
9378       ;;
9379
9380     beos*)
9381       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9382         allow_undefined_flag=unsupported
9383         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9384         # support --undefined.  This deserves some investigation.  FIXME
9385         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9386       else
9387         ld_shlibs=no
9388       fi
9389       ;;
9390
9391     cygwin* | mingw* | pw32* | cegcc*)
9392       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9393       # as there is no search path for DLLs.
9394       hardcode_libdir_flag_spec='-L$libdir'
9395       export_dynamic_flag_spec='${wl}--export-all-symbols'
9396       allow_undefined_flag=unsupported
9397       always_export_symbols=no
9398       enable_shared_with_static_runtimes=yes
9399       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'
9400       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9401
9402       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9403         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9404         # If the export-symbols file already is a .def file (1st line
9405         # is EXPORTS), use it as is; otherwise, prepend...
9406         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9407           cp $export_symbols $output_objdir/$soname.def;
9408         else
9409           echo EXPORTS > $output_objdir/$soname.def;
9410           cat $export_symbols >> $output_objdir/$soname.def;
9411         fi~
9412         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9413       else
9414         ld_shlibs=no
9415       fi
9416       ;;
9417
9418     haiku*)
9419       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9420       link_all_deplibs=yes
9421       ;;
9422
9423     interix[3-9]*)
9424       hardcode_direct=no
9425       hardcode_shlibpath_var=no
9426       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9427       export_dynamic_flag_spec='${wl}-E'
9428       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9429       # Instead, shared libraries are loaded at an image base (0x10000000 by
9430       # default) and relocated if they conflict, which is a slow very memory
9431       # consuming and fragmenting process.  To avoid this, we pick a random,
9432       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9433       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9434       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9435       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'
9436       ;;
9437
9438     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9439       tmp_diet=no
9440       if test "$host_os" = linux-dietlibc; then
9441         case $cc_basename in
9442           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9443         esac
9444       fi
9445       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9446          && test "$tmp_diet" = no
9447       then
9448         tmp_addflag=' $pic_flag'
9449         tmp_sharedflag='-shared'
9450         case $cc_basename,$host_cpu in
9451         pgcc*)                          # Portland Group C compiler
9452           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'
9453           tmp_addflag=' $pic_flag'
9454           ;;
9455         pgf77* | pgf90* | pgf95* | pgfortran*)
9456                                         # Portland Group f77 and f90 compilers
9457           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'
9458           tmp_addflag=' $pic_flag -Mnomain' ;;
9459         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9460           tmp_addflag=' -i_dynamic' ;;
9461         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9462           tmp_addflag=' -i_dynamic -nofor_main' ;;
9463         ifc* | ifort*)                  # Intel Fortran compiler
9464           tmp_addflag=' -nofor_main' ;;
9465         lf95*)                          # Lahey Fortran 8.1
9466           whole_archive_flag_spec=
9467           tmp_sharedflag='--shared' ;;
9468         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9469           tmp_sharedflag='-qmkshrobj'
9470           tmp_addflag= ;;
9471         nvcc*)  # Cuda Compiler Driver 2.2
9472           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'
9473           compiler_needs_object=yes
9474           ;;
9475         esac
9476         case `$CC -V 2>&1 | sed 5q` in
9477         *Sun\ C*)                       # Sun C 5.9
9478           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'
9479           compiler_needs_object=yes
9480           tmp_sharedflag='-G' ;;
9481         *Sun\ F*)                       # Sun Fortran 8.3
9482           tmp_sharedflag='-G' ;;
9483         esac
9484         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9485
9486         if test "x$supports_anon_versioning" = xyes; then
9487           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9488             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9489             echo "local: *; };" >> $output_objdir/$libname.ver~
9490             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9491         fi
9492
9493         case $cc_basename in
9494         xlf* | bgf* | bgxlf* | mpixlf*)
9495           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9496           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9497           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9498           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9499           if test "x$supports_anon_versioning" = xyes; then
9500             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9501               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9502               echo "local: *; };" >> $output_objdir/$libname.ver~
9503               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9504           fi
9505           ;;
9506         esac
9507       else
9508         ld_shlibs=no
9509       fi
9510       ;;
9511
9512     netbsd* | netbsdelf*-gnu)
9513       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9514         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9515         wlarc=
9516       else
9517         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9518         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9519       fi
9520       ;;
9521
9522     solaris*)
9523       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9524         ld_shlibs=no
9525         cat <<_LT_EOF 1>&2
9526
9527 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9528 *** create shared libraries on Solaris systems.  Therefore, libtool
9529 *** is disabling shared libraries support.  We urge you to upgrade GNU
9530 *** binutils to release 2.9.1 or newer.  Another option is to modify
9531 *** your PATH or compiler configuration so that the native linker is
9532 *** used, and then restart.
9533
9534 _LT_EOF
9535       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9536         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9537         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9538       else
9539         ld_shlibs=no
9540       fi
9541       ;;
9542
9543     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9544       case `$LD -v 2>&1` in
9545         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9546         ld_shlibs=no
9547         cat <<_LT_EOF 1>&2
9548
9549 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9550 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9551 *** is disabling shared libraries support.  We urge you to upgrade GNU
9552 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9553 *** your PATH or compiler configuration so that the native linker is
9554 *** used, and then restart.
9555
9556 _LT_EOF
9557         ;;
9558         *)
9559           # For security reasons, it is highly recommended that you always
9560           # use absolute paths for naming shared libraries, and exclude the
9561           # DT_RUNPATH tag from executables and libraries.  But doing so
9562           # requires that you compile everything twice, which is a pain.
9563           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9564             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9565             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9566             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9567           else
9568             ld_shlibs=no
9569           fi
9570         ;;
9571       esac
9572       ;;
9573
9574     sunos4*)
9575       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9576       wlarc=
9577       hardcode_direct=yes
9578       hardcode_shlibpath_var=no
9579       ;;
9580
9581     *)
9582       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9583         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9584         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9585       else
9586         ld_shlibs=no
9587       fi
9588       ;;
9589     esac
9590
9591     if test "$ld_shlibs" = no; then
9592       runpath_var=
9593       hardcode_libdir_flag_spec=
9594       export_dynamic_flag_spec=
9595       whole_archive_flag_spec=
9596     fi
9597   else
9598     # PORTME fill in a description of your system's linker (not GNU ld)
9599     case $host_os in
9600     aix3*)
9601       allow_undefined_flag=unsupported
9602       always_export_symbols=yes
9603       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'
9604       # Note: this linker hardcodes the directories in LIBPATH if there
9605       # are no directories specified by -L.
9606       hardcode_minus_L=yes
9607       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9608         # Neither direct hardcoding nor static linking is supported with a
9609         # broken collect2.
9610         hardcode_direct=unsupported
9611       fi
9612       ;;
9613
9614     aix[4-9]*)
9615       if test "$host_cpu" = ia64; then
9616         # On IA64, the linker does run time linking by default, so we don't
9617         # have to do anything special.
9618         aix_use_runtimelinking=no
9619         exp_sym_flag='-Bexport'
9620         no_entry_flag=""
9621       else
9622         # If we're using GNU nm, then we don't want the "-C" option.
9623         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9624         # Also, AIX nm treats weak defined symbols like other global
9625         # defined symbols, whereas GNU nm marks them as "W".
9626         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9627           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'
9628         else
9629           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'
9630         fi
9631         aix_use_runtimelinking=no
9632
9633         # Test if we are trying to use run time linking or normal
9634         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9635         # need to do runtime linking.
9636         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9637           for ld_flag in $LDFLAGS; do
9638           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9639             aix_use_runtimelinking=yes
9640             break
9641           fi
9642           done
9643           ;;
9644         esac
9645
9646         exp_sym_flag='-bexport'
9647         no_entry_flag='-bnoentry'
9648       fi
9649
9650       # When large executables or shared objects are built, AIX ld can
9651       # have problems creating the table of contents.  If linking a library
9652       # or program results in "error TOC overflow" add -mminimal-toc to
9653       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9654       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9655
9656       archive_cmds=''
9657       hardcode_direct=yes
9658       hardcode_direct_absolute=yes
9659       hardcode_libdir_separator=':'
9660       link_all_deplibs=yes
9661       file_list_spec='${wl}-f,'
9662
9663       if test "$GCC" = yes; then
9664         case $host_os in aix4.[012]|aix4.[012].*)
9665         # We only want to do this on AIX 4.2 and lower, the check
9666         # below for broken collect2 doesn't work under 4.3+
9667           collect2name=`${CC} -print-prog-name=collect2`
9668           if test -f "$collect2name" &&
9669            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9670           then
9671           # We have reworked collect2
9672           :
9673           else
9674           # We have old collect2
9675           hardcode_direct=unsupported
9676           # It fails to find uninstalled libraries when the uninstalled
9677           # path is not listed in the libpath.  Setting hardcode_minus_L
9678           # to unsupported forces relinking
9679           hardcode_minus_L=yes
9680           hardcode_libdir_flag_spec='-L$libdir'
9681           hardcode_libdir_separator=
9682           fi
9683           ;;
9684         esac
9685         shared_flag='-shared'
9686         if test "$aix_use_runtimelinking" = yes; then
9687           shared_flag="$shared_flag "'${wl}-G'
9688         fi
9689         link_all_deplibs=no
9690       else
9691         # not using gcc
9692         if test "$host_cpu" = ia64; then
9693         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9694         # chokes on -Wl,-G. The following line is correct:
9695           shared_flag='-G'
9696         else
9697           if test "$aix_use_runtimelinking" = yes; then
9698             shared_flag='${wl}-G'
9699           else
9700             shared_flag='${wl}-bM:SRE'
9701           fi
9702         fi
9703       fi
9704
9705       export_dynamic_flag_spec='${wl}-bexpall'
9706       # It seems that -bexpall does not export symbols beginning with
9707       # underscore (_), so it is better to generate a list of symbols to export.
9708       always_export_symbols=yes
9709       if test "$aix_use_runtimelinking" = yes; then
9710         # Warning - without using the other runtime loading flags (-brtl),
9711         # -berok will link without error, but may produce a broken library.
9712         allow_undefined_flag='-berok'
9713         # Determine the default libpath from the value encoded in an
9714         # empty executable.
9715         if test "${lt_cv_aix_libpath+set}" = set; then
9716   aix_libpath=$lt_cv_aix_libpath
9717 else
9718   if ${lt_cv_aix_libpath_+:} false; then :
9719   $as_echo_n "(cached) " >&6
9720 else
9721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9722 /* end confdefs.h.  */
9723
9724 int
9725 main ()
9726 {
9727
9728   ;
9729   return 0;
9730 }
9731 _ACEOF
9732 if ac_fn_c_try_link "$LINENO"; then :
9733
9734   lt_aix_libpath_sed='
9735       /Import File Strings/,/^$/ {
9736           /^0/ {
9737               s/^0  *\([^ ]*\) *$/\1/
9738               p
9739           }
9740       }'
9741   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9742   # Check for a 64-bit object if we didn't find anything.
9743   if test -z "$lt_cv_aix_libpath_"; then
9744     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9745   fi
9746 fi
9747 rm -f core conftest.err conftest.$ac_objext \
9748     conftest$ac_exeext conftest.$ac_ext
9749   if test -z "$lt_cv_aix_libpath_"; then
9750     lt_cv_aix_libpath_="/usr/lib:/lib"
9751   fi
9752
9753 fi
9754
9755   aix_libpath=$lt_cv_aix_libpath_
9756 fi
9757
9758         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9759         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"
9760       else
9761         if test "$host_cpu" = ia64; then
9762           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9763           allow_undefined_flag="-z nodefs"
9764           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"
9765         else
9766          # Determine the default libpath from the value encoded in an
9767          # empty executable.
9768          if test "${lt_cv_aix_libpath+set}" = set; then
9769   aix_libpath=$lt_cv_aix_libpath
9770 else
9771   if ${lt_cv_aix_libpath_+:} false; then :
9772   $as_echo_n "(cached) " >&6
9773 else
9774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h.  */
9776
9777 int
9778 main ()
9779 {
9780
9781   ;
9782   return 0;
9783 }
9784 _ACEOF
9785 if ac_fn_c_try_link "$LINENO"; then :
9786
9787   lt_aix_libpath_sed='
9788       /Import File Strings/,/^$/ {
9789           /^0/ {
9790               s/^0  *\([^ ]*\) *$/\1/
9791               p
9792           }
9793       }'
9794   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9795   # Check for a 64-bit object if we didn't find anything.
9796   if test -z "$lt_cv_aix_libpath_"; then
9797     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9798   fi
9799 fi
9800 rm -f core conftest.err conftest.$ac_objext \
9801     conftest$ac_exeext conftest.$ac_ext
9802   if test -z "$lt_cv_aix_libpath_"; then
9803     lt_cv_aix_libpath_="/usr/lib:/lib"
9804   fi
9805
9806 fi
9807
9808   aix_libpath=$lt_cv_aix_libpath_
9809 fi
9810
9811          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9812           # Warning - without using the other run time loading flags,
9813           # -berok will link without error, but may produce a broken library.
9814           no_undefined_flag=' ${wl}-bernotok'
9815           allow_undefined_flag=' ${wl}-berok'
9816           if test "$with_gnu_ld" = yes; then
9817             # We only use this code for GNU lds that support --whole-archive.
9818             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9819           else
9820             # Exported symbols can be pulled into shared objects from archives
9821             whole_archive_flag_spec='$convenience'
9822           fi
9823           archive_cmds_need_lc=yes
9824           # This is similar to how AIX traditionally builds its shared libraries.
9825           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'
9826         fi
9827       fi
9828       ;;
9829
9830     amigaos*)
9831       case $host_cpu in
9832       powerpc)
9833             # see comment about AmigaOS4 .so support
9834             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9835             archive_expsym_cmds=''
9836         ;;
9837       m68k)
9838             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)'
9839             hardcode_libdir_flag_spec='-L$libdir'
9840             hardcode_minus_L=yes
9841         ;;
9842       esac
9843       ;;
9844
9845     bsdi[45]*)
9846       export_dynamic_flag_spec=-rdynamic
9847       ;;
9848
9849     cygwin* | mingw* | pw32* | cegcc*)
9850       # When not using gcc, we currently assume that we are using
9851       # Microsoft Visual C++.
9852       # hardcode_libdir_flag_spec is actually meaningless, as there is
9853       # no search path for DLLs.
9854       case $cc_basename in
9855       cl*)
9856         # Native MSVC
9857         hardcode_libdir_flag_spec=' '
9858         allow_undefined_flag=unsupported
9859         always_export_symbols=yes
9860         file_list_spec='@'
9861         # Tell ltmain to make .lib files, not .a files.
9862         libext=lib
9863         # Tell ltmain to make .dll files, not .so files.
9864         shrext_cmds=".dll"
9865         # FIXME: Setting linknames here is a bad hack.
9866         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9867         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9868             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9869           else
9870             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9871           fi~
9872           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9873           linknames='
9874         # The linker will not automatically build a static lib if we build a DLL.
9875         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9876         enable_shared_with_static_runtimes=yes
9877         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9878         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9879         # Don't use ranlib
9880         old_postinstall_cmds='chmod 644 $oldlib'
9881         postlink_cmds='lt_outputfile="@OUTPUT@"~
9882           lt_tool_outputfile="@TOOL_OUTPUT@"~
9883           case $lt_outputfile in
9884             *.exe|*.EXE) ;;
9885             *)
9886               lt_outputfile="$lt_outputfile.exe"
9887               lt_tool_outputfile="$lt_tool_outputfile.exe"
9888               ;;
9889           esac~
9890           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9891             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9892             $RM "$lt_outputfile.manifest";
9893           fi'
9894         ;;
9895       *)
9896         # Assume MSVC wrapper
9897         hardcode_libdir_flag_spec=' '
9898         allow_undefined_flag=unsupported
9899         # Tell ltmain to make .lib files, not .a files.
9900         libext=lib
9901         # Tell ltmain to make .dll files, not .so files.
9902         shrext_cmds=".dll"
9903         # FIXME: Setting linknames here is a bad hack.
9904         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9905         # The linker will automatically build a .lib file if we build a DLL.
9906         old_archive_from_new_cmds='true'
9907         # FIXME: Should let the user specify the lib program.
9908         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9909         enable_shared_with_static_runtimes=yes
9910         ;;
9911       esac
9912       ;;
9913
9914     darwin* | rhapsody*)
9915
9916
9917   archive_cmds_need_lc=no
9918   hardcode_direct=no
9919   hardcode_automatic=yes
9920   hardcode_shlibpath_var=unsupported
9921   if test "$lt_cv_ld_force_load" = "yes"; then
9922     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\"`'
9923
9924   else
9925     whole_archive_flag_spec=''
9926   fi
9927   link_all_deplibs=yes
9928   allow_undefined_flag="$_lt_dar_allow_undefined"
9929   case $cc_basename in
9930      ifort*) _lt_dar_can_shared=yes ;;
9931      *) _lt_dar_can_shared=$GCC ;;
9932   esac
9933   if test "$_lt_dar_can_shared" = "yes"; then
9934     output_verbose_link_cmd=func_echo_all
9935     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9936     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9937     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}"
9938     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}"
9939
9940   else
9941   ld_shlibs=no
9942   fi
9943
9944       ;;
9945
9946     dgux*)
9947       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9948       hardcode_libdir_flag_spec='-L$libdir'
9949       hardcode_shlibpath_var=no
9950       ;;
9951
9952     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9953     # support.  Future versions do this automatically, but an explicit c++rt0.o
9954     # does not break anything, and helps significantly (at the cost of a little
9955     # extra space).
9956     freebsd2.2*)
9957       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9958       hardcode_libdir_flag_spec='-R$libdir'
9959       hardcode_direct=yes
9960       hardcode_shlibpath_var=no
9961       ;;
9962
9963     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9964     freebsd2.*)
9965       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9966       hardcode_direct=yes
9967       hardcode_minus_L=yes
9968       hardcode_shlibpath_var=no
9969       ;;
9970
9971     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9972     freebsd* | dragonfly*)
9973       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9974       hardcode_libdir_flag_spec='-R$libdir'
9975       hardcode_direct=yes
9976       hardcode_shlibpath_var=no
9977       ;;
9978
9979     hpux9*)
9980       if test "$GCC" = yes; then
9981         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'
9982       else
9983         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'
9984       fi
9985       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9986       hardcode_libdir_separator=:
9987       hardcode_direct=yes
9988
9989       # hardcode_minus_L: Not really in the search PATH,
9990       # but as the default location of the library.
9991       hardcode_minus_L=yes
9992       export_dynamic_flag_spec='${wl}-E'
9993       ;;
9994
9995     hpux10*)
9996       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9997         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9998       else
9999         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10000       fi
10001       if test "$with_gnu_ld" = no; then
10002         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10003         hardcode_libdir_separator=:
10004         hardcode_direct=yes
10005         hardcode_direct_absolute=yes
10006         export_dynamic_flag_spec='${wl}-E'
10007         # hardcode_minus_L: Not really in the search PATH,
10008         # but as the default location of the library.
10009         hardcode_minus_L=yes
10010       fi
10011       ;;
10012
10013     hpux11*)
10014       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10015         case $host_cpu in
10016         hppa*64*)
10017           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10018           ;;
10019         ia64*)
10020           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10021           ;;
10022         *)
10023           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10024           ;;
10025         esac
10026       else
10027         case $host_cpu in
10028         hppa*64*)
10029           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10030           ;;
10031         ia64*)
10032           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10033           ;;
10034         *)
10035
10036           # Older versions of the 11.00 compiler do not understand -b yet
10037           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10038           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10039 $as_echo_n "checking if $CC understands -b... " >&6; }
10040 if ${lt_cv_prog_compiler__b+:} false; then :
10041   $as_echo_n "(cached) " >&6
10042 else
10043   lt_cv_prog_compiler__b=no
10044    save_LDFLAGS="$LDFLAGS"
10045    LDFLAGS="$LDFLAGS -b"
10046    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10047    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10048      # The linker can only warn and ignore the option if not recognized
10049      # So say no if there are warnings
10050      if test -s conftest.err; then
10051        # Append any errors to the config.log.
10052        cat conftest.err 1>&5
10053        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10054        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10055        if diff conftest.exp conftest.er2 >/dev/null; then
10056          lt_cv_prog_compiler__b=yes
10057        fi
10058      else
10059        lt_cv_prog_compiler__b=yes
10060      fi
10061    fi
10062    $RM -r conftest*
10063    LDFLAGS="$save_LDFLAGS"
10064
10065 fi
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10067 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10068
10069 if test x"$lt_cv_prog_compiler__b" = xyes; then
10070     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10071 else
10072     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10073 fi
10074
10075           ;;
10076         esac
10077       fi
10078       if test "$with_gnu_ld" = no; then
10079         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10080         hardcode_libdir_separator=:
10081
10082         case $host_cpu in
10083         hppa*64*|ia64*)
10084           hardcode_direct=no
10085           hardcode_shlibpath_var=no
10086           ;;
10087         *)
10088           hardcode_direct=yes
10089           hardcode_direct_absolute=yes
10090           export_dynamic_flag_spec='${wl}-E'
10091
10092           # hardcode_minus_L: Not really in the search PATH,
10093           # but as the default location of the library.
10094           hardcode_minus_L=yes
10095           ;;
10096         esac
10097       fi
10098       ;;
10099
10100     irix5* | irix6* | nonstopux*)
10101       if test "$GCC" = yes; then
10102         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'
10103         # Try to use the -exported_symbol ld option, if it does not
10104         # work, assume that -exports_file does not work either and
10105         # implicitly export all symbols.
10106         # This should be the same for all languages, so no per-tag cache variable.
10107         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10108 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10109 if ${lt_cv_irix_exported_symbol+:} false; then :
10110   $as_echo_n "(cached) " >&6
10111 else
10112   save_LDFLAGS="$LDFLAGS"
10113            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10114            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10115 /* end confdefs.h.  */
10116 int foo (void) { return 0; }
10117 _ACEOF
10118 if ac_fn_c_try_link "$LINENO"; then :
10119   lt_cv_irix_exported_symbol=yes
10120 else
10121   lt_cv_irix_exported_symbol=no
10122 fi
10123 rm -f core conftest.err conftest.$ac_objext \
10124     conftest$ac_exeext conftest.$ac_ext
10125            LDFLAGS="$save_LDFLAGS"
10126 fi
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10128 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10129         if test "$lt_cv_irix_exported_symbol" = yes; then
10130           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'
10131         fi
10132       else
10133         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'
10134         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'
10135       fi
10136       archive_cmds_need_lc='no'
10137       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10138       hardcode_libdir_separator=:
10139       inherit_rpath=yes
10140       link_all_deplibs=yes
10141       ;;
10142
10143     netbsd* | netbsdelf*-gnu)
10144       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10145         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10146       else
10147         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10148       fi
10149       hardcode_libdir_flag_spec='-R$libdir'
10150       hardcode_direct=yes
10151       hardcode_shlibpath_var=no
10152       ;;
10153
10154     newsos6)
10155       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10156       hardcode_direct=yes
10157       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10158       hardcode_libdir_separator=:
10159       hardcode_shlibpath_var=no
10160       ;;
10161
10162     *nto* | *qnx*)
10163       ;;
10164
10165     openbsd*)
10166       if test -f /usr/libexec/ld.so; then
10167         hardcode_direct=yes
10168         hardcode_shlibpath_var=no
10169         hardcode_direct_absolute=yes
10170         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10171           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10172           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10173           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10174           export_dynamic_flag_spec='${wl}-E'
10175         else
10176           case $host_os in
10177            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10178              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10179              hardcode_libdir_flag_spec='-R$libdir'
10180              ;;
10181            *)
10182              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10183              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10184              ;;
10185           esac
10186         fi
10187       else
10188         ld_shlibs=no
10189       fi
10190       ;;
10191
10192     os2*)
10193       hardcode_libdir_flag_spec='-L$libdir'
10194       hardcode_minus_L=yes
10195       allow_undefined_flag=unsupported
10196       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'
10197       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10198       ;;
10199
10200     osf3*)
10201       if test "$GCC" = yes; then
10202         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10203         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'
10204       else
10205         allow_undefined_flag=' -expect_unresolved \*'
10206         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'
10207       fi
10208       archive_cmds_need_lc='no'
10209       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10210       hardcode_libdir_separator=:
10211       ;;
10212
10213     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10214       if test "$GCC" = yes; then
10215         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10216         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'
10217         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10218       else
10219         allow_undefined_flag=' -expect_unresolved \*'
10220         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'
10221         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~
10222         $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'
10223
10224         # Both c and cxx compiler support -rpath directly
10225         hardcode_libdir_flag_spec='-rpath $libdir'
10226       fi
10227       archive_cmds_need_lc='no'
10228       hardcode_libdir_separator=:
10229       ;;
10230
10231     solaris*)
10232       no_undefined_flag=' -z defs'
10233       if test "$GCC" = yes; then
10234         wlarc='${wl}'
10235         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10236         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10237           $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'
10238       else
10239         case `$CC -V 2>&1` in
10240         *"Compilers 5.0"*)
10241           wlarc=''
10242           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10243           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10244           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10245           ;;
10246         *)
10247           wlarc='${wl}'
10248           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10249           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10250           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10251           ;;
10252         esac
10253       fi
10254       hardcode_libdir_flag_spec='-R$libdir'
10255       hardcode_shlibpath_var=no
10256       case $host_os in
10257       solaris2.[0-5] | solaris2.[0-5].*) ;;
10258       *)
10259         # The compiler driver will combine and reorder linker options,
10260         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10261         # but is careful enough not to reorder.
10262         # Supported since Solaris 2.6 (maybe 2.5.1?)
10263         if test "$GCC" = yes; then
10264           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10265         else
10266           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10267         fi
10268         ;;
10269       esac
10270       link_all_deplibs=yes
10271       ;;
10272
10273     sunos4*)
10274       if test "x$host_vendor" = xsequent; then
10275         # Use $CC to link under sequent, because it throws in some extra .o
10276         # files that make .init and .fini sections work.
10277         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10278       else
10279         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10280       fi
10281       hardcode_libdir_flag_spec='-L$libdir'
10282       hardcode_direct=yes
10283       hardcode_minus_L=yes
10284       hardcode_shlibpath_var=no
10285       ;;
10286
10287     sysv4)
10288       case $host_vendor in
10289         sni)
10290           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10291           hardcode_direct=yes # is this really true???
10292         ;;
10293         siemens)
10294           ## LD is ld it makes a PLAMLIB
10295           ## CC just makes a GrossModule.
10296           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10297           reload_cmds='$CC -r -o $output$reload_objs'
10298           hardcode_direct=no
10299         ;;
10300         motorola)
10301           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10302           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10303         ;;
10304       esac
10305       runpath_var='LD_RUN_PATH'
10306       hardcode_shlibpath_var=no
10307       ;;
10308
10309     sysv4.3*)
10310       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10311       hardcode_shlibpath_var=no
10312       export_dynamic_flag_spec='-Bexport'
10313       ;;
10314
10315     sysv4*MP*)
10316       if test -d /usr/nec; then
10317         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10318         hardcode_shlibpath_var=no
10319         runpath_var=LD_RUN_PATH
10320         hardcode_runpath_var=yes
10321         ld_shlibs=yes
10322       fi
10323       ;;
10324
10325     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10326       no_undefined_flag='${wl}-z,text'
10327       archive_cmds_need_lc=no
10328       hardcode_shlibpath_var=no
10329       runpath_var='LD_RUN_PATH'
10330
10331       if test "$GCC" = yes; then
10332         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10333         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10334       else
10335         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10336         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10337       fi
10338       ;;
10339
10340     sysv5* | sco3.2v5* | sco5v6*)
10341       # Note: We can NOT use -z defs as we might desire, because we do not
10342       # link with -lc, and that would cause any symbols used from libc to
10343       # always be unresolved, which means just about no library would
10344       # ever link correctly.  If we're not using GNU ld we use -z text
10345       # though, which does catch some bad symbols but isn't as heavy-handed
10346       # as -z defs.
10347       no_undefined_flag='${wl}-z,text'
10348       allow_undefined_flag='${wl}-z,nodefs'
10349       archive_cmds_need_lc=no
10350       hardcode_shlibpath_var=no
10351       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10352       hardcode_libdir_separator=':'
10353       link_all_deplibs=yes
10354       export_dynamic_flag_spec='${wl}-Bexport'
10355       runpath_var='LD_RUN_PATH'
10356
10357       if test "$GCC" = yes; then
10358         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10359         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10360       else
10361         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10362         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10363       fi
10364       ;;
10365
10366     uts4*)
10367       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10368       hardcode_libdir_flag_spec='-L$libdir'
10369       hardcode_shlibpath_var=no
10370       ;;
10371
10372     *)
10373       ld_shlibs=no
10374       ;;
10375     esac
10376
10377     if test x$host_vendor = xsni; then
10378       case $host in
10379       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10380         export_dynamic_flag_spec='${wl}-Blargedynsym'
10381         ;;
10382       esac
10383     fi
10384   fi
10385
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10387 $as_echo "$ld_shlibs" >&6; }
10388 test "$ld_shlibs" = no && can_build_shared=no
10389
10390 with_gnu_ld=$with_gnu_ld
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406 #
10407 # Do we need to explicitly link libc?
10408 #
10409 case "x$archive_cmds_need_lc" in
10410 x|xyes)
10411   # Assume -lc should be added
10412   archive_cmds_need_lc=yes
10413
10414   if test "$enable_shared" = yes && test "$GCC" = yes; then
10415     case $archive_cmds in
10416     *'~'*)
10417       # FIXME: we may have to deal with multi-command sequences.
10418       ;;
10419     '$CC '*)
10420       # Test whether the compiler implicitly links with -lc since on some
10421       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10422       # to ld, don't add -lc before -lgcc.
10423       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10424 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10425 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10426   $as_echo_n "(cached) " >&6
10427 else
10428   $RM conftest*
10429         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10430
10431         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10432   (eval $ac_compile) 2>&5
10433   ac_status=$?
10434   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10435   test $ac_status = 0; } 2>conftest.err; then
10436           soname=conftest
10437           lib=conftest
10438           libobjs=conftest.$ac_objext
10439           deplibs=
10440           wl=$lt_prog_compiler_wl
10441           pic_flag=$lt_prog_compiler_pic
10442           compiler_flags=-v
10443           linker_flags=-v
10444           verstring=
10445           output_objdir=.
10446           libname=conftest
10447           lt_save_allow_undefined_flag=$allow_undefined_flag
10448           allow_undefined_flag=
10449           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10450   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10451   ac_status=$?
10452   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10453   test $ac_status = 0; }
10454           then
10455             lt_cv_archive_cmds_need_lc=no
10456           else
10457             lt_cv_archive_cmds_need_lc=yes
10458           fi
10459           allow_undefined_flag=$lt_save_allow_undefined_flag
10460         else
10461           cat conftest.err 1>&5
10462         fi
10463         $RM conftest*
10464
10465 fi
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10467 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10468       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10469       ;;
10470     esac
10471   fi
10472   ;;
10473 esac
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10627 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10628
10629 if test "$GCC" = yes; then
10630   case $host_os in
10631     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10632     *) lt_awk_arg="/^libraries:/" ;;
10633   esac
10634   case $host_os in
10635     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10636     *) lt_sed_strip_eq="s,=/,/,g" ;;
10637   esac
10638   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10639   case $lt_search_path_spec in
10640   *\;*)
10641     # if the path contains ";" then we assume it to be the separator
10642     # otherwise default to the standard path separator (i.e. ":") - it is
10643     # assumed that no part of a normal pathname contains ";" but that should
10644     # okay in the real world where ";" in dirpaths is itself problematic.
10645     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10646     ;;
10647   *)
10648     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10649     ;;
10650   esac
10651   # Ok, now we have the path, separated by spaces, we can step through it
10652   # and add multilib dir if necessary.
10653   lt_tmp_lt_search_path_spec=
10654   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10655   for lt_sys_path in $lt_search_path_spec; do
10656     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10657       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10658     else
10659       test -d "$lt_sys_path" && \
10660         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10661     fi
10662   done
10663   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10664 BEGIN {RS=" "; FS="/|\n";} {
10665   lt_foo="";
10666   lt_count=0;
10667   for (lt_i = NF; lt_i > 0; lt_i--) {
10668     if ($lt_i != "" && $lt_i != ".") {
10669       if ($lt_i == "..") {
10670         lt_count++;
10671       } else {
10672         if (lt_count == 0) {
10673           lt_foo="/" $lt_i lt_foo;
10674         } else {
10675           lt_count--;
10676         }
10677       }
10678     }
10679   }
10680   if (lt_foo != "") { lt_freq[lt_foo]++; }
10681   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10682 }'`
10683   # AWK program above erroneously prepends '/' to C:/dos/paths
10684   # for these hosts.
10685   case $host_os in
10686     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10687       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10688   esac
10689   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10690 else
10691   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10692 fi
10693 library_names_spec=
10694 libname_spec='lib$name'
10695 soname_spec=
10696 shrext_cmds=".so"
10697 postinstall_cmds=
10698 postuninstall_cmds=
10699 finish_cmds=
10700 finish_eval=
10701 shlibpath_var=
10702 shlibpath_overrides_runpath=unknown
10703 version_type=none
10704 dynamic_linker="$host_os ld.so"
10705 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10706 need_lib_prefix=unknown
10707 hardcode_into_libs=no
10708
10709 # when you set need_version to no, make sure it does not cause -set_version
10710 # flags to be left without arguments
10711 need_version=unknown
10712
10713 case $host_os in
10714 aix3*)
10715   version_type=linux # correct to gnu/linux during the next big refactor
10716   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10717   shlibpath_var=LIBPATH
10718
10719   # AIX 3 has no versioning support, so we append a major version to the name.
10720   soname_spec='${libname}${release}${shared_ext}$major'
10721   ;;
10722
10723 aix[4-9]*)
10724   version_type=linux # correct to gnu/linux during the next big refactor
10725   need_lib_prefix=no
10726   need_version=no
10727   hardcode_into_libs=yes
10728   if test "$host_cpu" = ia64; then
10729     # AIX 5 supports IA64
10730     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10731     shlibpath_var=LD_LIBRARY_PATH
10732   else
10733     # With GCC up to 2.95.x, collect2 would create an import file
10734     # for dependence libraries.  The import file would start with
10735     # the line `#! .'.  This would cause the generated library to
10736     # depend on `.', always an invalid library.  This was fixed in
10737     # development snapshots of GCC prior to 3.0.
10738     case $host_os in
10739       aix4 | aix4.[01] | aix4.[01].*)
10740       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10741            echo ' yes '
10742            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10743         :
10744       else
10745         can_build_shared=no
10746       fi
10747       ;;
10748     esac
10749     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10750     # soname into executable. Probably we can add versioning support to
10751     # collect2, so additional links can be useful in future.
10752     if test "$aix_use_runtimelinking" = yes; then
10753       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10754       # instead of lib<name>.a to let people know that these are not
10755       # typical AIX shared libraries.
10756       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10757     else
10758       # We preserve .a as extension for shared libraries through AIX4.2
10759       # and later when we are not doing run time linking.
10760       library_names_spec='${libname}${release}.a $libname.a'
10761       soname_spec='${libname}${release}${shared_ext}$major'
10762     fi
10763     shlibpath_var=LIBPATH
10764   fi
10765   ;;
10766
10767 amigaos*)
10768   case $host_cpu in
10769   powerpc)
10770     # Since July 2007 AmigaOS4 officially supports .so libraries.
10771     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10772     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10773     ;;
10774   m68k)
10775     library_names_spec='$libname.ixlibrary $libname.a'
10776     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10777     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'
10778     ;;
10779   esac
10780   ;;
10781
10782 beos*)
10783   library_names_spec='${libname}${shared_ext}'
10784   dynamic_linker="$host_os ld.so"
10785   shlibpath_var=LIBRARY_PATH
10786   ;;
10787
10788 bsdi[45]*)
10789   version_type=linux # correct to gnu/linux during the next big refactor
10790   need_version=no
10791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10792   soname_spec='${libname}${release}${shared_ext}$major'
10793   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10794   shlibpath_var=LD_LIBRARY_PATH
10795   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10796   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10797   # the default ld.so.conf also contains /usr/contrib/lib and
10798   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10799   # libtool to hard-code these into programs
10800   ;;
10801
10802 cygwin* | mingw* | pw32* | cegcc*)
10803   version_type=windows
10804   shrext_cmds=".dll"
10805   need_version=no
10806   need_lib_prefix=no
10807
10808   case $GCC,$cc_basename in
10809   yes,*)
10810     # gcc
10811     library_names_spec='$libname.dll.a'
10812     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10813     postinstall_cmds='base_file=`basename \${file}`~
10814       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10815       dldir=$destdir/`dirname \$dlpath`~
10816       test -d \$dldir || mkdir -p \$dldir~
10817       $install_prog $dir/$dlname \$dldir/$dlname~
10818       chmod a+x \$dldir/$dlname~
10819       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10820         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10821       fi'
10822     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10823       dlpath=$dir/\$dldll~
10824        $RM \$dlpath'
10825     shlibpath_overrides_runpath=yes
10826
10827     case $host_os in
10828     cygwin*)
10829       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10830       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10831
10832       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10833       ;;
10834     mingw* | cegcc*)
10835       # MinGW DLLs use traditional 'lib' prefix
10836       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10837       ;;
10838     pw32*)
10839       # pw32 DLLs use 'pw' prefix rather than 'lib'
10840       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10841       ;;
10842     esac
10843     dynamic_linker='Win32 ld.exe'
10844     ;;
10845
10846   *,cl*)
10847     # Native MSVC
10848     libname_spec='$name'
10849     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10850     library_names_spec='${libname}.dll.lib'
10851
10852     case $build_os in
10853     mingw*)
10854       sys_lib_search_path_spec=
10855       lt_save_ifs=$IFS
10856       IFS=';'
10857       for lt_path in $LIB
10858       do
10859         IFS=$lt_save_ifs
10860         # Let DOS variable expansion print the short 8.3 style file name.
10861         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10862         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10863       done
10864       IFS=$lt_save_ifs
10865       # Convert to MSYS style.
10866       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10867       ;;
10868     cygwin*)
10869       # Convert to unix form, then to dos form, then back to unix form
10870       # but this time dos style (no spaces!) so that the unix form looks
10871       # like /cygdrive/c/PROGRA~1:/cygdr...
10872       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10873       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10874       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10875       ;;
10876     *)
10877       sys_lib_search_path_spec="$LIB"
10878       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10879         # It is most probably a Windows format PATH.
10880         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10881       else
10882         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10883       fi
10884       # FIXME: find the short name or the path components, as spaces are
10885       # common. (e.g. "Program Files" -> "PROGRA~1")
10886       ;;
10887     esac
10888
10889     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10890     postinstall_cmds='base_file=`basename \${file}`~
10891       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10892       dldir=$destdir/`dirname \$dlpath`~
10893       test -d \$dldir || mkdir -p \$dldir~
10894       $install_prog $dir/$dlname \$dldir/$dlname'
10895     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10896       dlpath=$dir/\$dldll~
10897        $RM \$dlpath'
10898     shlibpath_overrides_runpath=yes
10899     dynamic_linker='Win32 link.exe'
10900     ;;
10901
10902   *)
10903     # Assume MSVC wrapper
10904     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10905     dynamic_linker='Win32 ld.exe'
10906     ;;
10907   esac
10908   # FIXME: first we should search . and the directory the executable is in
10909   shlibpath_var=PATH
10910   ;;
10911
10912 darwin* | rhapsody*)
10913   dynamic_linker="$host_os dyld"
10914   version_type=darwin
10915   need_lib_prefix=no
10916   need_version=no
10917   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10918   soname_spec='${libname}${release}${major}$shared_ext'
10919   shlibpath_overrides_runpath=yes
10920   shlibpath_var=DYLD_LIBRARY_PATH
10921   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10922
10923   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10924   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10925   ;;
10926
10927 dgux*)
10928   version_type=linux # correct to gnu/linux during the next big refactor
10929   need_lib_prefix=no
10930   need_version=no
10931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10932   soname_spec='${libname}${release}${shared_ext}$major'
10933   shlibpath_var=LD_LIBRARY_PATH
10934   ;;
10935
10936 freebsd* | dragonfly*)
10937   # DragonFly does not have aout.  When/if they implement a new
10938   # versioning mechanism, adjust this.
10939   if test -x /usr/bin/objformat; then
10940     objformat=`/usr/bin/objformat`
10941   else
10942     case $host_os in
10943     freebsd[23].*) objformat=aout ;;
10944     *) objformat=elf ;;
10945     esac
10946   fi
10947   version_type=freebsd-$objformat
10948   case $version_type in
10949     freebsd-elf*)
10950       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10951       need_version=no
10952       need_lib_prefix=no
10953       ;;
10954     freebsd-*)
10955       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10956       need_version=yes
10957       ;;
10958   esac
10959   shlibpath_var=LD_LIBRARY_PATH
10960   case $host_os in
10961   freebsd2.*)
10962     shlibpath_overrides_runpath=yes
10963     ;;
10964   freebsd3.[01]* | freebsdelf3.[01]*)
10965     shlibpath_overrides_runpath=yes
10966     hardcode_into_libs=yes
10967     ;;
10968   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10969   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10970     shlibpath_overrides_runpath=no
10971     hardcode_into_libs=yes
10972     ;;
10973   *) # from 4.6 on, and DragonFly
10974     shlibpath_overrides_runpath=yes
10975     hardcode_into_libs=yes
10976     ;;
10977   esac
10978   ;;
10979
10980 haiku*)
10981   version_type=linux # correct to gnu/linux during the next big refactor
10982   need_lib_prefix=no
10983   need_version=no
10984   dynamic_linker="$host_os runtime_loader"
10985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10986   soname_spec='${libname}${release}${shared_ext}$major'
10987   shlibpath_var=LIBRARY_PATH
10988   shlibpath_overrides_runpath=yes
10989   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10990   hardcode_into_libs=yes
10991   ;;
10992
10993 hpux9* | hpux10* | hpux11*)
10994   # Give a soname corresponding to the major version so that dld.sl refuses to
10995   # link against other versions.
10996   version_type=sunos
10997   need_lib_prefix=no
10998   need_version=no
10999   case $host_cpu in
11000   ia64*)
11001     shrext_cmds='.so'
11002     hardcode_into_libs=yes
11003     dynamic_linker="$host_os dld.so"
11004     shlibpath_var=LD_LIBRARY_PATH
11005     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11006     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11007     soname_spec='${libname}${release}${shared_ext}$major'
11008     if test "X$HPUX_IA64_MODE" = X32; then
11009       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11010     else
11011       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11012     fi
11013     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11014     ;;
11015   hppa*64*)
11016     shrext_cmds='.sl'
11017     hardcode_into_libs=yes
11018     dynamic_linker="$host_os dld.sl"
11019     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11020     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11021     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11022     soname_spec='${libname}${release}${shared_ext}$major'
11023     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11024     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11025     ;;
11026   *)
11027     shrext_cmds='.sl'
11028     dynamic_linker="$host_os dld.sl"
11029     shlibpath_var=SHLIB_PATH
11030     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11031     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11032     soname_spec='${libname}${release}${shared_ext}$major'
11033     ;;
11034   esac
11035   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11036   postinstall_cmds='chmod 555 $lib'
11037   # or fails outright, so override atomically:
11038   install_override_mode=555
11039   ;;
11040
11041 interix[3-9]*)
11042   version_type=linux # correct to gnu/linux during the next big refactor
11043   need_lib_prefix=no
11044   need_version=no
11045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11046   soname_spec='${libname}${release}${shared_ext}$major'
11047   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11048   shlibpath_var=LD_LIBRARY_PATH
11049   shlibpath_overrides_runpath=no
11050   hardcode_into_libs=yes
11051   ;;
11052
11053 irix5* | irix6* | nonstopux*)
11054   case $host_os in
11055     nonstopux*) version_type=nonstopux ;;
11056     *)
11057         if test "$lt_cv_prog_gnu_ld" = yes; then
11058                 version_type=linux # correct to gnu/linux during the next big refactor
11059         else
11060                 version_type=irix
11061         fi ;;
11062   esac
11063   need_lib_prefix=no
11064   need_version=no
11065   soname_spec='${libname}${release}${shared_ext}$major'
11066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11067   case $host_os in
11068   irix5* | nonstopux*)
11069     libsuff= shlibsuff=
11070     ;;
11071   *)
11072     case $LD in # libtool.m4 will add one of these switches to LD
11073     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11074       libsuff= shlibsuff= libmagic=32-bit;;
11075     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11076       libsuff=32 shlibsuff=N32 libmagic=N32;;
11077     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11078       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11079     *) libsuff= shlibsuff= libmagic=never-match;;
11080     esac
11081     ;;
11082   esac
11083   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11084   shlibpath_overrides_runpath=no
11085   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11086   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11087   hardcode_into_libs=yes
11088   ;;
11089
11090 # No shared lib support for Linux oldld, aout, or coff.
11091 linux*oldld* | linux*aout* | linux*coff*)
11092   dynamic_linker=no
11093   ;;
11094
11095 # This must be glibc/ELF.
11096 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11097   version_type=linux # correct to gnu/linux during the next big refactor
11098   need_lib_prefix=no
11099   need_version=no
11100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11101   soname_spec='${libname}${release}${shared_ext}$major'
11102   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11103   shlibpath_var=LD_LIBRARY_PATH
11104   shlibpath_overrides_runpath=no
11105
11106   # Some binutils ld are patched to set DT_RUNPATH
11107   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11108   $as_echo_n "(cached) " >&6
11109 else
11110   lt_cv_shlibpath_overrides_runpath=no
11111     save_LDFLAGS=$LDFLAGS
11112     save_libdir=$libdir
11113     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11114          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11115     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11116 /* end confdefs.h.  */
11117
11118 int
11119 main ()
11120 {
11121
11122   ;
11123   return 0;
11124 }
11125 _ACEOF
11126 if ac_fn_c_try_link "$LINENO"; then :
11127   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11128   lt_cv_shlibpath_overrides_runpath=yes
11129 fi
11130 fi
11131 rm -f core conftest.err conftest.$ac_objext \
11132     conftest$ac_exeext conftest.$ac_ext
11133     LDFLAGS=$save_LDFLAGS
11134     libdir=$save_libdir
11135
11136 fi
11137
11138   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11139
11140   # This implies no fast_install, which is unacceptable.
11141   # Some rework will be needed to allow for fast_install
11142   # before this can be enabled.
11143   hardcode_into_libs=yes
11144
11145   # Append ld.so.conf contents to the search path
11146   if test -f /etc/ld.so.conf; then
11147     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' ' '`
11148     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11149   fi
11150
11151   # We used to test for /lib/ld.so.1 and disable shared libraries on
11152   # powerpc, because MkLinux only supported shared libraries with the
11153   # GNU dynamic linker.  Since this was broken with cross compilers,
11154   # most powerpc-linux boxes support dynamic linking these days and
11155   # people can always --disable-shared, the test was removed, and we
11156   # assume the GNU/Linux dynamic linker is in use.
11157   dynamic_linker='GNU/Linux ld.so'
11158   ;;
11159
11160 netbsdelf*-gnu)
11161   version_type=linux
11162   need_lib_prefix=no
11163   need_version=no
11164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11165   soname_spec='${libname}${release}${shared_ext}$major'
11166   shlibpath_var=LD_LIBRARY_PATH
11167   shlibpath_overrides_runpath=no
11168   hardcode_into_libs=yes
11169   dynamic_linker='NetBSD ld.elf_so'
11170   ;;
11171
11172 netbsd*)
11173   version_type=sunos
11174   need_lib_prefix=no
11175   need_version=no
11176   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11177     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11178     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11179     dynamic_linker='NetBSD (a.out) ld.so'
11180   else
11181     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11182     soname_spec='${libname}${release}${shared_ext}$major'
11183     dynamic_linker='NetBSD ld.elf_so'
11184   fi
11185   shlibpath_var=LD_LIBRARY_PATH
11186   shlibpath_overrides_runpath=yes
11187   hardcode_into_libs=yes
11188   ;;
11189
11190 newsos6)
11191   version_type=linux # correct to gnu/linux during the next big refactor
11192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11193   shlibpath_var=LD_LIBRARY_PATH
11194   shlibpath_overrides_runpath=yes
11195   ;;
11196
11197 *nto* | *qnx*)
11198   version_type=qnx
11199   need_lib_prefix=no
11200   need_version=no
11201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11202   soname_spec='${libname}${release}${shared_ext}$major'
11203   shlibpath_var=LD_LIBRARY_PATH
11204   shlibpath_overrides_runpath=no
11205   hardcode_into_libs=yes
11206   dynamic_linker='ldqnx.so'
11207   ;;
11208
11209 openbsd*)
11210   version_type=sunos
11211   sys_lib_dlsearch_path_spec="/usr/lib"
11212   need_lib_prefix=no
11213   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11214   case $host_os in
11215     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11216     *)                          need_version=no  ;;
11217   esac
11218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11219   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11220   shlibpath_var=LD_LIBRARY_PATH
11221   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11222     case $host_os in
11223       openbsd2.[89] | openbsd2.[89].*)
11224         shlibpath_overrides_runpath=no
11225         ;;
11226       *)
11227         shlibpath_overrides_runpath=yes
11228         ;;
11229       esac
11230   else
11231     shlibpath_overrides_runpath=yes
11232   fi
11233   ;;
11234
11235 os2*)
11236   libname_spec='$name'
11237   shrext_cmds=".dll"
11238   need_lib_prefix=no
11239   library_names_spec='$libname${shared_ext} $libname.a'
11240   dynamic_linker='OS/2 ld.exe'
11241   shlibpath_var=LIBPATH
11242   ;;
11243
11244 osf3* | osf4* | osf5*)
11245   version_type=osf
11246   need_lib_prefix=no
11247   need_version=no
11248   soname_spec='${libname}${release}${shared_ext}$major'
11249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11250   shlibpath_var=LD_LIBRARY_PATH
11251   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11252   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11253   ;;
11254
11255 rdos*)
11256   dynamic_linker=no
11257   ;;
11258
11259 solaris*)
11260   version_type=linux # correct to gnu/linux during the next big refactor
11261   need_lib_prefix=no
11262   need_version=no
11263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11264   soname_spec='${libname}${release}${shared_ext}$major'
11265   shlibpath_var=LD_LIBRARY_PATH
11266   shlibpath_overrides_runpath=yes
11267   hardcode_into_libs=yes
11268   # ldd complains unless libraries are executable
11269   postinstall_cmds='chmod +x $lib'
11270   ;;
11271
11272 sunos4*)
11273   version_type=sunos
11274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11275   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11276   shlibpath_var=LD_LIBRARY_PATH
11277   shlibpath_overrides_runpath=yes
11278   if test "$with_gnu_ld" = yes; then
11279     need_lib_prefix=no
11280   fi
11281   need_version=yes
11282   ;;
11283
11284 sysv4 | sysv4.3*)
11285   version_type=linux # correct to gnu/linux during the next big refactor
11286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11287   soname_spec='${libname}${release}${shared_ext}$major'
11288   shlibpath_var=LD_LIBRARY_PATH
11289   case $host_vendor in
11290     sni)
11291       shlibpath_overrides_runpath=no
11292       need_lib_prefix=no
11293       runpath_var=LD_RUN_PATH
11294       ;;
11295     siemens)
11296       need_lib_prefix=no
11297       ;;
11298     motorola)
11299       need_lib_prefix=no
11300       need_version=no
11301       shlibpath_overrides_runpath=no
11302       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11303       ;;
11304   esac
11305   ;;
11306
11307 sysv4*MP*)
11308   if test -d /usr/nec ;then
11309     version_type=linux # correct to gnu/linux during the next big refactor
11310     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11311     soname_spec='$libname${shared_ext}.$major'
11312     shlibpath_var=LD_LIBRARY_PATH
11313   fi
11314   ;;
11315
11316 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11317   version_type=freebsd-elf
11318   need_lib_prefix=no
11319   need_version=no
11320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11321   soname_spec='${libname}${release}${shared_ext}$major'
11322   shlibpath_var=LD_LIBRARY_PATH
11323   shlibpath_overrides_runpath=yes
11324   hardcode_into_libs=yes
11325   if test "$with_gnu_ld" = yes; then
11326     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11327   else
11328     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11329     case $host_os in
11330       sco3.2v5*)
11331         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11332         ;;
11333     esac
11334   fi
11335   sys_lib_dlsearch_path_spec='/usr/lib'
11336   ;;
11337
11338 tpf*)
11339   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11340   version_type=linux # correct to gnu/linux during the next big refactor
11341   need_lib_prefix=no
11342   need_version=no
11343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11344   shlibpath_var=LD_LIBRARY_PATH
11345   shlibpath_overrides_runpath=no
11346   hardcode_into_libs=yes
11347   ;;
11348
11349 uts4*)
11350   version_type=linux # correct to gnu/linux during the next big refactor
11351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11352   soname_spec='${libname}${release}${shared_ext}$major'
11353   shlibpath_var=LD_LIBRARY_PATH
11354   ;;
11355
11356 *)
11357   dynamic_linker=no
11358   ;;
11359 esac
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11361 $as_echo "$dynamic_linker" >&6; }
11362 test "$dynamic_linker" = no && can_build_shared=no
11363
11364 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11365 if test "$GCC" = yes; then
11366   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11367 fi
11368
11369 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11370   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11371 fi
11372 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11373   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11374 fi
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11468 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11469 hardcode_action=
11470 if test -n "$hardcode_libdir_flag_spec" ||
11471    test -n "$runpath_var" ||
11472    test "X$hardcode_automatic" = "Xyes" ; then
11473
11474   # We can hardcode non-existent directories.
11475   if test "$hardcode_direct" != no &&
11476      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11477      # have to relink, otherwise we might link with an installed library
11478      # when we should be linking with a yet-to-be-installed one
11479      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11480      test "$hardcode_minus_L" != no; then
11481     # Linking always hardcodes the temporary library directory.
11482     hardcode_action=relink
11483   else
11484     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11485     hardcode_action=immediate
11486   fi
11487 else
11488   # We cannot hardcode anything, or else we can only hardcode existing
11489   # directories.
11490   hardcode_action=unsupported
11491 fi
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11493 $as_echo "$hardcode_action" >&6; }
11494
11495 if test "$hardcode_action" = relink ||
11496    test "$inherit_rpath" = yes; then
11497   # Fast installation is not supported
11498   enable_fast_install=no
11499 elif test "$shlibpath_overrides_runpath" = yes ||
11500      test "$enable_shared" = no; then
11501   # Fast installation is not necessary
11502   enable_fast_install=needless
11503 fi
11504
11505
11506
11507
11508
11509
11510   if test "x$enable_dlopen" != xyes; then
11511   enable_dlopen=unknown
11512   enable_dlopen_self=unknown
11513   enable_dlopen_self_static=unknown
11514 else
11515   lt_cv_dlopen=no
11516   lt_cv_dlopen_libs=
11517
11518   case $host_os in
11519   beos*)
11520     lt_cv_dlopen="load_add_on"
11521     lt_cv_dlopen_libs=
11522     lt_cv_dlopen_self=yes
11523     ;;
11524
11525   mingw* | pw32* | cegcc*)
11526     lt_cv_dlopen="LoadLibrary"
11527     lt_cv_dlopen_libs=
11528     ;;
11529
11530   cygwin*)
11531     lt_cv_dlopen="dlopen"
11532     lt_cv_dlopen_libs=
11533     ;;
11534
11535   darwin*)
11536   # if libdl is installed we need to link against it
11537     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11538 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11539 if ${ac_cv_lib_dl_dlopen+:} false; then :
11540   $as_echo_n "(cached) " >&6
11541 else
11542   ac_check_lib_save_LIBS=$LIBS
11543 LIBS="-ldl  $LIBS"
11544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11545 /* end confdefs.h.  */
11546
11547 /* Override any GCC internal prototype to avoid an error.
11548    Use char because int might match the return type of a GCC
11549    builtin and then its argument prototype would still apply.  */
11550 #ifdef __cplusplus
11551 extern "C"
11552 #endif
11553 char dlopen ();
11554 int
11555 main ()
11556 {
11557 return dlopen ();
11558   ;
11559   return 0;
11560 }
11561 _ACEOF
11562 if ac_fn_c_try_link "$LINENO"; then :
11563   ac_cv_lib_dl_dlopen=yes
11564 else
11565   ac_cv_lib_dl_dlopen=no
11566 fi
11567 rm -f core conftest.err conftest.$ac_objext \
11568     conftest$ac_exeext conftest.$ac_ext
11569 LIBS=$ac_check_lib_save_LIBS
11570 fi
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11572 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11573 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11574   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11575 else
11576
11577     lt_cv_dlopen="dyld"
11578     lt_cv_dlopen_libs=
11579     lt_cv_dlopen_self=yes
11580
11581 fi
11582
11583     ;;
11584
11585   *)
11586     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11587 if test "x$ac_cv_func_shl_load" = xyes; then :
11588   lt_cv_dlopen="shl_load"
11589 else
11590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11591 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11592 if ${ac_cv_lib_dld_shl_load+:} false; then :
11593   $as_echo_n "(cached) " >&6
11594 else
11595   ac_check_lib_save_LIBS=$LIBS
11596 LIBS="-ldld  $LIBS"
11597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11598 /* end confdefs.h.  */
11599
11600 /* Override any GCC internal prototype to avoid an error.
11601    Use char because int might match the return type of a GCC
11602    builtin and then its argument prototype would still apply.  */
11603 #ifdef __cplusplus
11604 extern "C"
11605 #endif
11606 char shl_load ();
11607 int
11608 main ()
11609 {
11610 return shl_load ();
11611   ;
11612   return 0;
11613 }
11614 _ACEOF
11615 if ac_fn_c_try_link "$LINENO"; then :
11616   ac_cv_lib_dld_shl_load=yes
11617 else
11618   ac_cv_lib_dld_shl_load=no
11619 fi
11620 rm -f core conftest.err conftest.$ac_objext \
11621     conftest$ac_exeext conftest.$ac_ext
11622 LIBS=$ac_check_lib_save_LIBS
11623 fi
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11625 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11626 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11627   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11628 else
11629   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11630 if test "x$ac_cv_func_dlopen" = xyes; then :
11631   lt_cv_dlopen="dlopen"
11632 else
11633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11634 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11635 if ${ac_cv_lib_dl_dlopen+:} false; then :
11636   $as_echo_n "(cached) " >&6
11637 else
11638   ac_check_lib_save_LIBS=$LIBS
11639 LIBS="-ldl  $LIBS"
11640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11641 /* end confdefs.h.  */
11642
11643 /* Override any GCC internal prototype to avoid an error.
11644    Use char because int might match the return type of a GCC
11645    builtin and then its argument prototype would still apply.  */
11646 #ifdef __cplusplus
11647 extern "C"
11648 #endif
11649 char dlopen ();
11650 int
11651 main ()
11652 {
11653 return dlopen ();
11654   ;
11655   return 0;
11656 }
11657 _ACEOF
11658 if ac_fn_c_try_link "$LINENO"; then :
11659   ac_cv_lib_dl_dlopen=yes
11660 else
11661   ac_cv_lib_dl_dlopen=no
11662 fi
11663 rm -f core conftest.err conftest.$ac_objext \
11664     conftest$ac_exeext conftest.$ac_ext
11665 LIBS=$ac_check_lib_save_LIBS
11666 fi
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11668 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11669 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11670   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11671 else
11672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11673 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11674 if ${ac_cv_lib_svld_dlopen+:} false; then :
11675   $as_echo_n "(cached) " >&6
11676 else
11677   ac_check_lib_save_LIBS=$LIBS
11678 LIBS="-lsvld  $LIBS"
11679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11680 /* end confdefs.h.  */
11681
11682 /* Override any GCC internal prototype to avoid an error.
11683    Use char because int might match the return type of a GCC
11684    builtin and then its argument prototype would still apply.  */
11685 #ifdef __cplusplus
11686 extern "C"
11687 #endif
11688 char dlopen ();
11689 int
11690 main ()
11691 {
11692 return dlopen ();
11693   ;
11694   return 0;
11695 }
11696 _ACEOF
11697 if ac_fn_c_try_link "$LINENO"; then :
11698   ac_cv_lib_svld_dlopen=yes
11699 else
11700   ac_cv_lib_svld_dlopen=no
11701 fi
11702 rm -f core conftest.err conftest.$ac_objext \
11703     conftest$ac_exeext conftest.$ac_ext
11704 LIBS=$ac_check_lib_save_LIBS
11705 fi
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11707 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11708 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11709   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11710 else
11711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11712 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11713 if ${ac_cv_lib_dld_dld_link+:} false; then :
11714   $as_echo_n "(cached) " >&6
11715 else
11716   ac_check_lib_save_LIBS=$LIBS
11717 LIBS="-ldld  $LIBS"
11718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11719 /* end confdefs.h.  */
11720
11721 /* Override any GCC internal prototype to avoid an error.
11722    Use char because int might match the return type of a GCC
11723    builtin and then its argument prototype would still apply.  */
11724 #ifdef __cplusplus
11725 extern "C"
11726 #endif
11727 char dld_link ();
11728 int
11729 main ()
11730 {
11731 return dld_link ();
11732   ;
11733   return 0;
11734 }
11735 _ACEOF
11736 if ac_fn_c_try_link "$LINENO"; then :
11737   ac_cv_lib_dld_dld_link=yes
11738 else
11739   ac_cv_lib_dld_dld_link=no
11740 fi
11741 rm -f core conftest.err conftest.$ac_objext \
11742     conftest$ac_exeext conftest.$ac_ext
11743 LIBS=$ac_check_lib_save_LIBS
11744 fi
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11746 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11747 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11748   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11749 fi
11750
11751
11752 fi
11753
11754
11755 fi
11756
11757
11758 fi
11759
11760
11761 fi
11762
11763
11764 fi
11765
11766     ;;
11767   esac
11768
11769   if test "x$lt_cv_dlopen" != xno; then
11770     enable_dlopen=yes
11771   else
11772     enable_dlopen=no
11773   fi
11774
11775   case $lt_cv_dlopen in
11776   dlopen)
11777     save_CPPFLAGS="$CPPFLAGS"
11778     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11779
11780     save_LDFLAGS="$LDFLAGS"
11781     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11782
11783     save_LIBS="$LIBS"
11784     LIBS="$lt_cv_dlopen_libs $LIBS"
11785
11786     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11787 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11788 if ${lt_cv_dlopen_self+:} false; then :
11789   $as_echo_n "(cached) " >&6
11790 else
11791           if test "$cross_compiling" = yes; then :
11792   lt_cv_dlopen_self=cross
11793 else
11794   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11795   lt_status=$lt_dlunknown
11796   cat > conftest.$ac_ext <<_LT_EOF
11797 #line $LINENO "configure"
11798 #include "confdefs.h"
11799
11800 #if HAVE_DLFCN_H
11801 #include <dlfcn.h>
11802 #endif
11803
11804 #include <stdio.h>
11805
11806 #ifdef RTLD_GLOBAL
11807 #  define LT_DLGLOBAL           RTLD_GLOBAL
11808 #else
11809 #  ifdef DL_GLOBAL
11810 #    define LT_DLGLOBAL         DL_GLOBAL
11811 #  else
11812 #    define LT_DLGLOBAL         0
11813 #  endif
11814 #endif
11815
11816 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11817    find out it does not work in some platform. */
11818 #ifndef LT_DLLAZY_OR_NOW
11819 #  ifdef RTLD_LAZY
11820 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11821 #  else
11822 #    ifdef DL_LAZY
11823 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11824 #    else
11825 #      ifdef RTLD_NOW
11826 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11827 #      else
11828 #        ifdef DL_NOW
11829 #          define LT_DLLAZY_OR_NOW      DL_NOW
11830 #        else
11831 #          define LT_DLLAZY_OR_NOW      0
11832 #        endif
11833 #      endif
11834 #    endif
11835 #  endif
11836 #endif
11837
11838 /* When -fvisbility=hidden is used, assume the code has been annotated
11839    correspondingly for the symbols needed.  */
11840 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11841 int fnord () __attribute__((visibility("default")));
11842 #endif
11843
11844 int fnord () { return 42; }
11845 int main ()
11846 {
11847   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11848   int status = $lt_dlunknown;
11849
11850   if (self)
11851     {
11852       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11853       else
11854         {
11855           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11856           else puts (dlerror ());
11857         }
11858       /* dlclose (self); */
11859     }
11860   else
11861     puts (dlerror ());
11862
11863   return status;
11864 }
11865 _LT_EOF
11866   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11867   (eval $ac_link) 2>&5
11868   ac_status=$?
11869   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11870   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11871     (./conftest; exit; ) >&5 2>/dev/null
11872     lt_status=$?
11873     case x$lt_status in
11874       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11875       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11876       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11877     esac
11878   else :
11879     # compilation failed
11880     lt_cv_dlopen_self=no
11881   fi
11882 fi
11883 rm -fr conftest*
11884
11885
11886 fi
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11888 $as_echo "$lt_cv_dlopen_self" >&6; }
11889
11890     if test "x$lt_cv_dlopen_self" = xyes; then
11891       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11892       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11893 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11894 if ${lt_cv_dlopen_self_static+:} false; then :
11895   $as_echo_n "(cached) " >&6
11896 else
11897           if test "$cross_compiling" = yes; then :
11898   lt_cv_dlopen_self_static=cross
11899 else
11900   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11901   lt_status=$lt_dlunknown
11902   cat > conftest.$ac_ext <<_LT_EOF
11903 #line $LINENO "configure"
11904 #include "confdefs.h"
11905
11906 #if HAVE_DLFCN_H
11907 #include <dlfcn.h>
11908 #endif
11909
11910 #include <stdio.h>
11911
11912 #ifdef RTLD_GLOBAL
11913 #  define LT_DLGLOBAL           RTLD_GLOBAL
11914 #else
11915 #  ifdef DL_GLOBAL
11916 #    define LT_DLGLOBAL         DL_GLOBAL
11917 #  else
11918 #    define LT_DLGLOBAL         0
11919 #  endif
11920 #endif
11921
11922 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11923    find out it does not work in some platform. */
11924 #ifndef LT_DLLAZY_OR_NOW
11925 #  ifdef RTLD_LAZY
11926 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11927 #  else
11928 #    ifdef DL_LAZY
11929 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11930 #    else
11931 #      ifdef RTLD_NOW
11932 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11933 #      else
11934 #        ifdef DL_NOW
11935 #          define LT_DLLAZY_OR_NOW      DL_NOW
11936 #        else
11937 #          define LT_DLLAZY_OR_NOW      0
11938 #        endif
11939 #      endif
11940 #    endif
11941 #  endif
11942 #endif
11943
11944 /* When -fvisbility=hidden is used, assume the code has been annotated
11945    correspondingly for the symbols needed.  */
11946 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11947 int fnord () __attribute__((visibility("default")));
11948 #endif
11949
11950 int fnord () { return 42; }
11951 int main ()
11952 {
11953   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11954   int status = $lt_dlunknown;
11955
11956   if (self)
11957     {
11958       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11959       else
11960         {
11961           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11962           else puts (dlerror ());
11963         }
11964       /* dlclose (self); */
11965     }
11966   else
11967     puts (dlerror ());
11968
11969   return status;
11970 }
11971 _LT_EOF
11972   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11973   (eval $ac_link) 2>&5
11974   ac_status=$?
11975   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11976   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11977     (./conftest; exit; ) >&5 2>/dev/null
11978     lt_status=$?
11979     case x$lt_status in
11980       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11981       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11982       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11983     esac
11984   else :
11985     # compilation failed
11986     lt_cv_dlopen_self_static=no
11987   fi
11988 fi
11989 rm -fr conftest*
11990
11991
11992 fi
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11994 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11995     fi
11996
11997     CPPFLAGS="$save_CPPFLAGS"
11998     LDFLAGS="$save_LDFLAGS"
11999     LIBS="$save_LIBS"
12000     ;;
12001   esac
12002
12003   case $lt_cv_dlopen_self in
12004   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12005   *) enable_dlopen_self=unknown ;;
12006   esac
12007
12008   case $lt_cv_dlopen_self_static in
12009   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12010   *) enable_dlopen_self_static=unknown ;;
12011   esac
12012 fi
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030 striplib=
12031 old_striplib=
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12033 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12034 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12035   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12036   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12038 $as_echo "yes" >&6; }
12039 else
12040 # FIXME - insert some real tests, host_os isn't really good enough
12041   case $host_os in
12042   darwin*)
12043     if test -n "$STRIP" ; then
12044       striplib="$STRIP -x"
12045       old_striplib="$STRIP -S"
12046       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12047 $as_echo "yes" >&6; }
12048     else
12049       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12050 $as_echo "no" >&6; }
12051     fi
12052     ;;
12053   *)
12054     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055 $as_echo "no" >&6; }
12056     ;;
12057   esac
12058 fi
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071   # Report which library types will actually be built
12072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12073 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12075 $as_echo "$can_build_shared" >&6; }
12076
12077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12078 $as_echo_n "checking whether to build shared libraries... " >&6; }
12079   test "$can_build_shared" = "no" && enable_shared=no
12080
12081   # On AIX, shared libraries and static libraries use the same namespace, and
12082   # are all built from PIC.
12083   case $host_os in
12084   aix3*)
12085     test "$enable_shared" = yes && enable_static=no
12086     if test -n "$RANLIB"; then
12087       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12088       postinstall_cmds='$RANLIB $lib'
12089     fi
12090     ;;
12091
12092   aix[4-9]*)
12093     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12094       test "$enable_shared" = yes && enable_static=no
12095     fi
12096     ;;
12097   esac
12098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12099 $as_echo "$enable_shared" >&6; }
12100
12101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12102 $as_echo_n "checking whether to build static libraries... " >&6; }
12103   # Make sure either enable_shared or enable_static is yes.
12104   test "$enable_shared" = yes || enable_static=yes
12105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12106 $as_echo "$enable_static" >&6; }
12107
12108
12109
12110
12111 fi
12112 ac_ext=c
12113 ac_cpp='$CPP $CPPFLAGS'
12114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12117
12118 CC="$lt_save_CC"
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134         ac_config_commands="$ac_config_commands libtool"
12135
12136
12137
12138
12139 # Only expand once:
12140
12141
12142
12143
12144
12145 if test "z$RM" == "z" ; then
12146     # Extract the first word of "rm", so it can be a program name with args.
12147 set dummy rm; ac_word=$2
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12149 $as_echo_n "checking for $ac_word... " >&6; }
12150 if ${ac_cv_path_RM+:} false; then :
12151   $as_echo_n "(cached) " >&6
12152 else
12153   case $RM in
12154   [\\/]* | ?:[\\/]*)
12155   ac_cv_path_RM="$RM" # Let the user override the test with a path.
12156   ;;
12157   *)
12158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12159 for as_dir in $PATH
12160 do
12161   IFS=$as_save_IFS
12162   test -z "$as_dir" && as_dir=.
12163     for ac_exec_ext in '' $ac_executable_extensions; do
12164   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12165     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
12166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12167     break 2
12168   fi
12169 done
12170   done
12171 IFS=$as_save_IFS
12172
12173   test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
12174   ;;
12175 esac
12176 fi
12177 RM=$ac_cv_path_RM
12178 if test -n "$RM"; then
12179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
12180 $as_echo "$RM" >&6; }
12181 else
12182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12183 $as_echo "no" >&6; }
12184 fi
12185
12186
12187 fi
12188 # Extract the first word of "cp", so it can be a program name with args.
12189 set dummy cp; ac_word=$2
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12191 $as_echo_n "checking for $ac_word... " >&6; }
12192 if ${ac_cv_path_CP+:} false; then :
12193   $as_echo_n "(cached) " >&6
12194 else
12195   case $CP in
12196   [\\/]* | ?:[\\/]*)
12197   ac_cv_path_CP="$CP" # Let the user override the test with a path.
12198   ;;
12199   *)
12200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12201 for as_dir in $PATH
12202 do
12203   IFS=$as_save_IFS
12204   test -z "$as_dir" && as_dir=.
12205     for ac_exec_ext in '' $ac_executable_extensions; do
12206   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12207     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
12208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12209     break 2
12210   fi
12211 done
12212   done
12213 IFS=$as_save_IFS
12214
12215   test -z "$ac_cv_path_CP" && ac_cv_path_CP="/bin/cp"
12216   ;;
12217 esac
12218 fi
12219 CP=$ac_cv_path_CP
12220 if test -n "$CP"; then
12221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
12222 $as_echo "$CP" >&6; }
12223 else
12224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12225 $as_echo "no" >&6; }
12226 fi
12227
12228
12229 # Extract the first word of "mv", so it can be a program name with args.
12230 set dummy mv; ac_word=$2
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12232 $as_echo_n "checking for $ac_word... " >&6; }
12233 if ${ac_cv_path_MV+:} false; then :
12234   $as_echo_n "(cached) " >&6
12235 else
12236   case $MV in
12237   [\\/]* | ?:[\\/]*)
12238   ac_cv_path_MV="$MV" # Let the user override the test with a path.
12239   ;;
12240   *)
12241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12242 for as_dir in $PATH
12243 do
12244   IFS=$as_save_IFS
12245   test -z "$as_dir" && as_dir=.
12246     for ac_exec_ext in '' $ac_executable_extensions; do
12247   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12248     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
12249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12250     break 2
12251   fi
12252 done
12253   done
12254 IFS=$as_save_IFS
12255
12256   test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
12257   ;;
12258 esac
12259 fi
12260 MV=$ac_cv_path_MV
12261 if test -n "$MV"; then
12262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
12263 $as_echo "$MV" >&6; }
12264 else
12265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12267 fi
12268
12269
12270 # Extract the first word of "tar", so it can be a program name with args.
12271 set dummy tar; ac_word=$2
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12273 $as_echo_n "checking for $ac_word... " >&6; }
12274 if ${ac_cv_path_TAR+:} false; then :
12275   $as_echo_n "(cached) " >&6
12276 else
12277   case $TAR in
12278   [\\/]* | ?:[\\/]*)
12279   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
12280   ;;
12281   *)
12282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12283 for as_dir in $PATH
12284 do
12285   IFS=$as_save_IFS
12286   test -z "$as_dir" && as_dir=.
12287     for ac_exec_ext in '' $ac_executable_extensions; do
12288   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12289     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
12290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12291     break 2
12292   fi
12293 done
12294   done
12295 IFS=$as_save_IFS
12296
12297   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
12298   ;;
12299 esac
12300 fi
12301 TAR=$ac_cv_path_TAR
12302 if test -n "$TAR"; then
12303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
12304 $as_echo "$TAR" >&6; }
12305 else
12306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12307 $as_echo "no" >&6; }
12308 fi
12309
12310
12311 # Extract the first word of "perl", so it can be a program name with args.
12312 set dummy perl; ac_word=$2
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12314 $as_echo_n "checking for $ac_word... " >&6; }
12315 if ${ac_cv_path_PERL+:} false; then :
12316   $as_echo_n "(cached) " >&6
12317 else
12318   case $PERL in
12319   [\\/]* | ?:[\\/]*)
12320   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12321   ;;
12322   *)
12323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12324 for as_dir in $PATH
12325 do
12326   IFS=$as_save_IFS
12327   test -z "$as_dir" && as_dir=.
12328     for ac_exec_ext in '' $ac_executable_extensions; do
12329   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12330     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12332     break 2
12333   fi
12334 done
12335   done
12336 IFS=$as_save_IFS
12337
12338   ;;
12339 esac
12340 fi
12341 PERL=$ac_cv_path_PERL
12342 if test -n "$PERL"; then
12343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12344 $as_echo "$PERL" >&6; }
12345 else
12346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12347 $as_echo "no" >&6; }
12348 fi
12349
12350
12351
12352
12353 ac_header_dirent=no
12354 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12355   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12357 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12358 if eval \${$as_ac_Header+:} false; then :
12359   $as_echo_n "(cached) " >&6
12360 else
12361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362 /* end confdefs.h.  */
12363 #include <sys/types.h>
12364 #include <$ac_hdr>
12365
12366 int
12367 main ()
12368 {
12369 if ((DIR *) 0)
12370 return 0;
12371   ;
12372   return 0;
12373 }
12374 _ACEOF
12375 if ac_fn_c_try_compile "$LINENO"; then :
12376   eval "$as_ac_Header=yes"
12377 else
12378   eval "$as_ac_Header=no"
12379 fi
12380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12381 fi
12382 eval ac_res=\$$as_ac_Header
12383                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12384 $as_echo "$ac_res" >&6; }
12385 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12386   cat >>confdefs.h <<_ACEOF
12387 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12388 _ACEOF
12389
12390 ac_header_dirent=$ac_hdr; break
12391 fi
12392
12393 done
12394 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12395 if test $ac_header_dirent = dirent.h; then
12396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12397 $as_echo_n "checking for library containing opendir... " >&6; }
12398 if ${ac_cv_search_opendir+:} false; then :
12399   $as_echo_n "(cached) " >&6
12400 else
12401   ac_func_search_save_LIBS=$LIBS
12402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403 /* end confdefs.h.  */
12404
12405 /* Override any GCC internal prototype to avoid an error.
12406    Use char because int might match the return type of a GCC
12407    builtin and then its argument prototype would still apply.  */
12408 #ifdef __cplusplus
12409 extern "C"
12410 #endif
12411 char opendir ();
12412 int
12413 main ()
12414 {
12415 return opendir ();
12416   ;
12417   return 0;
12418 }
12419 _ACEOF
12420 for ac_lib in '' dir; do
12421   if test -z "$ac_lib"; then
12422     ac_res="none required"
12423   else
12424     ac_res=-l$ac_lib
12425     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12426   fi
12427   if ac_fn_c_try_link "$LINENO"; then :
12428   ac_cv_search_opendir=$ac_res
12429 fi
12430 rm -f core conftest.err conftest.$ac_objext \
12431     conftest$ac_exeext
12432   if ${ac_cv_search_opendir+:} false; then :
12433   break
12434 fi
12435 done
12436 if ${ac_cv_search_opendir+:} false; then :
12437
12438 else
12439   ac_cv_search_opendir=no
12440 fi
12441 rm conftest.$ac_ext
12442 LIBS=$ac_func_search_save_LIBS
12443 fi
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12445 $as_echo "$ac_cv_search_opendir" >&6; }
12446 ac_res=$ac_cv_search_opendir
12447 if test "$ac_res" != no; then :
12448   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12449
12450 fi
12451
12452 else
12453   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12454 $as_echo_n "checking for library containing opendir... " >&6; }
12455 if ${ac_cv_search_opendir+:} false; then :
12456   $as_echo_n "(cached) " >&6
12457 else
12458   ac_func_search_save_LIBS=$LIBS
12459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12460 /* end confdefs.h.  */
12461
12462 /* Override any GCC internal prototype to avoid an error.
12463    Use char because int might match the return type of a GCC
12464    builtin and then its argument prototype would still apply.  */
12465 #ifdef __cplusplus
12466 extern "C"
12467 #endif
12468 char opendir ();
12469 int
12470 main ()
12471 {
12472 return opendir ();
12473   ;
12474   return 0;
12475 }
12476 _ACEOF
12477 for ac_lib in '' x; do
12478   if test -z "$ac_lib"; then
12479     ac_res="none required"
12480   else
12481     ac_res=-l$ac_lib
12482     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12483   fi
12484   if ac_fn_c_try_link "$LINENO"; then :
12485   ac_cv_search_opendir=$ac_res
12486 fi
12487 rm -f core conftest.err conftest.$ac_objext \
12488     conftest$ac_exeext
12489   if ${ac_cv_search_opendir+:} false; then :
12490   break
12491 fi
12492 done
12493 if ${ac_cv_search_opendir+:} false; then :
12494
12495 else
12496   ac_cv_search_opendir=no
12497 fi
12498 rm conftest.$ac_ext
12499 LIBS=$ac_func_search_save_LIBS
12500 fi
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12502 $as_echo "$ac_cv_search_opendir" >&6; }
12503 ac_res=$ac_cv_search_opendir
12504 if test "$ac_res" != no; then :
12505   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12506
12507 fi
12508
12509 fi
12510
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12512 $as_echo_n "checking for ANSI C header files... " >&6; }
12513 if ${ac_cv_header_stdc+:} false; then :
12514   $as_echo_n "(cached) " >&6
12515 else
12516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h.  */
12518 #include <stdlib.h>
12519 #include <stdarg.h>
12520 #include <string.h>
12521 #include <float.h>
12522
12523 int
12524 main ()
12525 {
12526
12527   ;
12528   return 0;
12529 }
12530 _ACEOF
12531 if ac_fn_c_try_compile "$LINENO"; then :
12532   ac_cv_header_stdc=yes
12533 else
12534   ac_cv_header_stdc=no
12535 fi
12536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12537
12538 if test $ac_cv_header_stdc = yes; then
12539   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12541 /* end confdefs.h.  */
12542 #include <string.h>
12543
12544 _ACEOF
12545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12546   $EGREP "memchr" >/dev/null 2>&1; then :
12547
12548 else
12549   ac_cv_header_stdc=no
12550 fi
12551 rm -f conftest*
12552
12553 fi
12554
12555 if test $ac_cv_header_stdc = yes; then
12556   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h.  */
12559 #include <stdlib.h>
12560
12561 _ACEOF
12562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12563   $EGREP "free" >/dev/null 2>&1; then :
12564
12565 else
12566   ac_cv_header_stdc=no
12567 fi
12568 rm -f conftest*
12569
12570 fi
12571
12572 if test $ac_cv_header_stdc = yes; then
12573   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12574   if test "$cross_compiling" = yes; then :
12575   :
12576 else
12577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12578 /* end confdefs.h.  */
12579 #include <ctype.h>
12580 #include <stdlib.h>
12581 #if ((' ' & 0x0FF) == 0x020)
12582 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12583 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12584 #else
12585 # define ISLOWER(c) \
12586                    (('a' <= (c) && (c) <= 'i') \
12587                      || ('j' <= (c) && (c) <= 'r') \
12588                      || ('s' <= (c) && (c) <= 'z'))
12589 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12590 #endif
12591
12592 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12593 int
12594 main ()
12595 {
12596   int i;
12597   for (i = 0; i < 256; i++)
12598     if (XOR (islower (i), ISLOWER (i))
12599         || toupper (i) != TOUPPER (i))
12600       return 2;
12601   return 0;
12602 }
12603 _ACEOF
12604 if ac_fn_c_try_run "$LINENO"; then :
12605
12606 else
12607   ac_cv_header_stdc=no
12608 fi
12609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12610   conftest.$ac_objext conftest.beam conftest.$ac_ext
12611 fi
12612
12613 fi
12614 fi
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12616 $as_echo "$ac_cv_header_stdc" >&6; }
12617 if test $ac_cv_header_stdc = yes; then
12618
12619 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12620
12621 fi
12622
12623 for ac_header in stdio.h
12624 do :
12625   ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
12626 if test "x$ac_cv_header_stdio_h" = xyes; then :
12627   cat >>confdefs.h <<_ACEOF
12628 #define HAVE_STDIO_H 1
12629 _ACEOF
12630
12631 fi
12632
12633 done
12634
12635 for ac_header in stdlib.h
12636 do :
12637   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12638 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12639   cat >>confdefs.h <<_ACEOF
12640 #define HAVE_STDLIB_H 1
12641 _ACEOF
12642
12643 fi
12644
12645 done
12646
12647 for ac_header in string.h
12648 do :
12649   ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
12650 if test "x$ac_cv_header_string_h" = xyes; then :
12651   cat >>confdefs.h <<_ACEOF
12652 #define HAVE_STRING_H 1
12653 _ACEOF
12654
12655 fi
12656
12657 done
12658
12659 for ac_header in ctype.h
12660 do :
12661   ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
12662 if test "x$ac_cv_header_ctype_h" = xyes; then :
12663   cat >>confdefs.h <<_ACEOF
12664 #define HAVE_CTYPE_H 1
12665 _ACEOF
12666
12667 fi
12668
12669 done
12670
12671 for ac_header in errno.h
12672 do :
12673   ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
12674 if test "x$ac_cv_header_errno_h" = xyes; then :
12675   cat >>confdefs.h <<_ACEOF
12676 #define HAVE_ERRNO_H 1
12677 _ACEOF
12678
12679 fi
12680
12681 done
12682
12683 for ac_header in ansidecl.h
12684 do :
12685   ac_fn_c_check_header_mongrel "$LINENO" "ansidecl.h" "ac_cv_header_ansidecl_h" "$ac_includes_default"
12686 if test "x$ac_cv_header_ansidecl_h" = xyes; then :
12687   cat >>confdefs.h <<_ACEOF
12688 #define HAVE_ANSIDECL_H 1
12689 _ACEOF
12690
12691 fi
12692
12693 done
12694
12695 for ac_header in time.h
12696 do :
12697   ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
12698 if test "x$ac_cv_header_time_h" = xyes; then :
12699   cat >>confdefs.h <<_ACEOF
12700 #define HAVE_TIME_H 1
12701 _ACEOF
12702
12703 fi
12704
12705 done
12706
12707 for ac_func in strchr strrchr printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscanf timegm
12708 do :
12709   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12710 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12711 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12712   cat >>confdefs.h <<_ACEOF
12713 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12714 _ACEOF
12715
12716 fi
12717 done
12718
12719
12720 XMLSEC_DEFINES=""
12721
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for development environment" >&5
12723 $as_echo_n "checking for development environment... " >&6; }
12724 # Check whether --enable-development was given.
12725 if test "${enable_development+set}" = set; then :
12726   enableval=$enable_development;
12727 fi
12728
12729 if test "z$enable_development" = "zyes" ; then
12730     enable_debugging="yes"
12731     enable_pedantic="yes"
12732     enable_static_linking="yes"
12733     enable_manpages_build="yes"
12734     enable_docs_build="yes"
12735     enable_crypto_dl="no"
12736     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12737 $as_echo "yes" >&6; }
12738 else
12739     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12740 $as_echo "no" >&6; }
12741 fi
12742
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for man pages build" >&5
12744 $as_echo_n "checking for man pages build... " >&6; }
12745 # Check whether --enable-manpages_build was given.
12746 if test "${enable_manpages_build+set}" = set; then :
12747   enableval=$enable_manpages_build;
12748 fi
12749
12750 if test "z$enable_manpages_build" = "zyes" ; then
12751     # Extract the first word of "help2man", so it can be a program name with args.
12752 set dummy help2man; ac_word=$2
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12754 $as_echo_n "checking for $ac_word... " >&6; }
12755 if ${ac_cv_path_HELP2MAN+:} false; then :
12756   $as_echo_n "(cached) " >&6
12757 else
12758   case $HELP2MAN in
12759   [\\/]* | ?:[\\/]*)
12760   ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
12761   ;;
12762   *)
12763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12764 for as_dir in $PATH
12765 do
12766   IFS=$as_save_IFS
12767   test -z "$as_dir" && as_dir=.
12768     for ac_exec_ext in '' $ac_executable_extensions; do
12769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12770     ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
12771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12772     break 2
12773   fi
12774 done
12775   done
12776 IFS=$as_save_IFS
12777
12778   ;;
12779 esac
12780 fi
12781 HELP2MAN=$ac_cv_path_HELP2MAN
12782 if test -n "$HELP2MAN"; then
12783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
12784 $as_echo "$HELP2MAN" >&6; }
12785 else
12786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12787 $as_echo "no" >&6; }
12788 fi
12789
12790
12791
12792     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12793 $as_echo "yes" >&6; }
12794 else
12795     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12796 $as_echo "no" >&6; }
12797 fi
12798
12799  if test x"$HELP2MAN" != x; then
12800   HAS_HELP2MAN_TRUE=
12801   HAS_HELP2MAN_FALSE='#'
12802 else
12803   HAS_HELP2MAN_TRUE='#'
12804   HAS_HELP2MAN_FALSE=
12805 fi
12806
12807  if test x"$HELP2MAN" != x; then
12808   BUILD_MANPAGES_TRUE=
12809   BUILD_MANPAGES_FALSE='#'
12810 else
12811   BUILD_MANPAGES_TRUE='#'
12812   BUILD_MANPAGES_FALSE=
12813 fi
12814
12815
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docs build" >&5
12817 $as_echo_n "checking for docs build... " >&6; }
12818 # Check whether --enable-docs_build was given.
12819 if test "${enable_docs_build+set}" = set; then :
12820   enableval=$enable_docs_build;
12821 fi
12822
12823 if test "z$enable_docs_build" = "zyes" ; then
12824     # Extract the first word of "xsltproc", so it can be a program name with args.
12825 set dummy xsltproc; ac_word=$2
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12827 $as_echo_n "checking for $ac_word... " >&6; }
12828 if ${ac_cv_path_XSLTPROC+:} false; then :
12829   $as_echo_n "(cached) " >&6
12830 else
12831   case $XSLTPROC in
12832   [\\/]* | ?:[\\/]*)
12833   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
12834   ;;
12835   *)
12836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12837 for as_dir in $PATH
12838 do
12839   IFS=$as_save_IFS
12840   test -z "$as_dir" && as_dir=.
12841     for ac_exec_ext in '' $ac_executable_extensions; do
12842   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12843     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
12844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12845     break 2
12846   fi
12847 done
12848   done
12849 IFS=$as_save_IFS
12850
12851   ;;
12852 esac
12853 fi
12854 XSLTPROC=$ac_cv_path_XSLTPROC
12855 if test -n "$XSLTPROC"; then
12856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
12857 $as_echo "$XSLTPROC" >&6; }
12858 else
12859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12860 $as_echo "no" >&6; }
12861 fi
12862
12863
12864     # Extract the first word of "man2html", so it can be a program name with args.
12865 set dummy man2html; ac_word=$2
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12867 $as_echo_n "checking for $ac_word... " >&6; }
12868 if ${ac_cv_path_MAN2HTML+:} false; then :
12869   $as_echo_n "(cached) " >&6
12870 else
12871   case $MAN2HTML in
12872   [\\/]* | ?:[\\/]*)
12873   ac_cv_path_MAN2HTML="$MAN2HTML" # Let the user override the test with a path.
12874   ;;
12875   *)
12876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12877 for as_dir in $PATH
12878 do
12879   IFS=$as_save_IFS
12880   test -z "$as_dir" && as_dir=.
12881     for ac_exec_ext in '' $ac_executable_extensions; do
12882   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12883     ac_cv_path_MAN2HTML="$as_dir/$ac_word$ac_exec_ext"
12884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12885     break 2
12886   fi
12887 done
12888   done
12889 IFS=$as_save_IFS
12890
12891   ;;
12892 esac
12893 fi
12894 MAN2HTML=$ac_cv_path_MAN2HTML
12895 if test -n "$MAN2HTML"; then
12896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN2HTML" >&5
12897 $as_echo "$MAN2HTML" >&6; }
12898 else
12899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12900 $as_echo "no" >&6; }
12901 fi
12902
12903
12904     # Extract the first word of "gtkdoc-mkhtml", so it can be a program name with args.
12905 set dummy gtkdoc-mkhtml; ac_word=$2
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12907 $as_echo_n "checking for $ac_word... " >&6; }
12908 if ${ac_cv_path_GTKDOC_MKHTML+:} false; then :
12909   $as_echo_n "(cached) " >&6
12910 else
12911   case $GTKDOC_MKHTML in
12912   [\\/]* | ?:[\\/]*)
12913   ac_cv_path_GTKDOC_MKHTML="$GTKDOC_MKHTML" # Let the user override the test with a path.
12914   ;;
12915   *)
12916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12917 for as_dir in $PATH
12918 do
12919   IFS=$as_save_IFS
12920   test -z "$as_dir" && as_dir=.
12921     for ac_exec_ext in '' $ac_executable_extensions; do
12922   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12923     ac_cv_path_GTKDOC_MKHTML="$as_dir/$ac_word$ac_exec_ext"
12924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12925     break 2
12926   fi
12927 done
12928   done
12929 IFS=$as_save_IFS
12930
12931   ;;
12932 esac
12933 fi
12934 GTKDOC_MKHTML=$ac_cv_path_GTKDOC_MKHTML
12935 if test -n "$GTKDOC_MKHTML"; then
12936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKHTML" >&5
12937 $as_echo "$GTKDOC_MKHTML" >&6; }
12938 else
12939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12940 $as_echo "no" >&6; }
12941 fi
12942
12943
12944     # Extract the first word of "gtkdoc-mktmpl", so it can be a program name with args.
12945 set dummy gtkdoc-mktmpl; ac_word=$2
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12947 $as_echo_n "checking for $ac_word... " >&6; }
12948 if ${ac_cv_path_GTKDOC_MKTMPL+:} false; then :
12949   $as_echo_n "(cached) " >&6
12950 else
12951   case $GTKDOC_MKTMPL in
12952   [\\/]* | ?:[\\/]*)
12953   ac_cv_path_GTKDOC_MKTMPL="$GTKDOC_MKTMPL" # Let the user override the test with a path.
12954   ;;
12955   *)
12956   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12957 for as_dir in $PATH
12958 do
12959   IFS=$as_save_IFS
12960   test -z "$as_dir" && as_dir=.
12961     for ac_exec_ext in '' $ac_executable_extensions; do
12962   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12963     ac_cv_path_GTKDOC_MKTMPL="$as_dir/$ac_word$ac_exec_ext"
12964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12965     break 2
12966   fi
12967 done
12968   done
12969 IFS=$as_save_IFS
12970
12971   ;;
12972 esac
12973 fi
12974 GTKDOC_MKTMPL=$ac_cv_path_GTKDOC_MKTMPL
12975 if test -n "$GTKDOC_MKTMPL"; then
12976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKTMPL" >&5
12977 $as_echo "$GTKDOC_MKTMPL" >&6; }
12978 else
12979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12980 $as_echo "no" >&6; }
12981 fi
12982
12983
12984     # Extract the first word of "gtkdoc-mkdb", so it can be a program name with args.
12985 set dummy gtkdoc-mkdb; ac_word=$2
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12987 $as_echo_n "checking for $ac_word... " >&6; }
12988 if ${ac_cv_path_GTKDOC_MKDB+:} false; then :
12989   $as_echo_n "(cached) " >&6
12990 else
12991   case $GTKDOC_MKDB in
12992   [\\/]* | ?:[\\/]*)
12993   ac_cv_path_GTKDOC_MKDB="$GTKDOC_MKDB" # Let the user override the test with a path.
12994   ;;
12995   *)
12996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12997 for as_dir in $PATH
12998 do
12999   IFS=$as_save_IFS
13000   test -z "$as_dir" && as_dir=.
13001     for ac_exec_ext in '' $ac_executable_extensions; do
13002   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13003     ac_cv_path_GTKDOC_MKDB="$as_dir/$ac_word$ac_exec_ext"
13004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13005     break 2
13006   fi
13007 done
13008   done
13009 IFS=$as_save_IFS
13010
13011   ;;
13012 esac
13013 fi
13014 GTKDOC_MKDB=$ac_cv_path_GTKDOC_MKDB
13015 if test -n "$GTKDOC_MKDB"; then
13016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKDB" >&5
13017 $as_echo "$GTKDOC_MKDB" >&6; }
13018 else
13019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13020 $as_echo "no" >&6; }
13021 fi
13022
13023
13024     # Extract the first word of "gtkdoc-scan", so it can be a program name with args.
13025 set dummy gtkdoc-scan; ac_word=$2
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13027 $as_echo_n "checking for $ac_word... " >&6; }
13028 if ${ac_cv_path_GTKDOC_SCAN+:} false; then :
13029   $as_echo_n "(cached) " >&6
13030 else
13031   case $GTKDOC_SCAN in
13032   [\\/]* | ?:[\\/]*)
13033   ac_cv_path_GTKDOC_SCAN="$GTKDOC_SCAN" # Let the user override the test with a path.
13034   ;;
13035   *)
13036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13037 for as_dir in $PATH
13038 do
13039   IFS=$as_save_IFS
13040   test -z "$as_dir" && as_dir=.
13041     for ac_exec_ext in '' $ac_executable_extensions; do
13042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13043     ac_cv_path_GTKDOC_SCAN="$as_dir/$ac_word$ac_exec_ext"
13044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13045     break 2
13046   fi
13047 done
13048   done
13049 IFS=$as_save_IFS
13050
13051   ;;
13052 esac
13053 fi
13054 GTKDOC_SCAN=$ac_cv_path_GTKDOC_SCAN
13055 if test -n "$GTKDOC_SCAN"; then
13056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_SCAN" >&5
13057 $as_echo "$GTKDOC_SCAN" >&6; }
13058 else
13059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13060 $as_echo "no" >&6; }
13061 fi
13062
13063
13064
13065     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13066 $as_echo "yes" >&6; }
13067 else
13068     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069 $as_echo "no" >&6; }
13070 fi
13071
13072  if test x"$MAN2HTML" != x; then
13073   HAS_MAN2HTML_TRUE=
13074   HAS_MAN2HTML_FALSE='#'
13075 else
13076   HAS_MAN2HTML_TRUE='#'
13077   HAS_MAN2HTML_FALSE=
13078 fi
13079
13080  if test x"$XSLTPROC" != x; then
13081   HAS_XSLTPROC_TRUE=
13082   HAS_XSLTPROC_FALSE='#'
13083 else
13084   HAS_XSLTPROC_TRUE='#'
13085   HAS_XSLTPROC_FALSE=
13086 fi
13087
13088
13089  if test x"$PERL" != x && test x"$XSLTPROC" != x && test x"$MAN2HTML" != x; then
13090   BUILD_MAN_DOCS_TRUE=
13091   BUILD_MAN_DOCS_FALSE='#'
13092 else
13093   BUILD_MAN_DOCS_TRUE='#'
13094   BUILD_MAN_DOCS_FALSE=
13095 fi
13096
13097  if test x"$PERL" != x && test x"$XSLTPROC" != x && test x"$GTKDOC_MKHTML" != x && test x"$GTKDOC_MKTMPL" != x && test x"$GTKDOC_MKDB" != x && test x"$GTKDOC_SCAN" != x; then
13098   BUILD_API_DOCS_TRUE=
13099   BUILD_API_DOCS_FALSE='#'
13100 else
13101   BUILD_API_DOCS_TRUE='#'
13102   BUILD_API_DOCS_FALSE=
13103 fi
13104
13105
13106 XMLSEC_EXTRA_LDFLAGS=
13107 XMLSEC_CRYPTO_EXTRA_LDFLAGS=
13108
13109 xmlsec_sharedlib_hack="no"
13110 if test -n "$shrext"; then
13111   XMLSEC_SHLIBSFX="$shrext"
13112 else
13113     XMLSEC_SHLIBSFX="$shrext_cmds"
13114 fi
13115 case "${host}" in
13116  *aix* )
13117         CFLAGS="${CFLAGS} -D_ALL_SOURCE"
13118         ;;
13119  *-*-mingw*)
13120                                 XMLSEC_EXTRA_LDFLAGS="-no-undefined -avoid-version"
13121         XMLSEC_CRYPTO_EXTRA_LDFLAGS="-no-undefined -avoid-version"
13122         XMLSEC_SHLIBSFX=".dll.a"
13123         xmlsec_sharedlib_hack="yes"
13124         ;;
13125  *-*-cygwin*)
13126         XMLSEC_EXTRA_LDFLAGS="-no-undefined"
13127         XMLSEC_CRYPTO_EXTRA_LDFLAGS="-no-undefined"
13128         ;;
13129  *-*-darwin*)
13130         XMLSEC_SHLIBSFX=".dylib"
13131         ;;
13132 esac
13133
13134 # To avoid problem with loading of a shared library (dlopen or equivalent)
13135 # at run time on some platforms we need to link crypto modules with extra
13136 # source. It's work without hack on 9x and under emulation.
13137 # On nt 5.x (w2k,xp) the error is 998("Invalid access to memory location").
13138  if test "z$xmlsec_sharedlib_hack" = "zyes"; then
13139   SHAREDLIB_HACK_TRUE=
13140   SHAREDLIB_HACK_FALSE='#'
13141 else
13142   SHAREDLIB_HACK_TRUE='#'
13143   SHAREDLIB_HACK_FALSE=
13144 fi
13145
13146
13147 if test "z$shrext" == "z" ; then
13148     shrext=$shrext_cmds
13149 fi
13150
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__ or __func__" >&5
13152 $as_echo_n "checking for __FUNCTION__ or __func__... " >&6; }
13153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13154 /* end confdefs.h.  */
13155
13156 int
13157 main ()
13158 {
13159 char *foo = __FUNCTION__;
13160   ;
13161   return 0;
13162 }
13163 _ACEOF
13164 if ac_fn_c_try_compile "$LINENO"; then :
13165   ac_function_exists=yes
13166 else
13167   ac_function_exists=no
13168 fi
13169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13171 /* end confdefs.h.  */
13172
13173 int
13174 main ()
13175 {
13176 char *foo = __func__;
13177   ;
13178   return 0;
13179 }
13180 _ACEOF
13181 if ac_fn_c_try_compile "$LINENO"; then :
13182   ac_func_exists=yes
13183 else
13184   ac_func_exists=no
13185 fi
13186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13187 if test "z$ac_func_exists" = "zyes" ; then
13188         { $as_echo "$as_me:${as_lineno-$LINENO}: result: __func__" >&5
13189 $as_echo "__func__" >&6; }
13190         XMLSEC_DEFINES="$XMLSEC_DEFINES -D__XMLSEC_FUNCTION__=__func__"
13191 elif test "z$ac_function_exists" = "zyes" ; then
13192     { $as_echo "$as_me:${as_lineno-$LINENO}: result: __FUNCTION__" >&5
13193 $as_echo "__FUNCTION__" >&6; }
13194     XMLSEC_DEFINES="$XMLSEC_DEFINES -D__XMLSEC_FUNCTION__=__FUNCTION__"
13195 else
13196         { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
13197 $as_echo "\"no\"" >&6; }
13198 fi
13199
13200 # The cast to long int works around a bug in the HP C Compiler
13201 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13202 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13203 # This bug is HP SR number 8606223364.
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
13205 $as_echo_n "checking size of size_t... " >&6; }
13206 if ${ac_cv_sizeof_size_t+:} false; then :
13207   $as_echo_n "(cached) " >&6
13208 else
13209   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
13210
13211 else
13212   if test "$ac_cv_type_size_t" = yes; then
13213      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13215 as_fn_error 77 "cannot compute sizeof (size_t)
13216 See \`config.log' for more details" "$LINENO" 5; }
13217    else
13218      ac_cv_sizeof_size_t=0
13219    fi
13220 fi
13221
13222 fi
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
13224 $as_echo "$ac_cv_sizeof_size_t" >&6; }
13225
13226
13227
13228 cat >>confdefs.h <<_ACEOF
13229 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
13230 _ACEOF
13231
13232
13233 if test "$ac_cv_sizeof_size_t" -ne "4" ; then
13234     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SIZE_T"
13235 fi
13236
13237 PKG_CONFIG="pkg-config"
13238 PKGCONFIG_FOUND="no"
13239 # Check whether --enable-pkgconfig was given.
13240 if test "${enable_pkgconfig+set}" = set; then :
13241   enableval=$enable_pkgconfig;
13242 fi
13243
13244 if test "z$enable_pkgconfig" != "zno" ; then
13245     # Extract the first word of "$PKG_CONFIG", so it can be a program name with args.
13246 set dummy $PKG_CONFIG; ac_word=$2
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13248 $as_echo_n "checking for $ac_word... " >&6; }
13249 if ${ac_cv_prog_PKGCONFIG_PRESENT+:} false; then :
13250   $as_echo_n "(cached) " >&6
13251 else
13252   if test -n "$PKGCONFIG_PRESENT"; then
13253   ac_cv_prog_PKGCONFIG_PRESENT="$PKGCONFIG_PRESENT" # Let the user override the test.
13254 else
13255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13256 for as_dir in $PATH
13257 do
13258   IFS=$as_save_IFS
13259   test -z "$as_dir" && as_dir=.
13260     for ac_exec_ext in '' $ac_executable_extensions; do
13261   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13262     ac_cv_prog_PKGCONFIG_PRESENT="yes"
13263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13264     break 2
13265   fi
13266 done
13267   done
13268 IFS=$as_save_IFS
13269
13270   test -z "$ac_cv_prog_PKGCONFIG_PRESENT" && ac_cv_prog_PKGCONFIG_PRESENT="no"
13271 fi
13272 fi
13273 PKGCONFIG_PRESENT=$ac_cv_prog_PKGCONFIG_PRESENT
13274 if test -n "$PKGCONFIG_PRESENT"; then
13275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG_PRESENT" >&5
13276 $as_echo "$PKGCONFIG_PRESENT" >&6; }
13277 else
13278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13279 $as_echo "no" >&6; }
13280 fi
13281
13282
13283     if test "z$PKGCONFIG_PRESENT" = "zyes" ; then
13284         if $PKG_CONFIG --atleast-pkgconfig-version 0.9 ; then
13285             PKGCONFIG_FOUND="yes"
13286         fi
13287     fi
13288 fi
13289
13290 LIBXML_MIN_VERSION="2.7.4"
13291 LIBXML_CONFIG="xml2-config"
13292 LIBXML_CFLAGS=""
13293 LIBXML_LIBS=""
13294 LIBXML_FOUND="no"
13295
13296 # Check whether --with-libxml was given.
13297 if test "${with_libxml+set}" = set; then :
13298   withval=$with_libxml;
13299 fi
13300
13301
13302 # Check whether --with-libxml-src was given.
13303 if test "${with_libxml_src+set}" = set; then :
13304   withval=$with_libxml_src;
13305 fi
13306
13307
13308 if test "z$with_libxml" = "zno" -o "z$with_libxml_src" = "zno"; then
13309     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 libraries >= $LIBXML_MIN_VERSION" >&5
13310 $as_echo_n "checking for libxml2 libraries >= $LIBXML_MIN_VERSION... " >&6; }
13311     as_fn_error $? "libxml2 >= $LIBXML_MIN_VERSION is required for $XMLSEC_PACKAGE" "$LINENO" 5
13312 elif test "z$with_libxml_src" != "z" ; then
13313     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 libraries >= $LIBXML_MIN_VERSION" >&5
13314 $as_echo_n "checking for libxml2 libraries >= $LIBXML_MIN_VERSION... " >&6; }
13315     CWD=`pwd`
13316     if cd "$with_libxml_src" ; then
13317         SRC_DIR=`pwd`
13318         LIBXML_CONFIG=${SRC_DIR}/xml2-config
13319         LIBXML_LIBS="-L${SRC_DIR}/.libs -lxml2"
13320         LIBXML_CFLAGS="-I${SRC_DIR}/include"
13321         LIBXML_FOUND="yes"
13322         cd $CWD
13323         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (source)" >&5
13324 $as_echo "yes (source)" >&6; }
13325     else
13326         as_fn_error $? "libxml source dir not found (${with_libxml_src}), typo?" "$LINENO" 5
13327     fi
13328 elif test "z$with_libxml" = "z" -a "z$PKGCONFIG_FOUND" = "zyes" ; then
13329
13330
13331
13332
13333
13334
13335
13336 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13337         if test -n "$ac_tool_prefix"; then
13338   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13339 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13341 $as_echo_n "checking for $ac_word... " >&6; }
13342 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13343   $as_echo_n "(cached) " >&6
13344 else
13345   case $PKG_CONFIG in
13346   [\\/]* | ?:[\\/]*)
13347   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13348   ;;
13349   *)
13350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13351 for as_dir in $PATH
13352 do
13353   IFS=$as_save_IFS
13354   test -z "$as_dir" && as_dir=.
13355     for ac_exec_ext in '' $ac_executable_extensions; do
13356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13357     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13359     break 2
13360   fi
13361 done
13362   done
13363 IFS=$as_save_IFS
13364
13365   ;;
13366 esac
13367 fi
13368 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13369 if test -n "$PKG_CONFIG"; then
13370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13371 $as_echo "$PKG_CONFIG" >&6; }
13372 else
13373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13374 $as_echo "no" >&6; }
13375 fi
13376
13377
13378 fi
13379 if test -z "$ac_cv_path_PKG_CONFIG"; then
13380   ac_pt_PKG_CONFIG=$PKG_CONFIG
13381   # Extract the first word of "pkg-config", so it can be a program name with args.
13382 set dummy pkg-config; ac_word=$2
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13384 $as_echo_n "checking for $ac_word... " >&6; }
13385 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13386   $as_echo_n "(cached) " >&6
13387 else
13388   case $ac_pt_PKG_CONFIG in
13389   [\\/]* | ?:[\\/]*)
13390   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13391   ;;
13392   *)
13393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13394 for as_dir in $PATH
13395 do
13396   IFS=$as_save_IFS
13397   test -z "$as_dir" && as_dir=.
13398     for ac_exec_ext in '' $ac_executable_extensions; do
13399   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13400     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13402     break 2
13403   fi
13404 done
13405   done
13406 IFS=$as_save_IFS
13407
13408   ;;
13409 esac
13410 fi
13411 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13412 if test -n "$ac_pt_PKG_CONFIG"; then
13413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13414 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13415 else
13416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13417 $as_echo "no" >&6; }
13418 fi
13419
13420   if test "x$ac_pt_PKG_CONFIG" = x; then
13421     PKG_CONFIG=""
13422   else
13423     case $cross_compiling:$ac_tool_warned in
13424 yes:)
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13427 ac_tool_warned=yes ;;
13428 esac
13429     PKG_CONFIG=$ac_pt_PKG_CONFIG
13430   fi
13431 else
13432   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13433 fi
13434
13435 fi
13436 if test -n "$PKG_CONFIG"; then
13437         _pkg_min_version=0.9.0
13438         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13439 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13440         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13441                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13442 $as_echo "yes" >&6; }
13443         else
13444                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13445 $as_echo "no" >&6; }
13446                 PKG_CONFIG=""
13447         fi
13448 fi
13449
13450 pkg_failed=no
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML" >&5
13452 $as_echo_n "checking for LIBXML... " >&6; }
13453
13454 if test -n "$LIBXML_CFLAGS"; then
13455     pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS"
13456  elif test -n "$PKG_CONFIG"; then
13457     if test -n "$PKG_CONFIG" && \
13458     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= \$LIBXML_MIN_VERSION\""; } >&5
13459   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= $LIBXML_MIN_VERSION") 2>&5
13460   ac_status=$?
13461   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13462   test $ac_status = 0; }; then
13463   pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= $LIBXML_MIN_VERSION" 2>/dev/null`
13464                       test "x$?" != "x0" && pkg_failed=yes
13465 else
13466   pkg_failed=yes
13467 fi
13468  else
13469     pkg_failed=untried
13470 fi
13471 if test -n "$LIBXML_LIBS"; then
13472     pkg_cv_LIBXML_LIBS="$LIBXML_LIBS"
13473  elif test -n "$PKG_CONFIG"; then
13474     if test -n "$PKG_CONFIG" && \
13475     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= \$LIBXML_MIN_VERSION\""; } >&5
13476   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= $LIBXML_MIN_VERSION") 2>&5
13477   ac_status=$?
13478   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13479   test $ac_status = 0; }; then
13480   pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= $LIBXML_MIN_VERSION" 2>/dev/null`
13481                       test "x$?" != "x0" && pkg_failed=yes
13482 else
13483   pkg_failed=yes
13484 fi
13485  else
13486     pkg_failed=untried
13487 fi
13488
13489
13490
13491 if test $pkg_failed = yes; then
13492         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13493 $as_echo "no" >&6; }
13494
13495 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13496         _pkg_short_errors_supported=yes
13497 else
13498         _pkg_short_errors_supported=no
13499 fi
13500         if test $_pkg_short_errors_supported = yes; then
13501                 LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= $LIBXML_MIN_VERSION" 2>&1`
13502         else
13503                 LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= $LIBXML_MIN_VERSION" 2>&1`
13504         fi
13505         # Put the nasty error message in config.log where it belongs
13506         echo "$LIBXML_PKG_ERRORS" >&5
13507
13508         LIBXML_FOUND=no
13509 elif test $pkg_failed = untried; then
13510         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13511 $as_echo "no" >&6; }
13512         LIBXML_FOUND=no
13513 else
13514         LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS
13515         LIBXML_LIBS=$pkg_cv_LIBXML_LIBS
13516         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13517 $as_echo "yes" >&6; }
13518         LIBXML_FOUND=yes
13519 fi
13520 fi
13521 if test "z$LIBXML_FOUND" = "zno" ; then
13522     if test "z$with_libxml" != "zyes" ; then
13523         if test "z$with_libxml" != "z" ; then
13524             # Extract the first word of "$LIBXML_CONFIG", so it can be a program name with args.
13525 set dummy $LIBXML_CONFIG; ac_word=$2
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13527 $as_echo_n "checking for $ac_word... " >&6; }
13528 if ${ac_cv_path_LIBXML_CONFIG+:} false; then :
13529   $as_echo_n "(cached) " >&6
13530 else
13531   case $LIBXML_CONFIG in
13532   [\\/]* | ?:[\\/]*)
13533   ac_cv_path_LIBXML_CONFIG="$LIBXML_CONFIG" # Let the user override the test with a path.
13534   ;;
13535   *)
13536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13537 as_dummy="$with_libxml/bin:$PATH"
13538 for as_dir in $as_dummy
13539 do
13540   IFS=$as_save_IFS
13541   test -z "$as_dir" && as_dir=.
13542     for ac_exec_ext in '' $ac_executable_extensions; do
13543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13544     ac_cv_path_LIBXML_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13546     break 2
13547   fi
13548 done
13549   done
13550 IFS=$as_save_IFS
13551
13552   ;;
13553 esac
13554 fi
13555 LIBXML_CONFIG=$ac_cv_path_LIBXML_CONFIG
13556 if test -n "$LIBXML_CONFIG"; then
13557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML_CONFIG" >&5
13558 $as_echo "$LIBXML_CONFIG" >&6; }
13559 else
13560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13561 $as_echo "no" >&6; }
13562 fi
13563
13564
13565         else
13566             # Extract the first word of "$LIBXML_CONFIG", so it can be a program name with args.
13567 set dummy $LIBXML_CONFIG; ac_word=$2
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13569 $as_echo_n "checking for $ac_word... " >&6; }
13570 if ${ac_cv_path_LIBXML_CONFIG+:} false; then :
13571   $as_echo_n "(cached) " >&6
13572 else
13573   case $LIBXML_CONFIG in
13574   [\\/]* | ?:[\\/]*)
13575   ac_cv_path_LIBXML_CONFIG="$LIBXML_CONFIG" # Let the user override the test with a path.
13576   ;;
13577   *)
13578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13579 for as_dir in $PATH
13580 do
13581   IFS=$as_save_IFS
13582   test -z "$as_dir" && as_dir=.
13583     for ac_exec_ext in '' $ac_executable_extensions; do
13584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13585     ac_cv_path_LIBXML_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13587     break 2
13588   fi
13589 done
13590   done
13591 IFS=$as_save_IFS
13592
13593   ;;
13594 esac
13595 fi
13596 LIBXML_CONFIG=$ac_cv_path_LIBXML_CONFIG
13597 if test -n "$LIBXML_CONFIG"; then
13598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML_CONFIG" >&5
13599 $as_echo "$LIBXML_CONFIG" >&6; }
13600 else
13601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13602 $as_echo "no" >&6; }
13603 fi
13604
13605
13606         fi
13607     fi
13608     { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 $LIBXML_CONFIG " >&5
13609 $as_echo_n "checking libxml2 $LIBXML_CONFIG ... " >&6; }
13610     if ! LIBXML_VERSION=`$LIBXML_CONFIG --version 2>/dev/null`; then
13611         as_fn_error $? "Could not find libxml2 anywhere." "$LINENO" 5
13612     fi
13613     vers=`echo $LIBXML_VERSION | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
13614     minvers=`echo $LIBXML_MIN_VERSION | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
13615     if test "$vers" -ge "$minvers" ; then
13616         LIBXML_LIBS="`$LIBXML_CONFIG --libs`"
13617         LIBXML_CFLAGS="`$LIBXML_CONFIG --cflags`"
13618         LIBXML_FOUND="yes"
13619         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ('$LIBXML_VERSION')" >&5
13620 $as_echo "yes ('$LIBXML_VERSION')" >&6; }
13621     else
13622         as_fn_error $? "You need at least libxml2 $LIBXML_MIN_VERSION for this version of $XMLSEC_PACKAGE" "$LINENO" 5
13623     fi
13624 fi
13625
13626
13627
13628
13629
13630
13631 XMLSEC_NO_LIBXSLT="1"
13632 LIBXSLT_MIN_VERSION=1.0.20
13633 LIBXSLT_PC_FILE_COND="libxslt >= $LIBXSLT_MIN_VERSION"
13634 LIBXSLT_CONFIG="xslt-config"
13635 LIBXSLT_CFLAGS=""
13636 LIBXSLT_LIBS=""
13637 LIBXSLT_FOUND="no"
13638
13639 # Check whether --with-libxslt was given.
13640 if test "${with_libxslt+set}" = set; then :
13641   withval=$with_libxslt;
13642 fi
13643
13644
13645 # Check whether --with-libxslt-src was given.
13646 if test "${with_libxslt_src+set}" = set; then :
13647   withval=$with_libxslt_src;
13648 fi
13649
13650 if test "z$with_libxslt" = "zno" -o "z$with_libxslt_src" = "zno" ; then
13651     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxslt libraries >= $LIBXSLT_MIN_VERSION" >&5
13652 $as_echo_n "checking for libxslt libraries >= $LIBXSLT_MIN_VERSION... " >&6; }
13653     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13654 $as_echo "no" >&6; }
13655     LIBXSLT_FOUND="without"
13656 elif test "z$with_libxslt_src" != "z" ; then
13657     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxslt libraries >= $LIBXSLT_MIN_VERSION" >&5
13658 $as_echo_n "checking for libxslt libraries >= $LIBXSLT_MIN_VERSION... " >&6; }
13659     CWD=`pwd`
13660     if cd "$with_libxslt_src" ; then
13661         SRC_DIR=`pwd`
13662         LIBXSLT_CONFIG=${SRC_DIR}/xslt-config
13663         LIBXSLT_LIBS="-L${SRC_DIR}/libxslt/.libs -lxslt"
13664         LIBXSLT_CFLAGS="-I${SRC_DIR}"
13665         LIBXSLT_FOUND="yes"
13666         cd $CWD
13667         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (source)" >&5
13668 $as_echo "yes (source)" >&6; }
13669     else
13670         as_fn_error $? "libxslt source dir not found (${with_libxslt_src}), typo?" "$LINENO" 5
13671     fi
13672 elif test "z$with_libxslt" = "z" -a  "z$PKGCONFIG_FOUND" = "zyes" ; then
13673
13674 pkg_failed=no
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXSLT" >&5
13676 $as_echo_n "checking for LIBXSLT... " >&6; }
13677
13678 if test -n "$LIBXSLT_CFLAGS"; then
13679     pkg_cv_LIBXSLT_CFLAGS="$LIBXSLT_CFLAGS"
13680  elif test -n "$PKG_CONFIG"; then
13681     if test -n "$PKG_CONFIG" && \
13682     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxslt >= \$LIBXSLT_MIN_VERSION\""; } >&5
13683   ($PKG_CONFIG --exists --print-errors "libxslt >= $LIBXSLT_MIN_VERSION") 2>&5
13684   ac_status=$?
13685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13686   test $ac_status = 0; }; then
13687   pkg_cv_LIBXSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= $LIBXSLT_MIN_VERSION" 2>/dev/null`
13688                       test "x$?" != "x0" && pkg_failed=yes
13689 else
13690   pkg_failed=yes
13691 fi
13692  else
13693     pkg_failed=untried
13694 fi
13695 if test -n "$LIBXSLT_LIBS"; then
13696     pkg_cv_LIBXSLT_LIBS="$LIBXSLT_LIBS"
13697  elif test -n "$PKG_CONFIG"; then
13698     if test -n "$PKG_CONFIG" && \
13699     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxslt >= \$LIBXSLT_MIN_VERSION\""; } >&5
13700   ($PKG_CONFIG --exists --print-errors "libxslt >= $LIBXSLT_MIN_VERSION") 2>&5
13701   ac_status=$?
13702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13703   test $ac_status = 0; }; then
13704   pkg_cv_LIBXSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= $LIBXSLT_MIN_VERSION" 2>/dev/null`
13705                       test "x$?" != "x0" && pkg_failed=yes
13706 else
13707   pkg_failed=yes
13708 fi
13709  else
13710     pkg_failed=untried
13711 fi
13712
13713
13714
13715 if test $pkg_failed = yes; then
13716         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13717 $as_echo "no" >&6; }
13718
13719 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13720         _pkg_short_errors_supported=yes
13721 else
13722         _pkg_short_errors_supported=no
13723 fi
13724         if test $_pkg_short_errors_supported = yes; then
13725                 LIBXSLT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxslt >= $LIBXSLT_MIN_VERSION" 2>&1`
13726         else
13727                 LIBXSLT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxslt >= $LIBXSLT_MIN_VERSION" 2>&1`
13728         fi
13729         # Put the nasty error message in config.log where it belongs
13730         echo "$LIBXSLT_PKG_ERRORS" >&5
13731
13732         LIBXSLT_FOUND=no
13733 elif test $pkg_failed = untried; then
13734         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13735 $as_echo "no" >&6; }
13736         LIBXSLT_FOUND=no
13737 else
13738         LIBXSLT_CFLAGS=$pkg_cv_LIBXSLT_CFLAGS
13739         LIBXSLT_LIBS=$pkg_cv_LIBXSLT_LIBS
13740         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13741 $as_echo "yes" >&6; }
13742         LIBXSLT_FOUND=yes
13743 fi
13744 fi
13745
13746 if test "z$LIBXSLT_FOUND" = "zno" ; then
13747     if test "z$with_libxslt" != "zyes" ; then
13748         if test "z$with_libxslt" != "z" ; then
13749             # Extract the first word of "$LIBXSLT_CONFIG", so it can be a program name with args.
13750 set dummy $LIBXSLT_CONFIG; ac_word=$2
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13752 $as_echo_n "checking for $ac_word... " >&6; }
13753 if ${ac_cv_path_LIBXSLT_CONFIG+:} false; then :
13754   $as_echo_n "(cached) " >&6
13755 else
13756   case $LIBXSLT_CONFIG in
13757   [\\/]* | ?:[\\/]*)
13758   ac_cv_path_LIBXSLT_CONFIG="$LIBXSLT_CONFIG" # Let the user override the test with a path.
13759   ;;
13760   *)
13761   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13762 as_dummy="$with_libxslt/bin:$PATH"
13763 for as_dir in $as_dummy
13764 do
13765   IFS=$as_save_IFS
13766   test -z "$as_dir" && as_dir=.
13767     for ac_exec_ext in '' $ac_executable_extensions; do
13768   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13769     ac_cv_path_LIBXSLT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13771     break 2
13772   fi
13773 done
13774   done
13775 IFS=$as_save_IFS
13776
13777   ;;
13778 esac
13779 fi
13780 LIBXSLT_CONFIG=$ac_cv_path_LIBXSLT_CONFIG
13781 if test -n "$LIBXSLT_CONFIG"; then
13782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXSLT_CONFIG" >&5
13783 $as_echo "$LIBXSLT_CONFIG" >&6; }
13784 else
13785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13786 $as_echo "no" >&6; }
13787 fi
13788
13789
13790         else
13791             # Extract the first word of "$LIBXSLT_CONFIG", so it can be a program name with args.
13792 set dummy $LIBXSLT_CONFIG; ac_word=$2
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13794 $as_echo_n "checking for $ac_word... " >&6; }
13795 if ${ac_cv_path_LIBXSLT_CONFIG+:} false; then :
13796   $as_echo_n "(cached) " >&6
13797 else
13798   case $LIBXSLT_CONFIG in
13799   [\\/]* | ?:[\\/]*)
13800   ac_cv_path_LIBXSLT_CONFIG="$LIBXSLT_CONFIG" # Let the user override the test with a path.
13801   ;;
13802   *)
13803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13804 for as_dir in $PATH
13805 do
13806   IFS=$as_save_IFS
13807   test -z "$as_dir" && as_dir=.
13808     for ac_exec_ext in '' $ac_executable_extensions; do
13809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13810     ac_cv_path_LIBXSLT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13812     break 2
13813   fi
13814 done
13815   done
13816 IFS=$as_save_IFS
13817
13818   ;;
13819 esac
13820 fi
13821 LIBXSLT_CONFIG=$ac_cv_path_LIBXSLT_CONFIG
13822 if test -n "$LIBXSLT_CONFIG"; then
13823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXSLT_CONFIG" >&5
13824 $as_echo "$LIBXSLT_CONFIG" >&6; }
13825 else
13826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13827 $as_echo "no" >&6; }
13828 fi
13829
13830
13831         fi
13832     fi
13833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxslt libraries >= $LIBXSLT_MIN_VERSION" >&5
13834 $as_echo_n "checking for libxslt libraries >= $LIBXSLT_MIN_VERSION... " >&6; }
13835     if ! LIBXSLT_VERSION=`$LIBXSLT_CONFIG --version 2>/dev/null`; then
13836         if test "z$with_libxslt" != "zyes" ; then
13837             as_fn_error $? "Unable to find libxslt at '$with_libxslt'" "$LINENO" 5
13838         else
13839             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13840 $as_echo "no" >&6; }
13841         fi
13842     else
13843         vers=`echo $LIBXSLT_VERSION | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
13844         minvers=`echo $LIBXSLT_MIN_VERSION | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
13845         if test "$vers" -ge "$minvers" ; then
13846             LIBXSLT_LIBS="`$LIBXSLT_CONFIG --libs`"
13847             LIBXSLT_CFLAGS="`$LIBXSLT_CONFIG --cflags`"
13848             LIBXSLT_FOUND="yes"
13849             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ('$LIBXSLT_VERSION')" >&5
13850 $as_echo "yes ('$LIBXSLT_VERSION')" >&6; }
13851         else
13852             as_fn_error $? "You need at least libxslt $LIBXSLT_MIN_VERSION for this version of $XMLSEC_PACKAGE" "$LINENO" 5
13853         fi
13854     fi
13855 fi
13856
13857 if test "z$LIBXSLT_FOUND" = "zyes" ; then
13858     XMLSEC_NO_LIBXSLT="0"
13859 else
13860     LIBXSLT_PC_FILE_COND=""
13861     LIBXSLT_MIN_VERSION=""
13862     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_XSLT=1"
13863 fi
13864
13865
13866
13867
13868
13869
13870
13871
13872 XMLSEC_CRYPTO_LIST=""
13873 XMLSEC_CRYPTO_DISABLED_LIST=""
13874
13875 ac_openssl_lib_dir="/usr/local/lib /usr/lib /usr/lib64 /usr/local /usr/local/ssl /usr/local/ssl/lib /usr/pkg"
13876 ac_openssl_inc_dir="/usr/local/include /usr/include /usr/local /usr/local/ssl /usr/pkg /usr/local/ssl/include"
13877
13878 XMLSEC_NO_OPENSSL="1"
13879 OPENSSL_MIN_VERSION="0.9.8"
13880 OPENSSL_VERSION=""
13881 OPENSSL_CFLAGS=""
13882 OPENSSL_LIBS=""
13883 OPENSSL_CRYPTO_LIB="$XMLSEC_PACKAGE-openssl"
13884 OPENSSL_FOUND=no
13885
13886 # Check whether --with-openssl was given.
13887 if test "${with_openssl+set}" = set; then :
13888   withval=$with_openssl;
13889 fi
13890
13891 if test "z$with_openssl" = "zno" ; then
13892     OPENSSL_FOUND=without
13893     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl libraries >= $OPENSSL_MIN_VERSION" >&5
13894 $as_echo_n "checking for openssl libraries >= $OPENSSL_MIN_VERSION... " >&6; }
13895     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13896 $as_echo "no" >&6; }
13897 elif test "z$with_openssl" != "z" ; then
13898     case $host in
13899         *-*-mingw*) openssl_exlibs=;;
13900         *-*-osf5*) openssl_exlibs=;;
13901         *-*-openbsd*) openssl_exlibs=;;
13902         *-*-netbsd*) openssl_exlibs=;;
13903         #FIXME: check if lib "dl" is required
13904         *)          openssl_exlibs=-ldl;;
13905     esac
13906     OPENSSL_CFLAGS="$OPENSSL_CFLAGS -I$with_openssl/include"
13907     if test -f "$with_openssl/lib/libcrypto${XMLSEC_SHLIBSFX}" ; then
13908         OPENSSL_LIBS="-L$with_openssl/lib -lcrypto $openssl_exlibs"
13909     else
13910         OPENSSL_LIBS="$with_openssl/lib/libcrypto.a $openssl_exlibs"
13911     fi
13912     OPENSSL_FOUND="yes"
13913 elif test "z$PKGCONFIG_FOUND" = "zyes" ; then
13914     if test "z$OPENSSL_VERSION" = "z" ; then
13915
13916 pkg_failed=no
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
13918 $as_echo_n "checking for OPENSSL... " >&6; }
13919
13920 if test -n "$OPENSSL_CFLAGS"; then
13921     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
13922  elif test -n "$PKG_CONFIG"; then
13923     if test -n "$PKG_CONFIG" && \
13924     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.1.0\""; } >&5
13925   ($PKG_CONFIG --exists --print-errors "openssl >= 1.1.0") 2>&5
13926   ac_status=$?
13927   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13928   test $ac_status = 0; }; then
13929   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.1.0" 2>/dev/null`
13930                       test "x$?" != "x0" && pkg_failed=yes
13931 else
13932   pkg_failed=yes
13933 fi
13934  else
13935     pkg_failed=untried
13936 fi
13937 if test -n "$OPENSSL_LIBS"; then
13938     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
13939  elif test -n "$PKG_CONFIG"; then
13940     if test -n "$PKG_CONFIG" && \
13941     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.1.0\""; } >&5
13942   ($PKG_CONFIG --exists --print-errors "openssl >= 1.1.0") 2>&5
13943   ac_status=$?
13944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13945   test $ac_status = 0; }; then
13946   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 1.1.0" 2>/dev/null`
13947                       test "x$?" != "x0" && pkg_failed=yes
13948 else
13949   pkg_failed=yes
13950 fi
13951  else
13952     pkg_failed=untried
13953 fi
13954
13955
13956
13957 if test $pkg_failed = yes; then
13958         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13959 $as_echo "no" >&6; }
13960
13961 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13962         _pkg_short_errors_supported=yes
13963 else
13964         _pkg_short_errors_supported=no
13965 fi
13966         if test $_pkg_short_errors_supported = yes; then
13967                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.1.0" 2>&1`
13968         else
13969                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.1.0" 2>&1`
13970         fi
13971         # Put the nasty error message in config.log where it belongs
13972         echo "$OPENSSL_PKG_ERRORS" >&5
13973
13974         OPENSSL_VERSION=""
13975 elif test $pkg_failed = untried; then
13976         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13977 $as_echo "no" >&6; }
13978         OPENSSL_VERSION=""
13979 else
13980         OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
13981         OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
13982         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13983 $as_echo "yes" >&6; }
13984         OPENSSL_VERSION="1.1.0"
13985 fi
13986     fi
13987
13988     if test "z$OPENSSL_VERSION" = "z" ; then
13989
13990 pkg_failed=no
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
13992 $as_echo_n "checking for OPENSSL... " >&6; }
13993
13994 if test -n "$OPENSSL_CFLAGS"; then
13995     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
13996  elif test -n "$PKG_CONFIG"; then
13997     if test -n "$PKG_CONFIG" && \
13998     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.0\""; } >&5
13999   ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.0") 2>&5
14000   ac_status=$?
14001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14002   test $ac_status = 0; }; then
14003   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.0.0" 2>/dev/null`
14004                       test "x$?" != "x0" && pkg_failed=yes
14005 else
14006   pkg_failed=yes
14007 fi
14008  else
14009     pkg_failed=untried
14010 fi
14011 if test -n "$OPENSSL_LIBS"; then
14012     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
14013  elif test -n "$PKG_CONFIG"; then
14014     if test -n "$PKG_CONFIG" && \
14015     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.0\""; } >&5
14016   ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.0") 2>&5
14017   ac_status=$?
14018   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14019   test $ac_status = 0; }; then
14020   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 1.0.0" 2>/dev/null`
14021                       test "x$?" != "x0" && pkg_failed=yes
14022 else
14023   pkg_failed=yes
14024 fi
14025  else
14026     pkg_failed=untried
14027 fi
14028
14029
14030
14031 if test $pkg_failed = yes; then
14032         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14033 $as_echo "no" >&6; }
14034
14035 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14036         _pkg_short_errors_supported=yes
14037 else
14038         _pkg_short_errors_supported=no
14039 fi
14040         if test $_pkg_short_errors_supported = yes; then
14041                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.0.0" 2>&1`
14042         else
14043                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.0.0" 2>&1`
14044         fi
14045         # Put the nasty error message in config.log where it belongs
14046         echo "$OPENSSL_PKG_ERRORS" >&5
14047
14048         OPENSSL_VERSION=""
14049 elif test $pkg_failed = untried; then
14050         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14051 $as_echo "no" >&6; }
14052         OPENSSL_VERSION=""
14053 else
14054         OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
14055         OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
14056         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14057 $as_echo "yes" >&6; }
14058         OPENSSL_VERSION="1.0.0"
14059 fi
14060     fi
14061
14062     if test "z$OPENSSL_VERSION" = "z" ; then
14063
14064 pkg_failed=no
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
14066 $as_echo_n "checking for OPENSSL... " >&6; }
14067
14068 if test -n "$OPENSSL_CFLAGS"; then
14069     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
14070  elif test -n "$PKG_CONFIG"; then
14071     if test -n "$PKG_CONFIG" && \
14072     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.8\""; } >&5
14073   ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.8") 2>&5
14074   ac_status=$?
14075   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14076   test $ac_status = 0; }; then
14077   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.9.8" 2>/dev/null`
14078                       test "x$?" != "x0" && pkg_failed=yes
14079 else
14080   pkg_failed=yes
14081 fi
14082  else
14083     pkg_failed=untried
14084 fi
14085 if test -n "$OPENSSL_LIBS"; then
14086     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
14087  elif test -n "$PKG_CONFIG"; then
14088     if test -n "$PKG_CONFIG" && \
14089     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.8\""; } >&5
14090   ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.8") 2>&5
14091   ac_status=$?
14092   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14093   test $ac_status = 0; }; then
14094   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 0.9.8" 2>/dev/null`
14095                       test "x$?" != "x0" && pkg_failed=yes
14096 else
14097   pkg_failed=yes
14098 fi
14099  else
14100     pkg_failed=untried
14101 fi
14102
14103
14104
14105 if test $pkg_failed = yes; then
14106         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14107 $as_echo "no" >&6; }
14108
14109 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14110         _pkg_short_errors_supported=yes
14111 else
14112         _pkg_short_errors_supported=no
14113 fi
14114         if test $_pkg_short_errors_supported = yes; then
14115                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 0.9.8" 2>&1`
14116         else
14117                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 0.9.8" 2>&1`
14118         fi
14119         # Put the nasty error message in config.log where it belongs
14120         echo "$OPENSSL_PKG_ERRORS" >&5
14121
14122         OPENSSL_VERSION=""
14123 elif test $pkg_failed = untried; then
14124         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14125 $as_echo "no" >&6; }
14126         OPENSSL_VERSION=""
14127 else
14128         OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
14129         OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
14130         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14131 $as_echo "yes" >&6; }
14132         OPENSSL_VERSION="0.9.8"
14133 fi
14134     fi
14135
14136     if test "z$OPENSSL_VERSION" = "z" ; then
14137
14138 pkg_failed=no
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
14140 $as_echo_n "checking for OPENSSL... " >&6; }
14141
14142 if test -n "$OPENSSL_CFLAGS"; then
14143     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
14144  elif test -n "$PKG_CONFIG"; then
14145     if test -n "$PKG_CONFIG" && \
14146     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= \$OPENSSL_MIN_VERSION\""; } >&5
14147   ($PKG_CONFIG --exists --print-errors "openssl >= $OPENSSL_MIN_VERSION") 2>&5
14148   ac_status=$?
14149   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14150   test $ac_status = 0; }; then
14151   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= $OPENSSL_MIN_VERSION" 2>/dev/null`
14152                       test "x$?" != "x0" && pkg_failed=yes
14153 else
14154   pkg_failed=yes
14155 fi
14156  else
14157     pkg_failed=untried
14158 fi
14159 if test -n "$OPENSSL_LIBS"; then
14160     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
14161  elif test -n "$PKG_CONFIG"; then
14162     if test -n "$PKG_CONFIG" && \
14163     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= \$OPENSSL_MIN_VERSION\""; } >&5
14164   ($PKG_CONFIG --exists --print-errors "openssl >= $OPENSSL_MIN_VERSION") 2>&5
14165   ac_status=$?
14166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14167   test $ac_status = 0; }; then
14168   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= $OPENSSL_MIN_VERSION" 2>/dev/null`
14169                       test "x$?" != "x0" && pkg_failed=yes
14170 else
14171   pkg_failed=yes
14172 fi
14173  else
14174     pkg_failed=untried
14175 fi
14176
14177
14178
14179 if test $pkg_failed = yes; then
14180         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14181 $as_echo "no" >&6; }
14182
14183 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14184         _pkg_short_errors_supported=yes
14185 else
14186         _pkg_short_errors_supported=no
14187 fi
14188         if test $_pkg_short_errors_supported = yes; then
14189                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= $OPENSSL_MIN_VERSION" 2>&1`
14190         else
14191                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= $OPENSSL_MIN_VERSION" 2>&1`
14192         fi
14193         # Put the nasty error message in config.log where it belongs
14194         echo "$OPENSSL_PKG_ERRORS" >&5
14195
14196         OPENSSL_VERSION=""
14197 elif test $pkg_failed = untried; then
14198         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14199 $as_echo "no" >&6; }
14200         OPENSSL_VERSION=""
14201 else
14202         OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
14203         OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
14204         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14205 $as_echo "yes" >&6; }
14206         OPENSSL_VERSION="$OPENSSL_MIN_VERSION"
14207 fi
14208     fi
14209
14210     if test "z$OPENSSL_VERSION" != "z" ; then
14211         OPENSSL_FOUND="yes"
14212     fi
14213 fi
14214
14215 if test "z$OPENSSL_FOUND" = "zno" ; then
14216     OPENSSL_INCLUDES_FOUND="no"
14217     OPENSSL_LIBS_FOUND="no"
14218
14219     for dir in $ac_openssl_inc_dir ; do
14220         if test -f $dir/openssl/ssl.h ; then
14221                     if test "z$dir" = "z/usr/include" ; then
14222                 OPENSSL_CFLAGS="$OPENSSL_CFLAGS "
14223             else
14224                 OPENSSL_CFLAGS="$OPENSSL_CFLAGS -I$dir"
14225             fi
14226             OPENSSL_INCLUDES_FOUND="yes"
14227             break
14228         fi
14229     done
14230
14231     for dir in $ac_openssl_lib_dir ; do
14232         if test -f $dir/libcrypto.a ; then
14233                     if test "z$dir" = "z/usr/lib" ; then
14234                 OPENSSL_LIBS="-lcrypto -ldl"
14235             else
14236                 OPENSSL_LIBS="-L$dir -lcrypto -ldl"
14237             fi
14238             OPENSSL_LIBS_FOUND="yes"
14239             ac_found_openssl_lib_dir=$dir
14240             break;
14241         fi
14242     done
14243
14244     if test "z$OPENSSL_INCLUDES_FOUND" = "zyes" -a "z$OPENSSL_LIBS_FOUND" = "zyes" ; then
14245         OPENSSL_FOUND="yes"
14246     fi
14247 fi
14248
14249 if test "z$OPENSSL_FOUND" = "zyes" -a "z$OPENSSL_VERSION" = "z" ; then
14250     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl libraries >= $OPENSSL_MIN_VERSION" >&5
14251 $as_echo_n "checking for openssl libraries >= $OPENSSL_MIN_VERSION... " >&6; }
14252
14253         OLD_CPPFLAGS=$CPPFLAGS
14254     CPPFLAGS="$OPENSSL_CFLAGS"
14255
14256     if test "z$OPENSSL_VERSION" = "z" ; then
14257         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14258 /* end confdefs.h.  */
14259
14260             #include <openssl/opensslv.h>
14261         #if OPENSSL_VERSION_NUMBER >= 0x10100000L
14262         yes
14263         #endif
14264
14265 _ACEOF
14266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14267   $EGREP "yes" >/dev/null 2>&1; then :
14268
14269         OPENSSL_VERSION="1.1.0"
14270
14271 else
14272
14273         OPENSSL_VERSION=""
14274
14275 fi
14276 rm -f conftest*
14277
14278     fi
14279
14280     if test "z$OPENSSL_VERSION" = "z" ; then
14281         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14282 /* end confdefs.h.  */
14283
14284             #include <openssl/opensslv.h>
14285             #if OPENSSL_VERSION_NUMBER >= 0x10000000L
14286                 yes
14287             #endif
14288
14289 _ACEOF
14290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14291   $EGREP "yes" >/dev/null 2>&1; then :
14292
14293             OPENSSL_VERSION="1.0.0"
14294
14295 else
14296
14297             OPENSSL_VERSION=""
14298
14299 fi
14300 rm -f conftest*
14301
14302     fi
14303
14304     if test "z$OPENSSL_VERSION" = "z" ; then
14305         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14306 /* end confdefs.h.  */
14307
14308             #include <openssl/opensslv.h>
14309             #if OPENSSL_VERSION_NUMBER >= 0x00908000L
14310                 yes
14311             #endif
14312
14313 _ACEOF
14314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14315   $EGREP "yes" >/dev/null 2>&1; then :
14316
14317             OPENSSL_VERSION="0.9.8"
14318
14319 else
14320
14321             OPENSSL_VERSION=""
14322
14323 fi
14324 rm -f conftest*
14325
14326     fi
14327
14328     if test "z$OPENSSL_VERSION" = "z" ; then
14329         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14330 $as_echo "no" >&6; }
14331     else
14332         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ('$OPENSSL_VERSION')" >&5
14333 $as_echo "yes ('$OPENSSL_VERSION')" >&6; }
14334     fi
14335
14336     CPPFLAGS=$OLD_CPPFLAGS
14337 fi
14338
14339 if test "z$OPENSSL_FOUND" = "zyes" ; then
14340         OLD_CPPFLAGS=$CPPFLAGS
14341     CPPFLAGS="$OPENSSL_CFLAGS"
14342
14343     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14344 /* end confdefs.h.  */
14345
14346         #include <openssl/opensslconf.h>
14347         #ifdef OPENSSL_NO_ECDSA
14348             yes
14349         #endif
14350
14351 _ACEOF
14352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14353   $EGREP "yes" >/dev/null 2>&1; then :
14354
14355         OPENSSL_CFLAGS="$OPENSSL_CFLAGS -DXMLSEC_NO_ECDSA=1"
14356
14357 fi
14358 rm -f conftest*
14359
14360     CPPFLAGS=$OLD_CPPFLAGS
14361 fi
14362
14363 if test "z$OPENSSL_FOUND" = "zyes" ; then
14364     XMLSEC_NO_OPENSSL="0"
14365     if test "z$OPENSSL_VERSION" = "z0.9.8" ; then
14366         OPENSSL_CFLAGS="$OPENSSL_CFLAGS -DXMLSEC_OPENSSL_098=1 -DXMLSEC_NO_ECDSA=1 -DXMLSEC_NO_SHA256=1"
14367     fi
14368     if test "z$OPENSSL_VERSION" = "z1.0.0" ; then
14369         OPENSSL_CFLAGS="$OPENSSL_CFLAGS -DXMLSEC_OPENSSL_100=1"
14370     fi
14371     if test "z$OPENSSL_VERSION" = "z1.1.0" ; then
14372         OPENSSL_CFLAGS="$OPENSSL_CFLAGS -DXMLSEC_OPENSSL_110=1"
14373     fi
14374     OPENSSL_CFLAGS="$OPENSSL_CFLAGS -DXMLSEC_CRYPTO_OPENSSL=1"
14375     XMLSEC_CRYPTO_LIST="$XMLSEC_CRYPTO_LIST openssl"
14376 else
14377     XMLSEC_CRYPTO_DISABLED_LIST="$XMLSEC_CRYPTO_DISABLED_LIST openssl"
14378 fi
14379
14380  if test "z$XMLSEC_NO_OPENSSL" == "z1"; then
14381   XMLSEC_NO_OPENSSL_TRUE=
14382   XMLSEC_NO_OPENSSL_FALSE='#'
14383 else
14384   XMLSEC_NO_OPENSSL_TRUE='#'
14385   XMLSEC_NO_OPENSSL_FALSE=
14386 fi
14387
14388
14389
14390
14391
14392
14393
14394 XMLSEC_NO_NSS="1"
14395 SEAMONKEY_MIN_VERSION="1.0"
14396 MOZILLA_MIN_VERSION="1.4"
14397 NSS_MIN_VERSION="3.9"
14398 NSPR_MIN_VERSION="4.4.1"
14399 NSS_CFLAGS=""
14400 NSS_LIBS=""
14401 NSS_LIBS_LIST="-lnss3 -lsmime3"
14402 NSPR_LIBS_LIST="-lnspr4 -lplds4 -lplc4"
14403 NSS_CRYPTO_LIB="$XMLSEC_PACKAGE-nss"
14404 NSS_FOUND="no"
14405 NSPR_PACKAGE=mozilla-nspr
14406 NSS_PACKAGE=mozilla-nss
14407
14408
14409
14410 # Check whether --with-nss was given.
14411 if test "${with_nss+set}" = set; then :
14412   withval=$with_nss;
14413 fi
14414
14415
14416 # Check whether --with-nspr was given.
14417 if test "${with_nspr+set}" = set; then :
14418   withval=$with_nspr;
14419 fi
14420
14421
14422 # Check whether --with-seamonkey_ver was given.
14423 if test "${with_seamonkey_ver+set}" = set; then :
14424   withval=$with_seamonkey_ver;
14425 fi
14426
14427
14428 # Check whether --with-mozilla_ver was given.
14429 if test "${with_mozilla_ver+set}" = set; then :
14430   withval=$with_mozilla_ver;
14431 fi
14432
14433 if test "z$with_nss" = "zno" -o "z$with_nspr" = "zno" ; then
14434     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS libraries" >&5
14435 $as_echo_n "checking for NSS libraries... " >&6; }
14436     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14437 $as_echo "no" >&6; }
14438     NSS_FOUND="without"
14439 elif test "z$with_nss" = "z" -a "z$with_nspr" = "z" -a "z$with_mozilla_ver" = "z" -a "z$with_seamonkey_ver" = "z" -a "z$PKGCONFIG_FOUND" = "zyes" ; then
14440                                         if test "z$NSS_FOUND" = "zno" ; then
14441
14442 pkg_failed=no
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
14444 $as_echo_n "checking for NSS... " >&6; }
14445
14446 if test -n "$NSS_CFLAGS"; then
14447     pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
14448  elif test -n "$PKG_CONFIG"; then
14449     if test -n "$PKG_CONFIG" && \
14450     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"seamonkey-nspr >= \$NSPR_MIN_VERSION seamonkey-nss >= \$SEAMONKEY_MIN_VERSION\""; } >&5
14451   ($PKG_CONFIG --exists --print-errors "seamonkey-nspr >= $NSPR_MIN_VERSION seamonkey-nss >= $SEAMONKEY_MIN_VERSION") 2>&5
14452   ac_status=$?
14453   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14454   test $ac_status = 0; }; then
14455   pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "seamonkey-nspr >= $NSPR_MIN_VERSION seamonkey-nss >= $SEAMONKEY_MIN_VERSION" 2>/dev/null`
14456                       test "x$?" != "x0" && pkg_failed=yes
14457 else
14458   pkg_failed=yes
14459 fi
14460  else
14461     pkg_failed=untried
14462 fi
14463 if test -n "$NSS_LIBS"; then
14464     pkg_cv_NSS_LIBS="$NSS_LIBS"
14465  elif test -n "$PKG_CONFIG"; then
14466     if test -n "$PKG_CONFIG" && \
14467     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"seamonkey-nspr >= \$NSPR_MIN_VERSION seamonkey-nss >= \$SEAMONKEY_MIN_VERSION\""; } >&5
14468   ($PKG_CONFIG --exists --print-errors "seamonkey-nspr >= $NSPR_MIN_VERSION seamonkey-nss >= $SEAMONKEY_MIN_VERSION") 2>&5
14469   ac_status=$?
14470   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14471   test $ac_status = 0; }; then
14472   pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "seamonkey-nspr >= $NSPR_MIN_VERSION seamonkey-nss >= $SEAMONKEY_MIN_VERSION" 2>/dev/null`
14473                       test "x$?" != "x0" && pkg_failed=yes
14474 else
14475   pkg_failed=yes
14476 fi
14477  else
14478     pkg_failed=untried
14479 fi
14480
14481
14482
14483 if test $pkg_failed = yes; then
14484         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14485 $as_echo "no" >&6; }
14486
14487 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14488         _pkg_short_errors_supported=yes
14489 else
14490         _pkg_short_errors_supported=no
14491 fi
14492         if test $_pkg_short_errors_supported = yes; then
14493                 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "seamonkey-nspr >= $NSPR_MIN_VERSION seamonkey-nss >= $SEAMONKEY_MIN_VERSION" 2>&1`
14494         else
14495                 NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "seamonkey-nspr >= $NSPR_MIN_VERSION seamonkey-nss >= $SEAMONKEY_MIN_VERSION" 2>&1`
14496         fi
14497         # Put the nasty error message in config.log where it belongs
14498         echo "$NSS_PKG_ERRORS" >&5
14499
14500         NSS_FOUND=no
14501 elif test $pkg_failed = untried; then
14502         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14503 $as_echo "no" >&6; }
14504         NSS_FOUND=no
14505 else
14506         NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
14507         NSS_LIBS=$pkg_cv_NSS_LIBS
14508         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14509 $as_echo "yes" >&6; }
14510         NSS_FOUND=yes NSPR_PACKAGE=seamonkey-nspr NSS_PACKAGE=seamonkey-nss
14511 fi
14512     fi
14513     if test "z$NSS_FOUND" = "zno" ; then
14514
14515 pkg_failed=no
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
14517 $as_echo_n "checking for NSS... " >&6; }
14518
14519 if test -n "$NSS_CFLAGS"; then
14520     pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
14521  elif test -n "$PKG_CONFIG"; then
14522     if test -n "$PKG_CONFIG" && \
14523     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mozilla-nspr >= \$MOZILLA_MIN_VERSION mozilla-nss >= \$MOZILLA_MIN_VERSION\""; } >&5
14524   ($PKG_CONFIG --exists --print-errors "mozilla-nspr >= $MOZILLA_MIN_VERSION mozilla-nss >= $MOZILLA_MIN_VERSION") 2>&5
14525   ac_status=$?
14526   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14527   test $ac_status = 0; }; then
14528   pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "mozilla-nspr >= $MOZILLA_MIN_VERSION mozilla-nss >= $MOZILLA_MIN_VERSION" 2>/dev/null`
14529                       test "x$?" != "x0" && pkg_failed=yes
14530 else
14531   pkg_failed=yes
14532 fi
14533  else
14534     pkg_failed=untried
14535 fi
14536 if test -n "$NSS_LIBS"; then
14537     pkg_cv_NSS_LIBS="$NSS_LIBS"
14538  elif test -n "$PKG_CONFIG"; then
14539     if test -n "$PKG_CONFIG" && \
14540     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mozilla-nspr >= \$MOZILLA_MIN_VERSION mozilla-nss >= \$MOZILLA_MIN_VERSION\""; } >&5
14541   ($PKG_CONFIG --exists --print-errors "mozilla-nspr >= $MOZILLA_MIN_VERSION mozilla-nss >= $MOZILLA_MIN_VERSION") 2>&5
14542   ac_status=$?
14543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14544   test $ac_status = 0; }; then
14545   pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "mozilla-nspr >= $MOZILLA_MIN_VERSION mozilla-nss >= $MOZILLA_MIN_VERSION" 2>/dev/null`
14546                       test "x$?" != "x0" && pkg_failed=yes
14547 else
14548   pkg_failed=yes
14549 fi
14550  else
14551     pkg_failed=untried
14552 fi
14553
14554
14555
14556 if test $pkg_failed = yes; then
14557         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14558 $as_echo "no" >&6; }
14559
14560 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14561         _pkg_short_errors_supported=yes
14562 else
14563         _pkg_short_errors_supported=no
14564 fi
14565         if test $_pkg_short_errors_supported = yes; then
14566                 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mozilla-nspr >= $MOZILLA_MIN_VERSION mozilla-nss >= $MOZILLA_MIN_VERSION" 2>&1`
14567         else
14568                 NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mozilla-nspr >= $MOZILLA_MIN_VERSION mozilla-nss >= $MOZILLA_MIN_VERSION" 2>&1`
14569         fi
14570         # Put the nasty error message in config.log where it belongs
14571         echo "$NSS_PKG_ERRORS" >&5
14572
14573         NSS_FOUND=no
14574 elif test $pkg_failed = untried; then
14575         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14576 $as_echo "no" >&6; }
14577         NSS_FOUND=no
14578 else
14579         NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
14580         NSS_LIBS=$pkg_cv_NSS_LIBS
14581         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14582 $as_echo "yes" >&6; }
14583         NSS_FOUND=yes NSPR_PACKAGE=mozilla-nspr NSS_PACKAGE=mozilla-nss
14584 fi
14585     fi
14586     if test "z$NSS_FOUND" = "zno" ; then
14587
14588 pkg_failed=no
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
14590 $as_echo_n "checking for NSS... " >&6; }
14591
14592 if test -n "$NSS_CFLAGS"; then
14593     pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
14594  elif test -n "$PKG_CONFIG"; then
14595     if test -n "$PKG_CONFIG" && \
14596     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xulrunner-nspr >= \$NSPR_MIN_VERSION xulrunner-nss >= \$NSS_MIN_VERSION\""; } >&5
14597   ($PKG_CONFIG --exists --print-errors "xulrunner-nspr >= $NSPR_MIN_VERSION xulrunner-nss >= $NSS_MIN_VERSION") 2>&5
14598   ac_status=$?
14599   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14600   test $ac_status = 0; }; then
14601   pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "xulrunner-nspr >= $NSPR_MIN_VERSION xulrunner-nss >= $NSS_MIN_VERSION" 2>/dev/null`
14602                       test "x$?" != "x0" && pkg_failed=yes
14603 else
14604   pkg_failed=yes
14605 fi
14606  else
14607     pkg_failed=untried
14608 fi
14609 if test -n "$NSS_LIBS"; then
14610     pkg_cv_NSS_LIBS="$NSS_LIBS"
14611  elif test -n "$PKG_CONFIG"; then
14612     if test -n "$PKG_CONFIG" && \
14613     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xulrunner-nspr >= \$NSPR_MIN_VERSION xulrunner-nss >= \$NSS_MIN_VERSION\""; } >&5
14614   ($PKG_CONFIG --exists --print-errors "xulrunner-nspr >= $NSPR_MIN_VERSION xulrunner-nss >= $NSS_MIN_VERSION") 2>&5
14615   ac_status=$?
14616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14617   test $ac_status = 0; }; then
14618   pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "xulrunner-nspr >= $NSPR_MIN_VERSION xulrunner-nss >= $NSS_MIN_VERSION" 2>/dev/null`
14619                       test "x$?" != "x0" && pkg_failed=yes
14620 else
14621   pkg_failed=yes
14622 fi
14623  else
14624     pkg_failed=untried
14625 fi
14626
14627
14628
14629 if test $pkg_failed = yes; then
14630         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14631 $as_echo "no" >&6; }
14632
14633 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14634         _pkg_short_errors_supported=yes
14635 else
14636         _pkg_short_errors_supported=no
14637 fi
14638         if test $_pkg_short_errors_supported = yes; then
14639                 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xulrunner-nspr >= $NSPR_MIN_VERSION xulrunner-nss >= $NSS_MIN_VERSION" 2>&1`
14640         else
14641                 NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xulrunner-nspr >= $NSPR_MIN_VERSION xulrunner-nss >= $NSS_MIN_VERSION" 2>&1`
14642         fi
14643         # Put the nasty error message in config.log where it belongs
14644         echo "$NSS_PKG_ERRORS" >&5
14645
14646         NSS_FOUND=no
14647 elif test $pkg_failed = untried; then
14648         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14649 $as_echo "no" >&6; }
14650         NSS_FOUND=no
14651 else
14652         NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
14653         NSS_LIBS=$pkg_cv_NSS_LIBS
14654         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14655 $as_echo "yes" >&6; }
14656         NSS_FOUND=yes NSPR_PACKAGE=xulrunner-nspr NSS_PACKAGE=xulrunner-nss
14657 fi
14658     fi
14659     if test "z$NSS_FOUND" = "zno" ; then
14660
14661 pkg_failed=no
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
14663 $as_echo_n "checking for NSS... " >&6; }
14664
14665 if test -n "$NSS_CFLAGS"; then
14666     pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
14667  elif test -n "$PKG_CONFIG"; then
14668     if test -n "$PKG_CONFIG" && \
14669     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nspr >= \$NSPR_MIN_VERSION nss >= \$NSS_MIN_VERSION\""; } >&5
14670   ($PKG_CONFIG --exists --print-errors "nspr >= $NSPR_MIN_VERSION nss >= $NSS_MIN_VERSION") 2>&5
14671   ac_status=$?
14672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14673   test $ac_status = 0; }; then
14674   pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nspr >= $NSPR_MIN_VERSION nss >= $NSS_MIN_VERSION" 2>/dev/null`
14675                       test "x$?" != "x0" && pkg_failed=yes
14676 else
14677   pkg_failed=yes
14678 fi
14679  else
14680     pkg_failed=untried
14681 fi
14682 if test -n "$NSS_LIBS"; then
14683     pkg_cv_NSS_LIBS="$NSS_LIBS"
14684  elif test -n "$PKG_CONFIG"; then
14685     if test -n "$PKG_CONFIG" && \
14686     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nspr >= \$NSPR_MIN_VERSION nss >= \$NSS_MIN_VERSION\""; } >&5
14687   ($PKG_CONFIG --exists --print-errors "nspr >= $NSPR_MIN_VERSION nss >= $NSS_MIN_VERSION") 2>&5
14688   ac_status=$?
14689   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14690   test $ac_status = 0; }; then
14691   pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nspr >= $NSPR_MIN_VERSION nss >= $NSS_MIN_VERSION" 2>/dev/null`
14692                       test "x$?" != "x0" && pkg_failed=yes
14693 else
14694   pkg_failed=yes
14695 fi
14696  else
14697     pkg_failed=untried
14698 fi
14699
14700
14701
14702 if test $pkg_failed = yes; then
14703         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14704 $as_echo "no" >&6; }
14705
14706 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14707         _pkg_short_errors_supported=yes
14708 else
14709         _pkg_short_errors_supported=no
14710 fi
14711         if test $_pkg_short_errors_supported = yes; then
14712                 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nspr >= $NSPR_MIN_VERSION nss >= $NSS_MIN_VERSION" 2>&1`
14713         else
14714                 NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nspr >= $NSPR_MIN_VERSION nss >= $NSS_MIN_VERSION" 2>&1`
14715         fi
14716         # Put the nasty error message in config.log where it belongs
14717         echo "$NSS_PKG_ERRORS" >&5
14718
14719         NSS_FOUND=no
14720 elif test $pkg_failed = untried; then
14721         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14722 $as_echo "no" >&6; }
14723         NSS_FOUND=no
14724 else
14725         NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
14726         NSS_LIBS=$pkg_cv_NSS_LIBS
14727         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14728 $as_echo "yes" >&6; }
14729         NSS_FOUND=yes NSPR_PACKAGE=nspr NSS_PACKAGE=nss
14730 fi
14731     fi
14732 fi
14733
14734 if test "z$NSS_FOUND" = "zno" ; then
14735         if test "z$with_seamonkey_ver" != "z" ; then
14736         ac_mozilla_name=seamonkey-$with_seamonkey_ver
14737     elif test "z$with_mozilla_ver" != "z" ; then
14738         ac_mozilla_name=mozilla-$with_mozilla_ver
14739     else
14740         ac_mozilla_name=mozilla-$MOZILLA_MIN_VERSION
14741     fi
14742
14743     ac_nss_lib_dir="/usr/lib /usr/lib64 /usr/local/lib /usr/lib/$ac_mozilla_name /usr/local/lib/$ac_mozilla_name"
14744     ac_nss_inc_dir="/usr/include /usr/include/mozilla /usr/local/include /usr/local/include/mozilla /usr/include/$ac_mozilla_name /usr/local/include/$ac_mozilla_name"
14745
14746     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nspr libraries >= $NSPR_MIN_VERSION" >&5
14747 $as_echo_n "checking for nspr libraries >= $NSPR_MIN_VERSION... " >&6; }
14748     NSPR_INCLUDES_FOUND="no"
14749     NSPR_LIBS_FOUND="no"
14750     NSPR_FOUND="no"
14751     NSPR_PRINIT_H=""
14752
14753     if test "z$with_nspr" != "z" ; then
14754         NSPR_PREFIX="$with_nspr"
14755         NSPR_CFLAGS="-I$with_nspr/include -I$with_nspr/include/nspr"
14756         if test "z$with_gnu_ld" = "zyes" ; then
14757             NSPR_LIBS="-Wl,-rpath-link -Wl,$with_nspr/lib -L$with_nspr/lib $NSPR_LIBS_LIST"
14758         else
14759             NSPR_LIBS="-L$with_nspr/lib $NSPR_LIBS_LIST"
14760         fi
14761         NSPR_INCLUDES_FOUND="yes"
14762         NSPR_LIBS_FOUND="yes"
14763         NSPR_PRINIT_H="$with_nspr/include/prinit.h"
14764     else
14765         for dir in $ac_nss_inc_dir ; do
14766             if test -f $dir/nspr/prinit.h ; then
14767                                 if test "z$dir" = "z/usr/include" ; then
14768                     NSPR_CFLAGS=""
14769                 else
14770                     NSPR_CFLAGS="-I$dir/nspr"
14771                 fi
14772                 NSPR_INCLUDES_FOUND="yes"
14773                 NSPR_PRINIT_H="$dir/nspr/prinit.h"
14774                 break
14775             fi
14776         done
14777
14778         for dir in $ac_nss_lib_dir ; do
14779             if test -f $dir/libnspr4$shrext ; then
14780                                 if test "z$dir" = "z/usr/lib" ; then
14781                     NSPR_LIBS="$NSPR_LIBS_LIST"
14782                 else
14783                     if test "z$with_gnu_ld" = "zyes" ; then
14784                         NSPR_LIBS="-Wl,-rpath-link -Wl,$dir -L$dir $NSPR_LIBS_LIST"
14785                     else
14786                         NSPR_LIBS="-L$dir $NSPR_LIBS_LIST"
14787                     fi
14788                 fi
14789                 NSPR_LIBS_FOUND="yes"
14790                 break
14791             fi
14792         done
14793     fi
14794
14795     if test "z$NSPR_INCLUDES_FOUND" = "zyes" -a "z$NSPR_LIBS_FOUND" = "zyes" ; then
14796         OLD_CPPFLAGS=$CPPFLAGS
14797         CPPFLAGS="$NSPR_CFLAGS"
14798         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14799 /* end confdefs.h.  */
14800
14801             #include <prinit.h>
14802             #if PR_VMAJOR >= 4
14803                yes
14804             #endif
14805
14806 _ACEOF
14807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14808   $EGREP "yes" >/dev/null 2>&1; then :
14809
14810             NSPR_FOUND=yes
14811
14812 else
14813
14814             NSPR_FOUND=no
14815
14816 fi
14817 rm -f conftest*
14818
14819         CPPFLAGS="$OLD_CPPFLAGS"
14820     fi
14821
14822     if test "z$NSPR_FOUND" = "zyes" ; then
14823         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14824 $as_echo "yes" >&6; }
14825     else
14826         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14827 $as_echo "no" >&6; }
14828     fi
14829
14830         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss libraries >= $NSS_MIN_VERSION" >&5
14831 $as_echo_n "checking for nss libraries >= $NSS_MIN_VERSION... " >&6; }
14832     NSS_INCLUDES_FOUND="no"
14833     NSS_LIBS_FOUND="no"
14834     NSS_NSS_H=""
14835
14836     if test "z$with_nss" != "z" ; then
14837         NSS_CFLAGS="$NSS_CFLAGS -I$with_nss/include -I$with_nss/include/nss"
14838         if test "z$with_gnu_ld" = "zyes" ; then
14839             NSS_LIBS="$NSS_LIBS -Wl,-rpath-link -Wl,$with_nss/lib -L$with_nss/lib $NSS_LIBS_LIST"
14840         else
14841             NSS_LIBS="$NSS_LIBS -L$with_nss/lib $NSS_LIBS_LIST"
14842         fi
14843         NSS_INCLUDES_FOUND="yes"
14844         NSS_LIBS_FOUND="yes"
14845         NSS_NSS_H="$with_nss/include/nss.h"
14846     else
14847         for dir in $ac_nss_inc_dir ; do
14848             if test -f $dir/nss/nss.h ; then
14849                                 if test "z$dir" = "z/usr/include" ; then
14850                     NSS_CFLAGS="$NSS_CFLAGS"
14851                 else
14852                     NSS_CFLAGS="$NSS_CFLAGS -I$dir/nss"
14853                 fi
14854                 NSS_INCLUDES_FOUND="yes"
14855                 NSS_NSS_H="$dir/nss/nss.h"
14856                 break
14857             fi
14858         done
14859
14860         for dir in $ac_nss_lib_dir ; do
14861             if test -f $dir/libnss3$shrext ; then
14862                                 if test "z$dir" = "z/usr/lib" ; then
14863                     NSS_LIBS="$NSS_LIBS_LIST"
14864                 else
14865                     if test "z$with_gnu_ld" = "zyes" ; then
14866                         NSS_LIBS="-Wl,-rpath-link -Wl,$dir -L$dir $NSS_LIBS_LIST"
14867                     else
14868                         NSS_LIBS="-L$dir $NSS_LIBS_LIST"
14869                     fi
14870                 fi
14871                 NSS_LIBS_FOUND="yes"
14872                 break
14873             fi
14874         done
14875     fi
14876
14877     if test "z$NSS_INCLUDES_FOUND" = "zyes" -a "z$NSS_LIBS_FOUND" = "zyes" ; then
14878        OLD_CPPFLAGS=$CPPFLAGS
14879        CPPFLAGS="$NSPR_CFLAGS $NSS_CFLAGS"
14880        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14881 /* end confdefs.h.  */
14882
14883           #include <nss.h>
14884           #if NSS_VMAJOR >= 3 && NSS_VMINOR >= 2
14885              yes
14886           #endif
14887
14888 _ACEOF
14889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14890   $EGREP "yes" >/dev/null 2>&1; then :
14891
14892             NSS_FOUND=yes
14893
14894 else
14895
14896             NSS_FOUND=no
14897
14898 fi
14899 rm -f conftest*
14900
14901         CPPFLAGS="$OLD_CPPFLAGS"
14902     fi
14903
14904     if test "z$NSS_FOUND" = "zyes" ; then
14905         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14906 $as_echo "yes" >&6; }
14907     else
14908         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14909 $as_echo "no" >&6; }
14910     fi
14911
14912         if test "z$NSPR_FOUND" = "zyes" -a "z$NSS_FOUND" = "zyes" ; then
14913         NSS_CFLAGS="$NSS_CFLAGS $NSPR_CFLAGS"
14914         NSS_LIBS="$NSS_LIBS $NSPR_LIBS"
14915     elif test "z$NSPR_FOUND" != "zyes" -a "z$NSS_FOUND" = "zyes" ; then
14916         NSS_FOUND="no"
14917         { $as_echo "$as_me:${as_lineno-$LINENO}: result: NSPR library is required for NSS" >&5
14918 $as_echo "NSPR library is required for NSS" >&6; }
14919     fi
14920 fi
14921
14922 if test "z$NSS_FOUND" = "zyes" ; then
14923     XMLSEC_NO_NSS="0"
14924     NSS_CFLAGS="$NSS_CFLAGS -DXMLSEC_CRYPTO_NSS=1"
14925     XMLSEC_CRYPTO_LIST="$XMLSEC_CRYPTO_LIST nss"
14926 else
14927     XMLSEC_CRYPTO_DISABLED_LIST="$XMLSEC_CRYPTO_DISABLED_LIST nss"
14928 fi
14929
14930  if test "z$XMLSEC_NO_NSS" = "z1"; then
14931   XMLSEC_NO_NSS_TRUE=
14932   XMLSEC_NO_NSS_FALSE='#'
14933 else
14934   XMLSEC_NO_NSS_TRUE='#'
14935   XMLSEC_NO_NSS_FALSE=
14936 fi
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949 GCRYPT_CONFIG="libgcrypt-config"
14950 XMLSEC_NO_GCRYPT="1"
14951 GCRYPT_MIN_VERSION="1.4.0"
14952 GCRYPT_VERSION=""
14953 GCRYPT_CFLAGS=""
14954 GCRYPT_LIBS=""
14955 GCRYPT_CRYPTO_LIB="$XMLSEC_PACKAGE-gcrypt"
14956 GCRYPT_FOUND="no"
14957
14958 # Check whether --with-gcrypt was given.
14959 if test "${with_gcrypt+set}" = set; then :
14960   withval=$with_gcrypt;
14961 fi
14962
14963 if test "z$with_gcrypt" = "zno" ; then
14964     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcrypt libraries >= $GCRYPT_MIN_VERSION" >&5
14965 $as_echo_n "checking for gcrypt libraries >= $GCRYPT_MIN_VERSION... " >&6; }
14966     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14967 $as_echo "no" >&6; }
14968     GCRYPT_FOUND="without"
14969 elif test "z$with_gcrypt" = "z" -a "z$PKGCONFIG_FOUND" = "zyes" ; then
14970
14971 pkg_failed=no
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCRYPT" >&5
14973 $as_echo_n "checking for GCRYPT... " >&6; }
14974
14975 if test -n "$GCRYPT_CFLAGS"; then
14976     pkg_cv_GCRYPT_CFLAGS="$GCRYPT_CFLAGS"
14977  elif test -n "$PKG_CONFIG"; then
14978     if test -n "$PKG_CONFIG" && \
14979     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gcrypt >= \$GCRYPT_MIN_VERSION\""; } >&5
14980   ($PKG_CONFIG --exists --print-errors "gcrypt >= $GCRYPT_MIN_VERSION") 2>&5
14981   ac_status=$?
14982   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14983   test $ac_status = 0; }; then
14984   pkg_cv_GCRYPT_CFLAGS=`$PKG_CONFIG --cflags "gcrypt >= $GCRYPT_MIN_VERSION" 2>/dev/null`
14985                       test "x$?" != "x0" && pkg_failed=yes
14986 else
14987   pkg_failed=yes
14988 fi
14989  else
14990     pkg_failed=untried
14991 fi
14992 if test -n "$GCRYPT_LIBS"; then
14993     pkg_cv_GCRYPT_LIBS="$GCRYPT_LIBS"
14994  elif test -n "$PKG_CONFIG"; then
14995     if test -n "$PKG_CONFIG" && \
14996     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gcrypt >= \$GCRYPT_MIN_VERSION\""; } >&5
14997   ($PKG_CONFIG --exists --print-errors "gcrypt >= $GCRYPT_MIN_VERSION") 2>&5
14998   ac_status=$?
14999   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15000   test $ac_status = 0; }; then
15001   pkg_cv_GCRYPT_LIBS=`$PKG_CONFIG --libs "gcrypt >= $GCRYPT_MIN_VERSION" 2>/dev/null`
15002                       test "x$?" != "x0" && pkg_failed=yes
15003 else
15004   pkg_failed=yes
15005 fi
15006  else
15007     pkg_failed=untried
15008 fi
15009
15010
15011
15012 if test $pkg_failed = yes; then
15013         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15014 $as_echo "no" >&6; }
15015
15016 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15017         _pkg_short_errors_supported=yes
15018 else
15019         _pkg_short_errors_supported=no
15020 fi
15021         if test $_pkg_short_errors_supported = yes; then
15022                 GCRYPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gcrypt >= $GCRYPT_MIN_VERSION" 2>&1`
15023         else
15024                 GCRYPT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gcrypt >= $GCRYPT_MIN_VERSION" 2>&1`
15025         fi
15026         # Put the nasty error message in config.log where it belongs
15027         echo "$GCRYPT_PKG_ERRORS" >&5
15028
15029         GCRYPT_FOUND=no
15030 elif test $pkg_failed = untried; then
15031         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15032 $as_echo "no" >&6; }
15033         GCRYPT_FOUND=no
15034 else
15035         GCRYPT_CFLAGS=$pkg_cv_GCRYPT_CFLAGS
15036         GCRYPT_LIBS=$pkg_cv_GCRYPT_LIBS
15037         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15038 $as_echo "yes" >&6; }
15039         GCRYPT_FOUND=yes
15040 fi
15041
15042     if test "z$GCRYPT_FOUND" = "zno" ; then
15043
15044 pkg_failed=no
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCRYPT" >&5
15046 $as_echo_n "checking for GCRYPT... " >&6; }
15047
15048 if test -n "$GCRYPT_CFLAGS"; then
15049     pkg_cv_GCRYPT_CFLAGS="$GCRYPT_CFLAGS"
15050  elif test -n "$PKG_CONFIG"; then
15051     if test -n "$PKG_CONFIG" && \
15052     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgcrypt >= \$GCRYPT_MIN_VERSION\""; } >&5
15053   ($PKG_CONFIG --exists --print-errors "libgcrypt >= $GCRYPT_MIN_VERSION") 2>&5
15054   ac_status=$?
15055   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15056   test $ac_status = 0; }; then
15057   pkg_cv_GCRYPT_CFLAGS=`$PKG_CONFIG --cflags "libgcrypt >= $GCRYPT_MIN_VERSION" 2>/dev/null`
15058                       test "x$?" != "x0" && pkg_failed=yes
15059 else
15060   pkg_failed=yes
15061 fi
15062  else
15063     pkg_failed=untried
15064 fi
15065 if test -n "$GCRYPT_LIBS"; then
15066     pkg_cv_GCRYPT_LIBS="$GCRYPT_LIBS"
15067  elif test -n "$PKG_CONFIG"; then
15068     if test -n "$PKG_CONFIG" && \
15069     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgcrypt >= \$GCRYPT_MIN_VERSION\""; } >&5
15070   ($PKG_CONFIG --exists --print-errors "libgcrypt >= $GCRYPT_MIN_VERSION") 2>&5
15071   ac_status=$?
15072   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15073   test $ac_status = 0; }; then
15074   pkg_cv_GCRYPT_LIBS=`$PKG_CONFIG --libs "libgcrypt >= $GCRYPT_MIN_VERSION" 2>/dev/null`
15075                       test "x$?" != "x0" && pkg_failed=yes
15076 else
15077   pkg_failed=yes
15078 fi
15079  else
15080     pkg_failed=untried
15081 fi
15082
15083
15084
15085 if test $pkg_failed = yes; then
15086         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15087 $as_echo "no" >&6; }
15088
15089 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15090         _pkg_short_errors_supported=yes
15091 else
15092         _pkg_short_errors_supported=no
15093 fi
15094         if test $_pkg_short_errors_supported = yes; then
15095                 GCRYPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgcrypt >= $GCRYPT_MIN_VERSION" 2>&1`
15096         else
15097                 GCRYPT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgcrypt >= $GCRYPT_MIN_VERSION" 2>&1`
15098         fi
15099         # Put the nasty error message in config.log where it belongs
15100         echo "$GCRYPT_PKG_ERRORS" >&5
15101
15102         GCRYPT_FOUND=no
15103 elif test $pkg_failed = untried; then
15104         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15105 $as_echo "no" >&6; }
15106         GCRYPT_FOUND=no
15107 else
15108         GCRYPT_CFLAGS=$pkg_cv_GCRYPT_CFLAGS
15109         GCRYPT_LIBS=$pkg_cv_GCRYPT_LIBS
15110         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15111 $as_echo "yes" >&6; }
15112         GCRYPT_FOUND=yes
15113 fi
15114     fi
15115
15116     if test "z$GCRYPT_FOUND" = "zno" ; then
15117
15118 pkg_failed=no
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCRYPT" >&5
15120 $as_echo_n "checking for GCRYPT... " >&6; }
15121
15122 if test -n "$GCRYPT_CFLAGS"; then
15123     pkg_cv_GCRYPT_CFLAGS="$GCRYPT_CFLAGS"
15124  elif test -n "$PKG_CONFIG"; then
15125     if test -n "$PKG_CONFIG" && \
15126     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgcrypt11 >= \$GCRYPT_MIN_VERSION\""; } >&5
15127   ($PKG_CONFIG --exists --print-errors "libgcrypt11 >= $GCRYPT_MIN_VERSION") 2>&5
15128   ac_status=$?
15129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15130   test $ac_status = 0; }; then
15131   pkg_cv_GCRYPT_CFLAGS=`$PKG_CONFIG --cflags "libgcrypt11 >= $GCRYPT_MIN_VERSION" 2>/dev/null`
15132                       test "x$?" != "x0" && pkg_failed=yes
15133 else
15134   pkg_failed=yes
15135 fi
15136  else
15137     pkg_failed=untried
15138 fi
15139 if test -n "$GCRYPT_LIBS"; then
15140     pkg_cv_GCRYPT_LIBS="$GCRYPT_LIBS"
15141  elif test -n "$PKG_CONFIG"; then
15142     if test -n "$PKG_CONFIG" && \
15143     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgcrypt11 >= \$GCRYPT_MIN_VERSION\""; } >&5
15144   ($PKG_CONFIG --exists --print-errors "libgcrypt11 >= $GCRYPT_MIN_VERSION") 2>&5
15145   ac_status=$?
15146   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15147   test $ac_status = 0; }; then
15148   pkg_cv_GCRYPT_LIBS=`$PKG_CONFIG --libs "libgcrypt11 >= $GCRYPT_MIN_VERSION" 2>/dev/null`
15149                       test "x$?" != "x0" && pkg_failed=yes
15150 else
15151   pkg_failed=yes
15152 fi
15153  else
15154     pkg_failed=untried
15155 fi
15156
15157
15158
15159 if test $pkg_failed = yes; then
15160         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15161 $as_echo "no" >&6; }
15162
15163 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15164         _pkg_short_errors_supported=yes
15165 else
15166         _pkg_short_errors_supported=no
15167 fi
15168         if test $_pkg_short_errors_supported = yes; then
15169                 GCRYPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgcrypt11 >= $GCRYPT_MIN_VERSION" 2>&1`
15170         else
15171                 GCRYPT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgcrypt11 >= $GCRYPT_MIN_VERSION" 2>&1`
15172         fi
15173         # Put the nasty error message in config.log where it belongs
15174         echo "$GCRYPT_PKG_ERRORS" >&5
15175
15176         GCRYPT_FOUND=no
15177 elif test $pkg_failed = untried; then
15178         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15179 $as_echo "no" >&6; }
15180         GCRYPT_FOUND=no
15181 else
15182         GCRYPT_CFLAGS=$pkg_cv_GCRYPT_CFLAGS
15183         GCRYPT_LIBS=$pkg_cv_GCRYPT_LIBS
15184         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15185 $as_echo "yes" >&6; }
15186         GCRYPT_FOUND=yes
15187 fi
15188     fi
15189 fi
15190
15191 if test "z$GCRYPT_FOUND" = "zno" ; then
15192     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcrypt libraries >= $GCRYPT_MIN_VERSION" >&5
15193 $as_echo_n "checking for gcrypt libraries >= $GCRYPT_MIN_VERSION... " >&6; }
15194     if test "z$with_gcrypt" != "z" ; then
15195         GCRYPT_CONFIG=$with_gcrypt/bin/$GCRYPT_CONFIG
15196     fi
15197     if ! $GCRYPT_CONFIG --version > /dev/null 2>&1 ; then
15198         if test "z$with_gcrypt" != "z" ; then
15199             as_fn_error $? "Unable to find gcrypt at '$with_gcrypt'" "$LINENO" 5
15200         else
15201             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15202 $as_echo "no" >&6; }
15203         fi
15204     else
15205         vers=`$GCRYPT_CONFIG --version | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
15206         minvers=`echo $GCRYPT_MIN_VERSION | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
15207         if test "$vers" -ge "$minvers" ; then
15208             GCRYPT_CFLAGS="$GCRYPT_CFLAGS `$GCRYPT_CONFIG --cflags`"
15209             GCRYPT_LIBS="$GCRYPT_LIBS `$GCRYPT_CONFIG --libs`"
15210             GCRYPT_FOUND=yes
15211         else
15212             as_fn_error $? "You need at least gcrypt $GCRYPT_MIN_VERSION for this version of $XMLSEC_PACKAGE" "$LINENO" 5
15213         fi
15214     fi
15215 fi
15216
15217 if test "z$GCRYPT_FOUND" = "zyes" ; then
15218     XMLSEC_NO_GCRYPT="0"
15219     GCRYPT_CFLAGS="$GCRYPT_CFLAGS -DXMLSEC_CRYPTO_GCRYPT=1"
15220     XMLSEC_CRYPTO_LIST="$XMLSEC_CRYPTO_LIST gcrypt"
15221 else
15222     XMLSEC_CRYPTO_DISABLED_LIST="$XMLSEC_CRYPTO_DISABLED_LIST gcrypt"
15223 fi
15224
15225  if test "z$XMLSEC_NO_GCRYPT" = "z1"; then
15226   XMLSEC_NO_GCRYPT_TRUE=
15227   XMLSEC_NO_GCRYPT_FALSE='#'
15228 else
15229   XMLSEC_NO_GCRYPT_TRUE='#'
15230   XMLSEC_NO_GCRYPT_FALSE=
15231 fi
15232
15233
15234
15235
15236
15237
15238
15239
15240 GNUTLS_CONFIG="libgnutls-config"
15241 XMLSEC_NO_GNUTLS="1"
15242 GNUTLS_MIN_VERSION="2.8.0"
15243 GNUTLS_VERSION=""
15244 GNUTLS_CFLAGS=""
15245 GNUTLS_LIBS=""
15246 GNUTLS_CRYPTO_LIB="$XMLSEC_PACKAGE-gnutls"
15247 GNUTLS_FOUND="no"
15248
15249 # Check whether --with-gnutls was given.
15250 if test "${with_gnutls+set}" = set; then :
15251   withval=$with_gnutls;
15252 fi
15253
15254 if test "z$with_gnutls" = "zno" ; then
15255     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls libraries >= $GNUTLS_MIN_VERSION" >&5
15256 $as_echo_n "checking for gnutls libraries >= $GNUTLS_MIN_VERSION... " >&6; }
15257     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15258 $as_echo "no" >&6; }
15259     GNUTLS_FOUND="without"
15260 elif test "z$with_gnutls" = "z" -a "z$PKGCONFIG_FOUND" = "zyes" ; then
15261
15262 pkg_failed=no
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
15264 $as_echo_n "checking for GNUTLS... " >&6; }
15265
15266 if test -n "$GNUTLS_CFLAGS"; then
15267     pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
15268  elif test -n "$PKG_CONFIG"; then
15269     if test -n "$PKG_CONFIG" && \
15270     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$GNUTLS_MIN_VERSION\""; } >&5
15271   ($PKG_CONFIG --exists --print-errors "gnutls >= $GNUTLS_MIN_VERSION") 2>&5
15272   ac_status=$?
15273   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15274   test $ac_status = 0; }; then
15275   pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= $GNUTLS_MIN_VERSION" 2>/dev/null`
15276                       test "x$?" != "x0" && pkg_failed=yes
15277 else
15278   pkg_failed=yes
15279 fi
15280  else
15281     pkg_failed=untried
15282 fi
15283 if test -n "$GNUTLS_LIBS"; then
15284     pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
15285  elif test -n "$PKG_CONFIG"; then
15286     if test -n "$PKG_CONFIG" && \
15287     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$GNUTLS_MIN_VERSION\""; } >&5
15288   ($PKG_CONFIG --exists --print-errors "gnutls >= $GNUTLS_MIN_VERSION") 2>&5
15289   ac_status=$?
15290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15291   test $ac_status = 0; }; then
15292   pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= $GNUTLS_MIN_VERSION" 2>/dev/null`
15293                       test "x$?" != "x0" && pkg_failed=yes
15294 else
15295   pkg_failed=yes
15296 fi
15297  else
15298     pkg_failed=untried
15299 fi
15300
15301
15302
15303 if test $pkg_failed = yes; then
15304         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15305 $as_echo "no" >&6; }
15306
15307 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15308         _pkg_short_errors_supported=yes
15309 else
15310         _pkg_short_errors_supported=no
15311 fi
15312         if test $_pkg_short_errors_supported = yes; then
15313                 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= $GNUTLS_MIN_VERSION" 2>&1`
15314         else
15315                 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= $GNUTLS_MIN_VERSION" 2>&1`
15316         fi
15317         # Put the nasty error message in config.log where it belongs
15318         echo "$GNUTLS_PKG_ERRORS" >&5
15319
15320         GNUTLS_FOUND=no
15321 elif test $pkg_failed = untried; then
15322         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15323 $as_echo "no" >&6; }
15324         GNUTLS_FOUND=no
15325 else
15326         GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
15327         GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
15328         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15329 $as_echo "yes" >&6; }
15330         GNUTLS_FOUND=yes
15331 fi
15332     if test "z$GNUTLS_FOUND" = "zno" ; then
15333
15334 pkg_failed=no
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
15336 $as_echo_n "checking for GNUTLS... " >&6; }
15337
15338 if test -n "$GNUTLS_CFLAGS"; then
15339     pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
15340  elif test -n "$PKG_CONFIG"; then
15341     if test -n "$PKG_CONFIG" && \
15342     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgnutls >= \$GNUTLS_MIN_VERSION\""; } >&5
15343   ($PKG_CONFIG --exists --print-errors "libgnutls >= $GNUTLS_MIN_VERSION") 2>&5
15344   ac_status=$?
15345   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15346   test $ac_status = 0; }; then
15347   pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "libgnutls >= $GNUTLS_MIN_VERSION" 2>/dev/null`
15348                       test "x$?" != "x0" && pkg_failed=yes
15349 else
15350   pkg_failed=yes
15351 fi
15352  else
15353     pkg_failed=untried
15354 fi
15355 if test -n "$GNUTLS_LIBS"; then
15356     pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
15357  elif test -n "$PKG_CONFIG"; then
15358     if test -n "$PKG_CONFIG" && \
15359     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgnutls >= \$GNUTLS_MIN_VERSION\""; } >&5
15360   ($PKG_CONFIG --exists --print-errors "libgnutls >= $GNUTLS_MIN_VERSION") 2>&5
15361   ac_status=$?
15362   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15363   test $ac_status = 0; }; then
15364   pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "libgnutls >= $GNUTLS_MIN_VERSION" 2>/dev/null`
15365                       test "x$?" != "x0" && pkg_failed=yes
15366 else
15367   pkg_failed=yes
15368 fi
15369  else
15370     pkg_failed=untried
15371 fi
15372
15373
15374
15375 if test $pkg_failed = yes; then
15376         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15377 $as_echo "no" >&6; }
15378
15379 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15380         _pkg_short_errors_supported=yes
15381 else
15382         _pkg_short_errors_supported=no
15383 fi
15384         if test $_pkg_short_errors_supported = yes; then
15385                 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgnutls >= $GNUTLS_MIN_VERSION" 2>&1`
15386         else
15387                 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgnutls >= $GNUTLS_MIN_VERSION" 2>&1`
15388         fi
15389         # Put the nasty error message in config.log where it belongs
15390         echo "$GNUTLS_PKG_ERRORS" >&5
15391
15392         GNUTLS_FOUND=no
15393 elif test $pkg_failed = untried; then
15394         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15395 $as_echo "no" >&6; }
15396         GNUTLS_FOUND=no
15397 else
15398         GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
15399         GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
15400         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15401 $as_echo "yes" >&6; }
15402         GNUTLS_FOUND=yes
15403 fi
15404     fi
15405 fi
15406
15407 if test "z$GNUTLS_FOUND" = "zno" ; then
15408     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls libraries >= $GNUTLS_MIN_VERSION" >&5
15409 $as_echo_n "checking for gnutls libraries >= $GNUTLS_MIN_VERSION... " >&6; }
15410     if test "z$with_gnutls" != "z" ; then
15411         GNUTLS_CONFIG=$with_gnutls/bin/$GNUTLS_CONFIG
15412     fi
15413     if ! $GNUTLS_CONFIG --version > /dev/null 2>&1 ; then
15414         if test "z$with_gnutls" != "z" ; then
15415             as_fn_error $? "Unable to find gnutls at '$with_gnutls'" "$LINENO" 5
15416         else
15417             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15418 $as_echo "no" >&6; }
15419         fi
15420     else
15421         vers=`$GNUTLS_CONFIG --version | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
15422         minvers=`echo $GNUTLS_MIN_VERSION | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
15423         if test "$vers" -ge "$minvers" ; then
15424             GNUTLS_CFLAGS="$GNUTLS_CFLAGS `$GNUTLS_CONFIG --cflags`"
15425             GNUTLS_LIBS="$GNUTLS_LIBS `$GNUTLS_CONFIG --libs`"
15426             GNUTLS_FOUND=yes
15427         else
15428             as_fn_error $? "You need at least gnutls $GNUTLS_MIN_VERSION for this version of $XMLSEC_PACKAGE" "$LINENO" 5
15429         fi
15430     fi
15431 fi
15432
15433 if test "z$GNUTLS_FOUND" = "zyes" ; then
15434     XMLSEC_NO_GNUTLS="0"
15435     GNUTLS_CFLAGS="$GNUTLS_CFLAGS -DXMLSEC_CRYPTO_GNUTLS=1"
15436     XMLSEC_CRYPTO_LIST="$XMLSEC_CRYPTO_LIST gnutls"
15437
15438         if test "z$GCRYPT_FOUND" != "zyes" ; then
15439         as_fn_error $? "xmlsec-gnutls library requires xmlsec-gcrypt library which is disabled or missing" "$LINENO" 5
15440     fi
15441
15442 else
15443     XMLSEC_CRYPTO_DISABLED_LIST="$XMLSEC_CRYPTO_DISABLED_LIST gnutls"
15444 fi
15445
15446  if test "z$XMLSEC_NO_GNUTLS" = "z1"; then
15447   XMLSEC_NO_GNUTLS_TRUE=
15448   XMLSEC_NO_GNUTLS_FALSE='#'
15449 else
15450   XMLSEC_NO_GNUTLS_TRUE='#'
15451   XMLSEC_NO_GNUTLS_FALSE=
15452 fi
15453
15454
15455
15456
15457
15458
15459
15460
15461 XMLSEC_NO_MSCRYPTO="1"
15462 MSCRYPTO_CFLAGS=""
15463 MSCRYPTO_LIBS=""
15464 MSCRYPTO_CRYPTO_LIB="$XMLSEC_PACKAGE-mscrypto"
15465 MSCRYPTO_ENABLE='none'
15466 # Check whether --enable-mscrypto was given.
15467 if test "${enable_mscrypto+set}" = set; then :
15468   enableval=$enable_mscrypto; MSCRYPTO_ENABLE=$enableval
15469 fi
15470
15471 if test "z$MSCRYPTO_ENABLE" != "zyes" ; then
15472     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mscrypto libraries" >&5
15473 $as_echo_n "checking for mscrypto libraries... " >&6; }
15474     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSCRYPTO_ENABLE" >&5
15475 $as_echo "$MSCRYPTO_ENABLE" >&6; }
15476 else
15477     LIBS_SAVE="$LIBS"
15478     LIBS="$LIBS -lcrypt32"
15479     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mscrypto libraries" >&5
15480 $as_echo_n "checking for mscrypto libraries... " >&6; }
15481     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15482 /* end confdefs.h.  */
15483
15484         #include <windows.h>
15485         #include <wincrypt.h>
15486 int
15487 main ()
15488 {
15489
15490         int main () { CertOpenStore(0,0,0,0,0);; return(0); }
15491
15492   ;
15493   return 0;
15494 }
15495 _ACEOF
15496 if ac_fn_c_try_link "$LINENO"; then :
15497
15498 else
15499   MSCRYPTO_ENABLE="no"
15500 fi
15501 rm -f core conftest.err conftest.$ac_objext \
15502     conftest$ac_exeext conftest.$ac_ext
15503     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSCRYPTO_ENABLE" >&5
15504 $as_echo "$MSCRYPTO_ENABLE" >&6; }
15505     LIBS="$LIBS_SAVE"
15506 fi
15507
15508 if test "z$MSCRYPTO_ENABLE" = "zyes" ; then
15509     XMLSEC_NO_MSCRYPTO="0"
15510
15511     MSCRYPTO_CFLAGS="$MSCRYPTO_CFLAGS -DXMLSEC_CRYPTO_MSCRYPTO=1"
15512     case $host in
15513         *-*-mingw*)
15514                                                 MSCRYPTO_LIBS='-Wl,$(srcdir)/mingw-crypt32.def';;
15515         *)
15516                 MSCRYPTO_LIBS="-lcrypt32";;
15517     esac
15518
15519     XMLSEC_CRYPTO_LIST="$XMLSEC_CRYPTO_LIST mscrypto"
15520 else
15521     XMLSEC_CRYPTO_DISABLED_LIST="$XMLSEC_CRYPTO_DISABLED_LIST mscrypto"
15522 fi
15523
15524  if test "z$XMLSEC_NO_MSCRYPTO" = "z1"; then
15525   XMLSEC_NO_MSCRYPTO_TRUE=
15526   XMLSEC_NO_MSCRYPTO_FALSE='#'
15527 else
15528   XMLSEC_NO_MSCRYPTO_TRUE='#'
15529   XMLSEC_NO_MSCRYPTO_FALSE=
15530 fi
15531
15532
15533
15534
15535
15536
15537
15538 XMLSEC_DEFAULT_CRYPTO=""
15539 XMLSEC_CRYPTO_LIB=""
15540 XMLSEC_CRYPTO_CFLAGS=""
15541 XMLSEC_CRYPTO_LIBS=""
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default crypto library" >&5
15543 $as_echo_n "checking for default crypto library... " >&6; }
15544
15545 # Check whether --with-default_crypto was given.
15546 if test "${with_default_crypto+set}" = set; then :
15547   withval=$with_default_crypto;
15548 fi
15549
15550
15551 # check the argument
15552 case "z$with_default_crypto" in
15553     'zmscrypto')
15554         if test "z$XMLSEC_NO_MSCRYPTO" != "z1" ; then
15555             XMLSEC_DEFAULT_CRYPTO="mscrypto"
15556         else
15557             as_fn_error $? "'$with_default_crypto' is specified as default crypto library but it is not configured or found" "$LINENO" 5
15558         fi
15559         ;;
15560     'zopenssl')
15561         if test "z$XMLSEC_NO_OPENSSL" != "z1" ; then
15562             XMLSEC_DEFAULT_CRYPTO="openssl"
15563         else
15564             as_fn_error $? "'$with_default_crypto' is specified as default crypto library but it is not configured or found" "$LINENO" 5
15565         fi
15566         ;;
15567     'znss')
15568         if test "z$XMLSEC_NO_NSS" != "z1" ; then
15569             XMLSEC_DEFAULT_CRYPTO="nss"
15570         else
15571             as_fn_error $? "'$with_default_crypto' is specified as default crypto library but it is not configured or found" "$LINENO" 5
15572         fi
15573         ;;
15574     'zgnutls')
15575         if test "z$XMLSEC_NO_GNUTLS" != "z1" ; then
15576             XMLSEC_DEFAULT_CRYPTO="gnutls"
15577         else
15578             as_fn_error $? "'$with_default_crypto' is specified as default crypto library but it is not configured or found" "$LINENO" 5
15579         fi
15580         ;;
15581     'zgcrypt')
15582         if test "z$XMLSEC_NO_GCRYPT" != "z1" ; then
15583             XMLSEC_DEFAULT_CRYPTO="gcrypt"
15584         else
15585             as_fn_error $? "'$with_default_crypto' is specified as default crypto library but it is not configured or found" "$LINENO" 5
15586         fi
15587         ;;
15588     'z')
15589                 if test "z$XMLSEC_NO_MSCRYPTO" != "z1" ; then
15590             XMLSEC_DEFAULT_CRYPTO="mscrypto"
15591         elif test "z$XMLSEC_NO_OPENSSL" != "z1" ; then
15592             XMLSEC_DEFAULT_CRYPTO="openssl"
15593         elif test "z$XMLSEC_NO_NSS" != "z1" ; then
15594             XMLSEC_DEFAULT_CRYPTO="nss"
15595         elif test "z$XMLSEC_NO_GNUTLS" != "z1" ; then
15596             XMLSEC_DEFAULT_CRYPTO="gnutls"
15597         elif test "z$XMLSEC_NO_GCRYPT" != "z1" ; then
15598             XMLSEC_DEFAULT_CRYPTO="gcrypt"
15599         else
15600             as_fn_error $? "At least one crypto library should exist for $XMLSEC_PACKAGE" "$LINENO" 5
15601         fi
15602         ;;
15603     *)
15604         as_fn_error $? "The value '$with_default_crypto' is not a recongnized crypto library name" "$LINENO" 5
15605         ;;
15606 esac
15607
15608 case "$XMLSEC_DEFAULT_CRYPTO" in
15609     'mscrypto')
15610         XMLSEC_CRYPTO_LIB="$MSCRYPTO_CRYPTO_LIB"
15611         XMLSEC_CRYPTO_CFLAGS="$MSCRYPTO_CFLAGS"
15612         XMLSEC_CRYPTO_LIBS="$MSCRYPTO_LIBS"
15613         ;;
15614     'openssl')
15615         XMLSEC_CRYPTO_LIB="$OPENSSL_CRYPTO_LIB"
15616         XMLSEC_CRYPTO_CFLAGS="$OPENSSL_CFLAGS"
15617         XMLSEC_CRYPTO_LIBS="$OPENSSL_LIBS"
15618         ;;
15619     'nss')
15620         XMLSEC_CRYPTO_LIB="$NSS_CRYPTO_LIB"
15621         XMLSEC_CRYPTO_CFLAGS="$NSS_CFLAGS"
15622         XMLSEC_CRYPTO_LIBS="$NSS_LIBS"
15623         ;;
15624     'gnutls')
15625         XMLSEC_CRYPTO_LIB="$GNUTLS_CRYPTO_LIB"
15626         XMLSEC_CRYPTO_CFLAGS="$GNUTLS_CFLAGS"
15627         XMLSEC_CRYPTO_LIBS="$GNUTLS_LIBS"
15628         ;;
15629     'gcrypt')
15630         XMLSEC_CRYPTO_LIB="$GCRYPT_CRYPTO_LIB"
15631         XMLSEC_CRYPTO_CFLAGS="$GCRYPT_CFLAGS"
15632         XMLSEC_CRYPTO_LIBS="$GCRYPT_LIBS"
15633         ;;
15634     *)
15635         as_fn_error $? "The value \"$XMLSEC_DEFAULT_CRYPTO\" is not a recongnized crypto library name" "$LINENO" 5
15636         ;;
15637 esac
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ('$XMLSEC_DEFAULT_CRYPTO')" >&5
15639 $as_echo "yes ('$XMLSEC_DEFAULT_CRYPTO')" >&6; }
15640
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5 support" >&5
15642 $as_echo_n "checking for MD5 support... " >&6; }
15643 # Check whether --enable-md5 was given.
15644 if test "${enable_md5+set}" = set; then :
15645   enableval=$enable_md5;
15646 fi
15647
15648 if test "z$enable_md5" = "zno" ; then
15649     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_MD5=1"
15650     XMLSEC_NO_MD5="1"
15651     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15652 $as_echo "no" >&6; }
15653 else
15654     XMLSEC_NO_MD5="0"
15655     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15656 $as_echo "yes" >&6; }
15657 fi
15658  if test "z$XMLSEC_NO_MD5" = "z1"; then
15659   XMLSEC_NO_MD5_TRUE=
15660   XMLSEC_NO_MD5_FALSE='#'
15661 else
15662   XMLSEC_NO_MD5_TRUE='#'
15663   XMLSEC_NO_MD5_FALSE=
15664 fi
15665
15666
15667
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RIPEMD-160 support" >&5
15669 $as_echo_n "checking for RIPEMD-160 support... " >&6; }
15670 # Check whether --enable-ripemd160 was given.
15671 if test "${enable_ripemd160+set}" = set; then :
15672   enableval=$enable_ripemd160;
15673 fi
15674
15675 if test "z$enable_ripemd160" = "zno" ; then
15676     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_RIPEMD160=1"
15677     XMLSEC_NO_RIPEMD160="1"
15678     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15679 $as_echo "no" >&6; }
15680 else
15681     XMLSEC_NO_RIPEMD160="0"
15682     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15683 $as_echo "yes" >&6; }
15684 fi
15685  if test "z$XMLSEC_NO_RIPEMD160" = "z1"; then
15686   XMLSEC_NO_RIPEMD160_TRUE=
15687   XMLSEC_NO_RIPEMD160_FALSE='#'
15688 else
15689   XMLSEC_NO_RIPEMD160_TRUE='#'
15690   XMLSEC_NO_RIPEMD160_FALSE=
15691 fi
15692
15693
15694
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1 support" >&5
15696 $as_echo_n "checking for SHA1 support... " >&6; }
15697 # Check whether --enable-sha1 was given.
15698 if test "${enable_sha1+set}" = set; then :
15699   enableval=$enable_sha1;
15700 fi
15701
15702 if test "z$enable_sha1" = "zno" ; then
15703     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SHA1=1"
15704     XMLSEC_NO_SHA1="1"
15705     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15706 $as_echo "no" >&6; }
15707 else
15708     XMLSEC_NO_SHA1="0"
15709     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15710 $as_echo "yes" >&6; }
15711 fi
15712  if test "z$XMLSEC_NO_SHA1" = "z1"; then
15713   XMLSEC_NO_SHA1_TRUE=
15714   XMLSEC_NO_SHA1_FALSE='#'
15715 else
15716   XMLSEC_NO_SHA1_TRUE='#'
15717   XMLSEC_NO_SHA1_FALSE=
15718 fi
15719
15720
15721
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA224 support" >&5
15723 $as_echo_n "checking for SHA224 support... " >&6; }
15724 # Check whether --enable-sha224 was given.
15725 if test "${enable_sha224+set}" = set; then :
15726   enableval=$enable_sha224;
15727 fi
15728
15729 if test "z$enable_sha224" = "zno" ; then
15730     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SHA224=1"
15731     XMLSEC_NO_SHA224="1"
15732     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15733 $as_echo "no" >&6; }
15734 else
15735     XMLSEC_NO_SHA224="0"
15736     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15737 $as_echo "yes" >&6; }
15738 fi
15739  if test "z$XMLSEC_NO_SHA224" = "z1"; then
15740   XMLSEC_NO_SHA224_TRUE=
15741   XMLSEC_NO_SHA224_FALSE='#'
15742 else
15743   XMLSEC_NO_SHA224_TRUE='#'
15744   XMLSEC_NO_SHA224_FALSE=
15745 fi
15746
15747
15748
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA256 support" >&5
15750 $as_echo_n "checking for SHA256 support... " >&6; }
15751 # Check whether --enable-sha256 was given.
15752 if test "${enable_sha256+set}" = set; then :
15753   enableval=$enable_sha256;
15754 fi
15755
15756 if test "z$enable_sha256" = "zno" ; then
15757     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SHA256=1"
15758     XMLSEC_NO_SHA256="1"
15759     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15760 $as_echo "no" >&6; }
15761 else
15762     XMLSEC_NO_SHA256="0"
15763     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15764 $as_echo "yes" >&6; }
15765 fi
15766  if test "z$XMLSEC_NO_SHA256" = "z1"; then
15767   XMLSEC_NO_SHA256_TRUE=
15768   XMLSEC_NO_SHA256_FALSE='#'
15769 else
15770   XMLSEC_NO_SHA256_TRUE='#'
15771   XMLSEC_NO_SHA256_FALSE=
15772 fi
15773
15774
15775
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA384 support" >&5
15777 $as_echo_n "checking for SHA384 support... " >&6; }
15778 # Check whether --enable-sha384 was given.
15779 if test "${enable_sha384+set}" = set; then :
15780   enableval=$enable_sha384;
15781 fi
15782
15783 if test "z$enable_sha384" = "zno" ; then
15784     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SHA384=1"
15785     XMLSEC_NO_SHA384="1"
15786     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15787 $as_echo "no" >&6; }
15788 else
15789     XMLSEC_NO_SHA384="0"
15790     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15791 $as_echo "yes" >&6; }
15792 fi
15793  if test "z$XMLSEC_NO_SHA384" = "z1"; then
15794   XMLSEC_NO_SHA384_TRUE=
15795   XMLSEC_NO_SHA384_FALSE='#'
15796 else
15797   XMLSEC_NO_SHA384_TRUE='#'
15798   XMLSEC_NO_SHA384_FALSE=
15799 fi
15800
15801
15802
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA512 support" >&5
15804 $as_echo_n "checking for SHA512 support... " >&6; }
15805 # Check whether --enable-sha512 was given.
15806 if test "${enable_sha512+set}" = set; then :
15807   enableval=$enable_sha512;
15808 fi
15809
15810 if test "z$enable_sha512" = "zno" ; then
15811     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SHA512=1"
15812     XMLSEC_NO_SHA512="1"
15813     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15814 $as_echo "no" >&6; }
15815 else
15816     XMLSEC_NO_SHA512="0"
15817     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15818 $as_echo "yes" >&6; }
15819 fi
15820  if test "z$XMLSEC_NO_SHA512" = "z1"; then
15821   XMLSEC_NO_SHA512_TRUE=
15822   XMLSEC_NO_SHA512_FALSE='#'
15823 else
15824   XMLSEC_NO_SHA512_TRUE='#'
15825   XMLSEC_NO_SHA512_FALSE=
15826 fi
15827
15828
15829
15830
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC support" >&5
15832 $as_echo_n "checking for HMAC support... " >&6; }
15833 # Check whether --enable-hmac was given.
15834 if test "${enable_hmac+set}" = set; then :
15835   enableval=$enable_hmac;
15836 fi
15837
15838 if test "z$enable_hmac" = "zno" ; then
15839     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_HMAC=1"
15840     XMLSEC_NO_HMAC="1"
15841     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15842 $as_echo "no" >&6; }
15843 else
15844     XMLSEC_NO_HMAC="0"
15845     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15846 $as_echo "yes" >&6; }
15847 fi
15848  if test "z$XMLSEC_NO_HMAC" = "z1"; then
15849   XMLSEC_NO_HMAC_TRUE=
15850   XMLSEC_NO_HMAC_FALSE='#'
15851 else
15852   XMLSEC_NO_HMAC_TRUE='#'
15853   XMLSEC_NO_HMAC_FALSE=
15854 fi
15855
15856
15857
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSA support" >&5
15859 $as_echo_n "checking for DSA support... " >&6; }
15860 # Check whether --enable-dsa was given.
15861 if test "${enable_dsa+set}" = set; then :
15862   enableval=$enable_dsa;
15863 fi
15864
15865 if test "z$enable_dsa" = "zno" ; then
15866     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_DSA=1"
15867     XMLSEC_NO_DSA="1"
15868     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15869 $as_echo "no" >&6; }
15870 else
15871     XMLSEC_NO_DSA="0"
15872     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15873 $as_echo "yes" >&6; }
15874 fi
15875  if test "z$XMLSEC_NO_DSA" = "z1"; then
15876   XMLSEC_NO_DSA_TRUE=
15877   XMLSEC_NO_DSA_FALSE='#'
15878 else
15879   XMLSEC_NO_DSA_TRUE='#'
15880   XMLSEC_NO_DSA_FALSE=
15881 fi
15882
15883
15884
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA support" >&5
15886 $as_echo_n "checking for RSA support... " >&6; }
15887 # Check whether --enable-rsa was given.
15888 if test "${enable_rsa+set}" = set; then :
15889   enableval=$enable_rsa;
15890 fi
15891
15892 if test "z$enable_rsa" = "zno" ; then
15893     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_RSA=1"
15894     XMLSEC_NO_RSA="1"
15895     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15896 $as_echo "no" >&6; }
15897 else
15898     XMLSEC_NO_RSA="0"
15899     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15900 $as_echo "yes" >&6; }
15901 fi
15902  if test "z$XMLSEC_NO_RSA" = "z1"; then
15903   XMLSEC_NO_RSA_TRUE=
15904   XMLSEC_NO_RSA_FALSE='#'
15905 else
15906   XMLSEC_NO_RSA_TRUE='#'
15907   XMLSEC_NO_RSA_FALSE=
15908 fi
15909
15910
15911
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x509 support" >&5
15913 $as_echo_n "checking for x509 support... " >&6; }
15914 # Check whether --enable-x509 was given.
15915 if test "${enable_x509+set}" = set; then :
15916   enableval=$enable_x509;
15917 fi
15918
15919 if test "z$enable_x509" = "zno" ; then
15920     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_X509=1"
15921     XMLSEC_NO_X509="1"
15922     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15923 $as_echo "no" >&6; }
15924 else
15925     XMLSEC_NO_X509="0"
15926     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15927 $as_echo "yes" >&6; }
15928 fi
15929  if test "z$XMLSEC_NO_X509" = "z1"; then
15930   XMLSEC_NO_X509_TRUE=
15931   XMLSEC_NO_X509_FALSE='#'
15932 else
15933   XMLSEC_NO_X509_TRUE='#'
15934   XMLSEC_NO_X509_FALSE=
15935 fi
15936
15937
15938
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DES support" >&5
15940 $as_echo_n "checking for DES support... " >&6; }
15941 # Check whether --enable-des was given.
15942 if test "${enable_des+set}" = set; then :
15943   enableval=$enable_des;
15944 fi
15945
15946 if test "z$enable_des" = "zno" ; then
15947     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_DES=1"
15948     XMLSEC_NO_DES="1"
15949     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15950 $as_echo "no" >&6; }
15951 else
15952     XMLSEC_NO_DES="0"
15953     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15954 $as_echo "yes" >&6; }
15955 fi
15956  if test "z$XMLSEC_NO_DES" = "z1"; then
15957   XMLSEC_NO_DES_TRUE=
15958   XMLSEC_NO_DES_FALSE='#'
15959 else
15960   XMLSEC_NO_DES_TRUE='#'
15961   XMLSEC_NO_DES_FALSE=
15962 fi
15963
15964
15965
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AES support" >&5
15967 $as_echo_n "checking for AES support... " >&6; }
15968 # Check whether --enable-aes was given.
15969 if test "${enable_aes+set}" = set; then :
15970   enableval=$enable_aes;
15971 fi
15972
15973 if test "z$enable_aes" = "zno" ; then
15974     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_AES=1"
15975     XMLSEC_NO_AES="1"
15976     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15977 $as_echo "no" >&6; }
15978 else
15979     XMLSEC_NO_AES="0"
15980     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15981 $as_echo "yes" >&6; }
15982 fi
15983  if test "z$XMLSEC_NO_AES" = "z1"; then
15984   XMLSEC_NO_AES_TRUE=
15985   XMLSEC_NO_AES_FALSE='#'
15986 else
15987   XMLSEC_NO_AES_TRUE='#'
15988   XMLSEC_NO_AES_FALSE=
15989 fi
15990
15991
15992
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOST support" >&5
15994 $as_echo_n "checking for GOST support... " >&6; }
15995 # Check whether --enable-gost was given.
15996 if test "${enable_gost+set}" = set; then :
15997   enableval=$enable_gost;
15998 fi
15999
16000 if test "z$enable_gost" != "zyes" ; then
16001     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_GOST=1"
16002     XMLSEC_NO_GOST="1"
16003     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16004 $as_echo "no" >&6; }
16005 else
16006     XMLSEC_NO_GOST="0"
16007     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16008 $as_echo "yes" >&6; }
16009 fi
16010  if test "z$XMLSEC_NO_GOST" = "z1"; then
16011   XMLSEC_NO_GOST_TRUE=
16012   XMLSEC_NO_GOST_FALSE='#'
16013 else
16014   XMLSEC_NO_GOST_TRUE='#'
16015   XMLSEC_NO_GOST_FALSE=
16016 fi
16017
16018
16019
16020
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPERMIENTAL GOST2012 support" >&5
16022 $as_echo_n "checking for EXPERMIENTAL GOST2012 support... " >&6; }
16023 # Check whether --enable-gost was given.
16024 if test "${enable_gost+set}" = set; then :
16025   enableval=$enable_gost;
16026 fi
16027
16028 if test "z$enable_gost2012" != "zyes" ; then
16029     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_GOST2012=1"
16030     XMLSEC_NO_GOST2012="1"
16031     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16032 $as_echo "no" >&6; }
16033 else
16034     XMLSEC_NO_GOST2012="0"
16035     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16036 $as_echo "yes" >&6; }
16037 fi
16038  if test "z$XMLSEC_NO_GOST2012" = "z1"; then
16039   XMLSEC_NO_GOST2012_TRUE=
16040   XMLSEC_NO_GOST2012_FALSE='#'
16041 else
16042   XMLSEC_NO_GOST2012_TRUE='#'
16043   XMLSEC_NO_GOST2012_FALSE=
16044 fi
16045
16046
16047
16048
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLDSig support" >&5
16050 $as_echo_n "checking for XMLDSig support... " >&6; }
16051 # Check whether --enable-xmldsig was given.
16052 if test "${enable_xmldsig+set}" = set; then :
16053   enableval=$enable_xmldsig;
16054 fi
16055
16056 if test "z$enable_xmldsig" = "zno" ; then
16057     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_XMLDSIG=1"
16058     XMLSEC_NO_XMLDSIG="1"
16059     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16060 $as_echo "no" >&6; }
16061 else
16062     XMLSEC_NO_XMLDSIG="0"
16063     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16064 $as_echo "yes" >&6; }
16065 fi
16066  if test "z$XMLSEC_NO_XMLDSIG" = "z1"; then
16067   XMLSEC_NO_XMLDSIG_TRUE=
16068   XMLSEC_NO_XMLDSIG_FALSE='#'
16069 else
16070   XMLSEC_NO_XMLDSIG_TRUE='#'
16071   XMLSEC_NO_XMLDSIG_FALSE=
16072 fi
16073
16074
16075
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLEnc support" >&5
16077 $as_echo_n "checking for XMLEnc support... " >&6; }
16078 # Check whether --enable-xmlenc was given.
16079 if test "${enable_xmlenc+set}" = set; then :
16080   enableval=$enable_xmlenc;
16081 fi
16082
16083 if test "z$enable_xmlenc" = "zno" ; then
16084     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_XMLENC=1"
16085     XMLSEC_NO_XMLENC="1"
16086     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16087 $as_echo "no" >&6; }
16088 else
16089     XMLSEC_NO_XMLENC="0"
16090     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16091 $as_echo "yes" >&6; }
16092 fi
16093  if test "z$XMLSEC_NO_XMLENC" = "z1"; then
16094   XMLSEC_NO_XMLENC_TRUE=
16095   XMLSEC_NO_XMLENC_FALSE='#'
16096 else
16097   XMLSEC_NO_XMLENC_TRUE='#'
16098   XMLSEC_NO_XMLENC_FALSE=
16099 fi
16100
16101
16102
16103 XMLSEC_DL_INCLUDES=""
16104 XMLSEC_DL_LIBS=""
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlsec-crypto dynamic loading support" >&5
16106 $as_echo_n "checking for xmlsec-crypto dynamic loading support... " >&6; }
16107 # Check whether --enable-crypto_dl was given.
16108 if test "${enable_crypto_dl+set}" = set; then :
16109   enableval=$enable_crypto_dl;
16110 fi
16111
16112 if test "z$enable_crypto_dl" = "zno" ; then
16113     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1"
16114     XMLSEC_NO_CRYPTO_DYNAMIC_LOADING="1"
16115     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16116 $as_echo "no" >&6; }
16117 else
16118     ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
16119 if test "x$ac_cv_header_ltdl_h" = xyes; then :
16120
16121         XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_DL_LIBLTDL=1"
16122         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopenext in -lltdl" >&5
16123 $as_echo_n "checking for lt_dlopenext in -lltdl... " >&6; }
16124 if ${ac_cv_lib_ltdl_lt_dlopenext+:} false; then :
16125   $as_echo_n "(cached) " >&6
16126 else
16127   ac_check_lib_save_LIBS=$LIBS
16128 LIBS="-lltdl  $LIBS"
16129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16130 /* end confdefs.h.  */
16131
16132 /* Override any GCC internal prototype to avoid an error.
16133    Use char because int might match the return type of a GCC
16134    builtin and then its argument prototype would still apply.  */
16135 #ifdef __cplusplus
16136 extern "C"
16137 #endif
16138 char lt_dlopenext ();
16139 int
16140 main ()
16141 {
16142 return lt_dlopenext ();
16143   ;
16144   return 0;
16145 }
16146 _ACEOF
16147 if ac_fn_c_try_link "$LINENO"; then :
16148   ac_cv_lib_ltdl_lt_dlopenext=yes
16149 else
16150   ac_cv_lib_ltdl_lt_dlopenext=no
16151 fi
16152 rm -f core conftest.err conftest.$ac_objext \
16153     conftest$ac_exeext conftest.$ac_ext
16154 LIBS=$ac_check_lib_save_LIBS
16155 fi
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopenext" >&5
16157 $as_echo "$ac_cv_lib_ltdl_lt_dlopenext" >&6; }
16158 if test "x$ac_cv_lib_ltdl_lt_dlopenext" = xyes; then :
16159   LIBLTDL=-lltdl
16160 else
16161   LIBLTDL=
16162
16163 fi
16164
16165 else
16166   LIBLTDL=
16167
16168 fi
16169
16170
16171
16172     if test "z$LIBLTDL" != "z" ; then
16173         XMLSEC_DL_INCLUDES="$INCLTDL"
16174         XMLSEC_DL_LIBS="$LIBLTDL"
16175         XMLSEC_NO_CRYPTO_DYNAMIC_LOADING="0"
16176         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16177 $as_echo "yes" >&6; }
16178     else
16179         as_fn_error $? "libltdl is required for xmlsec-crypto dynamic loading" "$LINENO" 5
16180     fi
16181 fi
16182  if test "z$XMLSEC_NO_CRYPTO_DYNAMIC_LOADING" = "z1"; then
16183   XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_TRUE=
16184   XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_FALSE='#'
16185 else
16186   XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_TRUE='#'
16187   XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_FALSE=
16188 fi
16189
16190
16191
16192
16193
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlsec-crypto dynamic loading support in command line tool" >&5
16195 $as_echo_n "checking for xmlsec-crypto dynamic loading support in command line tool... " >&6; }
16196 # Check whether --enable-apps_crypto_dl was given.
16197 if test "${enable_apps_crypto_dl+set}" = set; then :
16198   enableval=$enable_apps_crypto_dl;
16199 fi
16200
16201 if test "z$enable_apps_crypto_dl" = "z" ; then
16202     enable_apps_crypto_dl="$enable_crypto_dl"
16203 fi
16204 if test "z$enable_apps_crypto_dl" = "zno" ; then
16205     XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING="1"
16206     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16207 $as_echo "no" >&6; }
16208 elif test "z$enable_crypto_dl" = "zno" ; then
16209     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16210 $as_echo "no" >&6; }
16211     as_fn_error $? "xmlsec-crypto libraries dynamic loading support in xmlsec command line tool is requested but no dynamic loading in xmlsec itself is disabled" "$LINENO" 5
16212 else
16213     XMLSEC_APP_DEFINES="$XMLSEC_APP_DEFINES -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1"
16214     XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING="0"
16215     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16216 $as_echo "yes" >&6; }
16217 fi
16218  if test "z$XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING" = "z1"; then
16219   XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_TRUE=
16220   XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_FALSE='#'
16221 else
16222   XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_TRUE='#'
16223   XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_FALSE=
16224 fi
16225
16226
16227
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docs folder" >&5
16229 $as_echo_n "checking for docs folder... " >&6; }
16230
16231 # Check whether --with-html-dir was given.
16232 if test "${with_html_dir+set}" = set; then :
16233   withval=$with_html_dir;
16234 fi
16235
16236 if test "z$with_html_dir" != "z" ; then
16237     XMLSEC_DOCDIR=$with_html_dir
16238 else
16239     XMLSEC_DOCDIR='$(datadir)/doc/xmlsec1'
16240 fi
16241
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLSEC_DOCDIR" >&5
16243 $as_echo "$XMLSEC_DOCDIR" >&6; }
16244
16245
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Simple Keys Manager testing" >&5
16247 $as_echo_n "checking for Simple Keys Manager testing... " >&6; }
16248 # Check whether --enable-skm was given.
16249 if test "${enable_skm+set}" = set; then :
16250   enableval=$enable_skm;
16251 fi
16252
16253 if test "z$enable_skm" = "zno" ; then
16254     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SKM_TEST=1"
16255     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16256 $as_echo "no" >&6; }
16257 else
16258     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16259 $as_echo "yes" >&6; }
16260 fi
16261
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for templates testing" >&5
16263 $as_echo_n "checking for templates testing... " >&6; }
16264 # Check whether --enable-tmpl_tests was given.
16265 if test "${enable_tmpl_tests+set}" = set; then :
16266   enableval=$enable_tmpl_tests;
16267 fi
16268
16269 if test "z$enable_tmpl_tests" = "zyes" ; then
16270     XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_TMPL_TEST=1"
16271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16272 $as_echo "no" >&6; }
16273 else
16274     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16275 $as_echo "yes" >&6; }
16276 fi
16277
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debugging" >&5
16279 $as_echo_n "checking for debugging... " >&6; }
16280 # Check whether --enable-debugging was given.
16281 if test "${enable_debugging+set}" = set; then :
16282   enableval=$enable_debugging;
16283 fi
16284
16285 if test "z$enable_debugging" = "zyes" ; then
16286     CFLAGS="$CFLAGS -g"
16287     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16288 $as_echo "yes" >&6; }
16289 else
16290     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16291 $as_echo "no" >&6; }
16292 fi
16293
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profiling" >&5
16295 $as_echo_n "checking for profiling... " >&6; }
16296 # Check whether --enable-profiling was given.
16297 if test "${enable_profiling+set}" = set; then :
16298   enableval=$enable_profiling;
16299 fi
16300
16301 if test "z$enable_profiling" = "zyes" ; then
16302     CFLAGS="$CFLAGS -pg"
16303     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16304 $as_echo "yes" >&6; }
16305 else
16306     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16307 $as_echo "no" >&6; }
16308 fi
16309
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pedantic" >&5
16311 $as_echo_n "checking for pedantic... " >&6; }
16312 # Check whether --enable-pedantic was given.
16313 if test "${enable_pedantic+set}" = set; then :
16314   enableval=$enable_pedantic;
16315 fi
16316
16317 if test "z$enable_pedantic" = "zyes" ; then
16318         CFLAGS="$CFLAGS -O -pedantic -Wall -std=c99 -fno-inline -W -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wredundant-decls"
16319     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16320 $as_echo "yes" >&6; }
16321 else
16322     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16323 $as_echo "no" >&6; }
16324 fi
16325
16326 XMLSEC_STATIC_BINARIES=""
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for static linking" >&5
16328 $as_echo_n "checking for static linking... " >&6; }
16329 # Check whether --enable-static_linking was given.
16330 if test "${enable_static_linking+set}" = set; then :
16331   enableval=$enable_static_linking;
16332 fi
16333
16334 if test "z$enable_static_linking" = "zyes" ; then
16335     XMLSEC_STATIC_BINARIES="-static"
16336     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16337 $as_echo "yes" >&6; }
16338 else
16339     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16340 $as_echo "no" >&6; }
16341 fi
16342
16343
16344 XMLSEC_CORE_CFLAGS="$XMLSEC_DEFINES -I${includedir}/xmlsec1  $XMLSEC_DL_INCLUDES"
16345 XMLSEC_CORE_LIBS="-lxmlsec1 $XMLSEC_DL_LIBS "
16346
16347
16348
16349 XMLSEC_LIBDIR="${libdir}"
16350
16351
16352 XMLSEC_OPENSSL_CFLAGS="$XMLSEC_CORE_CFLAGS $OPENSSL_CFLAGS"
16353 XMLSEC_OPENSSL_LIBS="-L${libdir} -l$OPENSSL_CRYPTO_LIB $XMLSEC_CORE_LIBS $OPENSSL_LIBS"
16354
16355
16356
16357 XMLSEC_GCRYPT_CFLAGS="$XMLSEC_CORE_CFLAGS $GCRYPT_CFLAGS"
16358 XMLSEC_GCRYPT_LIBS="-L${libdir} -l$GCRYPT_CRYPTO_LIB $XMLSEC_CORE_LIBS $GCRYPT_LIBS"
16359
16360
16361
16362 # xmlsec-gnutls is using xmlsec-gcrypt
16363 XMLSEC_GNUTLS_CFLAGS="$XMLSEC_CORE_CFLAGS $GNUTLS_CFLAGS"
16364 XMLSEC_GNUTLS_LIBS="-L${libdir} -l$GNUTLS_CRYPTO_LIB -l$GCRYPT_CRYPTO_LIB $XMLSEC_CORE_LIBS $GNUTLS_LIBS"
16365
16366
16367
16368 XMLSEC_NSS_CFLAGS="$XMLSEC_CORE_CFLAGS $NSS_CFLAGS"
16369 XMLSEC_NSS_LIBS="-L${libdir} -l$NSS_CRYPTO_LIB $XMLSEC_CORE_LIBS $NSS_LIBS"
16370
16371
16372
16373
16374 XMLSEC_CFLAGS="$XMLSEC_CORE_CFLAGS $LIBXML_CFLAGS $LIBXSLT_CFLAGS $XMLSEC_CRYPTO_CFLAGS"
16375 XMLSEC_LIBS="-L${libdir} -l$XMLSEC_CRYPTO_LIB $XMLSEC_CORE_LIBS $LIBXML_LIBS $LIBXSLT_LIBS $XMLSEC_CRYPTO_LIBS"
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394 XMLSEC_CRYPTO_PC_FILES_LIST=""
16395 for i in $XMLSEC_CRYPTO_LIST ; do
16396         test x$i = xmscrypto && continue
16397     XMLSEC_CRYPTO_PC_FILES_LIST="$XMLSEC_CRYPTO_PC_FILES_LIST $XMLSEC_PACKAGE-$i.pc"
16398 done
16399
16400
16401 if test "z$XMLSEC_NO_OPENSSL" != "z1" ; then
16402 ac_config_files="$ac_config_files include/xmlsec/openssl/Makefile src/openssl/Makefile"
16403
16404 fi
16405
16406 if test "z$XMLSEC_NO_GNUTLS" != "z1" ; then
16407 ac_config_files="$ac_config_files include/xmlsec/gnutls/Makefile src/gnutls/Makefile"
16408
16409 fi
16410
16411 if test "z$XMLSEC_NO_GCRYPT" != "z1" ; then
16412 ac_config_files="$ac_config_files include/xmlsec/gcrypt/Makefile src/gcrypt/Makefile"
16413
16414 fi
16415
16416 if test "z$XMLSEC_NO_NSS" != "z1" ; then
16417 ac_config_files="$ac_config_files include/xmlsec/nss/Makefile src/nss/Makefile"
16418
16419 fi
16420
16421 if test "z$XMLSEC_NO_MSCRYPTO" != "z1" ; then
16422 ac_config_files="$ac_config_files include/xmlsec/mscrypto/Makefile src/mscrypto/Makefile"
16423
16424 fi
16425
16426 if test "z$XMLSEC_NO_CRYPTO_DYNAMIC_LOADING" = "z1" ; then
16427 (rm -f xmlsec1.pc && $LN_S xmlsec1-$XMLSEC_DEFAULT_CRYPTO.pc xmlsec1.pc)
16428 else
16429 ac_config_files="$ac_config_files xmlsec1.pc:xmlsec.pc.in"
16430
16431 fi
16432
16433 ac_config_files="$ac_config_files include/xmlsec/version.h Makefile include/Makefile include/xmlsec/Makefile include/xmlsec/private/Makefile src/Makefile apps/Makefile docs/Makefile docs/api/Makefile man/Makefile xmlsec1-openssl.pc:xmlsec-openssl.pc.in xmlsec1-gnutls.pc:xmlsec-gnutls.pc.in xmlsec1-gcrypt.pc:xmlsec-gcrypt.pc.in xmlsec1-nss.pc:xmlsec-nss.pc.in xmlsec1.spec:xmlsec.spec.in"
16434
16435 ac_config_files="$ac_config_files xmlsec1Conf.sh:xmlsecConf.sh.in"
16436
16437 ac_config_files="$ac_config_files xmlsec1-config:xmlsec-config.in"
16438
16439 cat >confcache <<\_ACEOF
16440 # This file is a shell script that caches the results of configure
16441 # tests run on this system so they can be shared between configure
16442 # scripts and configure runs, see configure's option --config-cache.
16443 # It is not useful on other systems.  If it contains results you don't
16444 # want to keep, you may remove or edit it.
16445 #
16446 # config.status only pays attention to the cache file if you give it
16447 # the --recheck option to rerun configure.
16448 #
16449 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16450 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16451 # following values.
16452
16453 _ACEOF
16454
16455 # The following way of writing the cache mishandles newlines in values,
16456 # but we know of no workaround that is simple, portable, and efficient.
16457 # So, we kill variables containing newlines.
16458 # Ultrix sh set writes to stderr and can't be redirected directly,
16459 # and sets the high bit in the cache file unless we assign to the vars.
16460 (
16461   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16462     eval ac_val=\$$ac_var
16463     case $ac_val in #(
16464     *${as_nl}*)
16465       case $ac_var in #(
16466       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16467 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16468       esac
16469       case $ac_var in #(
16470       _ | IFS | as_nl) ;; #(
16471       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16472       *) { eval $ac_var=; unset $ac_var;} ;;
16473       esac ;;
16474     esac
16475   done
16476
16477   (set) 2>&1 |
16478     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16479     *${as_nl}ac_space=\ *)
16480       # `set' does not quote correctly, so add quotes: double-quote
16481       # substitution turns \\\\ into \\, and sed turns \\ into \.
16482       sed -n \
16483         "s/'/'\\\\''/g;
16484           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16485       ;; #(
16486     *)
16487       # `set' quotes correctly as required by POSIX, so do not add quotes.
16488       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16489       ;;
16490     esac |
16491     sort
16492 ) |
16493   sed '
16494      /^ac_cv_env_/b end
16495      t clear
16496      :clear
16497      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16498      t end
16499      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16500      :end' >>confcache
16501 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16502   if test -w "$cache_file"; then
16503     if test "x$cache_file" != "x/dev/null"; then
16504       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16505 $as_echo "$as_me: updating cache $cache_file" >&6;}
16506       if test ! -f "$cache_file" || test -h "$cache_file"; then
16507         cat confcache >"$cache_file"
16508       else
16509         case $cache_file in #(
16510         */* | ?:*)
16511           mv -f confcache "$cache_file"$$ &&
16512           mv -f "$cache_file"$$ "$cache_file" ;; #(
16513         *)
16514           mv -f confcache "$cache_file" ;;
16515         esac
16516       fi
16517     fi
16518   else
16519     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16520 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16521   fi
16522 fi
16523 rm -f confcache
16524
16525 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16526 # Let make expand exec_prefix.
16527 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16528
16529 DEFS=-DHAVE_CONFIG_H
16530
16531 ac_libobjs=
16532 ac_ltlibobjs=
16533 U=
16534 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16535   # 1. Remove the extension, and $U if already installed.
16536   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16537   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16538   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16539   #    will be set to the directory where LIBOBJS objects are built.
16540   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16541   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16542 done
16543 LIBOBJS=$ac_libobjs
16544
16545 LTLIBOBJS=$ac_ltlibobjs
16546
16547
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16549 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16550    if test -n "$am_sleep_pid"; then
16551      # Hide warnings about reused PIDs.
16552      wait $am_sleep_pid 2>/dev/null
16553    fi
16554    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16555 $as_echo "done" >&6; }
16556  if test -n "$EXEEXT"; then
16557   am__EXEEXT_TRUE=
16558   am__EXEEXT_FALSE='#'
16559 else
16560   am__EXEEXT_TRUE='#'
16561   am__EXEEXT_FALSE=
16562 fi
16563
16564 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16565   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16567 fi
16568 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16569   as_fn_error $? "conditional \"AMDEP\" was never defined.
16570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16571 fi
16572 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16573   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16575 fi
16576 if test -z "${HAS_HELP2MAN_TRUE}" && test -z "${HAS_HELP2MAN_FALSE}"; then
16577   as_fn_error $? "conditional \"HAS_HELP2MAN\" was never defined.
16578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16579 fi
16580 if test -z "${BUILD_MANPAGES_TRUE}" && test -z "${BUILD_MANPAGES_FALSE}"; then
16581   as_fn_error $? "conditional \"BUILD_MANPAGES\" was never defined.
16582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16583 fi
16584 if test -z "${HAS_MAN2HTML_TRUE}" && test -z "${HAS_MAN2HTML_FALSE}"; then
16585   as_fn_error $? "conditional \"HAS_MAN2HTML\" was never defined.
16586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16587 fi
16588 if test -z "${HAS_XSLTPROC_TRUE}" && test -z "${HAS_XSLTPROC_FALSE}"; then
16589   as_fn_error $? "conditional \"HAS_XSLTPROC\" was never defined.
16590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16591 fi
16592 if test -z "${BUILD_MAN_DOCS_TRUE}" && test -z "${BUILD_MAN_DOCS_FALSE}"; then
16593   as_fn_error $? "conditional \"BUILD_MAN_DOCS\" was never defined.
16594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16595 fi
16596 if test -z "${BUILD_API_DOCS_TRUE}" && test -z "${BUILD_API_DOCS_FALSE}"; then
16597   as_fn_error $? "conditional \"BUILD_API_DOCS\" was never defined.
16598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16599 fi
16600 if test -z "${SHAREDLIB_HACK_TRUE}" && test -z "${SHAREDLIB_HACK_FALSE}"; then
16601   as_fn_error $? "conditional \"SHAREDLIB_HACK\" was never defined.
16602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16603 fi
16604 if test -z "${XMLSEC_NO_OPENSSL_TRUE}" && test -z "${XMLSEC_NO_OPENSSL_FALSE}"; then
16605   as_fn_error $? "conditional \"XMLSEC_NO_OPENSSL\" was never defined.
16606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16607 fi
16608 if test -z "${XMLSEC_NO_NSS_TRUE}" && test -z "${XMLSEC_NO_NSS_FALSE}"; then
16609   as_fn_error $? "conditional \"XMLSEC_NO_NSS\" was never defined.
16610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16611 fi
16612 if test -z "${XMLSEC_NO_GCRYPT_TRUE}" && test -z "${XMLSEC_NO_GCRYPT_FALSE}"; then
16613   as_fn_error $? "conditional \"XMLSEC_NO_GCRYPT\" was never defined.
16614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16615 fi
16616 if test -z "${XMLSEC_NO_GNUTLS_TRUE}" && test -z "${XMLSEC_NO_GNUTLS_FALSE}"; then
16617   as_fn_error $? "conditional \"XMLSEC_NO_GNUTLS\" was never defined.
16618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16619 fi
16620 if test -z "${XMLSEC_NO_MSCRYPTO_TRUE}" && test -z "${XMLSEC_NO_MSCRYPTO_FALSE}"; then
16621   as_fn_error $? "conditional \"XMLSEC_NO_MSCRYPTO\" was never defined.
16622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16623 fi
16624 if test -z "${XMLSEC_NO_MD5_TRUE}" && test -z "${XMLSEC_NO_MD5_FALSE}"; then
16625   as_fn_error $? "conditional \"XMLSEC_NO_MD5\" was never defined.
16626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16627 fi
16628 if test -z "${XMLSEC_NO_RIPEMD160_TRUE}" && test -z "${XMLSEC_NO_RIPEMD160_FALSE}"; then
16629   as_fn_error $? "conditional \"XMLSEC_NO_RIPEMD160\" was never defined.
16630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16631 fi
16632 if test -z "${XMLSEC_NO_SHA1_TRUE}" && test -z "${XMLSEC_NO_SHA1_FALSE}"; then
16633   as_fn_error $? "conditional \"XMLSEC_NO_SHA1\" was never defined.
16634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16635 fi
16636 if test -z "${XMLSEC_NO_SHA224_TRUE}" && test -z "${XMLSEC_NO_SHA224_FALSE}"; then
16637   as_fn_error $? "conditional \"XMLSEC_NO_SHA224\" was never defined.
16638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16639 fi
16640 if test -z "${XMLSEC_NO_SHA256_TRUE}" && test -z "${XMLSEC_NO_SHA256_FALSE}"; then
16641   as_fn_error $? "conditional \"XMLSEC_NO_SHA256\" was never defined.
16642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16643 fi
16644 if test -z "${XMLSEC_NO_SHA384_TRUE}" && test -z "${XMLSEC_NO_SHA384_FALSE}"; then
16645   as_fn_error $? "conditional \"XMLSEC_NO_SHA384\" was never defined.
16646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16647 fi
16648 if test -z "${XMLSEC_NO_SHA512_TRUE}" && test -z "${XMLSEC_NO_SHA512_FALSE}"; then
16649   as_fn_error $? "conditional \"XMLSEC_NO_SHA512\" was never defined.
16650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16651 fi
16652 if test -z "${XMLSEC_NO_HMAC_TRUE}" && test -z "${XMLSEC_NO_HMAC_FALSE}"; then
16653   as_fn_error $? "conditional \"XMLSEC_NO_HMAC\" was never defined.
16654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16655 fi
16656 if test -z "${XMLSEC_NO_DSA_TRUE}" && test -z "${XMLSEC_NO_DSA_FALSE}"; then
16657   as_fn_error $? "conditional \"XMLSEC_NO_DSA\" was never defined.
16658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16659 fi
16660 if test -z "${XMLSEC_NO_RSA_TRUE}" && test -z "${XMLSEC_NO_RSA_FALSE}"; then
16661   as_fn_error $? "conditional \"XMLSEC_NO_RSA\" was never defined.
16662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16663 fi
16664 if test -z "${XMLSEC_NO_X509_TRUE}" && test -z "${XMLSEC_NO_X509_FALSE}"; then
16665   as_fn_error $? "conditional \"XMLSEC_NO_X509\" was never defined.
16666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16667 fi
16668 if test -z "${XMLSEC_NO_DES_TRUE}" && test -z "${XMLSEC_NO_DES_FALSE}"; then
16669   as_fn_error $? "conditional \"XMLSEC_NO_DES\" was never defined.
16670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16671 fi
16672 if test -z "${XMLSEC_NO_AES_TRUE}" && test -z "${XMLSEC_NO_AES_FALSE}"; then
16673   as_fn_error $? "conditional \"XMLSEC_NO_AES\" was never defined.
16674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16675 fi
16676 if test -z "${XMLSEC_NO_GOST_TRUE}" && test -z "${XMLSEC_NO_GOST_FALSE}"; then
16677   as_fn_error $? "conditional \"XMLSEC_NO_GOST\" was never defined.
16678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16679 fi
16680 if test -z "${XMLSEC_NO_GOST2012_TRUE}" && test -z "${XMLSEC_NO_GOST2012_FALSE}"; then
16681   as_fn_error $? "conditional \"XMLSEC_NO_GOST2012\" was never defined.
16682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16683 fi
16684 if test -z "${XMLSEC_NO_XMLDSIG_TRUE}" && test -z "${XMLSEC_NO_XMLDSIG_FALSE}"; then
16685   as_fn_error $? "conditional \"XMLSEC_NO_XMLDSIG\" was never defined.
16686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16687 fi
16688 if test -z "${XMLSEC_NO_XMLENC_TRUE}" && test -z "${XMLSEC_NO_XMLENC_FALSE}"; then
16689   as_fn_error $? "conditional \"XMLSEC_NO_XMLENC\" was never defined.
16690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16691 fi
16692 if test -z "${XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_TRUE}" && test -z "${XMLSEC_NO_CRYPTO_DYNAMIC_LOADING_FALSE}"; then
16693   as_fn_error $? "conditional \"XMLSEC_NO_CRYPTO_DYNAMIC_LOADING\" was never defined.
16694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16695 fi
16696 if test -z "${XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_TRUE}" && test -z "${XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING_FALSE}"; then
16697   as_fn_error $? "conditional \"XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING\" was never defined.
16698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16699 fi
16700
16701 : "${CONFIG_STATUS=./config.status}"
16702 ac_write_fail=0
16703 ac_clean_files_save=$ac_clean_files
16704 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16706 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16707 as_write_fail=0
16708 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16709 #! $SHELL
16710 # Generated by $as_me.
16711 # Run this file to recreate the current configuration.
16712 # Compiler output produced by configure, useful for debugging
16713 # configure, is in config.log if it exists.
16714
16715 debug=false
16716 ac_cs_recheck=false
16717 ac_cs_silent=false
16718
16719 SHELL=\${CONFIG_SHELL-$SHELL}
16720 export SHELL
16721 _ASEOF
16722 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16723 ## -------------------- ##
16724 ## M4sh Initialization. ##
16725 ## -------------------- ##
16726
16727 # Be more Bourne compatible
16728 DUALCASE=1; export DUALCASE # for MKS sh
16729 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16730   emulate sh
16731   NULLCMD=:
16732   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16733   # is contrary to our usage.  Disable this feature.
16734   alias -g '${1+"$@"}'='"$@"'
16735   setopt NO_GLOB_SUBST
16736 else
16737   case `(set -o) 2>/dev/null` in #(
16738   *posix*) :
16739     set -o posix ;; #(
16740   *) :
16741      ;;
16742 esac
16743 fi
16744
16745
16746 as_nl='
16747 '
16748 export as_nl
16749 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16750 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16751 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16752 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16753 # Prefer a ksh shell builtin over an external printf program on Solaris,
16754 # but without wasting forks for bash or zsh.
16755 if test -z "$BASH_VERSION$ZSH_VERSION" \
16756     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16757   as_echo='print -r --'
16758   as_echo_n='print -rn --'
16759 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16760   as_echo='printf %s\n'
16761   as_echo_n='printf %s'
16762 else
16763   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16764     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16765     as_echo_n='/usr/ucb/echo -n'
16766   else
16767     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16768     as_echo_n_body='eval
16769       arg=$1;
16770       case $arg in #(
16771       *"$as_nl"*)
16772         expr "X$arg" : "X\\(.*\\)$as_nl";
16773         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16774       esac;
16775       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16776     '
16777     export as_echo_n_body
16778     as_echo_n='sh -c $as_echo_n_body as_echo'
16779   fi
16780   export as_echo_body
16781   as_echo='sh -c $as_echo_body as_echo'
16782 fi
16783
16784 # The user is always right.
16785 if test "${PATH_SEPARATOR+set}" != set; then
16786   PATH_SEPARATOR=:
16787   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16788     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16789       PATH_SEPARATOR=';'
16790   }
16791 fi
16792
16793
16794 # IFS
16795 # We need space, tab and new line, in precisely that order.  Quoting is
16796 # there to prevent editors from complaining about space-tab.
16797 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16798 # splitting by setting IFS to empty value.)
16799 IFS=" ""        $as_nl"
16800
16801 # Find who we are.  Look in the path if we contain no directory separator.
16802 as_myself=
16803 case $0 in #((
16804   *[\\/]* ) as_myself=$0 ;;
16805   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16806 for as_dir in $PATH
16807 do
16808   IFS=$as_save_IFS
16809   test -z "$as_dir" && as_dir=.
16810     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16811   done
16812 IFS=$as_save_IFS
16813
16814      ;;
16815 esac
16816 # We did not find ourselves, most probably we were run as `sh COMMAND'
16817 # in which case we are not to be found in the path.
16818 if test "x$as_myself" = x; then
16819   as_myself=$0
16820 fi
16821 if test ! -f "$as_myself"; then
16822   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16823   exit 1
16824 fi
16825
16826 # Unset variables that we do not need and which cause bugs (e.g. in
16827 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16828 # suppresses any "Segmentation fault" message there.  '((' could
16829 # trigger a bug in pdksh 5.2.14.
16830 for as_var in BASH_ENV ENV MAIL MAILPATH
16831 do eval test x\${$as_var+set} = xset \
16832   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16833 done
16834 PS1='$ '
16835 PS2='> '
16836 PS4='+ '
16837
16838 # NLS nuisances.
16839 LC_ALL=C
16840 export LC_ALL
16841 LANGUAGE=C
16842 export LANGUAGE
16843
16844 # CDPATH.
16845 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16846
16847
16848 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16849 # ----------------------------------------
16850 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16851 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16852 # script with STATUS, using 1 if that was 0.
16853 as_fn_error ()
16854 {
16855   as_status=$1; test $as_status -eq 0 && as_status=1
16856   if test "$4"; then
16857     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16858     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16859   fi
16860   $as_echo "$as_me: error: $2" >&2
16861   as_fn_exit $as_status
16862 } # as_fn_error
16863
16864
16865 # as_fn_set_status STATUS
16866 # -----------------------
16867 # Set $? to STATUS, without forking.
16868 as_fn_set_status ()
16869 {
16870   return $1
16871 } # as_fn_set_status
16872
16873 # as_fn_exit STATUS
16874 # -----------------
16875 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16876 as_fn_exit ()
16877 {
16878   set +e
16879   as_fn_set_status $1
16880   exit $1
16881 } # as_fn_exit
16882
16883 # as_fn_unset VAR
16884 # ---------------
16885 # Portably unset VAR.
16886 as_fn_unset ()
16887 {
16888   { eval $1=; unset $1;}
16889 }
16890 as_unset=as_fn_unset
16891 # as_fn_append VAR VALUE
16892 # ----------------------
16893 # Append the text in VALUE to the end of the definition contained in VAR. Take
16894 # advantage of any shell optimizations that allow amortized linear growth over
16895 # repeated appends, instead of the typical quadratic growth present in naive
16896 # implementations.
16897 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16898   eval 'as_fn_append ()
16899   {
16900     eval $1+=\$2
16901   }'
16902 else
16903   as_fn_append ()
16904   {
16905     eval $1=\$$1\$2
16906   }
16907 fi # as_fn_append
16908
16909 # as_fn_arith ARG...
16910 # ------------------
16911 # Perform arithmetic evaluation on the ARGs, and store the result in the
16912 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16913 # must be portable across $(()) and expr.
16914 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16915   eval 'as_fn_arith ()
16916   {
16917     as_val=$(( $* ))
16918   }'
16919 else
16920   as_fn_arith ()
16921   {
16922     as_val=`expr "$@" || test $? -eq 1`
16923   }
16924 fi # as_fn_arith
16925
16926
16927 if expr a : '\(a\)' >/dev/null 2>&1 &&
16928    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16929   as_expr=expr
16930 else
16931   as_expr=false
16932 fi
16933
16934 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16935   as_basename=basename
16936 else
16937   as_basename=false
16938 fi
16939
16940 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16941   as_dirname=dirname
16942 else
16943   as_dirname=false
16944 fi
16945
16946 as_me=`$as_basename -- "$0" ||
16947 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16948          X"$0" : 'X\(//\)$' \| \
16949          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16950 $as_echo X/"$0" |
16951     sed '/^.*\/\([^/][^/]*\)\/*$/{
16952             s//\1/
16953             q
16954           }
16955           /^X\/\(\/\/\)$/{
16956             s//\1/
16957             q
16958           }
16959           /^X\/\(\/\).*/{
16960             s//\1/
16961             q
16962           }
16963           s/.*/./; q'`
16964
16965 # Avoid depending upon Character Ranges.
16966 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16967 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16968 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16969 as_cr_digits='0123456789'
16970 as_cr_alnum=$as_cr_Letters$as_cr_digits
16971
16972 ECHO_C= ECHO_N= ECHO_T=
16973 case `echo -n x` in #(((((
16974 -n*)
16975   case `echo 'xy\c'` in
16976   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16977   xy)  ECHO_C='\c';;
16978   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16979        ECHO_T=' ';;
16980   esac;;
16981 *)
16982   ECHO_N='-n';;
16983 esac
16984
16985 rm -f conf$$ conf$$.exe conf$$.file
16986 if test -d conf$$.dir; then
16987   rm -f conf$$.dir/conf$$.file
16988 else
16989   rm -f conf$$.dir
16990   mkdir conf$$.dir 2>/dev/null
16991 fi
16992 if (echo >conf$$.file) 2>/dev/null; then
16993   if ln -s conf$$.file conf$$ 2>/dev/null; then
16994     as_ln_s='ln -s'
16995     # ... but there are two gotchas:
16996     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16997     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16998     # In both cases, we have to default to `cp -pR'.
16999     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17000       as_ln_s='cp -pR'
17001   elif ln conf$$.file conf$$ 2>/dev/null; then
17002     as_ln_s=ln
17003   else
17004     as_ln_s='cp -pR'
17005   fi
17006 else
17007   as_ln_s='cp -pR'
17008 fi
17009 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17010 rmdir conf$$.dir 2>/dev/null
17011
17012
17013 # as_fn_mkdir_p
17014 # -------------
17015 # Create "$as_dir" as a directory, including parents if necessary.
17016 as_fn_mkdir_p ()
17017 {
17018
17019   case $as_dir in #(
17020   -*) as_dir=./$as_dir;;
17021   esac
17022   test -d "$as_dir" || eval $as_mkdir_p || {
17023     as_dirs=
17024     while :; do
17025       case $as_dir in #(
17026       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17027       *) as_qdir=$as_dir;;
17028       esac
17029       as_dirs="'$as_qdir' $as_dirs"
17030       as_dir=`$as_dirname -- "$as_dir" ||
17031 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17032          X"$as_dir" : 'X\(//\)[^/]' \| \
17033          X"$as_dir" : 'X\(//\)$' \| \
17034          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17035 $as_echo X"$as_dir" |
17036     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17037             s//\1/
17038             q
17039           }
17040           /^X\(\/\/\)[^/].*/{
17041             s//\1/
17042             q
17043           }
17044           /^X\(\/\/\)$/{
17045             s//\1/
17046             q
17047           }
17048           /^X\(\/\).*/{
17049             s//\1/
17050             q
17051           }
17052           s/.*/./; q'`
17053       test -d "$as_dir" && break
17054     done
17055     test -z "$as_dirs" || eval "mkdir $as_dirs"
17056   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17057
17058
17059 } # as_fn_mkdir_p
17060 if mkdir -p . 2>/dev/null; then
17061   as_mkdir_p='mkdir -p "$as_dir"'
17062 else
17063   test -d ./-p && rmdir ./-p
17064   as_mkdir_p=false
17065 fi
17066
17067
17068 # as_fn_executable_p FILE
17069 # -----------------------
17070 # Test if FILE is an executable regular file.
17071 as_fn_executable_p ()
17072 {
17073   test -f "$1" && test -x "$1"
17074 } # as_fn_executable_p
17075 as_test_x='test -x'
17076 as_executable_p=as_fn_executable_p
17077
17078 # Sed expression to map a string onto a valid CPP name.
17079 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17080
17081 # Sed expression to map a string onto a valid variable name.
17082 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17083
17084
17085 exec 6>&1
17086 ## ----------------------------------- ##
17087 ## Main body of $CONFIG_STATUS script. ##
17088 ## ----------------------------------- ##
17089 _ASEOF
17090 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17091
17092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17093 # Save the log message, to keep $0 and so on meaningful, and to
17094 # report actual input values of CONFIG_FILES etc. instead of their
17095 # values after options handling.
17096 ac_log="
17097 This file was extended by xmlsec1 $as_me 1.2.22, which was
17098 generated by GNU Autoconf 2.69.  Invocation command line was
17099
17100   CONFIG_FILES    = $CONFIG_FILES
17101   CONFIG_HEADERS  = $CONFIG_HEADERS
17102   CONFIG_LINKS    = $CONFIG_LINKS
17103   CONFIG_COMMANDS = $CONFIG_COMMANDS
17104   $ $0 $@
17105
17106 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17107 "
17108
17109 _ACEOF
17110
17111 case $ac_config_files in *"
17112 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17113 esac
17114
17115 case $ac_config_headers in *"
17116 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17117 esac
17118
17119
17120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17121 # Files that config.status was made for.
17122 config_files="$ac_config_files"
17123 config_headers="$ac_config_headers"
17124 config_commands="$ac_config_commands"
17125
17126 _ACEOF
17127
17128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17129 ac_cs_usage="\
17130 \`$as_me' instantiates files and other configuration actions
17131 from templates according to the current configuration.  Unless the files
17132 and actions are specified as TAGs, all are instantiated by default.
17133
17134 Usage: $0 [OPTION]... [TAG]...
17135
17136   -h, --help       print this help, then exit
17137   -V, --version    print version number and configuration settings, then exit
17138       --config     print configuration, then exit
17139   -q, --quiet, --silent
17140                    do not print progress messages
17141   -d, --debug      don't remove temporary files
17142       --recheck    update $as_me by reconfiguring in the same conditions
17143       --file=FILE[:TEMPLATE]
17144                    instantiate the configuration file FILE
17145       --header=FILE[:TEMPLATE]
17146                    instantiate the configuration header FILE
17147
17148 Configuration files:
17149 $config_files
17150
17151 Configuration headers:
17152 $config_headers
17153
17154 Configuration commands:
17155 $config_commands
17156
17157 Report bugs to <http://www.aleksey.com/xmlsec>."
17158
17159 _ACEOF
17160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17161 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17162 ac_cs_version="\\
17163 xmlsec1 config.status 1.2.22
17164 configured by $0, generated by GNU Autoconf 2.69,
17165   with options \\"\$ac_cs_config\\"
17166
17167 Copyright (C) 2012 Free Software Foundation, Inc.
17168 This config.status script is free software; the Free Software Foundation
17169 gives unlimited permission to copy, distribute and modify it."
17170
17171 ac_pwd='$ac_pwd'
17172 srcdir='$srcdir'
17173 INSTALL='$INSTALL'
17174 MKDIR_P='$MKDIR_P'
17175 AWK='$AWK'
17176 test -n "\$AWK" || AWK=awk
17177 _ACEOF
17178
17179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17180 # The default lists apply if the user does not specify any file.
17181 ac_need_defaults=:
17182 while test $# != 0
17183 do
17184   case $1 in
17185   --*=?*)
17186     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17187     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17188     ac_shift=:
17189     ;;
17190   --*=)
17191     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17192     ac_optarg=
17193     ac_shift=:
17194     ;;
17195   *)
17196     ac_option=$1
17197     ac_optarg=$2
17198     ac_shift=shift
17199     ;;
17200   esac
17201
17202   case $ac_option in
17203   # Handling of the options.
17204   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17205     ac_cs_recheck=: ;;
17206   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17207     $as_echo "$ac_cs_version"; exit ;;
17208   --config | --confi | --conf | --con | --co | --c )
17209     $as_echo "$ac_cs_config"; exit ;;
17210   --debug | --debu | --deb | --de | --d | -d )
17211     debug=: ;;
17212   --file | --fil | --fi | --f )
17213     $ac_shift
17214     case $ac_optarg in
17215     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17216     '') as_fn_error $? "missing file argument" ;;
17217     esac
17218     as_fn_append CONFIG_FILES " '$ac_optarg'"
17219     ac_need_defaults=false;;
17220   --header | --heade | --head | --hea )
17221     $ac_shift
17222     case $ac_optarg in
17223     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17224     esac
17225     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17226     ac_need_defaults=false;;
17227   --he | --h)
17228     # Conflict between --help and --header
17229     as_fn_error $? "ambiguous option: \`$1'
17230 Try \`$0 --help' for more information.";;
17231   --help | --hel | -h )
17232     $as_echo "$ac_cs_usage"; exit ;;
17233   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17234   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17235     ac_cs_silent=: ;;
17236
17237   # This is an error.
17238   -*) as_fn_error $? "unrecognized option: \`$1'
17239 Try \`$0 --help' for more information." ;;
17240
17241   *) as_fn_append ac_config_targets " $1"
17242      ac_need_defaults=false ;;
17243
17244   esac
17245   shift
17246 done
17247
17248 ac_configure_extra_args=
17249
17250 if $ac_cs_silent; then
17251   exec 6>/dev/null
17252   ac_configure_extra_args="$ac_configure_extra_args --silent"
17253 fi
17254
17255 _ACEOF
17256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17257 if \$ac_cs_recheck; then
17258   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17259   shift
17260   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17261   CONFIG_SHELL='$SHELL'
17262   export CONFIG_SHELL
17263   exec "\$@"
17264 fi
17265
17266 _ACEOF
17267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17268 exec 5>>config.log
17269 {
17270   echo
17271   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17272 ## Running $as_me. ##
17273 _ASBOX
17274   $as_echo "$ac_log"
17275 } >&5
17276
17277 _ACEOF
17278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17279 #
17280 # INIT-COMMANDS
17281 #
17282 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17283
17284
17285 # The HP-UX ksh and POSIX shell print the target directory to stdout
17286 # if CDPATH is set.
17287 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17288
17289 sed_quote_subst='$sed_quote_subst'
17290 double_quote_subst='$double_quote_subst'
17291 delay_variable_subst='$delay_variable_subst'
17292 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17293 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17294 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17295 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17296 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17297 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17298 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17299 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17300 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17301 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17302 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17303 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17304 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17305 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17306 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17307 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17308 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17309 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17310 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17311 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17312 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17313 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17314 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17315 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17316 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17317 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17318 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17319 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17320 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17321 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17322 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17323 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17324 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17325 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17326 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17327 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17328 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17329 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17330 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17331 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17332 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17333 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17334 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17335 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17336 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17337 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17338 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17339 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17340 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17341 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17342 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17343 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17344 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17345 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17346 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17347 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17348 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"`'
17349 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17350 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17351 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17352 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17353 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17354 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17355 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17356 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17357 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17358 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17359 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17360 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17361 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17362 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17363 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17364 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17365 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17366 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17367 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17368 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17369 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17370 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17371 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17372 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17373 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17374 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17375 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17376 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17377 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17378 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17379 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17380 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17381 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17382 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17383 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17384 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17385 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17386 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17387 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17388 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17389 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17390 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17391 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17392 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17393 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17394 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17395 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17396 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17397 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17398 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17399 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17400 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17401 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17402 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17403 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17404 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17405 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17406 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17407 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17408 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17409 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17410 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17411 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17412 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17413 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17414 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17415 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17416 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17417 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17418 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17419 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17420 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17421 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17422
17423 LTCC='$LTCC'
17424 LTCFLAGS='$LTCFLAGS'
17425 compiler='$compiler_DEFAULT'
17426
17427 # A function that is used when there is no print builtin or printf.
17428 func_fallback_echo ()
17429 {
17430   eval 'cat <<_LTECHO_EOF
17431 \$1
17432 _LTECHO_EOF'
17433 }
17434
17435 # Quote evaled strings.
17436 for var in SHELL \
17437 ECHO \
17438 PATH_SEPARATOR \
17439 SED \
17440 GREP \
17441 EGREP \
17442 FGREP \
17443 LD \
17444 NM \
17445 LN_S \
17446 lt_SP2NL \
17447 lt_NL2SP \
17448 reload_flag \
17449 OBJDUMP \
17450 deplibs_check_method \
17451 file_magic_cmd \
17452 file_magic_glob \
17453 want_nocaseglob \
17454 DLLTOOL \
17455 sharedlib_from_linklib_cmd \
17456 AR \
17457 AR_FLAGS \
17458 archiver_list_spec \
17459 STRIP \
17460 RANLIB \
17461 CC \
17462 CFLAGS \
17463 compiler \
17464 lt_cv_sys_global_symbol_pipe \
17465 lt_cv_sys_global_symbol_to_cdecl \
17466 lt_cv_sys_global_symbol_to_c_name_address \
17467 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17468 nm_file_list_spec \
17469 lt_prog_compiler_no_builtin_flag \
17470 lt_prog_compiler_pic \
17471 lt_prog_compiler_wl \
17472 lt_prog_compiler_static \
17473 lt_cv_prog_compiler_c_o \
17474 need_locks \
17475 MANIFEST_TOOL \
17476 DSYMUTIL \
17477 NMEDIT \
17478 LIPO \
17479 OTOOL \
17480 OTOOL64 \
17481 shrext_cmds \
17482 export_dynamic_flag_spec \
17483 whole_archive_flag_spec \
17484 compiler_needs_object \
17485 with_gnu_ld \
17486 allow_undefined_flag \
17487 no_undefined_flag \
17488 hardcode_libdir_flag_spec \
17489 hardcode_libdir_separator \
17490 exclude_expsyms \
17491 include_expsyms \
17492 file_list_spec \
17493 variables_saved_for_relink \
17494 libname_spec \
17495 library_names_spec \
17496 soname_spec \
17497 install_override_mode \
17498 finish_eval \
17499 old_striplib \
17500 striplib; do
17501     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17502     *[\\\\\\\`\\"\\\$]*)
17503       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17504       ;;
17505     *)
17506       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17507       ;;
17508     esac
17509 done
17510
17511 # Double-quote double-evaled strings.
17512 for var in reload_cmds \
17513 old_postinstall_cmds \
17514 old_postuninstall_cmds \
17515 old_archive_cmds \
17516 extract_expsyms_cmds \
17517 old_archive_from_new_cmds \
17518 old_archive_from_expsyms_cmds \
17519 archive_cmds \
17520 archive_expsym_cmds \
17521 module_cmds \
17522 module_expsym_cmds \
17523 export_symbols_cmds \
17524 prelink_cmds \
17525 postlink_cmds \
17526 postinstall_cmds \
17527 postuninstall_cmds \
17528 finish_cmds \
17529 sys_lib_search_path_spec \
17530 sys_lib_dlsearch_path_spec; do
17531     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17532     *[\\\\\\\`\\"\\\$]*)
17533       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17534       ;;
17535     *)
17536       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17537       ;;
17538     esac
17539 done
17540
17541 ac_aux_dir='$ac_aux_dir'
17542 xsi_shell='$xsi_shell'
17543 lt_shell_append='$lt_shell_append'
17544
17545 # See if we are running on zsh, and set the options which allow our
17546 # commands through without removal of \ escapes INIT.
17547 if test -n "\${ZSH_VERSION+set}" ; then
17548    setopt NO_GLOB_SUBST
17549 fi
17550
17551
17552     PACKAGE='$PACKAGE'
17553     VERSION='$VERSION'
17554     TIMESTAMP='$TIMESTAMP'
17555     RM='$RM'
17556     ofile='$ofile'
17557
17558
17559
17560
17561 _ACEOF
17562
17563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17564
17565 # Handling of arguments.
17566 for ac_config_target in $ac_config_targets
17567 do
17568   case $ac_config_target in
17569     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17570     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17571     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17572     "include/xmlsec/openssl/Makefile") CONFIG_FILES="$CONFIG_FILES include/xmlsec/openssl/Makefile" ;;
17573     "src/openssl/Makefile") CONFIG_FILES="$CONFIG_FILES src/openssl/Makefile" ;;
17574     "include/xmlsec/gnutls/Makefile") CONFIG_FILES="$CONFIG_FILES include/xmlsec/gnutls/Makefile" ;;
17575     "src/gnutls/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnutls/Makefile" ;;
17576     "include/xmlsec/gcrypt/Makefile") CONFIG_FILES="$CONFIG_FILES include/xmlsec/gcrypt/Makefile" ;;
17577     "src/gcrypt/Makefile") CONFIG_FILES="$CONFIG_FILES src/gcrypt/Makefile" ;;
17578     "include/xmlsec/nss/Makefile") CONFIG_FILES="$CONFIG_FILES include/xmlsec/nss/Makefile" ;;
17579     "src/nss/Makefile") CONFIG_FILES="$CONFIG_FILES src/nss/Makefile" ;;
17580     "include/xmlsec/mscrypto/Makefile") CONFIG_FILES="$CONFIG_FILES include/xmlsec/mscrypto/Makefile" ;;
17581     "src/mscrypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/mscrypto/Makefile" ;;
17582     "xmlsec1.pc") CONFIG_FILES="$CONFIG_FILES xmlsec1.pc:xmlsec.pc.in" ;;
17583     "include/xmlsec/version.h") CONFIG_FILES="$CONFIG_FILES include/xmlsec/version.h" ;;
17584     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17585     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17586     "include/xmlsec/Makefile") CONFIG_FILES="$CONFIG_FILES include/xmlsec/Makefile" ;;
17587     "include/xmlsec/private/Makefile") CONFIG_FILES="$CONFIG_FILES include/xmlsec/private/Makefile" ;;
17588     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17589     "apps/Makefile") CONFIG_FILES="$CONFIG_FILES apps/Makefile" ;;
17590     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
17591     "docs/api/Makefile") CONFIG_FILES="$CONFIG_FILES docs/api/Makefile" ;;
17592     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17593     "xmlsec1-openssl.pc") CONFIG_FILES="$CONFIG_FILES xmlsec1-openssl.pc:xmlsec-openssl.pc.in" ;;
17594     "xmlsec1-gnutls.pc") CONFIG_FILES="$CONFIG_FILES xmlsec1-gnutls.pc:xmlsec-gnutls.pc.in" ;;
17595     "xmlsec1-gcrypt.pc") CONFIG_FILES="$CONFIG_FILES xmlsec1-gcrypt.pc:xmlsec-gcrypt.pc.in" ;;
17596     "xmlsec1-nss.pc") CONFIG_FILES="$CONFIG_FILES xmlsec1-nss.pc:xmlsec-nss.pc.in" ;;
17597     "xmlsec1.spec") CONFIG_FILES="$CONFIG_FILES xmlsec1.spec:xmlsec.spec.in" ;;
17598     "xmlsec1Conf.sh") CONFIG_FILES="$CONFIG_FILES xmlsec1Conf.sh:xmlsecConf.sh.in" ;;
17599     "xmlsec1-config") CONFIG_FILES="$CONFIG_FILES xmlsec1-config:xmlsec-config.in" ;;
17600
17601   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17602   esac
17603 done
17604
17605
17606 # If the user did not use the arguments to specify the items to instantiate,
17607 # then the envvar interface is used.  Set only those that are not.
17608 # We use the long form for the default assignment because of an extremely
17609 # bizarre bug on SunOS 4.1.3.
17610 if $ac_need_defaults; then
17611   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17612   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17613   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17614 fi
17615
17616 # Have a temporary directory for convenience.  Make it in the build tree
17617 # simply because there is no reason against having it here, and in addition,
17618 # creating and moving files from /tmp can sometimes cause problems.
17619 # Hook for its removal unless debugging.
17620 # Note that there is a small window in which the directory will not be cleaned:
17621 # after its creation but before its name has been assigned to `$tmp'.
17622 $debug ||
17623 {
17624   tmp= ac_tmp=
17625   trap 'exit_status=$?
17626   : "${ac_tmp:=$tmp}"
17627   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17628 ' 0
17629   trap 'as_fn_exit 1' 1 2 13 15
17630 }
17631 # Create a (secure) tmp directory for tmp files.
17632
17633 {
17634   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17635   test -d "$tmp"
17636 }  ||
17637 {
17638   tmp=./conf$$-$RANDOM
17639   (umask 077 && mkdir "$tmp")
17640 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17641 ac_tmp=$tmp
17642
17643 # Set up the scripts for CONFIG_FILES section.
17644 # No need to generate them if there are no CONFIG_FILES.
17645 # This happens for instance with `./config.status config.h'.
17646 if test -n "$CONFIG_FILES"; then
17647
17648
17649 ac_cr=`echo X | tr X '\015'`
17650 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17651 # But we know of no other shell where ac_cr would be empty at this
17652 # point, so we can use a bashism as a fallback.
17653 if test "x$ac_cr" = x; then
17654   eval ac_cr=\$\'\\r\'
17655 fi
17656 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17657 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17658   ac_cs_awk_cr='\\r'
17659 else
17660   ac_cs_awk_cr=$ac_cr
17661 fi
17662
17663 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17664 _ACEOF
17665
17666
17667 {
17668   echo "cat >conf$$subs.awk <<_ACEOF" &&
17669   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17670   echo "_ACEOF"
17671 } >conf$$subs.sh ||
17672   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17673 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17674 ac_delim='%!_!# '
17675 for ac_last_try in false false false false false :; do
17676   . ./conf$$subs.sh ||
17677     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17678
17679   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17680   if test $ac_delim_n = $ac_delim_num; then
17681     break
17682   elif $ac_last_try; then
17683     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17684   else
17685     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17686   fi
17687 done
17688 rm -f conf$$subs.sh
17689
17690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17691 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17692 _ACEOF
17693 sed -n '
17694 h
17695 s/^/S["/; s/!.*/"]=/
17696 p
17697 g
17698 s/^[^!]*!//
17699 :repl
17700 t repl
17701 s/'"$ac_delim"'$//
17702 t delim
17703 :nl
17704 h
17705 s/\(.\{148\}\)..*/\1/
17706 t more1
17707 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17708 p
17709 n
17710 b repl
17711 :more1
17712 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17713 p
17714 g
17715 s/.\{148\}//
17716 t nl
17717 :delim
17718 h
17719 s/\(.\{148\}\)..*/\1/
17720 t more2
17721 s/["\\]/\\&/g; s/^/"/; s/$/"/
17722 p
17723 b
17724 :more2
17725 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17726 p
17727 g
17728 s/.\{148\}//
17729 t delim
17730 ' <conf$$subs.awk | sed '
17731 /^[^""]/{
17732   N
17733   s/\n//
17734 }
17735 ' >>$CONFIG_STATUS || ac_write_fail=1
17736 rm -f conf$$subs.awk
17737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17738 _ACAWK
17739 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17740   for (key in S) S_is_set[key] = 1
17741   FS = "\a"
17742
17743 }
17744 {
17745   line = $ 0
17746   nfields = split(line, field, "@")
17747   substed = 0
17748   len = length(field[1])
17749   for (i = 2; i < nfields; i++) {
17750     key = field[i]
17751     keylen = length(key)
17752     if (S_is_set[key]) {
17753       value = S[key]
17754       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17755       len += length(value) + length(field[++i])
17756       substed = 1
17757     } else
17758       len += 1 + keylen
17759   }
17760
17761   print line
17762 }
17763
17764 _ACAWK
17765 _ACEOF
17766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17767 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17768   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17769 else
17770   cat
17771 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17772   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17773 _ACEOF
17774
17775 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17776 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17777 # trailing colons and then remove the whole line if VPATH becomes empty
17778 # (actually we leave an empty line to preserve line numbers).
17779 if test "x$srcdir" = x.; then
17780   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17781 h
17782 s///
17783 s/^/:/
17784 s/[      ]*$/:/
17785 s/:\$(srcdir):/:/g
17786 s/:\${srcdir}:/:/g
17787 s/:@srcdir@:/:/g
17788 s/^:*//
17789 s/:*$//
17790 x
17791 s/\(=[   ]*\).*/\1/
17792 G
17793 s/\n//
17794 s/^[^=]*=[       ]*$//
17795 }'
17796 fi
17797
17798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17799 fi # test -n "$CONFIG_FILES"
17800
17801 # Set up the scripts for CONFIG_HEADERS section.
17802 # No need to generate them if there are no CONFIG_HEADERS.
17803 # This happens for instance with `./config.status Makefile'.
17804 if test -n "$CONFIG_HEADERS"; then
17805 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17806 BEGIN {
17807 _ACEOF
17808
17809 # Transform confdefs.h into an awk script `defines.awk', embedded as
17810 # here-document in config.status, that substitutes the proper values into
17811 # config.h.in to produce config.h.
17812
17813 # Create a delimiter string that does not exist in confdefs.h, to ease
17814 # handling of long lines.
17815 ac_delim='%!_!# '
17816 for ac_last_try in false false :; do
17817   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17818   if test -z "$ac_tt"; then
17819     break
17820   elif $ac_last_try; then
17821     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17822   else
17823     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17824   fi
17825 done
17826
17827 # For the awk script, D is an array of macro values keyed by name,
17828 # likewise P contains macro parameters if any.  Preserve backslash
17829 # newline sequences.
17830
17831 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17832 sed -n '
17833 s/.\{148\}/&'"$ac_delim"'/g
17834 t rset
17835 :rset
17836 s/^[     ]*#[    ]*define[       ][      ]*/ /
17837 t def
17838 d
17839 :def
17840 s/\\$//
17841 t bsnl
17842 s/["\\]/\\&/g
17843 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17844 D["\1"]=" \3"/p
17845 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17846 d
17847 :bsnl
17848 s/["\\]/\\&/g
17849 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17850 D["\1"]=" \3\\\\\\n"\\/p
17851 t cont
17852 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17853 t cont
17854 d
17855 :cont
17856 n
17857 s/.\{148\}/&'"$ac_delim"'/g
17858 t clear
17859 :clear
17860 s/\\$//
17861 t bsnlc
17862 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17863 d
17864 :bsnlc
17865 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17866 b cont
17867 ' <confdefs.h | sed '
17868 s/'"$ac_delim"'/"\\\
17869 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17870
17871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17872   for (key in D) D_is_set[key] = 1
17873   FS = "\a"
17874 }
17875 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17876   line = \$ 0
17877   split(line, arg, " ")
17878   if (arg[1] == "#") {
17879     defundef = arg[2]
17880     mac1 = arg[3]
17881   } else {
17882     defundef = substr(arg[1], 2)
17883     mac1 = arg[2]
17884   }
17885   split(mac1, mac2, "(") #)
17886   macro = mac2[1]
17887   prefix = substr(line, 1, index(line, defundef) - 1)
17888   if (D_is_set[macro]) {
17889     # Preserve the white space surrounding the "#".
17890     print prefix "define", macro P[macro] D[macro]
17891     next
17892   } else {
17893     # Replace #undef with comments.  This is necessary, for example,
17894     # in the case of _POSIX_SOURCE, which is predefined and required
17895     # on some systems where configure will not decide to define it.
17896     if (defundef == "undef") {
17897       print "/*", prefix defundef, macro, "*/"
17898       next
17899     }
17900   }
17901 }
17902 { print }
17903 _ACAWK
17904 _ACEOF
17905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17906   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17907 fi # test -n "$CONFIG_HEADERS"
17908
17909
17910 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17911 shift
17912 for ac_tag
17913 do
17914   case $ac_tag in
17915   :[FHLC]) ac_mode=$ac_tag; continue;;
17916   esac
17917   case $ac_mode$ac_tag in
17918   :[FHL]*:*);;
17919   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17920   :[FH]-) ac_tag=-:-;;
17921   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17922   esac
17923   ac_save_IFS=$IFS
17924   IFS=:
17925   set x $ac_tag
17926   IFS=$ac_save_IFS
17927   shift
17928   ac_file=$1
17929   shift
17930
17931   case $ac_mode in
17932   :L) ac_source=$1;;
17933   :[FH])
17934     ac_file_inputs=
17935     for ac_f
17936     do
17937       case $ac_f in
17938       -) ac_f="$ac_tmp/stdin";;
17939       *) # Look for the file first in the build tree, then in the source tree
17940          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17941          # because $ac_f cannot contain `:'.
17942          test -f "$ac_f" ||
17943            case $ac_f in
17944            [\\/$]*) false;;
17945            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17946            esac ||
17947            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17948       esac
17949       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17950       as_fn_append ac_file_inputs " '$ac_f'"
17951     done
17952
17953     # Let's still pretend it is `configure' which instantiates (i.e., don't
17954     # use $as_me), people would be surprised to read:
17955     #    /* config.h.  Generated by config.status.  */
17956     configure_input='Generated from '`
17957           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17958         `' by configure.'
17959     if test x"$ac_file" != x-; then
17960       configure_input="$ac_file.  $configure_input"
17961       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17962 $as_echo "$as_me: creating $ac_file" >&6;}
17963     fi
17964     # Neutralize special characters interpreted by sed in replacement strings.
17965     case $configure_input in #(
17966     *\&* | *\|* | *\\* )
17967        ac_sed_conf_input=`$as_echo "$configure_input" |
17968        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17969     *) ac_sed_conf_input=$configure_input;;
17970     esac
17971
17972     case $ac_tag in
17973     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17974       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17975     esac
17976     ;;
17977   esac
17978
17979   ac_dir=`$as_dirname -- "$ac_file" ||
17980 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17981          X"$ac_file" : 'X\(//\)[^/]' \| \
17982          X"$ac_file" : 'X\(//\)$' \| \
17983          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17984 $as_echo X"$ac_file" |
17985     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17986             s//\1/
17987             q
17988           }
17989           /^X\(\/\/\)[^/].*/{
17990             s//\1/
17991             q
17992           }
17993           /^X\(\/\/\)$/{
17994             s//\1/
17995             q
17996           }
17997           /^X\(\/\).*/{
17998             s//\1/
17999             q
18000           }
18001           s/.*/./; q'`
18002   as_dir="$ac_dir"; as_fn_mkdir_p
18003   ac_builddir=.
18004
18005 case "$ac_dir" in
18006 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18007 *)
18008   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18009   # A ".." for each directory in $ac_dir_suffix.
18010   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18011   case $ac_top_builddir_sub in
18012   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18013   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18014   esac ;;
18015 esac
18016 ac_abs_top_builddir=$ac_pwd
18017 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18018 # for backward compatibility:
18019 ac_top_builddir=$ac_top_build_prefix
18020
18021 case $srcdir in
18022   .)  # We are building in place.
18023     ac_srcdir=.
18024     ac_top_srcdir=$ac_top_builddir_sub
18025     ac_abs_top_srcdir=$ac_pwd ;;
18026   [\\/]* | ?:[\\/]* )  # Absolute name.
18027     ac_srcdir=$srcdir$ac_dir_suffix;
18028     ac_top_srcdir=$srcdir
18029     ac_abs_top_srcdir=$srcdir ;;
18030   *) # Relative name.
18031     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18032     ac_top_srcdir=$ac_top_build_prefix$srcdir
18033     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18034 esac
18035 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18036
18037
18038   case $ac_mode in
18039   :F)
18040   #
18041   # CONFIG_FILE
18042   #
18043
18044   case $INSTALL in
18045   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18046   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18047   esac
18048   ac_MKDIR_P=$MKDIR_P
18049   case $MKDIR_P in
18050   [\\/$]* | ?:[\\/]* ) ;;
18051   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18052   esac
18053 _ACEOF
18054
18055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18056 # If the template does not know about datarootdir, expand it.
18057 # FIXME: This hack should be removed a few years after 2.60.
18058 ac_datarootdir_hack=; ac_datarootdir_seen=
18059 ac_sed_dataroot='
18060 /datarootdir/ {
18061   p
18062   q
18063 }
18064 /@datadir@/p
18065 /@docdir@/p
18066 /@infodir@/p
18067 /@localedir@/p
18068 /@mandir@/p'
18069 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18070 *datarootdir*) ac_datarootdir_seen=yes;;
18071 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18072   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18073 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18074 _ACEOF
18075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18076   ac_datarootdir_hack='
18077   s&@datadir@&$datadir&g
18078   s&@docdir@&$docdir&g
18079   s&@infodir@&$infodir&g
18080   s&@localedir@&$localedir&g
18081   s&@mandir@&$mandir&g
18082   s&\\\${datarootdir}&$datarootdir&g' ;;
18083 esac
18084 _ACEOF
18085
18086 # Neutralize VPATH when `$srcdir' = `.'.
18087 # Shell code in configure.ac might set extrasub.
18088 # FIXME: do we really want to maintain this feature?
18089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18090 ac_sed_extra="$ac_vpsub
18091 $extrasub
18092 _ACEOF
18093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18094 :t
18095 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18096 s|@configure_input@|$ac_sed_conf_input|;t t
18097 s&@top_builddir@&$ac_top_builddir_sub&;t t
18098 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18099 s&@srcdir@&$ac_srcdir&;t t
18100 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18101 s&@top_srcdir@&$ac_top_srcdir&;t t
18102 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18103 s&@builddir@&$ac_builddir&;t t
18104 s&@abs_builddir@&$ac_abs_builddir&;t t
18105 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18106 s&@INSTALL@&$ac_INSTALL&;t t
18107 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18108 $ac_datarootdir_hack
18109 "
18110 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18111   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18112
18113 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18114   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18115   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18116       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18117   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18118 which seems to be undefined.  Please make sure it is defined" >&5
18119 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18120 which seems to be undefined.  Please make sure it is defined" >&2;}
18121
18122   rm -f "$ac_tmp/stdin"
18123   case $ac_file in
18124   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18125   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18126   esac \
18127   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18128  ;;
18129   :H)
18130   #
18131   # CONFIG_HEADER
18132   #
18133   if test x"$ac_file" != x-; then
18134     {
18135       $as_echo "/* $configure_input  */" \
18136       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18137     } >"$ac_tmp/config.h" \
18138       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18139     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18140       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18141 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18142     else
18143       rm -f "$ac_file"
18144       mv "$ac_tmp/config.h" "$ac_file" \
18145         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18146     fi
18147   else
18148     $as_echo "/* $configure_input  */" \
18149       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18150       || as_fn_error $? "could not create -" "$LINENO" 5
18151   fi
18152 # Compute "$ac_file"'s index in $config_headers.
18153 _am_arg="$ac_file"
18154 _am_stamp_count=1
18155 for _am_header in $config_headers :; do
18156   case $_am_header in
18157     $_am_arg | $_am_arg:* )
18158       break ;;
18159     * )
18160       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18161   esac
18162 done
18163 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18164 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18165          X"$_am_arg" : 'X\(//\)[^/]' \| \
18166          X"$_am_arg" : 'X\(//\)$' \| \
18167          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18168 $as_echo X"$_am_arg" |
18169     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18170             s//\1/
18171             q
18172           }
18173           /^X\(\/\/\)[^/].*/{
18174             s//\1/
18175             q
18176           }
18177           /^X\(\/\/\)$/{
18178             s//\1/
18179             q
18180           }
18181           /^X\(\/\).*/{
18182             s//\1/
18183             q
18184           }
18185           s/.*/./; q'`/stamp-h$_am_stamp_count
18186  ;;
18187
18188   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18189 $as_echo "$as_me: executing $ac_file commands" >&6;}
18190  ;;
18191   esac
18192
18193
18194   case $ac_file$ac_mode in
18195     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18196   # Older Autoconf quotes --file arguments for eval, but not when files
18197   # are listed without --file.  Let's play safe and only enable the eval
18198   # if we detect the quoting.
18199   case $CONFIG_FILES in
18200   *\'*) eval set x "$CONFIG_FILES" ;;
18201   *)   set x $CONFIG_FILES ;;
18202   esac
18203   shift
18204   for mf
18205   do
18206     # Strip MF so we end up with the name of the file.
18207     mf=`echo "$mf" | sed -e 's/:.*$//'`
18208     # Check whether this is an Automake generated Makefile or not.
18209     # We used to match only the files named 'Makefile.in', but
18210     # some people rename them; so instead we look at the file content.
18211     # Grep'ing the first line is not enough: some people post-process
18212     # each Makefile.in and add a new line on top of each file to say so.
18213     # Grep'ing the whole file is not good either: AIX grep has a line
18214     # limit of 2048, but all sed's we know have understand at least 4000.
18215     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18216       dirpart=`$as_dirname -- "$mf" ||
18217 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18218          X"$mf" : 'X\(//\)[^/]' \| \
18219          X"$mf" : 'X\(//\)$' \| \
18220          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18221 $as_echo X"$mf" |
18222     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18223             s//\1/
18224             q
18225           }
18226           /^X\(\/\/\)[^/].*/{
18227             s//\1/
18228             q
18229           }
18230           /^X\(\/\/\)$/{
18231             s//\1/
18232             q
18233           }
18234           /^X\(\/\).*/{
18235             s//\1/
18236             q
18237           }
18238           s/.*/./; q'`
18239     else
18240       continue
18241     fi
18242     # Extract the definition of DEPDIR, am__include, and am__quote
18243     # from the Makefile without running 'make'.
18244     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18245     test -z "$DEPDIR" && continue
18246     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18247     test -z "$am__include" && continue
18248     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18249     # Find all dependency output files, they are included files with
18250     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18251     # simplest approach to changing $(DEPDIR) to its actual value in the
18252     # expansion.
18253     for file in `sed -n "
18254       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18255          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18256       # Make sure the directory exists.
18257       test -f "$dirpart/$file" && continue
18258       fdir=`$as_dirname -- "$file" ||
18259 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18260          X"$file" : 'X\(//\)[^/]' \| \
18261          X"$file" : 'X\(//\)$' \| \
18262          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18263 $as_echo X"$file" |
18264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18265             s//\1/
18266             q
18267           }
18268           /^X\(\/\/\)[^/].*/{
18269             s//\1/
18270             q
18271           }
18272           /^X\(\/\/\)$/{
18273             s//\1/
18274             q
18275           }
18276           /^X\(\/\).*/{
18277             s//\1/
18278             q
18279           }
18280           s/.*/./; q'`
18281       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18282       # echo "creating $dirpart/$file"
18283       echo '# dummy' > "$dirpart/$file"
18284     done
18285   done
18286 }
18287  ;;
18288     "libtool":C)
18289
18290     # See if we are running on zsh, and set the options which allow our
18291     # commands through without removal of \ escapes.
18292     if test -n "${ZSH_VERSION+set}" ; then
18293       setopt NO_GLOB_SUBST
18294     fi
18295
18296     cfgfile="${ofile}T"
18297     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18298     $RM "$cfgfile"
18299
18300     cat <<_LT_EOF >> "$cfgfile"
18301 #! $SHELL
18302
18303 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18304 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18305 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18306 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18307 #
18308 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18309 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18310 #                 Foundation, Inc.
18311 #   Written by Gordon Matzigkeit, 1996
18312 #
18313 #   This file is part of GNU Libtool.
18314 #
18315 # GNU Libtool is free software; you can redistribute it and/or
18316 # modify it under the terms of the GNU General Public License as
18317 # published by the Free Software Foundation; either version 2 of
18318 # the License, or (at your option) any later version.
18319 #
18320 # As a special exception to the GNU General Public License,
18321 # if you distribute this file as part of a program or library that
18322 # is built using GNU Libtool, you may include this file under the
18323 # same distribution terms that you use for the rest of that program.
18324 #
18325 # GNU Libtool is distributed in the hope that it will be useful,
18326 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18327 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18328 # GNU General Public License for more details.
18329 #
18330 # You should have received a copy of the GNU General Public License
18331 # along with GNU Libtool; see the file COPYING.  If not, a copy
18332 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18333 # obtained by writing to the Free Software Foundation, Inc.,
18334 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18335
18336
18337 # The names of the tagged configurations supported by this script.
18338 available_tags=""
18339
18340 # ### BEGIN LIBTOOL CONFIG
18341
18342 # Which release of libtool.m4 was used?
18343 macro_version=$macro_version
18344 macro_revision=$macro_revision
18345
18346 # Whether or not to build shared libraries.
18347 build_libtool_libs=$enable_shared
18348
18349 # Whether or not to build static libraries.
18350 build_old_libs=$enable_static
18351
18352 # What type of objects to build.
18353 pic_mode=$pic_mode
18354
18355 # Whether or not to optimize for fast installation.
18356 fast_install=$enable_fast_install
18357
18358 # Shell to use when invoking shell scripts.
18359 SHELL=$lt_SHELL
18360
18361 # An echo program that protects backslashes.
18362 ECHO=$lt_ECHO
18363
18364 # The PATH separator for the build system.
18365 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18366
18367 # The host system.
18368 host_alias=$host_alias
18369 host=$host
18370 host_os=$host_os
18371
18372 # The build system.
18373 build_alias=$build_alias
18374 build=$build
18375 build_os=$build_os
18376
18377 # A sed program that does not truncate output.
18378 SED=$lt_SED
18379
18380 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18381 Xsed="\$SED -e 1s/^X//"
18382
18383 # A grep program that handles long lines.
18384 GREP=$lt_GREP
18385
18386 # An ERE matcher.
18387 EGREP=$lt_EGREP
18388
18389 # A literal string matcher.
18390 FGREP=$lt_FGREP
18391
18392 # A BSD- or MS-compatible name lister.
18393 NM=$lt_NM
18394
18395 # Whether we need soft or hard links.
18396 LN_S=$lt_LN_S
18397
18398 # What is the maximum length of a command?
18399 max_cmd_len=$max_cmd_len
18400
18401 # Object file suffix (normally "o").
18402 objext=$ac_objext
18403
18404 # Executable file suffix (normally "").
18405 exeext=$exeext
18406
18407 # whether the shell understands "unset".
18408 lt_unset=$lt_unset
18409
18410 # turn spaces into newlines.
18411 SP2NL=$lt_lt_SP2NL
18412
18413 # turn newlines into spaces.
18414 NL2SP=$lt_lt_NL2SP
18415
18416 # convert \$build file names to \$host format.
18417 to_host_file_cmd=$lt_cv_to_host_file_cmd
18418
18419 # convert \$build files to toolchain format.
18420 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18421
18422 # An object symbol dumper.
18423 OBJDUMP=$lt_OBJDUMP
18424
18425 # Method to check whether dependent libraries are shared objects.
18426 deplibs_check_method=$lt_deplibs_check_method
18427
18428 # Command to use when deplibs_check_method = "file_magic".
18429 file_magic_cmd=$lt_file_magic_cmd
18430
18431 # How to find potential files when deplibs_check_method = "file_magic".
18432 file_magic_glob=$lt_file_magic_glob
18433
18434 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18435 want_nocaseglob=$lt_want_nocaseglob
18436
18437 # DLL creation program.
18438 DLLTOOL=$lt_DLLTOOL
18439
18440 # Command to associate shared and link libraries.
18441 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18442
18443 # The archiver.
18444 AR=$lt_AR
18445
18446 # Flags to create an archive.
18447 AR_FLAGS=$lt_AR_FLAGS
18448
18449 # How to feed a file listing to the archiver.
18450 archiver_list_spec=$lt_archiver_list_spec
18451
18452 # A symbol stripping program.
18453 STRIP=$lt_STRIP
18454
18455 # Commands used to install an old-style archive.
18456 RANLIB=$lt_RANLIB
18457 old_postinstall_cmds=$lt_old_postinstall_cmds
18458 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18459
18460 # Whether to use a lock for old archive extraction.
18461 lock_old_archive_extraction=$lock_old_archive_extraction
18462
18463 # A C compiler.
18464 LTCC=$lt_CC
18465
18466 # LTCC compiler flags.
18467 LTCFLAGS=$lt_CFLAGS
18468
18469 # Take the output of nm and produce a listing of raw symbols and C names.
18470 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18471
18472 # Transform the output of nm in a proper C declaration.
18473 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18474
18475 # Transform the output of nm in a C name address pair.
18476 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18477
18478 # Transform the output of nm in a C name address pair when lib prefix is needed.
18479 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18480
18481 # Specify filename containing input files for \$NM.
18482 nm_file_list_spec=$lt_nm_file_list_spec
18483
18484 # The root where to search for dependent libraries,and in which our libraries should be installed.
18485 lt_sysroot=$lt_sysroot
18486
18487 # The name of the directory that contains temporary libtool files.
18488 objdir=$objdir
18489
18490 # Used to examine libraries when file_magic_cmd begins with "file".
18491 MAGIC_CMD=$MAGIC_CMD
18492
18493 # Must we lock files when doing compilation?
18494 need_locks=$lt_need_locks
18495
18496 # Manifest tool.
18497 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18498
18499 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18500 DSYMUTIL=$lt_DSYMUTIL
18501
18502 # Tool to change global to local symbols on Mac OS X.
18503 NMEDIT=$lt_NMEDIT
18504
18505 # Tool to manipulate fat objects and archives on Mac OS X.
18506 LIPO=$lt_LIPO
18507
18508 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18509 OTOOL=$lt_OTOOL
18510
18511 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18512 OTOOL64=$lt_OTOOL64
18513
18514 # Old archive suffix (normally "a").
18515 libext=$libext
18516
18517 # Shared library suffix (normally ".so").
18518 shrext_cmds=$lt_shrext_cmds
18519
18520 # The commands to extract the exported symbol list from a shared archive.
18521 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18522
18523 # Variables whose values should be saved in libtool wrapper scripts and
18524 # restored at link time.
18525 variables_saved_for_relink=$lt_variables_saved_for_relink
18526
18527 # Do we need the "lib" prefix for modules?
18528 need_lib_prefix=$need_lib_prefix
18529
18530 # Do we need a version for libraries?
18531 need_version=$need_version
18532
18533 # Library versioning type.
18534 version_type=$version_type
18535
18536 # Shared library runtime path variable.
18537 runpath_var=$runpath_var
18538
18539 # Shared library path variable.
18540 shlibpath_var=$shlibpath_var
18541
18542 # Is shlibpath searched before the hard-coded library search path?
18543 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18544
18545 # Format of library name prefix.
18546 libname_spec=$lt_libname_spec
18547
18548 # List of archive names.  First name is the real one, the rest are links.
18549 # The last name is the one that the linker finds with -lNAME
18550 library_names_spec=$lt_library_names_spec
18551
18552 # The coded name of the library, if different from the real name.
18553 soname_spec=$lt_soname_spec
18554
18555 # Permission mode override for installation of shared libraries.
18556 install_override_mode=$lt_install_override_mode
18557
18558 # Command to use after installation of a shared archive.
18559 postinstall_cmds=$lt_postinstall_cmds
18560
18561 # Command to use after uninstallation of a shared archive.
18562 postuninstall_cmds=$lt_postuninstall_cmds
18563
18564 # Commands used to finish a libtool library installation in a directory.
18565 finish_cmds=$lt_finish_cmds
18566
18567 # As "finish_cmds", except a single script fragment to be evaled but
18568 # not shown.
18569 finish_eval=$lt_finish_eval
18570
18571 # Whether we should hardcode library paths into libraries.
18572 hardcode_into_libs=$hardcode_into_libs
18573
18574 # Compile-time system search path for libraries.
18575 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18576
18577 # Run-time system search path for libraries.
18578 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18579
18580 # Whether dlopen is supported.
18581 dlopen_support=$enable_dlopen
18582
18583 # Whether dlopen of programs is supported.
18584 dlopen_self=$enable_dlopen_self
18585
18586 # Whether dlopen of statically linked programs is supported.
18587 dlopen_self_static=$enable_dlopen_self_static
18588
18589 # Commands to strip libraries.
18590 old_striplib=$lt_old_striplib
18591 striplib=$lt_striplib
18592
18593
18594 # The linker used to build libraries.
18595 LD=$lt_LD
18596
18597 # How to create reloadable object files.
18598 reload_flag=$lt_reload_flag
18599 reload_cmds=$lt_reload_cmds
18600
18601 # Commands used to build an old-style archive.
18602 old_archive_cmds=$lt_old_archive_cmds
18603
18604 # A language specific compiler.
18605 CC=$lt_compiler
18606
18607 # Is the compiler the GNU compiler?
18608 with_gcc=$GCC
18609
18610 # Compiler flag to turn off builtin functions.
18611 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18612
18613 # Additional compiler flags for building library objects.
18614 pic_flag=$lt_lt_prog_compiler_pic
18615
18616 # How to pass a linker flag through the compiler.
18617 wl=$lt_lt_prog_compiler_wl
18618
18619 # Compiler flag to prevent dynamic linking.
18620 link_static_flag=$lt_lt_prog_compiler_static
18621
18622 # Does compiler simultaneously support -c and -o options?
18623 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18624
18625 # Whether or not to add -lc for building shared libraries.
18626 build_libtool_need_lc=$archive_cmds_need_lc
18627
18628 # Whether or not to disallow shared libs when runtime libs are static.
18629 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18630
18631 # Compiler flag to allow reflexive dlopens.
18632 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18633
18634 # Compiler flag to generate shared objects directly from archives.
18635 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18636
18637 # Whether the compiler copes with passing no objects directly.
18638 compiler_needs_object=$lt_compiler_needs_object
18639
18640 # Create an old-style archive from a shared archive.
18641 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18642
18643 # Create a temporary old-style archive to link instead of a shared archive.
18644 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18645
18646 # Commands used to build a shared archive.
18647 archive_cmds=$lt_archive_cmds
18648 archive_expsym_cmds=$lt_archive_expsym_cmds
18649
18650 # Commands used to build a loadable module if different from building
18651 # a shared archive.
18652 module_cmds=$lt_module_cmds
18653 module_expsym_cmds=$lt_module_expsym_cmds
18654
18655 # Whether we are building with GNU ld or not.
18656 with_gnu_ld=$lt_with_gnu_ld
18657
18658 # Flag that allows shared libraries with undefined symbols to be built.
18659 allow_undefined_flag=$lt_allow_undefined_flag
18660
18661 # Flag that enforces no undefined symbols.
18662 no_undefined_flag=$lt_no_undefined_flag
18663
18664 # Flag to hardcode \$libdir into a binary during linking.
18665 # This must work even if \$libdir does not exist
18666 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18667
18668 # Whether we need a single "-rpath" flag with a separated argument.
18669 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18670
18671 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18672 # DIR into the resulting binary.
18673 hardcode_direct=$hardcode_direct
18674
18675 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18676 # DIR into the resulting binary and the resulting library dependency is
18677 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18678 # library is relocated.
18679 hardcode_direct_absolute=$hardcode_direct_absolute
18680
18681 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18682 # into the resulting binary.
18683 hardcode_minus_L=$hardcode_minus_L
18684
18685 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18686 # into the resulting binary.
18687 hardcode_shlibpath_var=$hardcode_shlibpath_var
18688
18689 # Set to "yes" if building a shared library automatically hardcodes DIR
18690 # into the library and all subsequent libraries and executables linked
18691 # against it.
18692 hardcode_automatic=$hardcode_automatic
18693
18694 # Set to yes if linker adds runtime paths of dependent libraries
18695 # to runtime path list.
18696 inherit_rpath=$inherit_rpath
18697
18698 # Whether libtool must link a program against all its dependency libraries.
18699 link_all_deplibs=$link_all_deplibs
18700
18701 # Set to "yes" if exported symbols are required.
18702 always_export_symbols=$always_export_symbols
18703
18704 # The commands to list exported symbols.
18705 export_symbols_cmds=$lt_export_symbols_cmds
18706
18707 # Symbols that should not be listed in the preloaded symbols.
18708 exclude_expsyms=$lt_exclude_expsyms
18709
18710 # Symbols that must always be exported.
18711 include_expsyms=$lt_include_expsyms
18712
18713 # Commands necessary for linking programs (against libraries) with templates.
18714 prelink_cmds=$lt_prelink_cmds
18715
18716 # Commands necessary for finishing linking programs.
18717 postlink_cmds=$lt_postlink_cmds
18718
18719 # Specify filename containing input files.
18720 file_list_spec=$lt_file_list_spec
18721
18722 # How to hardcode a shared library path into an executable.
18723 hardcode_action=$hardcode_action
18724
18725 # ### END LIBTOOL CONFIG
18726
18727 _LT_EOF
18728
18729   case $host_os in
18730   aix3*)
18731     cat <<\_LT_EOF >> "$cfgfile"
18732 # AIX sometimes has problems with the GCC collect2 program.  For some
18733 # reason, if we set the COLLECT_NAMES environment variable, the problems
18734 # vanish in a puff of smoke.
18735 if test "X${COLLECT_NAMES+set}" != Xset; then
18736   COLLECT_NAMES=
18737   export COLLECT_NAMES
18738 fi
18739 _LT_EOF
18740     ;;
18741   esac
18742
18743
18744 ltmain="$ac_aux_dir/ltmain.sh"
18745
18746
18747   # We use sed instead of cat because bash on DJGPP gets confused if
18748   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18749   # text mode, it properly converts lines to CR/LF.  This bash problem
18750   # is reportedly fixed, but why not run on old versions too?
18751   sed '$q' "$ltmain" >> "$cfgfile" \
18752      || (rm -f "$cfgfile"; exit 1)
18753
18754   if test x"$xsi_shell" = xyes; then
18755   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18756 func_dirname ()\
18757 {\
18758 \    case ${1} in\
18759 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18760 \      *  ) func_dirname_result="${3}" ;;\
18761 \    esac\
18762 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18763   && mv -f "$cfgfile.tmp" "$cfgfile" \
18764     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18765 test 0 -eq $? || _lt_function_replace_fail=:
18766
18767
18768   sed -e '/^func_basename ()$/,/^} # func_basename /c\
18769 func_basename ()\
18770 {\
18771 \    func_basename_result="${1##*/}"\
18772 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18773   && mv -f "$cfgfile.tmp" "$cfgfile" \
18774     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18775 test 0 -eq $? || _lt_function_replace_fail=:
18776
18777
18778   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18779 func_dirname_and_basename ()\
18780 {\
18781 \    case ${1} in\
18782 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18783 \      *  ) func_dirname_result="${3}" ;;\
18784 \    esac\
18785 \    func_basename_result="${1##*/}"\
18786 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18787   && mv -f "$cfgfile.tmp" "$cfgfile" \
18788     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18789 test 0 -eq $? || _lt_function_replace_fail=:
18790
18791
18792   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18793 func_stripname ()\
18794 {\
18795 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18796 \    # positional parameters, so assign one to ordinary parameter first.\
18797 \    func_stripname_result=${3}\
18798 \    func_stripname_result=${func_stripname_result#"${1}"}\
18799 \    func_stripname_result=${func_stripname_result%"${2}"}\
18800 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18801   && mv -f "$cfgfile.tmp" "$cfgfile" \
18802     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18803 test 0 -eq $? || _lt_function_replace_fail=:
18804
18805
18806   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18807 func_split_long_opt ()\
18808 {\
18809 \    func_split_long_opt_name=${1%%=*}\
18810 \    func_split_long_opt_arg=${1#*=}\
18811 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18812   && mv -f "$cfgfile.tmp" "$cfgfile" \
18813     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18814 test 0 -eq $? || _lt_function_replace_fail=:
18815
18816
18817   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18818 func_split_short_opt ()\
18819 {\
18820 \    func_split_short_opt_arg=${1#??}\
18821 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18822 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18823   && mv -f "$cfgfile.tmp" "$cfgfile" \
18824     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18825 test 0 -eq $? || _lt_function_replace_fail=:
18826
18827
18828   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18829 func_lo2o ()\
18830 {\
18831 \    case ${1} in\
18832 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18833 \      *)    func_lo2o_result=${1} ;;\
18834 \    esac\
18835 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18836   && mv -f "$cfgfile.tmp" "$cfgfile" \
18837     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18838 test 0 -eq $? || _lt_function_replace_fail=:
18839
18840
18841   sed -e '/^func_xform ()$/,/^} # func_xform /c\
18842 func_xform ()\
18843 {\
18844     func_xform_result=${1%.*}.lo\
18845 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18846   && mv -f "$cfgfile.tmp" "$cfgfile" \
18847     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18848 test 0 -eq $? || _lt_function_replace_fail=:
18849
18850
18851   sed -e '/^func_arith ()$/,/^} # func_arith /c\
18852 func_arith ()\
18853 {\
18854     func_arith_result=$(( $* ))\
18855 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18856   && mv -f "$cfgfile.tmp" "$cfgfile" \
18857     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18858 test 0 -eq $? || _lt_function_replace_fail=:
18859
18860
18861   sed -e '/^func_len ()$/,/^} # func_len /c\
18862 func_len ()\
18863 {\
18864     func_len_result=${#1}\
18865 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18866   && mv -f "$cfgfile.tmp" "$cfgfile" \
18867     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18868 test 0 -eq $? || _lt_function_replace_fail=:
18869
18870 fi
18871
18872 if test x"$lt_shell_append" = xyes; then
18873   sed -e '/^func_append ()$/,/^} # func_append /c\
18874 func_append ()\
18875 {\
18876     eval "${1}+=\\${2}"\
18877 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18878   && mv -f "$cfgfile.tmp" "$cfgfile" \
18879     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18880 test 0 -eq $? || _lt_function_replace_fail=:
18881
18882
18883   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18884 func_append_quoted ()\
18885 {\
18886 \    func_quote_for_eval "${2}"\
18887 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18888 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18889   && mv -f "$cfgfile.tmp" "$cfgfile" \
18890     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18891 test 0 -eq $? || _lt_function_replace_fail=:
18892
18893
18894   # Save a `func_append' function call where possible by direct use of '+='
18895   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18896     && mv -f "$cfgfile.tmp" "$cfgfile" \
18897       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18898   test 0 -eq $? || _lt_function_replace_fail=:
18899 else
18900   # Save a `func_append' function call even when '+=' is not available
18901   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18902     && mv -f "$cfgfile.tmp" "$cfgfile" \
18903       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18904   test 0 -eq $? || _lt_function_replace_fail=:
18905 fi
18906
18907 if test x"$_lt_function_replace_fail" = x":"; then
18908   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18909 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18910 fi
18911
18912
18913    mv -f "$cfgfile" "$ofile" ||
18914     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18915   chmod +x "$ofile"
18916
18917  ;;
18918     "xmlsec1Conf.sh":F) chmod +x xmlsec1Conf.sh ;;
18919     "xmlsec1-config":F) chmod +x xmlsec1-config ;;
18920
18921   esac
18922 done # for ac_tag
18923
18924
18925 as_fn_exit 0
18926 _ACEOF
18927 ac_clean_files=$ac_clean_files_save
18928
18929 test $ac_write_fail = 0 ||
18930   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18931
18932
18933 # configure is writing to config.log, and then calls config.status.
18934 # config.status does its own redirection, appending to config.log.
18935 # Unfortunately, on DOS this fails, as config.log is still kept open
18936 # by configure, so config.status won't be able to write to it; its
18937 # output is simply discarded.  So we exec the FD to /dev/null,
18938 # effectively closing config.log, so it can be properly (re)opened and
18939 # appended to by config.status.  When coming back to configure, we
18940 # need to make the FD available again.
18941 if test "$no_create" != yes; then
18942   ac_cs_success=:
18943   ac_config_status_args=
18944   test "$silent" = yes &&
18945     ac_config_status_args="$ac_config_status_args --quiet"
18946   exec 5>/dev/null
18947   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18948   exec 5>>config.log
18949   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18950   # would make configure fail if this is the last instruction.
18951   $ac_cs_success || as_fn_exit 1
18952 fi
18953 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18954   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18955 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18956 fi
18957
18958