Tizen 2.0 Release
[external/libgnutls26.git] / libextra / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libgnutls-extra 2.12.20.
4 #
5 # Report bugs to <bug-gnutls@gnu.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-gnutls@gnu.org
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libgnutls-extra'
592 PACKAGE_TARNAME='libgnutls-extra'
593 PACKAGE_VERSION='2.12.20'
594 PACKAGE_STRING='libgnutls-extra 2.12.20'
595 PACKAGE_BUGREPORT='bug-gnutls@gnu.org'
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_header_list=
635 ac_subst_vars='xgltests_LTLIBOBJS
636 xgltests_LIBOBJS
637 xgl_LTLIBOBJS
638 xgl_LIBOBJS
639 am__EXEEXT_FALSE
640 am__EXEEXT_TRUE
641 LTLIBOBJS
642 LIBOBJS
643 WARN_CFLAGS
644 WSTACK_CFLAGS
645 WERROR_CFLAGS
646 LIBGNUTLS_EXTRA_CFLAGS
647 LIBGNUTLS_EXTRA_LIBS
648 xgltests_WITNESS
649 GL_GENERATE_STDALIGN_H_FALSE
650 GL_GENERATE_STDALIGN_H_TRUE
651 STDALIGN_H
652 HAVE_LD_VERSION_SCRIPT_FALSE
653 HAVE_LD_VERSION_SCRIPT_TRUE
654 HAVE_LD_OUTPUT_DEF_FALSE
655 HAVE_LD_OUTPUT_DEF_TRUE
656 GL_COND_LIBTOOL_FALSE
657 GL_COND_LIBTOOL_TRUE
658 LIBSOCKET
659 HAVE_WINSOCK2_H
660 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
661 UNISTD_H_HAVE_WINSOCK2_H
662 REPLACE_WRITE
663 REPLACE_USLEEP
664 REPLACE_UNLINKAT
665 REPLACE_UNLINK
666 REPLACE_TTYNAME_R
667 REPLACE_SYMLINK
668 REPLACE_SLEEP
669 REPLACE_RMDIR
670 REPLACE_READLINK
671 REPLACE_READ
672 REPLACE_PWRITE
673 REPLACE_PREAD
674 REPLACE_LSEEK
675 REPLACE_LINKAT
676 REPLACE_LINK
677 REPLACE_LCHOWN
678 REPLACE_ISATTY
679 REPLACE_GETPAGESIZE
680 REPLACE_GETGROUPS
681 REPLACE_GETLOGIN_R
682 REPLACE_GETDOMAINNAME
683 REPLACE_GETCWD
684 REPLACE_FCHOWNAT
685 REPLACE_DUP2
686 REPLACE_DUP
687 REPLACE_CLOSE
688 REPLACE_CHOWN
689 HAVE_SYS_PARAM_H
690 HAVE_OS_H
691 HAVE_DECL_TTYNAME_R
692 HAVE_DECL_SETHOSTNAME
693 HAVE_DECL_GETUSERSHELL
694 HAVE_DECL_GETPAGESIZE
695 HAVE_DECL_GETLOGIN_R
696 HAVE_DECL_GETDOMAINNAME
697 HAVE_DECL_FDATASYNC
698 HAVE_DECL_FCHDIR
699 HAVE_DECL_ENVIRON
700 HAVE_USLEEP
701 HAVE_UNLINKAT
702 HAVE_SYMLINKAT
703 HAVE_SYMLINK
704 HAVE_SLEEP
705 HAVE_SETHOSTNAME
706 HAVE_READLINKAT
707 HAVE_READLINK
708 HAVE_PWRITE
709 HAVE_PREAD
710 HAVE_PIPE2
711 HAVE_PIPE
712 HAVE_LINKAT
713 HAVE_LINK
714 HAVE_LCHOWN
715 HAVE_GROUP_MEMBER
716 HAVE_GETPAGESIZE
717 HAVE_GETLOGIN
718 HAVE_GETHOSTNAME
719 HAVE_GETGROUPS
720 HAVE_GETDTABLESIZE
721 HAVE_FTRUNCATE
722 HAVE_FSYNC
723 HAVE_FDATASYNC
724 HAVE_FCHOWNAT
725 HAVE_FCHDIR
726 HAVE_FACCESSAT
727 HAVE_EUIDACCESS
728 HAVE_DUP3
729 HAVE_DUP2
730 HAVE_CHOWN
731 GNULIB_WRITE
732 GNULIB_USLEEP
733 GNULIB_UNLINKAT
734 GNULIB_UNLINK
735 GNULIB_UNISTD_H_SIGPIPE
736 GNULIB_UNISTD_H_NONBLOCKING
737 GNULIB_TTYNAME_R
738 GNULIB_SYMLINKAT
739 GNULIB_SYMLINK
740 GNULIB_SLEEP
741 GNULIB_SETHOSTNAME
742 GNULIB_RMDIR
743 GNULIB_READLINKAT
744 GNULIB_READLINK
745 GNULIB_READ
746 GNULIB_PWRITE
747 GNULIB_PREAD
748 GNULIB_PIPE2
749 GNULIB_PIPE
750 GNULIB_LSEEK
751 GNULIB_LINKAT
752 GNULIB_LINK
753 GNULIB_LCHOWN
754 GNULIB_ISATTY
755 GNULIB_GROUP_MEMBER
756 GNULIB_GETUSERSHELL
757 GNULIB_GETPAGESIZE
758 GNULIB_GETLOGIN_R
759 GNULIB_GETLOGIN
760 GNULIB_GETHOSTNAME
761 GNULIB_GETGROUPS
762 GNULIB_GETDTABLESIZE
763 GNULIB_GETDOMAINNAME
764 GNULIB_GETCWD
765 GNULIB_FTRUNCATE
766 GNULIB_FSYNC
767 GNULIB_FDATASYNC
768 GNULIB_FCHOWNAT
769 GNULIB_FCHDIR
770 GNULIB_FACCESSAT
771 GNULIB_EUIDACCESS
772 GNULIB_ENVIRON
773 GNULIB_DUP3
774 GNULIB_DUP2
775 GNULIB_DUP
776 GNULIB_CLOSE
777 GNULIB_CHOWN
778 GNULIB_CHDIR
779 ENABLE_OPENSSL_FALSE
780 ENABLE_OPENSSL_TRUE
781 ENABLE_SESSION_TICKET_FALSE
782 ENABLE_SESSION_TICKET_TRUE
783 ENABLE_OPENPGP_FALSE
784 ENABLE_OPENPGP_TRUE
785 ENABLE_PKI_FALSE
786 ENABLE_PKI_TRUE
787 ENABLE_ANON_FALSE
788 ENABLE_ANON_TRUE
789 ENABLE_PSK_FALSE
790 ENABLE_PSK_TRUE
791 ENABLE_SRP_FALSE
792 ENABLE_SRP_TRUE
793 ENABLE_OPRFI_FALSE
794 ENABLE_OPRFI_TRUE
795 USE_LZO_FALSE
796 USE_LZO_TRUE
797 LZO_LIBS
798 ENABLE_MINITASN1_FALSE
799 ENABLE_MINITASN1_TRUE
800 LIBTASN1_PREFIX
801 LTLIBTASN1
802 LIBTASN1
803 HAVE_LIBTASN1
804 ENABLE_NETTLE_FALSE
805 ENABLE_NETTLE_TRUE
806 NETTLE_LIBS
807 LIBNETTLE_PREFIX
808 LTLIBNETTLE
809 LIBNETTLE
810 HAVE_LIBNETTLE
811 LIBGCRYPT_PREFIX
812 LTLIBGCRYPT
813 LIBGCRYPT
814 HAVE_LIBGCRYPT
815 DLL_VERSION
816 CXX_LT_AGE
817 CXX_LT_REVISION
818 CXX_LT_CURRENT
819 LT_SSL_AGE
820 LT_SSL_REVISION
821 LT_SSL_CURRENT
822 LT_AGE
823 LT_REVISION
824 LT_CURRENT
825 OTOOL64
826 OTOOL
827 LIPO
828 NMEDIT
829 DSYMUTIL
830 MANIFEST_TOOL
831 ac_ct_AR
832 LN_S
833 NM
834 ac_ct_DUMPBIN
835 DUMPBIN
836 LD
837 FGREP
838 SED
839 LIBTOOL
840 OBJDUMP
841 DLLTOOL
842 AS
843 host_os
844 host_vendor
845 host_cpu
846 host
847 build_os
848 build_vendor
849 build_cpu
850 build
851 RANLIB
852 ARFLAGS
853 AR
854 EGREP
855 GREP
856 CPP
857 am__fastdepCC_FALSE
858 am__fastdepCC_TRUE
859 CCDEPMODE
860 am__nodep
861 AMDEPBACKSLASH
862 AMDEP_FALSE
863 AMDEP_TRUE
864 am__quote
865 am__include
866 DEPDIR
867 OBJEXT
868 EXEEXT
869 ac_ct_CC
870 CPPFLAGS
871 LDFLAGS
872 CFLAGS
873 CC
874 AM_BACKSLASH
875 AM_DEFAULT_VERBOSITY
876 AM_DEFAULT_V
877 AM_V
878 am__untar
879 am__tar
880 AMTAR
881 am__leading_dot
882 SET_MAKE
883 AWK
884 mkdir_p
885 MKDIR_P
886 INSTALL_STRIP_PROGRAM
887 STRIP
888 install_sh
889 MAKEINFO
890 AUTOHEADER
891 AUTOMAKE
892 AUTOCONF
893 ACLOCAL
894 VERSION
895 PACKAGE
896 CYGPATH_W
897 am__isrc
898 INSTALL_DATA
899 INSTALL_SCRIPT
900 INSTALL_PROGRAM
901 target_alias
902 host_alias
903 build_alias
904 LIBS
905 ECHO_T
906 ECHO_N
907 ECHO_C
908 DEFS
909 mandir
910 localedir
911 libdir
912 psdir
913 pdfdir
914 dvidir
915 htmldir
916 infodir
917 docdir
918 oldincludedir
919 includedir
920 localstatedir
921 sharedstatedir
922 sysconfdir
923 datadir
924 datarootdir
925 libexecdir
926 sbindir
927 bindir
928 program_transform_name
929 prefix
930 exec_prefix
931 PACKAGE_URL
932 PACKAGE_BUGREPORT
933 PACKAGE_STRING
934 PACKAGE_VERSION
935 PACKAGE_TARNAME
936 PACKAGE_NAME
937 PATH_SEPARATOR
938 SHELL'
939 ac_subst_files=''
940 ac_user_opts='
941 enable_option_checking
942 enable_silent_rules
943 enable_dependency_tracking
944 enable_shared
945 enable_static
946 with_pic
947 enable_fast_install
948 with_gnu_ld
949 with_sysroot
950 enable_libtool_lock
951 with_libgcrypt
952 enable_rpath
953 with_libgcrypt_prefix
954 with_libnettle_prefix
955 with_included_libtasn1
956 with_libtasn1_prefix
957 with_lzo
958 enable_opaque_prf_input
959 enable_srp_authentication
960 enable_psk_authentication
961 enable_anon_authentication
962 enable_camellia
963 enable_extra_pki
964 enable_openpgp_authentication
965 enable_session_ticket
966 enable_cryptodev
967 enable_openssl_compatibility
968 enable_ld_version_script
969 '
970       ac_precious_vars='build_alias
971 host_alias
972 target_alias
973 CC
974 CFLAGS
975 LDFLAGS
976 LIBS
977 CPPFLAGS
978 CPP'
979
980
981 # Initialize some variables set by options.
982 ac_init_help=
983 ac_init_version=false
984 ac_unrecognized_opts=
985 ac_unrecognized_sep=
986 # The variables have the same names as the options, with
987 # dashes changed to underlines.
988 cache_file=/dev/null
989 exec_prefix=NONE
990 no_create=
991 no_recursion=
992 prefix=NONE
993 program_prefix=NONE
994 program_suffix=NONE
995 program_transform_name=s,x,x,
996 silent=
997 site=
998 srcdir=
999 verbose=
1000 x_includes=NONE
1001 x_libraries=NONE
1002
1003 # Installation directory options.
1004 # These are left unexpanded so users can "make install exec_prefix=/foo"
1005 # and all the variables that are supposed to be based on exec_prefix
1006 # by default will actually change.
1007 # Use braces instead of parens because sh, perl, etc. also accept them.
1008 # (The list follows the same order as the GNU Coding Standards.)
1009 bindir='${exec_prefix}/bin'
1010 sbindir='${exec_prefix}/sbin'
1011 libexecdir='${exec_prefix}/libexec'
1012 datarootdir='${prefix}/share'
1013 datadir='${datarootdir}'
1014 sysconfdir='${prefix}/etc'
1015 sharedstatedir='${prefix}/com'
1016 localstatedir='${prefix}/var'
1017 includedir='${prefix}/include'
1018 oldincludedir='/usr/include'
1019 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1020 infodir='${datarootdir}/info'
1021 htmldir='${docdir}'
1022 dvidir='${docdir}'
1023 pdfdir='${docdir}'
1024 psdir='${docdir}'
1025 libdir='${exec_prefix}/lib'
1026 localedir='${datarootdir}/locale'
1027 mandir='${datarootdir}/man'
1028
1029 ac_prev=
1030 ac_dashdash=
1031 for ac_option
1032 do
1033   # If the previous option needs an argument, assign it.
1034   if test -n "$ac_prev"; then
1035     eval $ac_prev=\$ac_option
1036     ac_prev=
1037     continue
1038   fi
1039
1040   case $ac_option in
1041   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1042   *=)   ac_optarg= ;;
1043   *)    ac_optarg=yes ;;
1044   esac
1045
1046   # Accept the important Cygnus configure options, so we can diagnose typos.
1047
1048   case $ac_dashdash$ac_option in
1049   --)
1050     ac_dashdash=yes ;;
1051
1052   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1053     ac_prev=bindir ;;
1054   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1055     bindir=$ac_optarg ;;
1056
1057   -build | --build | --buil | --bui | --bu)
1058     ac_prev=build_alias ;;
1059   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1060     build_alias=$ac_optarg ;;
1061
1062   -cache-file | --cache-file | --cache-fil | --cache-fi \
1063   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1064     ac_prev=cache_file ;;
1065   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1066   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1067     cache_file=$ac_optarg ;;
1068
1069   --config-cache | -C)
1070     cache_file=config.cache ;;
1071
1072   -datadir | --datadir | --datadi | --datad)
1073     ac_prev=datadir ;;
1074   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1075     datadir=$ac_optarg ;;
1076
1077   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1078   | --dataroo | --dataro | --datar)
1079     ac_prev=datarootdir ;;
1080   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1081   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1082     datarootdir=$ac_optarg ;;
1083
1084   -disable-* | --disable-*)
1085     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1086     # Reject names that are not valid shell variable names.
1087     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088       as_fn_error $? "invalid feature name: $ac_useropt"
1089     ac_useropt_orig=$ac_useropt
1090     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091     case $ac_user_opts in
1092       *"
1093 "enable_$ac_useropt"
1094 "*) ;;
1095       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1096          ac_unrecognized_sep=', ';;
1097     esac
1098     eval enable_$ac_useropt=no ;;
1099
1100   -docdir | --docdir | --docdi | --doc | --do)
1101     ac_prev=docdir ;;
1102   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1103     docdir=$ac_optarg ;;
1104
1105   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1106     ac_prev=dvidir ;;
1107   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1108     dvidir=$ac_optarg ;;
1109
1110   -enable-* | --enable-*)
1111     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1112     # Reject names that are not valid shell variable names.
1113     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114       as_fn_error $? "invalid feature name: $ac_useropt"
1115     ac_useropt_orig=$ac_useropt
1116     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117     case $ac_user_opts in
1118       *"
1119 "enable_$ac_useropt"
1120 "*) ;;
1121       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1122          ac_unrecognized_sep=', ';;
1123     esac
1124     eval enable_$ac_useropt=\$ac_optarg ;;
1125
1126   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1127   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1128   | --exec | --exe | --ex)
1129     ac_prev=exec_prefix ;;
1130   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1131   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1132   | --exec=* | --exe=* | --ex=*)
1133     exec_prefix=$ac_optarg ;;
1134
1135   -gas | --gas | --ga | --g)
1136     # Obsolete; use --with-gas.
1137     with_gas=yes ;;
1138
1139   -help | --help | --hel | --he | -h)
1140     ac_init_help=long ;;
1141   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1142     ac_init_help=recursive ;;
1143   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1144     ac_init_help=short ;;
1145
1146   -host | --host | --hos | --ho)
1147     ac_prev=host_alias ;;
1148   -host=* | --host=* | --hos=* | --ho=*)
1149     host_alias=$ac_optarg ;;
1150
1151   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1152     ac_prev=htmldir ;;
1153   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1154   | --ht=*)
1155     htmldir=$ac_optarg ;;
1156
1157   -includedir | --includedir | --includedi | --included | --include \
1158   | --includ | --inclu | --incl | --inc)
1159     ac_prev=includedir ;;
1160   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1161   | --includ=* | --inclu=* | --incl=* | --inc=*)
1162     includedir=$ac_optarg ;;
1163
1164   -infodir | --infodir | --infodi | --infod | --info | --inf)
1165     ac_prev=infodir ;;
1166   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1167     infodir=$ac_optarg ;;
1168
1169   -libdir | --libdir | --libdi | --libd)
1170     ac_prev=libdir ;;
1171   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1172     libdir=$ac_optarg ;;
1173
1174   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1175   | --libexe | --libex | --libe)
1176     ac_prev=libexecdir ;;
1177   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1178   | --libexe=* | --libex=* | --libe=*)
1179     libexecdir=$ac_optarg ;;
1180
1181   -localedir | --localedir | --localedi | --localed | --locale)
1182     ac_prev=localedir ;;
1183   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1184     localedir=$ac_optarg ;;
1185
1186   -localstatedir | --localstatedir | --localstatedi | --localstated \
1187   | --localstate | --localstat | --localsta | --localst | --locals)
1188     ac_prev=localstatedir ;;
1189   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1190   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1191     localstatedir=$ac_optarg ;;
1192
1193   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1194     ac_prev=mandir ;;
1195   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1196     mandir=$ac_optarg ;;
1197
1198   -nfp | --nfp | --nf)
1199     # Obsolete; use --without-fp.
1200     with_fp=no ;;
1201
1202   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1203   | --no-cr | --no-c | -n)
1204     no_create=yes ;;
1205
1206   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1207   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1208     no_recursion=yes ;;
1209
1210   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1211   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1212   | --oldin | --oldi | --old | --ol | --o)
1213     ac_prev=oldincludedir ;;
1214   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1215   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1216   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1217     oldincludedir=$ac_optarg ;;
1218
1219   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1220     ac_prev=prefix ;;
1221   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1222     prefix=$ac_optarg ;;
1223
1224   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1225   | --program-pre | --program-pr | --program-p)
1226     ac_prev=program_prefix ;;
1227   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1228   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1229     program_prefix=$ac_optarg ;;
1230
1231   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1232   | --program-suf | --program-su | --program-s)
1233     ac_prev=program_suffix ;;
1234   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1235   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1236     program_suffix=$ac_optarg ;;
1237
1238   -program-transform-name | --program-transform-name \
1239   | --program-transform-nam | --program-transform-na \
1240   | --program-transform-n | --program-transform- \
1241   | --program-transform | --program-transfor \
1242   | --program-transfo | --program-transf \
1243   | --program-trans | --program-tran \
1244   | --progr-tra | --program-tr | --program-t)
1245     ac_prev=program_transform_name ;;
1246   -program-transform-name=* | --program-transform-name=* \
1247   | --program-transform-nam=* | --program-transform-na=* \
1248   | --program-transform-n=* | --program-transform-=* \
1249   | --program-transform=* | --program-transfor=* \
1250   | --program-transfo=* | --program-transf=* \
1251   | --program-trans=* | --program-tran=* \
1252   | --progr-tra=* | --program-tr=* | --program-t=*)
1253     program_transform_name=$ac_optarg ;;
1254
1255   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1256     ac_prev=pdfdir ;;
1257   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1258     pdfdir=$ac_optarg ;;
1259
1260   -psdir | --psdir | --psdi | --psd | --ps)
1261     ac_prev=psdir ;;
1262   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1263     psdir=$ac_optarg ;;
1264
1265   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1266   | -silent | --silent | --silen | --sile | --sil)
1267     silent=yes ;;
1268
1269   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1270     ac_prev=sbindir ;;
1271   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1272   | --sbi=* | --sb=*)
1273     sbindir=$ac_optarg ;;
1274
1275   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1276   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1277   | --sharedst | --shareds | --shared | --share | --shar \
1278   | --sha | --sh)
1279     ac_prev=sharedstatedir ;;
1280   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1281   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1282   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1283   | --sha=* | --sh=*)
1284     sharedstatedir=$ac_optarg ;;
1285
1286   -site | --site | --sit)
1287     ac_prev=site ;;
1288   -site=* | --site=* | --sit=*)
1289     site=$ac_optarg ;;
1290
1291   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1292     ac_prev=srcdir ;;
1293   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1294     srcdir=$ac_optarg ;;
1295
1296   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1297   | --syscon | --sysco | --sysc | --sys | --sy)
1298     ac_prev=sysconfdir ;;
1299   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1300   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1301     sysconfdir=$ac_optarg ;;
1302
1303   -target | --target | --targe | --targ | --tar | --ta | --t)
1304     ac_prev=target_alias ;;
1305   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1306     target_alias=$ac_optarg ;;
1307
1308   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1309     verbose=yes ;;
1310
1311   -version | --version | --versio | --versi | --vers | -V)
1312     ac_init_version=: ;;
1313
1314   -with-* | --with-*)
1315     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1316     # Reject names that are not valid shell variable names.
1317     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1318       as_fn_error $? "invalid package name: $ac_useropt"
1319     ac_useropt_orig=$ac_useropt
1320     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321     case $ac_user_opts in
1322       *"
1323 "with_$ac_useropt"
1324 "*) ;;
1325       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1326          ac_unrecognized_sep=', ';;
1327     esac
1328     eval with_$ac_useropt=\$ac_optarg ;;
1329
1330   -without-* | --without-*)
1331     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1332     # Reject names that are not valid shell variable names.
1333     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1334       as_fn_error $? "invalid package name: $ac_useropt"
1335     ac_useropt_orig=$ac_useropt
1336     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1337     case $ac_user_opts in
1338       *"
1339 "with_$ac_useropt"
1340 "*) ;;
1341       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1342          ac_unrecognized_sep=', ';;
1343     esac
1344     eval with_$ac_useropt=no ;;
1345
1346   --x)
1347     # Obsolete; use --with-x.
1348     with_x=yes ;;
1349
1350   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1351   | --x-incl | --x-inc | --x-in | --x-i)
1352     ac_prev=x_includes ;;
1353   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1354   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1355     x_includes=$ac_optarg ;;
1356
1357   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1358   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1359     ac_prev=x_libraries ;;
1360   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1361   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1362     x_libraries=$ac_optarg ;;
1363
1364   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1365 Try \`$0 --help' for more information"
1366     ;;
1367
1368   *=*)
1369     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1370     # Reject names that are not valid shell variable names.
1371     case $ac_envvar in #(
1372       '' | [0-9]* | *[!_$as_cr_alnum]* )
1373       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1374     esac
1375     eval $ac_envvar=\$ac_optarg
1376     export $ac_envvar ;;
1377
1378   *)
1379     # FIXME: should be removed in autoconf 3.0.
1380     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1381     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1382       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1383     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1384     ;;
1385
1386   esac
1387 done
1388
1389 if test -n "$ac_prev"; then
1390   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1391   as_fn_error $? "missing argument to $ac_option"
1392 fi
1393
1394 if test -n "$ac_unrecognized_opts"; then
1395   case $enable_option_checking in
1396     no) ;;
1397     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1398     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1399   esac
1400 fi
1401
1402 # Check all directory arguments for consistency.
1403 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1404                 datadir sysconfdir sharedstatedir localstatedir includedir \
1405                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1406                 libdir localedir mandir
1407 do
1408   eval ac_val=\$$ac_var
1409   # Remove trailing slashes.
1410   case $ac_val in
1411     */ )
1412       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1413       eval $ac_var=\$ac_val;;
1414   esac
1415   # Be sure to have absolute directory names.
1416   case $ac_val in
1417     [\\/$]* | ?:[\\/]* )  continue;;
1418     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1419   esac
1420   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1421 done
1422
1423 # There might be people who depend on the old broken behavior: `$host'
1424 # used to hold the argument of --host etc.
1425 # FIXME: To remove some day.
1426 build=$build_alias
1427 host=$host_alias
1428 target=$target_alias
1429
1430 # FIXME: To remove some day.
1431 if test "x$host_alias" != x; then
1432   if test "x$build_alias" = x; then
1433     cross_compiling=maybe
1434   elif test "x$build_alias" != "x$host_alias"; then
1435     cross_compiling=yes
1436   fi
1437 fi
1438
1439 ac_tool_prefix=
1440 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1441
1442 test "$silent" = yes && exec 6>/dev/null
1443
1444
1445 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1446 ac_ls_di=`ls -di .` &&
1447 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1448   as_fn_error $? "working directory cannot be determined"
1449 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1450   as_fn_error $? "pwd does not report name of working directory"
1451
1452
1453 # Find the source files, if location was not specified.
1454 if test -z "$srcdir"; then
1455   ac_srcdir_defaulted=yes
1456   # Try the directory containing this script, then the parent directory.
1457   ac_confdir=`$as_dirname -- "$as_myself" ||
1458 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1459          X"$as_myself" : 'X\(//\)[^/]' \| \
1460          X"$as_myself" : 'X\(//\)$' \| \
1461          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1462 $as_echo X"$as_myself" |
1463     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1464             s//\1/
1465             q
1466           }
1467           /^X\(\/\/\)[^/].*/{
1468             s//\1/
1469             q
1470           }
1471           /^X\(\/\/\)$/{
1472             s//\1/
1473             q
1474           }
1475           /^X\(\/\).*/{
1476             s//\1/
1477             q
1478           }
1479           s/.*/./; q'`
1480   srcdir=$ac_confdir
1481   if test ! -r "$srcdir/$ac_unique_file"; then
1482     srcdir=..
1483   fi
1484 else
1485   ac_srcdir_defaulted=no
1486 fi
1487 if test ! -r "$srcdir/$ac_unique_file"; then
1488   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1489   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1490 fi
1491 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1492 ac_abs_confdir=`(
1493         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1494         pwd)`
1495 # When building in place, set srcdir=.
1496 if test "$ac_abs_confdir" = "$ac_pwd"; then
1497   srcdir=.
1498 fi
1499 # Remove unnecessary trailing slashes from srcdir.
1500 # Double slashes in file names in object file debugging info
1501 # mess up M-x gdb in Emacs.
1502 case $srcdir in
1503 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1504 esac
1505 for ac_var in $ac_precious_vars; do
1506   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1507   eval ac_env_${ac_var}_value=\$${ac_var}
1508   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1509   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1510 done
1511
1512 #
1513 # Report the --help message.
1514 #
1515 if test "$ac_init_help" = "long"; then
1516   # Omit some internal or obsolete options to make the list less imposing.
1517   # This message is too long to be a string in the A/UX 3.1 sh.
1518   cat <<_ACEOF
1519 \`configure' configures libgnutls-extra 2.12.20 to adapt to many kinds of systems.
1520
1521 Usage: $0 [OPTION]... [VAR=VALUE]...
1522
1523 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1524 VAR=VALUE.  See below for descriptions of some of the useful variables.
1525
1526 Defaults for the options are specified in brackets.
1527
1528 Configuration:
1529   -h, --help              display this help and exit
1530       --help=short        display options specific to this package
1531       --help=recursive    display the short help of all the included packages
1532   -V, --version           display version information and exit
1533   -q, --quiet, --silent   do not print \`checking ...' messages
1534       --cache-file=FILE   cache test results in FILE [disabled]
1535   -C, --config-cache      alias for \`--cache-file=config.cache'
1536   -n, --no-create         do not create output files
1537       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1538
1539 Installation directories:
1540   --prefix=PREFIX         install architecture-independent files in PREFIX
1541                           [$ac_default_prefix]
1542   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1543                           [PREFIX]
1544
1545 By default, \`make install' will install all the files in
1546 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1547 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1548 for instance \`--prefix=\$HOME'.
1549
1550 For better control, use the options below.
1551
1552 Fine tuning of the installation directories:
1553   --bindir=DIR            user executables [EPREFIX/bin]
1554   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1555   --libexecdir=DIR        program executables [EPREFIX/libexec]
1556   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1557   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1558   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1559   --libdir=DIR            object code libraries [EPREFIX/lib]
1560   --includedir=DIR        C header files [PREFIX/include]
1561   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1562   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1563   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1564   --infodir=DIR           info documentation [DATAROOTDIR/info]
1565   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1566   --mandir=DIR            man documentation [DATAROOTDIR/man]
1567   --docdir=DIR            documentation root [DATAROOTDIR/doc/libgnutls-extra]
1568   --htmldir=DIR           html documentation [DOCDIR]
1569   --dvidir=DIR            dvi documentation [DOCDIR]
1570   --pdfdir=DIR            pdf documentation [DOCDIR]
1571   --psdir=DIR             ps documentation [DOCDIR]
1572 _ACEOF
1573
1574   cat <<\_ACEOF
1575
1576 Program names:
1577   --program-prefix=PREFIX            prepend PREFIX to installed program names
1578   --program-suffix=SUFFIX            append SUFFIX to installed program names
1579   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1580
1581 System types:
1582   --build=BUILD     configure for building on BUILD [guessed]
1583   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1584 _ACEOF
1585 fi
1586
1587 if test -n "$ac_init_help"; then
1588   case $ac_init_help in
1589      short | recursive ) echo "Configuration of libgnutls-extra 2.12.20:";;
1590    esac
1591   cat <<\_ACEOF
1592
1593 Optional Features:
1594   --disable-option-checking  ignore unrecognized --enable/--with options
1595   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1596   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1597   --enable-silent-rules          less verbose build output (undo: `make V=1')
1598   --disable-silent-rules         verbose build output (undo: `make V=0')
1599   --disable-dependency-tracking  speeds up one-time build
1600   --enable-dependency-tracking   do not reject slow dependency extractors
1601   --enable-shared[=PKGS]  build shared libraries [default=yes]
1602   --enable-static[=PKGS]  build static libraries [default=yes]
1603   --enable-fast-install[=PKGS]
1604                           optimize for fast installation [default=yes]
1605   --disable-libtool-lock  avoid locking (might break parallel builds)
1606   --disable-rpath         do not hardcode runtime library paths
1607   --enable-opaque-prf-input=DD
1608                           enable Opaque PRF input using DD as extension type
1609   --disable-srp-authentication
1610                           disable the SRP authentication support
1611   --disable-psk-authentication
1612                           disable the PSK authentication support
1613   --disable-anon-authentication
1614                           disable the anonymous authentication support
1615   --disable-camellia      disable Camellia cipher
1616   --disable-extra-pki     only enable the basic PKI stuff
1617   --disable-openpgp-authentication
1618                           disable the OpenPGP authentication support
1619   --disable-session-ticket
1620                           disable the SessionTicket extension support
1621   --enable-cryptodev      enable cryptodev support
1622   --disable-openssl-compatibility
1623                           disable the OpenSSL compatibility support
1624   --enable-ld-version-script
1625                           enable linker version script (default is enabled
1626                           when possible)
1627
1628 Optional Packages:
1629   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1630   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1631   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1632                           both]
1633   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1634   --with-sysroot=DIR Search for dependent libraries within DIR
1635                         (or the compiler's sysroot if not specified).
1636   --with-libgcrypt        use libgcrypt as crypto library
1637   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1638   --with-libgcrypt-prefix[=DIR]  search for libgcrypt in DIR/include and DIR/lib
1639   --without-libgcrypt-prefix     don't search for libgcrypt in includedir and libdir
1640   --with-libnettle-prefix[=DIR]  search for libnettle in DIR/include and DIR/lib
1641   --without-libnettle-prefix     don't search for libnettle in includedir and libdir
1642   --with-included-libtasn1
1643                           use the included libtasn1
1644   --with-libtasn1-prefix[=DIR]  search for libtasn1 in DIR/include and DIR/lib
1645   --without-libtasn1-prefix     don't search for libtasn1 in includedir and libdir
1646   --with-lzo              use experimental LZO compression
1647
1648 Some influential environment variables:
1649   CC          C compiler command
1650   CFLAGS      C compiler flags
1651   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1652               nonstandard directory <lib dir>
1653   LIBS        libraries to pass to the linker, e.g. -l<library>
1654   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1655               you have headers in a nonstandard directory <include dir>
1656   CPP         C preprocessor
1657
1658 Use these variables to override the choices made by `configure' or to help
1659 it to find libraries and programs with nonstandard names/locations.
1660
1661 Report bugs to <bug-gnutls@gnu.org>.
1662 _ACEOF
1663 ac_status=$?
1664 fi
1665
1666 if test "$ac_init_help" = "recursive"; then
1667   # If there are subdirs, report their specific --help.
1668   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1669     test -d "$ac_dir" ||
1670       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1671       continue
1672     ac_builddir=.
1673
1674 case "$ac_dir" in
1675 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1676 *)
1677   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1678   # A ".." for each directory in $ac_dir_suffix.
1679   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1680   case $ac_top_builddir_sub in
1681   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1682   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1683   esac ;;
1684 esac
1685 ac_abs_top_builddir=$ac_pwd
1686 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1687 # for backward compatibility:
1688 ac_top_builddir=$ac_top_build_prefix
1689
1690 case $srcdir in
1691   .)  # We are building in place.
1692     ac_srcdir=.
1693     ac_top_srcdir=$ac_top_builddir_sub
1694     ac_abs_top_srcdir=$ac_pwd ;;
1695   [\\/]* | ?:[\\/]* )  # Absolute name.
1696     ac_srcdir=$srcdir$ac_dir_suffix;
1697     ac_top_srcdir=$srcdir
1698     ac_abs_top_srcdir=$srcdir ;;
1699   *) # Relative name.
1700     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1701     ac_top_srcdir=$ac_top_build_prefix$srcdir
1702     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1703 esac
1704 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1705
1706     cd "$ac_dir" || { ac_status=$?; continue; }
1707     # Check for guested configure.
1708     if test -f "$ac_srcdir/configure.gnu"; then
1709       echo &&
1710       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1711     elif test -f "$ac_srcdir/configure"; then
1712       echo &&
1713       $SHELL "$ac_srcdir/configure" --help=recursive
1714     else
1715       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1716     fi || ac_status=$?
1717     cd "$ac_pwd" || { ac_status=$?; break; }
1718   done
1719 fi
1720
1721 test -n "$ac_init_help" && exit $ac_status
1722 if $ac_init_version; then
1723   cat <<\_ACEOF
1724 libgnutls-extra configure 2.12.20
1725 generated by GNU Autoconf 2.69
1726
1727 Copyright (C) 2012 Free Software Foundation, Inc.
1728 This configure script is free software; the Free Software Foundation
1729 gives unlimited permission to copy, distribute and modify it.
1730 _ACEOF
1731   exit
1732 fi
1733
1734 ## ------------------------ ##
1735 ## Autoconf initialization. ##
1736 ## ------------------------ ##
1737
1738 # ac_fn_c_try_compile LINENO
1739 # --------------------------
1740 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1741 ac_fn_c_try_compile ()
1742 {
1743   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744   rm -f conftest.$ac_objext
1745   if { { ac_try="$ac_compile"
1746 case "(($ac_try" in
1747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748   *) ac_try_echo=$ac_try;;
1749 esac
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752   (eval "$ac_compile") 2>conftest.err
1753   ac_status=$?
1754   if test -s conftest.err; then
1755     grep -v '^ *+' conftest.err >conftest.er1
1756     cat conftest.er1 >&5
1757     mv -f conftest.er1 conftest.err
1758   fi
1759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760   test $ac_status = 0; } && {
1761          test -z "$ac_c_werror_flag" ||
1762          test ! -s conftest.err
1763        } && test -s conftest.$ac_objext; then :
1764   ac_retval=0
1765 else
1766   $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1768
1769         ac_retval=1
1770 fi
1771   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772   as_fn_set_status $ac_retval
1773
1774 } # ac_fn_c_try_compile
1775
1776 # ac_fn_c_try_cpp LINENO
1777 # ----------------------
1778 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1779 ac_fn_c_try_cpp ()
1780 {
1781   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782   if { { ac_try="$ac_cpp conftest.$ac_ext"
1783 case "(($ac_try" in
1784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785   *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1790   ac_status=$?
1791   if test -s conftest.err; then
1792     grep -v '^ *+' conftest.err >conftest.er1
1793     cat conftest.er1 >&5
1794     mv -f conftest.er1 conftest.err
1795   fi
1796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797   test $ac_status = 0; } > conftest.i && {
1798          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1799          test ! -s conftest.err
1800        }; then :
1801   ac_retval=0
1802 else
1803   $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1805
1806     ac_retval=1
1807 fi
1808   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809   as_fn_set_status $ac_retval
1810
1811 } # ac_fn_c_try_cpp
1812
1813 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1814 # -------------------------------------------------------
1815 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1816 # the include files in INCLUDES and setting the cache variable VAR
1817 # accordingly.
1818 ac_fn_c_check_header_mongrel ()
1819 {
1820   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821   if eval \${$3+:} false; then :
1822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if eval \${$3+:} false; then :
1825   $as_echo_n "(cached) " >&6
1826 fi
1827 eval ac_res=\$$3
1828                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1830 else
1831   # Is the header compilable?
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1833 $as_echo_n "checking $2 usability... " >&6; }
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h.  */
1836 $4
1837 #include <$2>
1838 _ACEOF
1839 if ac_fn_c_try_compile "$LINENO"; then :
1840   ac_header_compiler=yes
1841 else
1842   ac_header_compiler=no
1843 fi
1844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1846 $as_echo "$ac_header_compiler" >&6; }
1847
1848 # Is the header present?
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1850 $as_echo_n "checking $2 presence... " >&6; }
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h.  */
1853 #include <$2>
1854 _ACEOF
1855 if ac_fn_c_try_cpp "$LINENO"; then :
1856   ac_header_preproc=yes
1857 else
1858   ac_header_preproc=no
1859 fi
1860 rm -f conftest.err conftest.i conftest.$ac_ext
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1862 $as_echo "$ac_header_preproc" >&6; }
1863
1864 # So?  What about this header?
1865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1866   yes:no: )
1867     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1868 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1869     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1870 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1871     ;;
1872   no:yes:* )
1873     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1874 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1875     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1876 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1877     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1878 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1879     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1880 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1881     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1882 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1883 ( $as_echo "## --------------------------------- ##
1884 ## Report this to bug-gnutls@gnu.org ##
1885 ## --------------------------------- ##"
1886      ) | sed "s/^/$as_me: WARNING:     /" >&2
1887     ;;
1888 esac
1889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890 $as_echo_n "checking for $2... " >&6; }
1891 if eval \${$3+:} false; then :
1892   $as_echo_n "(cached) " >&6
1893 else
1894   eval "$3=\$ac_header_compiler"
1895 fi
1896 eval ac_res=\$$3
1897                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1899 fi
1900   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901
1902 } # ac_fn_c_check_header_mongrel
1903
1904 # ac_fn_c_try_run LINENO
1905 # ----------------------
1906 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1907 # that executables *can* be run.
1908 ac_fn_c_try_run ()
1909 {
1910   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911   if { { ac_try="$ac_link"
1912 case "(($ac_try" in
1913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1914   *) ac_try_echo=$ac_try;;
1915 esac
1916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917 $as_echo "$ac_try_echo"; } >&5
1918   (eval "$ac_link") 2>&5
1919   ac_status=$?
1920   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1922   { { case "(($ac_try" in
1923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1924   *) ac_try_echo=$ac_try;;
1925 esac
1926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927 $as_echo "$ac_try_echo"; } >&5
1928   (eval "$ac_try") 2>&5
1929   ac_status=$?
1930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931   test $ac_status = 0; }; }; then :
1932   ac_retval=0
1933 else
1934   $as_echo "$as_me: program exited with status $ac_status" >&5
1935        $as_echo "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1937
1938        ac_retval=$ac_status
1939 fi
1940   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1941   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942   as_fn_set_status $ac_retval
1943
1944 } # ac_fn_c_try_run
1945
1946 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1947 # -------------------------------------------------------
1948 # Tests whether HEADER exists and can be compiled using the include files in
1949 # INCLUDES, setting the cache variable VAR accordingly.
1950 ac_fn_c_check_header_compile ()
1951 {
1952   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 $as_echo_n "checking for $2... " >&6; }
1955 if eval \${$3+:} false; then :
1956   $as_echo_n "(cached) " >&6
1957 else
1958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h.  */
1960 $4
1961 #include <$2>
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964   eval "$3=yes"
1965 else
1966   eval "$3=no"
1967 fi
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 fi
1970 eval ac_res=\$$3
1971                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972 $as_echo "$ac_res" >&6; }
1973   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974
1975 } # ac_fn_c_check_header_compile
1976
1977 # ac_fn_c_try_link LINENO
1978 # -----------------------
1979 # Try to link conftest.$ac_ext, and return whether this succeeded.
1980 ac_fn_c_try_link ()
1981 {
1982   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983   rm -f conftest.$ac_objext conftest$ac_exeext
1984   if { { ac_try="$ac_link"
1985 case "(($ac_try" in
1986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1987   *) ac_try_echo=$ac_try;;
1988 esac
1989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990 $as_echo "$ac_try_echo"; } >&5
1991   (eval "$ac_link") 2>conftest.err
1992   ac_status=$?
1993   if test -s conftest.err; then
1994     grep -v '^ *+' conftest.err >conftest.er1
1995     cat conftest.er1 >&5
1996     mv -f conftest.er1 conftest.err
1997   fi
1998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999   test $ac_status = 0; } && {
2000          test -z "$ac_c_werror_flag" ||
2001          test ! -s conftest.err
2002        } && test -s conftest$ac_exeext && {
2003          test "$cross_compiling" = yes ||
2004          test -x conftest$ac_exeext
2005        }; then :
2006   ac_retval=0
2007 else
2008   $as_echo "$as_me: failed program was:" >&5
2009 sed 's/^/| /' conftest.$ac_ext >&5
2010
2011         ac_retval=1
2012 fi
2013   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2014   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2015   # interfere with the next link command; also delete a directory that is
2016   # left behind by Apple's compiler.  We do this before executing the actions.
2017   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2018   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2019   as_fn_set_status $ac_retval
2020
2021 } # ac_fn_c_try_link
2022
2023 # ac_fn_c_check_func LINENO FUNC VAR
2024 # ----------------------------------
2025 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2026 ac_fn_c_check_func ()
2027 {
2028   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2030 $as_echo_n "checking for $2... " >&6; }
2031 if eval \${$3+:} false; then :
2032   $as_echo_n "(cached) " >&6
2033 else
2034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h.  */
2036 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2037    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2038 #define $2 innocuous_$2
2039
2040 /* System header to define __stub macros and hopefully few prototypes,
2041     which can conflict with char $2 (); below.
2042     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2043     <limits.h> exists even on freestanding compilers.  */
2044
2045 #ifdef __STDC__
2046 # include <limits.h>
2047 #else
2048 # include <assert.h>
2049 #endif
2050
2051 #undef $2
2052
2053 /* Override any GCC internal prototype to avoid an error.
2054    Use char because int might match the return type of a GCC
2055    builtin and then its argument prototype would still apply.  */
2056 #ifdef __cplusplus
2057 extern "C"
2058 #endif
2059 char $2 ();
2060 /* The GNU C library defines this for functions which it implements
2061     to always fail with ENOSYS.  Some functions are actually named
2062     something starting with __ and the normal name is an alias.  */
2063 #if defined __stub_$2 || defined __stub___$2
2064 choke me
2065 #endif
2066
2067 int
2068 main ()
2069 {
2070 return $2 ();
2071   ;
2072   return 0;
2073 }
2074 _ACEOF
2075 if ac_fn_c_try_link "$LINENO"; then :
2076   eval "$3=yes"
2077 else
2078   eval "$3=no"
2079 fi
2080 rm -f core conftest.err conftest.$ac_objext \
2081     conftest$ac_exeext conftest.$ac_ext
2082 fi
2083 eval ac_res=\$$3
2084                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085 $as_echo "$ac_res" >&6; }
2086   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2087
2088 } # ac_fn_c_check_func
2089
2090 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2091 # --------------------------------------------
2092 # Tries to find the compile-time value of EXPR in a program that includes
2093 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2094 # computed
2095 ac_fn_c_compute_int ()
2096 {
2097   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098   if test "$cross_compiling" = yes; then
2099     # Depending upon the size, compute the lo and hi bounds.
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h.  */
2102 $4
2103 int
2104 main ()
2105 {
2106 static int test_array [1 - 2 * !(($2) >= 0)];
2107 test_array [0] = 0;
2108 return test_array [0];
2109
2110   ;
2111   return 0;
2112 }
2113 _ACEOF
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115   ac_lo=0 ac_mid=0
2116   while :; do
2117     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h.  */
2119 $4
2120 int
2121 main ()
2122 {
2123 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2124 test_array [0] = 0;
2125 return test_array [0];
2126
2127   ;
2128   return 0;
2129 }
2130 _ACEOF
2131 if ac_fn_c_try_compile "$LINENO"; then :
2132   ac_hi=$ac_mid; break
2133 else
2134   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2135                         if test $ac_lo -le $ac_mid; then
2136                           ac_lo= ac_hi=
2137                           break
2138                         fi
2139                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2140 fi
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142   done
2143 else
2144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h.  */
2146 $4
2147 int
2148 main ()
2149 {
2150 static int test_array [1 - 2 * !(($2) < 0)];
2151 test_array [0] = 0;
2152 return test_array [0];
2153
2154   ;
2155   return 0;
2156 }
2157 _ACEOF
2158 if ac_fn_c_try_compile "$LINENO"; then :
2159   ac_hi=-1 ac_mid=-1
2160   while :; do
2161     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h.  */
2163 $4
2164 int
2165 main ()
2166 {
2167 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2168 test_array [0] = 0;
2169 return test_array [0];
2170
2171   ;
2172   return 0;
2173 }
2174 _ACEOF
2175 if ac_fn_c_try_compile "$LINENO"; then :
2176   ac_lo=$ac_mid; break
2177 else
2178   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2179                         if test $ac_mid -le $ac_hi; then
2180                           ac_lo= ac_hi=
2181                           break
2182                         fi
2183                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2184 fi
2185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186   done
2187 else
2188   ac_lo= ac_hi=
2189 fi
2190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191 fi
2192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 # Binary search between lo and hi bounds.
2194 while test "x$ac_lo" != "x$ac_hi"; do
2195   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h.  */
2198 $4
2199 int
2200 main ()
2201 {
2202 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2203 test_array [0] = 0;
2204 return test_array [0];
2205
2206   ;
2207   return 0;
2208 }
2209 _ACEOF
2210 if ac_fn_c_try_compile "$LINENO"; then :
2211   ac_hi=$ac_mid
2212 else
2213   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2214 fi
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 done
2217 case $ac_lo in #((
2218 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2219 '') ac_retval=1 ;;
2220 esac
2221   else
2222     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h.  */
2224 $4
2225 static long int longval () { return $2; }
2226 static unsigned long int ulongval () { return $2; }
2227 #include <stdio.h>
2228 #include <stdlib.h>
2229 int
2230 main ()
2231 {
2232
2233   FILE *f = fopen ("conftest.val", "w");
2234   if (! f)
2235     return 1;
2236   if (($2) < 0)
2237     {
2238       long int i = longval ();
2239       if (i != ($2))
2240         return 1;
2241       fprintf (f, "%ld", i);
2242     }
2243   else
2244     {
2245       unsigned long int i = ulongval ();
2246       if (i != ($2))
2247         return 1;
2248       fprintf (f, "%lu", i);
2249     }
2250   /* Do not output a trailing newline, as this causes \r\n confusion
2251      on some platforms.  */
2252   return ferror (f) || fclose (f) != 0;
2253
2254   ;
2255   return 0;
2256 }
2257 _ACEOF
2258 if ac_fn_c_try_run "$LINENO"; then :
2259   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2260 else
2261   ac_retval=1
2262 fi
2263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2264   conftest.$ac_objext conftest.beam conftest.$ac_ext
2265 rm -f conftest.val
2266
2267   fi
2268   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2269   as_fn_set_status $ac_retval
2270
2271 } # ac_fn_c_compute_int
2272 cat >config.log <<_ACEOF
2273 This file contains any messages produced by compilers while
2274 running configure, to aid debugging if configure makes a mistake.
2275
2276 It was created by libgnutls-extra $as_me 2.12.20, which was
2277 generated by GNU Autoconf 2.69.  Invocation command line was
2278
2279   $ $0 $@
2280
2281 _ACEOF
2282 exec 5>>config.log
2283 {
2284 cat <<_ASUNAME
2285 ## --------- ##
2286 ## Platform. ##
2287 ## --------- ##
2288
2289 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2290 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2291 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2292 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2293 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2294
2295 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2296 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2297
2298 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2299 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2300 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2301 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2302 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2303 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2304 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2305
2306 _ASUNAME
2307
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 for as_dir in $PATH
2310 do
2311   IFS=$as_save_IFS
2312   test -z "$as_dir" && as_dir=.
2313     $as_echo "PATH: $as_dir"
2314   done
2315 IFS=$as_save_IFS
2316
2317 } >&5
2318
2319 cat >&5 <<_ACEOF
2320
2321
2322 ## ----------- ##
2323 ## Core tests. ##
2324 ## ----------- ##
2325
2326 _ACEOF
2327
2328
2329 # Keep a trace of the command line.
2330 # Strip out --no-create and --no-recursion so they do not pile up.
2331 # Strip out --silent because we don't want to record it for future runs.
2332 # Also quote any args containing shell meta-characters.
2333 # Make two passes to allow for proper duplicate-argument suppression.
2334 ac_configure_args=
2335 ac_configure_args0=
2336 ac_configure_args1=
2337 ac_must_keep_next=false
2338 for ac_pass in 1 2
2339 do
2340   for ac_arg
2341   do
2342     case $ac_arg in
2343     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2344     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2345     | -silent | --silent | --silen | --sile | --sil)
2346       continue ;;
2347     *\'*)
2348       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2349     esac
2350     case $ac_pass in
2351     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2352     2)
2353       as_fn_append ac_configure_args1 " '$ac_arg'"
2354       if test $ac_must_keep_next = true; then
2355         ac_must_keep_next=false # Got value, back to normal.
2356       else
2357         case $ac_arg in
2358           *=* | --config-cache | -C | -disable-* | --disable-* \
2359           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2360           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2361           | -with-* | --with-* | -without-* | --without-* | --x)
2362             case "$ac_configure_args0 " in
2363               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2364             esac
2365             ;;
2366           -* ) ac_must_keep_next=true ;;
2367         esac
2368       fi
2369       as_fn_append ac_configure_args " '$ac_arg'"
2370       ;;
2371     esac
2372   done
2373 done
2374 { ac_configure_args0=; unset ac_configure_args0;}
2375 { ac_configure_args1=; unset ac_configure_args1;}
2376
2377 # When interrupted or exit'd, cleanup temporary files, and complete
2378 # config.log.  We remove comments because anyway the quotes in there
2379 # would cause problems or look ugly.
2380 # WARNING: Use '\'' to represent an apostrophe within the trap.
2381 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2382 trap 'exit_status=$?
2383   # Save into config.log some information that might help in debugging.
2384   {
2385     echo
2386
2387     $as_echo "## ---------------- ##
2388 ## Cache variables. ##
2389 ## ---------------- ##"
2390     echo
2391     # The following way of writing the cache mishandles newlines in values,
2392 (
2393   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2394     eval ac_val=\$$ac_var
2395     case $ac_val in #(
2396     *${as_nl}*)
2397       case $ac_var in #(
2398       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2399 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2400       esac
2401       case $ac_var in #(
2402       _ | IFS | as_nl) ;; #(
2403       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2404       *) { eval $ac_var=; unset $ac_var;} ;;
2405       esac ;;
2406     esac
2407   done
2408   (set) 2>&1 |
2409     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2410     *${as_nl}ac_space=\ *)
2411       sed -n \
2412         "s/'\''/'\''\\\\'\'''\''/g;
2413           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2414       ;; #(
2415     *)
2416       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2417       ;;
2418     esac |
2419     sort
2420 )
2421     echo
2422
2423     $as_echo "## ----------------- ##
2424 ## Output variables. ##
2425 ## ----------------- ##"
2426     echo
2427     for ac_var in $ac_subst_vars
2428     do
2429       eval ac_val=\$$ac_var
2430       case $ac_val in
2431       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2432       esac
2433       $as_echo "$ac_var='\''$ac_val'\''"
2434     done | sort
2435     echo
2436
2437     if test -n "$ac_subst_files"; then
2438       $as_echo "## ------------------- ##
2439 ## File substitutions. ##
2440 ## ------------------- ##"
2441       echo
2442       for ac_var in $ac_subst_files
2443       do
2444         eval ac_val=\$$ac_var
2445         case $ac_val in
2446         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2447         esac
2448         $as_echo "$ac_var='\''$ac_val'\''"
2449       done | sort
2450       echo
2451     fi
2452
2453     if test -s confdefs.h; then
2454       $as_echo "## ----------- ##
2455 ## confdefs.h. ##
2456 ## ----------- ##"
2457       echo
2458       cat confdefs.h
2459       echo
2460     fi
2461     test "$ac_signal" != 0 &&
2462       $as_echo "$as_me: caught signal $ac_signal"
2463     $as_echo "$as_me: exit $exit_status"
2464   } >&5
2465   rm -f core *.core core.conftest.* &&
2466     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2467     exit $exit_status
2468 ' 0
2469 for ac_signal in 1 2 13 15; do
2470   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2471 done
2472 ac_signal=0
2473
2474 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2475 rm -f -r conftest* confdefs.h
2476
2477 $as_echo "/* confdefs.h */" > confdefs.h
2478
2479 # Predefined preprocessor variables.
2480
2481 cat >>confdefs.h <<_ACEOF
2482 #define PACKAGE_NAME "$PACKAGE_NAME"
2483 _ACEOF
2484
2485 cat >>confdefs.h <<_ACEOF
2486 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2487 _ACEOF
2488
2489 cat >>confdefs.h <<_ACEOF
2490 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2491 _ACEOF
2492
2493 cat >>confdefs.h <<_ACEOF
2494 #define PACKAGE_STRING "$PACKAGE_STRING"
2495 _ACEOF
2496
2497 cat >>confdefs.h <<_ACEOF
2498 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2499 _ACEOF
2500
2501 cat >>confdefs.h <<_ACEOF
2502 #define PACKAGE_URL "$PACKAGE_URL"
2503 _ACEOF
2504
2505
2506 # Let the site file select an alternate cache file if it wants to.
2507 # Prefer an explicitly selected file to automatically selected ones.
2508 ac_site_file1=NONE
2509 ac_site_file2=NONE
2510 if test -n "$CONFIG_SITE"; then
2511   # We do not want a PATH search for config.site.
2512   case $CONFIG_SITE in #((
2513     -*)  ac_site_file1=./$CONFIG_SITE;;
2514     */*) ac_site_file1=$CONFIG_SITE;;
2515     *)   ac_site_file1=./$CONFIG_SITE;;
2516   esac
2517 elif test "x$prefix" != xNONE; then
2518   ac_site_file1=$prefix/share/config.site
2519   ac_site_file2=$prefix/etc/config.site
2520 else
2521   ac_site_file1=$ac_default_prefix/share/config.site
2522   ac_site_file2=$ac_default_prefix/etc/config.site
2523 fi
2524 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2525 do
2526   test "x$ac_site_file" = xNONE && continue
2527   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2528     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2529 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2530     sed 's/^/| /' "$ac_site_file" >&5
2531     . "$ac_site_file" \
2532       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2534 as_fn_error $? "failed to load site script $ac_site_file
2535 See \`config.log' for more details" "$LINENO" 5; }
2536   fi
2537 done
2538
2539 if test -r "$cache_file"; then
2540   # Some versions of bash will fail to source /dev/null (special files
2541   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2542   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2543     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2544 $as_echo "$as_me: loading cache $cache_file" >&6;}
2545     case $cache_file in
2546       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2547       *)                      . "./$cache_file";;
2548     esac
2549   fi
2550 else
2551   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2552 $as_echo "$as_me: creating cache $cache_file" >&6;}
2553   >$cache_file
2554 fi
2555
2556 as_fn_append ac_header_list " sys/socket.h"
2557 # Check that the precious variables saved in the cache have kept the same
2558 # value.
2559 ac_cache_corrupted=false
2560 for ac_var in $ac_precious_vars; do
2561   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2562   eval ac_new_set=\$ac_env_${ac_var}_set
2563   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2564   eval ac_new_val=\$ac_env_${ac_var}_value
2565   case $ac_old_set,$ac_new_set in
2566     set,)
2567       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2568 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2569       ac_cache_corrupted=: ;;
2570     ,set)
2571       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2572 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2573       ac_cache_corrupted=: ;;
2574     ,);;
2575     *)
2576       if test "x$ac_old_val" != "x$ac_new_val"; then
2577         # differences in whitespace do not lead to failure.
2578         ac_old_val_w=`echo x $ac_old_val`
2579         ac_new_val_w=`echo x $ac_new_val`
2580         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2581           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2582 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2583           ac_cache_corrupted=:
2584         else
2585           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2586 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2587           eval $ac_var=\$ac_old_val
2588         fi
2589         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2590 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2591         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2592 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2593       fi;;
2594   esac
2595   # Pass precious variables to config.status.
2596   if test "$ac_new_set" = set; then
2597     case $ac_new_val in
2598     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2599     *) ac_arg=$ac_var=$ac_new_val ;;
2600     esac
2601     case " $ac_configure_args " in
2602       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2603       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2604     esac
2605   fi
2606 done
2607 if $ac_cache_corrupted; then
2608   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2610   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2611 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2612   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2613 fi
2614 ## -------------------- ##
2615 ## Main body of script. ##
2616 ## -------------------- ##
2617
2618 ac_ext=c
2619 ac_cpp='$CPP $CPPFLAGS'
2620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2623
2624
2625 ac_aux_dir=
2626 for ac_dir in build-aux "$srcdir"/build-aux; do
2627   if test -f "$ac_dir/install-sh"; then
2628     ac_aux_dir=$ac_dir
2629     ac_install_sh="$ac_aux_dir/install-sh -c"
2630     break
2631   elif test -f "$ac_dir/install.sh"; then
2632     ac_aux_dir=$ac_dir
2633     ac_install_sh="$ac_aux_dir/install.sh -c"
2634     break
2635   elif test -f "$ac_dir/shtool"; then
2636     ac_aux_dir=$ac_dir
2637     ac_install_sh="$ac_aux_dir/shtool install -c"
2638     break
2639   fi
2640 done
2641 if test -z "$ac_aux_dir"; then
2642   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2643 fi
2644
2645 # These three variables are undocumented and unsupported,
2646 # and are intended to be withdrawn in a future Autoconf release.
2647 # They can cause serious problems if a builder's source tree is in a directory
2648 # whose full name contains unusual characters.
2649 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2650 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2651 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2652
2653
2654
2655
2656 am__api_version='1.11'
2657
2658 # Find a good install program.  We prefer a C program (faster),
2659 # so one script is as good as another.  But avoid the broken or
2660 # incompatible versions:
2661 # SysV /etc/install, /usr/sbin/install
2662 # SunOS /usr/etc/install
2663 # IRIX /sbin/install
2664 # AIX /bin/install
2665 # AmigaOS /C/install, which installs bootblocks on floppy discs
2666 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2667 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2668 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2669 # OS/2's system install, which has a completely different semantic
2670 # ./install, which can be erroneously created by make from ./install.sh.
2671 # Reject install programs that cannot install multiple files.
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2673 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2674 if test -z "$INSTALL"; then
2675 if ${ac_cv_path_install+:} false; then :
2676   $as_echo_n "(cached) " >&6
2677 else
2678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 for as_dir in $PATH
2680 do
2681   IFS=$as_save_IFS
2682   test -z "$as_dir" && as_dir=.
2683     # Account for people who put trailing slashes in PATH elements.
2684 case $as_dir/ in #((
2685   ./ | .// | /[cC]/* | \
2686   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2687   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2688   /usr/ucb/* ) ;;
2689   *)
2690     # OSF1 and SCO ODT 3.0 have their own names for install.
2691     # Don't use installbsd from OSF since it installs stuff as root
2692     # by default.
2693     for ac_prog in ginstall scoinst install; do
2694       for ac_exec_ext in '' $ac_executable_extensions; do
2695         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2696           if test $ac_prog = install &&
2697             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2698             # AIX install.  It has an incompatible calling convention.
2699             :
2700           elif test $ac_prog = install &&
2701             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2702             # program-specific install script used by HP pwplus--don't use.
2703             :
2704           else
2705             rm -rf conftest.one conftest.two conftest.dir
2706             echo one > conftest.one
2707             echo two > conftest.two
2708             mkdir conftest.dir
2709             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2710               test -s conftest.one && test -s conftest.two &&
2711               test -s conftest.dir/conftest.one &&
2712               test -s conftest.dir/conftest.two
2713             then
2714               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2715               break 3
2716             fi
2717           fi
2718         fi
2719       done
2720     done
2721     ;;
2722 esac
2723
2724   done
2725 IFS=$as_save_IFS
2726
2727 rm -rf conftest.one conftest.two conftest.dir
2728
2729 fi
2730   if test "${ac_cv_path_install+set}" = set; then
2731     INSTALL=$ac_cv_path_install
2732   else
2733     # As a last resort, use the slow shell script.  Don't cache a
2734     # value for INSTALL within a source directory, because that will
2735     # break other packages using the cache if that directory is
2736     # removed, or if the value is a relative name.
2737     INSTALL=$ac_install_sh
2738   fi
2739 fi
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2741 $as_echo "$INSTALL" >&6; }
2742
2743 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2744 # It thinks the first close brace ends the variable substitution.
2745 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2746
2747 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2748
2749 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2750
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2752 $as_echo_n "checking whether build environment is sane... " >&6; }
2753 # Just in case
2754 sleep 1
2755 echo timestamp > conftest.file
2756 # Reject unsafe characters in $srcdir or the absolute working directory
2757 # name.  Accept space and tab only in the latter.
2758 am_lf='
2759 '
2760 case `pwd` in
2761   *[\\\"\#\$\&\'\`$am_lf]*)
2762     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2763 esac
2764 case $srcdir in
2765   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2766     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2767 esac
2768
2769 # Do `set' in a subshell so we don't clobber the current shell's
2770 # arguments.  Must try -L first in case configure is actually a
2771 # symlink; some systems play weird games with the mod time of symlinks
2772 # (eg FreeBSD returns the mod time of the symlink's containing
2773 # directory).
2774 if (
2775    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2776    if test "$*" = "X"; then
2777       # -L didn't work.
2778       set X `ls -t "$srcdir/configure" conftest.file`
2779    fi
2780    rm -f conftest.file
2781    if test "$*" != "X $srcdir/configure conftest.file" \
2782       && test "$*" != "X conftest.file $srcdir/configure"; then
2783
2784       # If neither matched, then we have a broken ls.  This can happen
2785       # if, for instance, CONFIG_SHELL is bash and it inherits a
2786       # broken ls alias from the environment.  This has actually
2787       # happened.  Such a system could not be considered "sane".
2788       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2789 alias in your environment" "$LINENO" 5
2790    fi
2791
2792    test "$2" = conftest.file
2793    )
2794 then
2795    # Ok.
2796    :
2797 else
2798    as_fn_error $? "newly created file is older than distributed files!
2799 Check your system clock" "$LINENO" 5
2800 fi
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2802 $as_echo "yes" >&6; }
2803 test "$program_prefix" != NONE &&
2804   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2805 # Use a double $ so make ignores it.
2806 test "$program_suffix" != NONE &&
2807   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2808 # Double any \ or $.
2809 # By default was `s,x,x', remove it if useless.
2810 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2811 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2812
2813 # expand $ac_aux_dir to an absolute path
2814 am_aux_dir=`cd $ac_aux_dir && pwd`
2815
2816 if test x"${MISSING+set}" != xset; then
2817   case $am_aux_dir in
2818   *\ * | *\     *)
2819     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2820   *)
2821     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2822   esac
2823 fi
2824 # Use eval to expand $SHELL
2825 if eval "$MISSING --run true"; then
2826   am_missing_run="$MISSING --run "
2827 else
2828   am_missing_run=
2829   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2830 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2831 fi
2832
2833 if test x"${install_sh}" != xset; then
2834   case $am_aux_dir in
2835   *\ * | *\     *)
2836     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2837   *)
2838     install_sh="\${SHELL} $am_aux_dir/install-sh"
2839   esac
2840 fi
2841
2842 # Installed binaries are usually stripped using `strip' when the user
2843 # run `make install-strip'.  However `strip' might not be the right
2844 # tool to use in cross-compilation environments, therefore Automake
2845 # will honor the `STRIP' environment variable to overrule this program.
2846 if test "$cross_compiling" != no; then
2847   if test -n "$ac_tool_prefix"; then
2848   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2849 set dummy ${ac_tool_prefix}strip; ac_word=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if ${ac_cv_prog_STRIP+:} false; then :
2853   $as_echo_n "(cached) " >&6
2854 else
2855   if test -n "$STRIP"; then
2856   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2857 else
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2860 do
2861   IFS=$as_save_IFS
2862   test -z "$as_dir" && as_dir=.
2863     for ac_exec_ext in '' $ac_executable_extensions; do
2864   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2865     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867     break 2
2868   fi
2869 done
2870   done
2871 IFS=$as_save_IFS
2872
2873 fi
2874 fi
2875 STRIP=$ac_cv_prog_STRIP
2876 if test -n "$STRIP"; then
2877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2878 $as_echo "$STRIP" >&6; }
2879 else
2880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 $as_echo "no" >&6; }
2882 fi
2883
2884
2885 fi
2886 if test -z "$ac_cv_prog_STRIP"; then
2887   ac_ct_STRIP=$STRIP
2888   # Extract the first word of "strip", so it can be a program name with args.
2889 set dummy strip; ac_word=$2
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891 $as_echo_n "checking for $ac_word... " >&6; }
2892 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2893   $as_echo_n "(cached) " >&6
2894 else
2895   if test -n "$ac_ct_STRIP"; then
2896   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2897 else
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2900 do
2901   IFS=$as_save_IFS
2902   test -z "$as_dir" && as_dir=.
2903     for ac_exec_ext in '' $ac_executable_extensions; do
2904   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905     ac_cv_prog_ac_ct_STRIP="strip"
2906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907     break 2
2908   fi
2909 done
2910   done
2911 IFS=$as_save_IFS
2912
2913 fi
2914 fi
2915 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2916 if test -n "$ac_ct_STRIP"; then
2917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2918 $as_echo "$ac_ct_STRIP" >&6; }
2919 else
2920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2922 fi
2923
2924   if test "x$ac_ct_STRIP" = x; then
2925     STRIP=":"
2926   else
2927     case $cross_compiling:$ac_tool_warned in
2928 yes:)
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2931 ac_tool_warned=yes ;;
2932 esac
2933     STRIP=$ac_ct_STRIP
2934   fi
2935 else
2936   STRIP="$ac_cv_prog_STRIP"
2937 fi
2938
2939 fi
2940 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2941
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2943 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2944 if test -z "$MKDIR_P"; then
2945   if ${ac_cv_path_mkdir+:} false; then :
2946   $as_echo_n "(cached) " >&6
2947 else
2948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2950 do
2951   IFS=$as_save_IFS
2952   test -z "$as_dir" && as_dir=.
2953     for ac_prog in mkdir gmkdir; do
2954          for ac_exec_ext in '' $ac_executable_extensions; do
2955            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2956            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2957              'mkdir (GNU coreutils) '* | \
2958              'mkdir (coreutils) '* | \
2959              'mkdir (fileutils) '4.1*)
2960                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2961                break 3;;
2962            esac
2963          done
2964        done
2965   done
2966 IFS=$as_save_IFS
2967
2968 fi
2969
2970   test -d ./--version && rmdir ./--version
2971   if test "${ac_cv_path_mkdir+set}" = set; then
2972     MKDIR_P="$ac_cv_path_mkdir -p"
2973   else
2974     # As a last resort, use the slow shell script.  Don't cache a
2975     # value for MKDIR_P within a source directory, because that will
2976     # break other packages using the cache if that directory is
2977     # removed, or if the value is a relative name.
2978     MKDIR_P="$ac_install_sh -d"
2979   fi
2980 fi
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2982 $as_echo "$MKDIR_P" >&6; }
2983
2984
2985 mkdir_p="$MKDIR_P"
2986 case $mkdir_p in
2987   [\\/$]* | ?:[\\/]*) ;;
2988   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2989 esac
2990
2991 for ac_prog in gawk mawk nawk awk
2992 do
2993   # Extract the first word of "$ac_prog", so it can be a program name with args.
2994 set dummy $ac_prog; ac_word=$2
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996 $as_echo_n "checking for $ac_word... " >&6; }
2997 if ${ac_cv_prog_AWK+:} false; then :
2998   $as_echo_n "(cached) " >&6
2999 else
3000   if test -n "$AWK"; then
3001   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3002 else
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 for as_dir in $PATH
3005 do
3006   IFS=$as_save_IFS
3007   test -z "$as_dir" && as_dir=.
3008     for ac_exec_ext in '' $ac_executable_extensions; do
3009   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3010     ac_cv_prog_AWK="$ac_prog"
3011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012     break 2
3013   fi
3014 done
3015   done
3016 IFS=$as_save_IFS
3017
3018 fi
3019 fi
3020 AWK=$ac_cv_prog_AWK
3021 if test -n "$AWK"; then
3022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3023 $as_echo "$AWK" >&6; }
3024 else
3025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 $as_echo "no" >&6; }
3027 fi
3028
3029
3030   test -n "$AWK" && break
3031 done
3032
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3034 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3035 set x ${MAKE-make}
3036 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3037 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3038   $as_echo_n "(cached) " >&6
3039 else
3040   cat >conftest.make <<\_ACEOF
3041 SHELL = /bin/sh
3042 all:
3043         @echo '@@@%%%=$(MAKE)=@@@%%%'
3044 _ACEOF
3045 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3046 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3047   *@@@%%%=?*=@@@%%%*)
3048     eval ac_cv_prog_make_${ac_make}_set=yes;;
3049   *)
3050     eval ac_cv_prog_make_${ac_make}_set=no;;
3051 esac
3052 rm -f conftest.make
3053 fi
3054 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3056 $as_echo "yes" >&6; }
3057   SET_MAKE=
3058 else
3059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060 $as_echo "no" >&6; }
3061   SET_MAKE="MAKE=${MAKE-make}"
3062 fi
3063
3064 rm -rf .tst 2>/dev/null
3065 mkdir .tst 2>/dev/null
3066 if test -d .tst; then
3067   am__leading_dot=.
3068 else
3069   am__leading_dot=_
3070 fi
3071 rmdir .tst 2>/dev/null
3072
3073 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3074   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3075   # is not polluted with repeated "-I."
3076   am__isrc=' -I$(srcdir)'
3077   # test to see if srcdir already configured
3078   if test -f $srcdir/config.status; then
3079     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3080   fi
3081 fi
3082
3083 # test whether we have cygpath
3084 if test -z "$CYGPATH_W"; then
3085   if (cygpath --version) >/dev/null 2>/dev/null; then
3086     CYGPATH_W='cygpath -w'
3087   else
3088     CYGPATH_W=echo
3089   fi
3090 fi
3091
3092
3093 # Define the identity of the package.
3094  PACKAGE='libgnutls-extra'
3095  VERSION='2.12.20'
3096
3097
3098 cat >>confdefs.h <<_ACEOF
3099 #define PACKAGE "$PACKAGE"
3100 _ACEOF
3101
3102
3103 cat >>confdefs.h <<_ACEOF
3104 #define VERSION "$VERSION"
3105 _ACEOF
3106
3107 # Some tools Automake needs.
3108
3109 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3110
3111
3112 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3113
3114
3115 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3116
3117
3118 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3119
3120
3121 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3122
3123 # We need awk for the "check" target.  The system "awk" is bad on
3124 # some platforms.
3125 # Always define AMTAR for backward compatibility.  Yes, it's still used
3126 # in the wild :-(  We should find a proper way to deprecate it ...
3127 AMTAR='$${TAR-tar}'
3128
3129 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3130
3131
3132
3133
3134
3135 # Check whether --enable-silent-rules was given.
3136 if test "${enable_silent_rules+set}" = set; then :
3137   enableval=$enable_silent_rules;
3138 fi
3139
3140 case $enable_silent_rules in
3141 yes) AM_DEFAULT_VERBOSITY=0;;
3142 no)  AM_DEFAULT_VERBOSITY=1;;
3143 *)   AM_DEFAULT_VERBOSITY=0;;
3144 esac
3145 am_make=${MAKE-make}
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3147 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3148 if ${am_cv_make_support_nested_variables+:} false; then :
3149   $as_echo_n "(cached) " >&6
3150 else
3151   if $as_echo 'TRUE=$(BAR$(V))
3152 BAR0=false
3153 BAR1=true
3154 V=1
3155 am__doit:
3156         @$(TRUE)
3157 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3158   am_cv_make_support_nested_variables=yes
3159 else
3160   am_cv_make_support_nested_variables=no
3161 fi
3162 fi
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3164 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3165 if test $am_cv_make_support_nested_variables = yes; then
3166     AM_V='$(V)'
3167   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3168 else
3169   AM_V=$AM_DEFAULT_VERBOSITY
3170   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3171 fi
3172 AM_BACKSLASH='\'
3173
3174 ac_config_headers="$ac_config_headers config.h"
3175
3176
3177 ac_ext=c
3178 ac_cpp='$CPP $CPPFLAGS'
3179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3182 if test -n "$ac_tool_prefix"; then
3183   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3184 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186 $as_echo_n "checking for $ac_word... " >&6; }
3187 if ${ac_cv_prog_CC+:} false; then :
3188   $as_echo_n "(cached) " >&6
3189 else
3190   if test -n "$CC"; then
3191   ac_cv_prog_CC="$CC" # Let the user override the test.
3192 else
3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 for as_dir in $PATH
3195 do
3196   IFS=$as_save_IFS
3197   test -z "$as_dir" && as_dir=.
3198     for ac_exec_ext in '' $ac_executable_extensions; do
3199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3200     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3202     break 2
3203   fi
3204 done
3205   done
3206 IFS=$as_save_IFS
3207
3208 fi
3209 fi
3210 CC=$ac_cv_prog_CC
3211 if test -n "$CC"; then
3212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3213 $as_echo "$CC" >&6; }
3214 else
3215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3217 fi
3218
3219
3220 fi
3221 if test -z "$ac_cv_prog_CC"; then
3222   ac_ct_CC=$CC
3223   # Extract the first word of "gcc", so it can be a program name with args.
3224 set dummy gcc; ac_word=$2
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 $as_echo_n "checking for $ac_word... " >&6; }
3227 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3228   $as_echo_n "(cached) " >&6
3229 else
3230   if test -n "$ac_ct_CC"; then
3231   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3232 else
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 for as_dir in $PATH
3235 do
3236   IFS=$as_save_IFS
3237   test -z "$as_dir" && as_dir=.
3238     for ac_exec_ext in '' $ac_executable_extensions; do
3239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3240     ac_cv_prog_ac_ct_CC="gcc"
3241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3242     break 2
3243   fi
3244 done
3245   done
3246 IFS=$as_save_IFS
3247
3248 fi
3249 fi
3250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3251 if test -n "$ac_ct_CC"; then
3252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3253 $as_echo "$ac_ct_CC" >&6; }
3254 else
3255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3257 fi
3258
3259   if test "x$ac_ct_CC" = x; then
3260     CC=""
3261   else
3262     case $cross_compiling:$ac_tool_warned in
3263 yes:)
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3266 ac_tool_warned=yes ;;
3267 esac
3268     CC=$ac_ct_CC
3269   fi
3270 else
3271   CC="$ac_cv_prog_CC"
3272 fi
3273
3274 if test -z "$CC"; then
3275           if test -n "$ac_tool_prefix"; then
3276     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3277 set dummy ${ac_tool_prefix}cc; ac_word=$2
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3279 $as_echo_n "checking for $ac_word... " >&6; }
3280 if ${ac_cv_prog_CC+:} false; then :
3281   $as_echo_n "(cached) " >&6
3282 else
3283   if test -n "$CC"; then
3284   ac_cv_prog_CC="$CC" # Let the user override the test.
3285 else
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 for as_dir in $PATH
3288 do
3289   IFS=$as_save_IFS
3290   test -z "$as_dir" && as_dir=.
3291     for ac_exec_ext in '' $ac_executable_extensions; do
3292   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293     ac_cv_prog_CC="${ac_tool_prefix}cc"
3294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3295     break 2
3296   fi
3297 done
3298   done
3299 IFS=$as_save_IFS
3300
3301 fi
3302 fi
3303 CC=$ac_cv_prog_CC
3304 if test -n "$CC"; then
3305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3306 $as_echo "$CC" >&6; }
3307 else
3308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3310 fi
3311
3312
3313   fi
3314 fi
3315 if test -z "$CC"; then
3316   # Extract the first word of "cc", so it can be a program name with args.
3317 set dummy cc; ac_word=$2
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3319 $as_echo_n "checking for $ac_word... " >&6; }
3320 if ${ac_cv_prog_CC+:} false; then :
3321   $as_echo_n "(cached) " >&6
3322 else
3323   if test -n "$CC"; then
3324   ac_cv_prog_CC="$CC" # Let the user override the test.
3325 else
3326   ac_prog_rejected=no
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 for as_dir in $PATH
3329 do
3330   IFS=$as_save_IFS
3331   test -z "$as_dir" && as_dir=.
3332     for ac_exec_ext in '' $ac_executable_extensions; do
3333   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3335        ac_prog_rejected=yes
3336        continue
3337      fi
3338     ac_cv_prog_CC="cc"
3339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3340     break 2
3341   fi
3342 done
3343   done
3344 IFS=$as_save_IFS
3345
3346 if test $ac_prog_rejected = yes; then
3347   # We found a bogon in the path, so make sure we never use it.
3348   set dummy $ac_cv_prog_CC
3349   shift
3350   if test $# != 0; then
3351     # We chose a different compiler from the bogus one.
3352     # However, it has the same basename, so the bogon will be chosen
3353     # first if we set CC to just the basename; use the full file name.
3354     shift
3355     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3356   fi
3357 fi
3358 fi
3359 fi
3360 CC=$ac_cv_prog_CC
3361 if test -n "$CC"; then
3362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3363 $as_echo "$CC" >&6; }
3364 else
3365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3367 fi
3368
3369
3370 fi
3371 if test -z "$CC"; then
3372   if test -n "$ac_tool_prefix"; then
3373   for ac_prog in cl.exe
3374   do
3375     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3376 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378 $as_echo_n "checking for $ac_word... " >&6; }
3379 if ${ac_cv_prog_CC+:} false; then :
3380   $as_echo_n "(cached) " >&6
3381 else
3382   if test -n "$CC"; then
3383   ac_cv_prog_CC="$CC" # Let the user override the test.
3384 else
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3387 do
3388   IFS=$as_save_IFS
3389   test -z "$as_dir" && as_dir=.
3390     for ac_exec_ext in '' $ac_executable_extensions; do
3391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394     break 2
3395   fi
3396 done
3397   done
3398 IFS=$as_save_IFS
3399
3400 fi
3401 fi
3402 CC=$ac_cv_prog_CC
3403 if test -n "$CC"; then
3404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3405 $as_echo "$CC" >&6; }
3406 else
3407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3409 fi
3410
3411
3412     test -n "$CC" && break
3413   done
3414 fi
3415 if test -z "$CC"; then
3416   ac_ct_CC=$CC
3417   for ac_prog in cl.exe
3418 do
3419   # Extract the first word of "$ac_prog", so it can be a program name with args.
3420 set dummy $ac_prog; ac_word=$2
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422 $as_echo_n "checking for $ac_word... " >&6; }
3423 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3424   $as_echo_n "(cached) " >&6
3425 else
3426   if test -n "$ac_ct_CC"; then
3427   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3428 else
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430 for as_dir in $PATH
3431 do
3432   IFS=$as_save_IFS
3433   test -z "$as_dir" && as_dir=.
3434     for ac_exec_ext in '' $ac_executable_extensions; do
3435   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3436     ac_cv_prog_ac_ct_CC="$ac_prog"
3437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438     break 2
3439   fi
3440 done
3441   done
3442 IFS=$as_save_IFS
3443
3444 fi
3445 fi
3446 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3447 if test -n "$ac_ct_CC"; then
3448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3449 $as_echo "$ac_ct_CC" >&6; }
3450 else
3451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3453 fi
3454
3455
3456   test -n "$ac_ct_CC" && break
3457 done
3458
3459   if test "x$ac_ct_CC" = x; then
3460     CC=""
3461   else
3462     case $cross_compiling:$ac_tool_warned in
3463 yes:)
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3466 ac_tool_warned=yes ;;
3467 esac
3468     CC=$ac_ct_CC
3469   fi
3470 fi
3471
3472 fi
3473
3474
3475 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3477 as_fn_error $? "no acceptable C compiler found in \$PATH
3478 See \`config.log' for more details" "$LINENO" 5; }
3479
3480 # Provide some information about the compiler.
3481 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3482 set X $ac_compile
3483 ac_compiler=$2
3484 for ac_option in --version -v -V -qversion; do
3485   { { ac_try="$ac_compiler $ac_option >&5"
3486 case "(($ac_try" in
3487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488   *) ac_try_echo=$ac_try;;
3489 esac
3490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3491 $as_echo "$ac_try_echo"; } >&5
3492   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3493   ac_status=$?
3494   if test -s conftest.err; then
3495     sed '10a\
3496 ... rest of stderr output deleted ...
3497          10q' conftest.err >conftest.er1
3498     cat conftest.er1 >&5
3499   fi
3500   rm -f conftest.er1 conftest.err
3501   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3502   test $ac_status = 0; }
3503 done
3504
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h.  */
3507
3508 int
3509 main ()
3510 {
3511
3512   ;
3513   return 0;
3514 }
3515 _ACEOF
3516 ac_clean_files_save=$ac_clean_files
3517 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3518 # Try to create an executable without -o first, disregard a.out.
3519 # It will help us diagnose broken compilers, and finding out an intuition
3520 # of exeext.
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3522 $as_echo_n "checking whether the C compiler works... " >&6; }
3523 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3524
3525 # The possible output files:
3526 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3527
3528 ac_rmfiles=
3529 for ac_file in $ac_files
3530 do
3531   case $ac_file in
3532     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3533     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3534   esac
3535 done
3536 rm -f $ac_rmfiles
3537
3538 if { { ac_try="$ac_link_default"
3539 case "(($ac_try" in
3540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541   *) ac_try_echo=$ac_try;;
3542 esac
3543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3544 $as_echo "$ac_try_echo"; } >&5
3545   (eval "$ac_link_default") 2>&5
3546   ac_status=$?
3547   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3548   test $ac_status = 0; }; then :
3549   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3550 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3551 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3552 # so that the user can short-circuit this test for compilers unknown to
3553 # Autoconf.
3554 for ac_file in $ac_files ''
3555 do
3556   test -f "$ac_file" || continue
3557   case $ac_file in
3558     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3559         ;;
3560     [ab].out )
3561         # We found the default executable, but exeext='' is most
3562         # certainly right.
3563         break;;
3564     *.* )
3565         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3566         then :; else
3567            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3568         fi
3569         # We set ac_cv_exeext here because the later test for it is not
3570         # safe: cross compilers may not add the suffix if given an `-o'
3571         # argument, so we may need to know it at that point already.
3572         # Even if this section looks crufty: it has the advantage of
3573         # actually working.
3574         break;;
3575     * )
3576         break;;
3577   esac
3578 done
3579 test "$ac_cv_exeext" = no && ac_cv_exeext=
3580
3581 else
3582   ac_file=''
3583 fi
3584 if test -z "$ac_file"; then :
3585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3586 $as_echo "no" >&6; }
3587 $as_echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3589
3590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3592 as_fn_error 77 "C compiler cannot create executables
3593 See \`config.log' for more details" "$LINENO" 5; }
3594 else
3595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3596 $as_echo "yes" >&6; }
3597 fi
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3599 $as_echo_n "checking for C compiler default output file name... " >&6; }
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3601 $as_echo "$ac_file" >&6; }
3602 ac_exeext=$ac_cv_exeext
3603
3604 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3605 ac_clean_files=$ac_clean_files_save
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3607 $as_echo_n "checking for suffix of executables... " >&6; }
3608 if { { ac_try="$ac_link"
3609 case "(($ac_try" in
3610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611   *) ac_try_echo=$ac_try;;
3612 esac
3613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3614 $as_echo "$ac_try_echo"; } >&5
3615   (eval "$ac_link") 2>&5
3616   ac_status=$?
3617   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3618   test $ac_status = 0; }; then :
3619   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3620 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3621 # work properly (i.e., refer to `conftest.exe'), while it won't with
3622 # `rm'.
3623 for ac_file in conftest.exe conftest conftest.*; do
3624   test -f "$ac_file" || continue
3625   case $ac_file in
3626     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3627     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3628           break;;
3629     * ) break;;
3630   esac
3631 done
3632 else
3633   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3635 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3636 See \`config.log' for more details" "$LINENO" 5; }
3637 fi
3638 rm -f conftest conftest$ac_cv_exeext
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3640 $as_echo "$ac_cv_exeext" >&6; }
3641
3642 rm -f conftest.$ac_ext
3643 EXEEXT=$ac_cv_exeext
3644 ac_exeext=$EXEEXT
3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h.  */
3647 #include <stdio.h>
3648 int
3649 main ()
3650 {
3651 FILE *f = fopen ("conftest.out", "w");
3652  return ferror (f) || fclose (f) != 0;
3653
3654   ;
3655   return 0;
3656 }
3657 _ACEOF
3658 ac_clean_files="$ac_clean_files conftest.out"
3659 # Check that the compiler produces executables we can run.  If not, either
3660 # the compiler is broken, or we cross compile.
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3662 $as_echo_n "checking whether we are cross compiling... " >&6; }
3663 if test "$cross_compiling" != yes; then
3664   { { ac_try="$ac_link"
3665 case "(($ac_try" in
3666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667   *) ac_try_echo=$ac_try;;
3668 esac
3669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670 $as_echo "$ac_try_echo"; } >&5
3671   (eval "$ac_link") 2>&5
3672   ac_status=$?
3673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674   test $ac_status = 0; }
3675   if { ac_try='./conftest$ac_cv_exeext'
3676   { { case "(($ac_try" in
3677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678   *) ac_try_echo=$ac_try;;
3679 esac
3680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3681 $as_echo "$ac_try_echo"; } >&5
3682   (eval "$ac_try") 2>&5
3683   ac_status=$?
3684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3685   test $ac_status = 0; }; }; then
3686     cross_compiling=no
3687   else
3688     if test "$cross_compiling" = maybe; then
3689         cross_compiling=yes
3690     else
3691         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3693 as_fn_error $? "cannot run C compiled programs.
3694 If you meant to cross compile, use \`--host'.
3695 See \`config.log' for more details" "$LINENO" 5; }
3696     fi
3697   fi
3698 fi
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3700 $as_echo "$cross_compiling" >&6; }
3701
3702 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3703 ac_clean_files=$ac_clean_files_save
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3705 $as_echo_n "checking for suffix of object files... " >&6; }
3706 if ${ac_cv_objext+:} false; then :
3707   $as_echo_n "(cached) " >&6
3708 else
3709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710 /* end confdefs.h.  */
3711
3712 int
3713 main ()
3714 {
3715
3716   ;
3717   return 0;
3718 }
3719 _ACEOF
3720 rm -f conftest.o conftest.obj
3721 if { { ac_try="$ac_compile"
3722 case "(($ac_try" in
3723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724   *) ac_try_echo=$ac_try;;
3725 esac
3726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3727 $as_echo "$ac_try_echo"; } >&5
3728   (eval "$ac_compile") 2>&5
3729   ac_status=$?
3730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3731   test $ac_status = 0; }; then :
3732   for ac_file in conftest.o conftest.obj conftest.*; do
3733   test -f "$ac_file" || continue;
3734   case $ac_file in
3735     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3736     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3737        break;;
3738   esac
3739 done
3740 else
3741   $as_echo "$as_me: failed program was:" >&5
3742 sed 's/^/| /' conftest.$ac_ext >&5
3743
3744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3746 as_fn_error $? "cannot compute suffix of object files: cannot compile
3747 See \`config.log' for more details" "$LINENO" 5; }
3748 fi
3749 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3750 fi
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3752 $as_echo "$ac_cv_objext" >&6; }
3753 OBJEXT=$ac_cv_objext
3754 ac_objext=$OBJEXT
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3756 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3757 if ${ac_cv_c_compiler_gnu+:} false; then :
3758   $as_echo_n "(cached) " >&6
3759 else
3760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h.  */
3762
3763 int
3764 main ()
3765 {
3766 #ifndef __GNUC__
3767        choke me
3768 #endif
3769
3770   ;
3771   return 0;
3772 }
3773 _ACEOF
3774 if ac_fn_c_try_compile "$LINENO"; then :
3775   ac_compiler_gnu=yes
3776 else
3777   ac_compiler_gnu=no
3778 fi
3779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3781
3782 fi
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3784 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3785 if test $ac_compiler_gnu = yes; then
3786   GCC=yes
3787 else
3788   GCC=
3789 fi
3790 ac_test_CFLAGS=${CFLAGS+set}
3791 ac_save_CFLAGS=$CFLAGS
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3793 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3794 if ${ac_cv_prog_cc_g+:} false; then :
3795   $as_echo_n "(cached) " >&6
3796 else
3797   ac_save_c_werror_flag=$ac_c_werror_flag
3798    ac_c_werror_flag=yes
3799    ac_cv_prog_cc_g=no
3800    CFLAGS="-g"
3801    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h.  */
3803
3804 int
3805 main ()
3806 {
3807
3808   ;
3809   return 0;
3810 }
3811 _ACEOF
3812 if ac_fn_c_try_compile "$LINENO"; then :
3813   ac_cv_prog_cc_g=yes
3814 else
3815   CFLAGS=""
3816       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h.  */
3818
3819 int
3820 main ()
3821 {
3822
3823   ;
3824   return 0;
3825 }
3826 _ACEOF
3827 if ac_fn_c_try_compile "$LINENO"; then :
3828
3829 else
3830   ac_c_werror_flag=$ac_save_c_werror_flag
3831          CFLAGS="-g"
3832          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h.  */
3834
3835 int
3836 main ()
3837 {
3838
3839   ;
3840   return 0;
3841 }
3842 _ACEOF
3843 if ac_fn_c_try_compile "$LINENO"; then :
3844   ac_cv_prog_cc_g=yes
3845 fi
3846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3847 fi
3848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849 fi
3850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851    ac_c_werror_flag=$ac_save_c_werror_flag
3852 fi
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3854 $as_echo "$ac_cv_prog_cc_g" >&6; }
3855 if test "$ac_test_CFLAGS" = set; then
3856   CFLAGS=$ac_save_CFLAGS
3857 elif test $ac_cv_prog_cc_g = yes; then
3858   if test "$GCC" = yes; then
3859     CFLAGS="-g -O2"
3860   else
3861     CFLAGS="-g"
3862   fi
3863 else
3864   if test "$GCC" = yes; then
3865     CFLAGS="-O2"
3866   else
3867     CFLAGS=
3868   fi
3869 fi
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3871 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3872 if ${ac_cv_prog_cc_c89+:} false; then :
3873   $as_echo_n "(cached) " >&6
3874 else
3875   ac_cv_prog_cc_c89=no
3876 ac_save_CC=$CC
3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h.  */
3879 #include <stdarg.h>
3880 #include <stdio.h>
3881 struct stat;
3882 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3883 struct buf { int x; };
3884 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3885 static char *e (p, i)
3886      char **p;
3887      int i;
3888 {
3889   return p[i];
3890 }
3891 static char *f (char * (*g) (char **, int), char **p, ...)
3892 {
3893   char *s;
3894   va_list v;
3895   va_start (v,p);
3896   s = g (p, va_arg (v,int));
3897   va_end (v);
3898   return s;
3899 }
3900
3901 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3902    function prototypes and stuff, but not '\xHH' hex character constants.
3903    These don't provoke an error unfortunately, instead are silently treated
3904    as 'x'.  The following induces an error, until -std is added to get
3905    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3906    array size at least.  It's necessary to write '\x00'==0 to get something
3907    that's true only with -std.  */
3908 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3909
3910 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3911    inside strings and character constants.  */
3912 #define FOO(x) 'x'
3913 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3914
3915 int test (int i, double x);
3916 struct s1 {int (*f) (int a);};
3917 struct s2 {int (*f) (double a);};
3918 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3919 int argc;
3920 char **argv;
3921 int
3922 main ()
3923 {
3924 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3925   ;
3926   return 0;
3927 }
3928 _ACEOF
3929 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3930         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3931 do
3932   CC="$ac_save_CC $ac_arg"
3933   if ac_fn_c_try_compile "$LINENO"; then :
3934   ac_cv_prog_cc_c89=$ac_arg
3935 fi
3936 rm -f core conftest.err conftest.$ac_objext
3937   test "x$ac_cv_prog_cc_c89" != "xno" && break
3938 done
3939 rm -f conftest.$ac_ext
3940 CC=$ac_save_CC
3941
3942 fi
3943 # AC_CACHE_VAL
3944 case "x$ac_cv_prog_cc_c89" in
3945   x)
3946     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3947 $as_echo "none needed" >&6; } ;;
3948   xno)
3949     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3950 $as_echo "unsupported" >&6; } ;;
3951   *)
3952     CC="$CC $ac_cv_prog_cc_c89"
3953     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3954 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3955 esac
3956 if test "x$ac_cv_prog_cc_c89" != xno; then :
3957
3958 fi
3959
3960 ac_ext=c
3961 ac_cpp='$CPP $CPPFLAGS'
3962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3965 DEPDIR="${am__leading_dot}deps"
3966
3967 ac_config_commands="$ac_config_commands depfiles"
3968
3969
3970 am_make=${MAKE-make}
3971 cat > confinc << 'END'
3972 am__doit:
3973         @echo this is the am__doit target
3974 .PHONY: am__doit
3975 END
3976 # If we don't find an include directive, just comment out the code.
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3978 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3979 am__include="#"
3980 am__quote=
3981 _am_result=none
3982 # First try GNU make style include.
3983 echo "include confinc" > confmf
3984 # Ignore all kinds of additional output from `make'.
3985 case `$am_make -s -f confmf 2> /dev/null` in #(
3986 *the\ am__doit\ target*)
3987   am__include=include
3988   am__quote=
3989   _am_result=GNU
3990   ;;
3991 esac
3992 # Now try BSD make style include.
3993 if test "$am__include" = "#"; then
3994    echo '.include "confinc"' > confmf
3995    case `$am_make -s -f confmf 2> /dev/null` in #(
3996    *the\ am__doit\ target*)
3997      am__include=.include
3998      am__quote="\""
3999      _am_result=BSD
4000      ;;
4001    esac
4002 fi
4003
4004
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4006 $as_echo "$_am_result" >&6; }
4007 rm -f confinc confmf
4008
4009 # Check whether --enable-dependency-tracking was given.
4010 if test "${enable_dependency_tracking+set}" = set; then :
4011   enableval=$enable_dependency_tracking;
4012 fi
4013
4014 if test "x$enable_dependency_tracking" != xno; then
4015   am_depcomp="$ac_aux_dir/depcomp"
4016   AMDEPBACKSLASH='\'
4017   am__nodep='_no'
4018 fi
4019  if test "x$enable_dependency_tracking" != xno; then
4020   AMDEP_TRUE=
4021   AMDEP_FALSE='#'
4022 else
4023   AMDEP_TRUE='#'
4024   AMDEP_FALSE=
4025 fi
4026
4027
4028
4029 depcc="$CC"   am_compiler_list=
4030
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4032 $as_echo_n "checking dependency style of $depcc... " >&6; }
4033 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4034   $as_echo_n "(cached) " >&6
4035 else
4036   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4037   # We make a subdir and do the tests there.  Otherwise we can end up
4038   # making bogus files that we don't know about and never remove.  For
4039   # instance it was reported that on HP-UX the gcc test will end up
4040   # making a dummy file named `D' -- because `-MD' means `put the output
4041   # in D'.
4042   rm -rf conftest.dir
4043   mkdir conftest.dir
4044   # Copy depcomp to subdir because otherwise we won't find it if we're
4045   # using a relative directory.
4046   cp "$am_depcomp" conftest.dir
4047   cd conftest.dir
4048   # We will build objects and dependencies in a subdirectory because
4049   # it helps to detect inapplicable dependency modes.  For instance
4050   # both Tru64's cc and ICC support -MD to output dependencies as a
4051   # side effect of compilation, but ICC will put the dependencies in
4052   # the current directory while Tru64 will put them in the object
4053   # directory.
4054   mkdir sub
4055
4056   am_cv_CC_dependencies_compiler_type=none
4057   if test "$am_compiler_list" = ""; then
4058      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4059   fi
4060   am__universal=false
4061   case " $depcc " in #(
4062      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4063      esac
4064
4065   for depmode in $am_compiler_list; do
4066     # Setup a source with many dependencies, because some compilers
4067     # like to wrap large dependency lists on column 80 (with \), and
4068     # we should not choose a depcomp mode which is confused by this.
4069     #
4070     # We need to recreate these files for each test, as the compiler may
4071     # overwrite some of them when testing with obscure command lines.
4072     # This happens at least with the AIX C compiler.
4073     : > sub/conftest.c
4074     for i in 1 2 3 4 5 6; do
4075       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4076       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4077       # Solaris 8's {/usr,}/bin/sh.
4078       touch sub/conftst$i.h
4079     done
4080     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4081
4082     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4083     # mode.  It turns out that the SunPro C++ compiler does not properly
4084     # handle `-M -o', and we need to detect this.  Also, some Intel
4085     # versions had trouble with output in subdirs
4086     am__obj=sub/conftest.${OBJEXT-o}
4087     am__minus_obj="-o $am__obj"
4088     case $depmode in
4089     gcc)
4090       # This depmode causes a compiler race in universal mode.
4091       test "$am__universal" = false || continue
4092       ;;
4093     nosideeffect)
4094       # after this tag, mechanisms are not by side-effect, so they'll
4095       # only be used when explicitly requested
4096       if test "x$enable_dependency_tracking" = xyes; then
4097         continue
4098       else
4099         break
4100       fi
4101       ;;
4102     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4103       # This compiler won't grok `-c -o', but also, the minuso test has
4104       # not run yet.  These depmodes are late enough in the game, and
4105       # so weak that their functioning should not be impacted.
4106       am__obj=conftest.${OBJEXT-o}
4107       am__minus_obj=
4108       ;;
4109     none) break ;;
4110     esac
4111     if depmode=$depmode \
4112        source=sub/conftest.c object=$am__obj \
4113        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4114        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4115          >/dev/null 2>conftest.err &&
4116        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4117        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4118        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4119        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4120       # icc doesn't choke on unknown options, it will just issue warnings
4121       # or remarks (even with -Werror).  So we grep stderr for any message
4122       # that says an option was ignored or not supported.
4123       # When given -MP, icc 7.0 and 7.1 complain thusly:
4124       #   icc: Command line warning: ignoring option '-M'; no argument required
4125       # The diagnosis changed in icc 8.0:
4126       #   icc: Command line remark: option '-MP' not supported
4127       if (grep 'ignoring option' conftest.err ||
4128           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4129         am_cv_CC_dependencies_compiler_type=$depmode
4130         break
4131       fi
4132     fi
4133   done
4134
4135   cd ..
4136   rm -rf conftest.dir
4137 else
4138   am_cv_CC_dependencies_compiler_type=none
4139 fi
4140
4141 fi
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4143 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4144 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4145
4146  if
4147   test "x$enable_dependency_tracking" != xno \
4148   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4149   am__fastdepCC_TRUE=
4150   am__fastdepCC_FALSE='#'
4151 else
4152   am__fastdepCC_TRUE='#'
4153   am__fastdepCC_FALSE=
4154 fi
4155
4156
4157
4158 ac_ext=c
4159 ac_cpp='$CPP $CPPFLAGS'
4160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4164 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4165 # On Suns, sometimes $CPP names a directory.
4166 if test -n "$CPP" && test -d "$CPP"; then
4167   CPP=
4168 fi
4169 if test -z "$CPP"; then
4170   if ${ac_cv_prog_CPP+:} false; then :
4171   $as_echo_n "(cached) " >&6
4172 else
4173       # Double quotes because CPP needs to be expanded
4174     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4175     do
4176       ac_preproc_ok=false
4177 for ac_c_preproc_warn_flag in '' yes
4178 do
4179   # Use a header file that comes with gcc, so configuring glibc
4180   # with a fresh cross-compiler works.
4181   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4182   # <limits.h> exists even on freestanding compilers.
4183   # On the NeXT, cc -E runs the code through the compiler's parser,
4184   # not just through cpp. "Syntax error" is here to catch this case.
4185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h.  */
4187 #ifdef __STDC__
4188 # include <limits.h>
4189 #else
4190 # include <assert.h>
4191 #endif
4192                      Syntax error
4193 _ACEOF
4194 if ac_fn_c_try_cpp "$LINENO"; then :
4195
4196 else
4197   # Broken: fails on valid input.
4198 continue
4199 fi
4200 rm -f conftest.err conftest.i conftest.$ac_ext
4201
4202   # OK, works on sane cases.  Now check whether nonexistent headers
4203   # can be detected and how.
4204   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h.  */
4206 #include <ac_nonexistent.h>
4207 _ACEOF
4208 if ac_fn_c_try_cpp "$LINENO"; then :
4209   # Broken: success on invalid input.
4210 continue
4211 else
4212   # Passes both tests.
4213 ac_preproc_ok=:
4214 break
4215 fi
4216 rm -f conftest.err conftest.i conftest.$ac_ext
4217
4218 done
4219 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4220 rm -f conftest.i conftest.err conftest.$ac_ext
4221 if $ac_preproc_ok; then :
4222   break
4223 fi
4224
4225     done
4226     ac_cv_prog_CPP=$CPP
4227
4228 fi
4229   CPP=$ac_cv_prog_CPP
4230 else
4231   ac_cv_prog_CPP=$CPP
4232 fi
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4234 $as_echo "$CPP" >&6; }
4235 ac_preproc_ok=false
4236 for ac_c_preproc_warn_flag in '' yes
4237 do
4238   # Use a header file that comes with gcc, so configuring glibc
4239   # with a fresh cross-compiler works.
4240   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4241   # <limits.h> exists even on freestanding compilers.
4242   # On the NeXT, cc -E runs the code through the compiler's parser,
4243   # not just through cpp. "Syntax error" is here to catch this case.
4244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h.  */
4246 #ifdef __STDC__
4247 # include <limits.h>
4248 #else
4249 # include <assert.h>
4250 #endif
4251                      Syntax error
4252 _ACEOF
4253 if ac_fn_c_try_cpp "$LINENO"; then :
4254
4255 else
4256   # Broken: fails on valid input.
4257 continue
4258 fi
4259 rm -f conftest.err conftest.i conftest.$ac_ext
4260
4261   # OK, works on sane cases.  Now check whether nonexistent headers
4262   # can be detected and how.
4263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h.  */
4265 #include <ac_nonexistent.h>
4266 _ACEOF
4267 if ac_fn_c_try_cpp "$LINENO"; then :
4268   # Broken: success on invalid input.
4269 continue
4270 else
4271   # Passes both tests.
4272 ac_preproc_ok=:
4273 break
4274 fi
4275 rm -f conftest.err conftest.i conftest.$ac_ext
4276
4277 done
4278 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4279 rm -f conftest.i conftest.err conftest.$ac_ext
4280 if $ac_preproc_ok; then :
4281
4282 else
4283   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4285 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4286 See \`config.log' for more details" "$LINENO" 5; }
4287 fi
4288
4289 ac_ext=c
4290 ac_cpp='$CPP $CPPFLAGS'
4291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4294
4295
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4297 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4298 if ${ac_cv_path_GREP+:} false; then :
4299   $as_echo_n "(cached) " >&6
4300 else
4301   if test -z "$GREP"; then
4302   ac_path_GREP_found=false
4303   # Loop through the user's path and test for each of PROGNAME-LIST
4304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4306 do
4307   IFS=$as_save_IFS
4308   test -z "$as_dir" && as_dir=.
4309     for ac_prog in grep ggrep; do
4310     for ac_exec_ext in '' $ac_executable_extensions; do
4311       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4312       as_fn_executable_p "$ac_path_GREP" || continue
4313 # Check for GNU ac_path_GREP and select it if it is found.
4314   # Check for GNU $ac_path_GREP
4315 case `"$ac_path_GREP" --version 2>&1` in
4316 *GNU*)
4317   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4318 *)
4319   ac_count=0
4320   $as_echo_n 0123456789 >"conftest.in"
4321   while :
4322   do
4323     cat "conftest.in" "conftest.in" >"conftest.tmp"
4324     mv "conftest.tmp" "conftest.in"
4325     cp "conftest.in" "conftest.nl"
4326     $as_echo 'GREP' >> "conftest.nl"
4327     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4328     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4329     as_fn_arith $ac_count + 1 && ac_count=$as_val
4330     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4331       # Best one so far, save it but keep looking for a better one
4332       ac_cv_path_GREP="$ac_path_GREP"
4333       ac_path_GREP_max=$ac_count
4334     fi
4335     # 10*(2^10) chars as input seems more than enough
4336     test $ac_count -gt 10 && break
4337   done
4338   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4339 esac
4340
4341       $ac_path_GREP_found && break 3
4342     done
4343   done
4344   done
4345 IFS=$as_save_IFS
4346   if test -z "$ac_cv_path_GREP"; then
4347     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4348   fi
4349 else
4350   ac_cv_path_GREP=$GREP
4351 fi
4352
4353 fi
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4355 $as_echo "$ac_cv_path_GREP" >&6; }
4356  GREP="$ac_cv_path_GREP"
4357
4358
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4360 $as_echo_n "checking for egrep... " >&6; }
4361 if ${ac_cv_path_EGREP+:} false; then :
4362   $as_echo_n "(cached) " >&6
4363 else
4364   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4365    then ac_cv_path_EGREP="$GREP -E"
4366    else
4367      if test -z "$EGREP"; then
4368   ac_path_EGREP_found=false
4369   # Loop through the user's path and test for each of PROGNAME-LIST
4370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4372 do
4373   IFS=$as_save_IFS
4374   test -z "$as_dir" && as_dir=.
4375     for ac_prog in egrep; do
4376     for ac_exec_ext in '' $ac_executable_extensions; do
4377       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4378       as_fn_executable_p "$ac_path_EGREP" || continue
4379 # Check for GNU ac_path_EGREP and select it if it is found.
4380   # Check for GNU $ac_path_EGREP
4381 case `"$ac_path_EGREP" --version 2>&1` in
4382 *GNU*)
4383   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4384 *)
4385   ac_count=0
4386   $as_echo_n 0123456789 >"conftest.in"
4387   while :
4388   do
4389     cat "conftest.in" "conftest.in" >"conftest.tmp"
4390     mv "conftest.tmp" "conftest.in"
4391     cp "conftest.in" "conftest.nl"
4392     $as_echo 'EGREP' >> "conftest.nl"
4393     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4394     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4395     as_fn_arith $ac_count + 1 && ac_count=$as_val
4396     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4397       # Best one so far, save it but keep looking for a better one
4398       ac_cv_path_EGREP="$ac_path_EGREP"
4399       ac_path_EGREP_max=$ac_count
4400     fi
4401     # 10*(2^10) chars as input seems more than enough
4402     test $ac_count -gt 10 && break
4403   done
4404   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4405 esac
4406
4407       $ac_path_EGREP_found && break 3
4408     done
4409   done
4410   done
4411 IFS=$as_save_IFS
4412   if test -z "$ac_cv_path_EGREP"; then
4413     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4414   fi
4415 else
4416   ac_cv_path_EGREP=$EGREP
4417 fi
4418
4419    fi
4420 fi
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4422 $as_echo "$ac_cv_path_EGREP" >&6; }
4423  EGREP="$ac_cv_path_EGREP"
4424
4425
4426
4427
4428   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4429 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4430 if ${gl_cv_c_amsterdam_compiler+:} false; then :
4431   $as_echo_n "(cached) " >&6
4432 else
4433
4434       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435 /* end confdefs.h.  */
4436
4437 #ifdef __ACK__
4438 Amsterdam
4439 #endif
4440
4441 _ACEOF
4442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4443   $EGREP "Amsterdam" >/dev/null 2>&1; then :
4444   gl_cv_c_amsterdam_compiler=yes
4445 else
4446   gl_cv_c_amsterdam_compiler=no
4447 fi
4448 rm -f conftest*
4449
4450
4451 fi
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4453 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4454   if test -z "$AR"; then
4455     if test $gl_cv_c_amsterdam_compiler = yes; then
4456       AR='cc -c.a'
4457       if test -z "$ARFLAGS"; then
4458         ARFLAGS='-o'
4459       fi
4460     else
4461                   if test -n "$ac_tool_prefix"; then
4462   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4463 set dummy ${ac_tool_prefix}ar; ac_word=$2
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4465 $as_echo_n "checking for $ac_word... " >&6; }
4466 if ${ac_cv_prog_AR+:} false; then :
4467   $as_echo_n "(cached) " >&6
4468 else
4469   if test -n "$AR"; then
4470   ac_cv_prog_AR="$AR" # Let the user override the test.
4471 else
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH
4474 do
4475   IFS=$as_save_IFS
4476   test -z "$as_dir" && as_dir=.
4477     for ac_exec_ext in '' $ac_executable_extensions; do
4478   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4479     ac_cv_prog_AR="${ac_tool_prefix}ar"
4480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4481     break 2
4482   fi
4483 done
4484   done
4485 IFS=$as_save_IFS
4486
4487 fi
4488 fi
4489 AR=$ac_cv_prog_AR
4490 if test -n "$AR"; then
4491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4492 $as_echo "$AR" >&6; }
4493 else
4494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4495 $as_echo "no" >&6; }
4496 fi
4497
4498
4499 fi
4500 if test -z "$ac_cv_prog_AR"; then
4501   ac_ct_AR=$AR
4502   # Extract the first word of "ar", so it can be a program name with args.
4503 set dummy ar; ac_word=$2
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4505 $as_echo_n "checking for $ac_word... " >&6; }
4506 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4507   $as_echo_n "(cached) " >&6
4508 else
4509   if test -n "$ac_ct_AR"; then
4510   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4511 else
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH
4514 do
4515   IFS=$as_save_IFS
4516   test -z "$as_dir" && as_dir=.
4517     for ac_exec_ext in '' $ac_executable_extensions; do
4518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4519     ac_cv_prog_ac_ct_AR="ar"
4520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4521     break 2
4522   fi
4523 done
4524   done
4525 IFS=$as_save_IFS
4526
4527 fi
4528 fi
4529 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4530 if test -n "$ac_ct_AR"; then
4531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4532 $as_echo "$ac_ct_AR" >&6; }
4533 else
4534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535 $as_echo "no" >&6; }
4536 fi
4537
4538   if test "x$ac_ct_AR" = x; then
4539     AR="ar"
4540   else
4541     case $cross_compiling:$ac_tool_warned in
4542 yes:)
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4545 ac_tool_warned=yes ;;
4546 esac
4547     AR=$ac_ct_AR
4548   fi
4549 else
4550   AR="$ac_cv_prog_AR"
4551 fi
4552
4553       if test -z "$ARFLAGS"; then
4554         ARFLAGS='cru'
4555       fi
4556     fi
4557   else
4558     if test -z "$ARFLAGS"; then
4559       ARFLAGS='cru'
4560     fi
4561   fi
4562
4563
4564   if test -z "$RANLIB"; then
4565     if test $gl_cv_c_amsterdam_compiler = yes; then
4566       RANLIB=':'
4567     else
4568             if test -n "$ac_tool_prefix"; then
4569   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4570 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4572 $as_echo_n "checking for $ac_word... " >&6; }
4573 if ${ac_cv_prog_RANLIB+:} false; then :
4574   $as_echo_n "(cached) " >&6
4575 else
4576   if test -n "$RANLIB"; then
4577   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4578 else
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4581 do
4582   IFS=$as_save_IFS
4583   test -z "$as_dir" && as_dir=.
4584     for ac_exec_ext in '' $ac_executable_extensions; do
4585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4586     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4588     break 2
4589   fi
4590 done
4591   done
4592 IFS=$as_save_IFS
4593
4594 fi
4595 fi
4596 RANLIB=$ac_cv_prog_RANLIB
4597 if test -n "$RANLIB"; then
4598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4599 $as_echo "$RANLIB" >&6; }
4600 else
4601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602 $as_echo "no" >&6; }
4603 fi
4604
4605
4606 fi
4607 if test -z "$ac_cv_prog_RANLIB"; then
4608   ac_ct_RANLIB=$RANLIB
4609   # Extract the first word of "ranlib", so it can be a program name with args.
4610 set dummy ranlib; ac_word=$2
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4612 $as_echo_n "checking for $ac_word... " >&6; }
4613 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4614   $as_echo_n "(cached) " >&6
4615 else
4616   if test -n "$ac_ct_RANLIB"; then
4617   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4618 else
4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 for as_dir in $PATH
4621 do
4622   IFS=$as_save_IFS
4623   test -z "$as_dir" && as_dir=.
4624     for ac_exec_ext in '' $ac_executable_extensions; do
4625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4626     ac_cv_prog_ac_ct_RANLIB="ranlib"
4627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4628     break 2
4629   fi
4630 done
4631   done
4632 IFS=$as_save_IFS
4633
4634 fi
4635 fi
4636 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4637 if test -n "$ac_ct_RANLIB"; then
4638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4639 $as_echo "$ac_ct_RANLIB" >&6; }
4640 else
4641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642 $as_echo "no" >&6; }
4643 fi
4644
4645   if test "x$ac_ct_RANLIB" = x; then
4646     RANLIB=":"
4647   else
4648     case $cross_compiling:$ac_tool_warned in
4649 yes:)
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4652 ac_tool_warned=yes ;;
4653 esac
4654     RANLIB=$ac_ct_RANLIB
4655   fi
4656 else
4657   RANLIB="$ac_cv_prog_RANLIB"
4658 fi
4659
4660     fi
4661   fi
4662
4663
4664 # Make sure we can run config.sub.
4665 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4666   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4667
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4669 $as_echo_n "checking build system type... " >&6; }
4670 if ${ac_cv_build+:} false; then :
4671   $as_echo_n "(cached) " >&6
4672 else
4673   ac_build_alias=$build_alias
4674 test "x$ac_build_alias" = x &&
4675   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4676 test "x$ac_build_alias" = x &&
4677   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4678 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4679   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4680
4681 fi
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4683 $as_echo "$ac_cv_build" >&6; }
4684 case $ac_cv_build in
4685 *-*-*) ;;
4686 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4687 esac
4688 build=$ac_cv_build
4689 ac_save_IFS=$IFS; IFS='-'
4690 set x $ac_cv_build
4691 shift
4692 build_cpu=$1
4693 build_vendor=$2
4694 shift; shift
4695 # Remember, the first character of IFS is used to create $*,
4696 # except with old shells:
4697 build_os=$*
4698 IFS=$ac_save_IFS
4699 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4700
4701
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4703 $as_echo_n "checking host system type... " >&6; }
4704 if ${ac_cv_host+:} false; then :
4705   $as_echo_n "(cached) " >&6
4706 else
4707   if test "x$host_alias" = x; then
4708   ac_cv_host=$ac_cv_build
4709 else
4710   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4711     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4712 fi
4713
4714 fi
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4716 $as_echo "$ac_cv_host" >&6; }
4717 case $ac_cv_host in
4718 *-*-*) ;;
4719 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4720 esac
4721 host=$ac_cv_host
4722 ac_save_IFS=$IFS; IFS='-'
4723 set x $ac_cv_host
4724 shift
4725 host_cpu=$1
4726 host_vendor=$2
4727 shift; shift
4728 # Remember, the first character of IFS is used to create $*,
4729 # except with old shells:
4730 host_os=$*
4731 IFS=$ac_save_IFS
4732 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4733
4734
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4736 $as_echo_n "checking for ANSI C header files... " >&6; }
4737 if ${ac_cv_header_stdc+:} false; then :
4738   $as_echo_n "(cached) " >&6
4739 else
4740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h.  */
4742 #include <stdlib.h>
4743 #include <stdarg.h>
4744 #include <string.h>
4745 #include <float.h>
4746
4747 int
4748 main ()
4749 {
4750
4751   ;
4752   return 0;
4753 }
4754 _ACEOF
4755 if ac_fn_c_try_compile "$LINENO"; then :
4756   ac_cv_header_stdc=yes
4757 else
4758   ac_cv_header_stdc=no
4759 fi
4760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761
4762 if test $ac_cv_header_stdc = yes; then
4763   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h.  */
4766 #include <string.h>
4767
4768 _ACEOF
4769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4770   $EGREP "memchr" >/dev/null 2>&1; then :
4771
4772 else
4773   ac_cv_header_stdc=no
4774 fi
4775 rm -f conftest*
4776
4777 fi
4778
4779 if test $ac_cv_header_stdc = yes; then
4780   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h.  */
4783 #include <stdlib.h>
4784
4785 _ACEOF
4786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4787   $EGREP "free" >/dev/null 2>&1; then :
4788
4789 else
4790   ac_cv_header_stdc=no
4791 fi
4792 rm -f conftest*
4793
4794 fi
4795
4796 if test $ac_cv_header_stdc = yes; then
4797   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4798   if test "$cross_compiling" = yes; then :
4799   :
4800 else
4801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h.  */
4803 #include <ctype.h>
4804 #include <stdlib.h>
4805 #if ((' ' & 0x0FF) == 0x020)
4806 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4807 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4808 #else
4809 # define ISLOWER(c) \
4810                    (('a' <= (c) && (c) <= 'i') \
4811                      || ('j' <= (c) && (c) <= 'r') \
4812                      || ('s' <= (c) && (c) <= 'z'))
4813 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4814 #endif
4815
4816 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4817 int
4818 main ()
4819 {
4820   int i;
4821   for (i = 0; i < 256; i++)
4822     if (XOR (islower (i), ISLOWER (i))
4823         || toupper (i) != TOUPPER (i))
4824       return 2;
4825   return 0;
4826 }
4827 _ACEOF
4828 if ac_fn_c_try_run "$LINENO"; then :
4829
4830 else
4831   ac_cv_header_stdc=no
4832 fi
4833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4834   conftest.$ac_objext conftest.beam conftest.$ac_ext
4835 fi
4836
4837 fi
4838 fi
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4840 $as_echo "$ac_cv_header_stdc" >&6; }
4841 if test $ac_cv_header_stdc = yes; then
4842
4843 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4844
4845 fi
4846
4847 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4848 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4849                   inttypes.h stdint.h unistd.h
4850 do :
4851   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4852 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4853 "
4854 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4855   cat >>confdefs.h <<_ACEOF
4856 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4857 _ACEOF
4858
4859 fi
4860
4861 done
4862
4863
4864
4865
4866
4867   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4868 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4869   MINIX=yes
4870 else
4871   MINIX=
4872 fi
4873
4874
4875   if test "$MINIX" = yes; then
4876
4877 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4878
4879
4880 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4881
4882
4883 $as_echo "#define _MINIX 1" >>confdefs.h
4884
4885   fi
4886
4887         case "$host_os" in
4888     hpux*)
4889
4890 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4891
4892       ;;
4893   esac
4894
4895
4896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4897 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4898 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4899   $as_echo_n "(cached) " >&6
4900 else
4901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h.  */
4903
4904 #         define __EXTENSIONS__ 1
4905           $ac_includes_default
4906 int
4907 main ()
4908 {
4909
4910   ;
4911   return 0;
4912 }
4913 _ACEOF
4914 if ac_fn_c_try_compile "$LINENO"; then :
4915   ac_cv_safe_to_define___extensions__=yes
4916 else
4917   ac_cv_safe_to_define___extensions__=no
4918 fi
4919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4920 fi
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4922 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4923   test $ac_cv_safe_to_define___extensions__ = yes &&
4924     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4925
4926   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4927
4928   $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4929
4930   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4931
4932   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4933
4934   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945   # Code from module crypto/hmac-md5:
4946   # Code from module crypto/md5:
4947   # Code from module extensions:
4948
4949   # Code from module havelib:
4950   # Code from module lib-msvc-compat:
4951   # Code from module lib-symbol-versions:
4952   # Code from module memxor:
4953   # Code from module stdalign:
4954
4955
4956 enable_win32_dll=yes
4957
4958 case $host in
4959 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4960   if test -n "$ac_tool_prefix"; then
4961   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4962 set dummy ${ac_tool_prefix}as; ac_word=$2
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 $as_echo_n "checking for $ac_word... " >&6; }
4965 if ${ac_cv_prog_AS+:} false; then :
4966   $as_echo_n "(cached) " >&6
4967 else
4968   if test -n "$AS"; then
4969   ac_cv_prog_AS="$AS" # Let the user override the test.
4970 else
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 for as_dir in $PATH
4973 do
4974   IFS=$as_save_IFS
4975   test -z "$as_dir" && as_dir=.
4976     for ac_exec_ext in '' $ac_executable_extensions; do
4977   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4978     ac_cv_prog_AS="${ac_tool_prefix}as"
4979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4980     break 2
4981   fi
4982 done
4983   done
4984 IFS=$as_save_IFS
4985
4986 fi
4987 fi
4988 AS=$ac_cv_prog_AS
4989 if test -n "$AS"; then
4990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4991 $as_echo "$AS" >&6; }
4992 else
4993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994 $as_echo "no" >&6; }
4995 fi
4996
4997
4998 fi
4999 if test -z "$ac_cv_prog_AS"; then
5000   ac_ct_AS=$AS
5001   # Extract the first word of "as", so it can be a program name with args.
5002 set dummy as; ac_word=$2
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004 $as_echo_n "checking for $ac_word... " >&6; }
5005 if ${ac_cv_prog_ac_ct_AS+:} false; then :
5006   $as_echo_n "(cached) " >&6
5007 else
5008   if test -n "$ac_ct_AS"; then
5009   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5010 else
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5013 do
5014   IFS=$as_save_IFS
5015   test -z "$as_dir" && as_dir=.
5016     for ac_exec_ext in '' $ac_executable_extensions; do
5017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5018     ac_cv_prog_ac_ct_AS="as"
5019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5020     break 2
5021   fi
5022 done
5023   done
5024 IFS=$as_save_IFS
5025
5026 fi
5027 fi
5028 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5029 if test -n "$ac_ct_AS"; then
5030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5031 $as_echo "$ac_ct_AS" >&6; }
5032 else
5033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034 $as_echo "no" >&6; }
5035 fi
5036
5037   if test "x$ac_ct_AS" = x; then
5038     AS="false"
5039   else
5040     case $cross_compiling:$ac_tool_warned in
5041 yes:)
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5044 ac_tool_warned=yes ;;
5045 esac
5046     AS=$ac_ct_AS
5047   fi
5048 else
5049   AS="$ac_cv_prog_AS"
5050 fi
5051
5052   if test -n "$ac_tool_prefix"; then
5053   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5054 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056 $as_echo_n "checking for $ac_word... " >&6; }
5057 if ${ac_cv_prog_DLLTOOL+:} false; then :
5058   $as_echo_n "(cached) " >&6
5059 else
5060   if test -n "$DLLTOOL"; then
5061   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5062 else
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 for as_dir in $PATH
5065 do
5066   IFS=$as_save_IFS
5067   test -z "$as_dir" && as_dir=.
5068     for ac_exec_ext in '' $ac_executable_extensions; do
5069   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5070     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5072     break 2
5073   fi
5074 done
5075   done
5076 IFS=$as_save_IFS
5077
5078 fi
5079 fi
5080 DLLTOOL=$ac_cv_prog_DLLTOOL
5081 if test -n "$DLLTOOL"; then
5082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5083 $as_echo "$DLLTOOL" >&6; }
5084 else
5085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5087 fi
5088
5089
5090 fi
5091 if test -z "$ac_cv_prog_DLLTOOL"; then
5092   ac_ct_DLLTOOL=$DLLTOOL
5093   # Extract the first word of "dlltool", so it can be a program name with args.
5094 set dummy dlltool; ac_word=$2
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5096 $as_echo_n "checking for $ac_word... " >&6; }
5097 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5098   $as_echo_n "(cached) " >&6
5099 else
5100   if test -n "$ac_ct_DLLTOOL"; then
5101   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5102 else
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH
5105 do
5106   IFS=$as_save_IFS
5107   test -z "$as_dir" && as_dir=.
5108     for ac_exec_ext in '' $ac_executable_extensions; do
5109   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5110     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5112     break 2
5113   fi
5114 done
5115   done
5116 IFS=$as_save_IFS
5117
5118 fi
5119 fi
5120 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5121 if test -n "$ac_ct_DLLTOOL"; then
5122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5123 $as_echo "$ac_ct_DLLTOOL" >&6; }
5124 else
5125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126 $as_echo "no" >&6; }
5127 fi
5128
5129   if test "x$ac_ct_DLLTOOL" = x; then
5130     DLLTOOL="false"
5131   else
5132     case $cross_compiling:$ac_tool_warned in
5133 yes:)
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5136 ac_tool_warned=yes ;;
5137 esac
5138     DLLTOOL=$ac_ct_DLLTOOL
5139   fi
5140 else
5141   DLLTOOL="$ac_cv_prog_DLLTOOL"
5142 fi
5143
5144   if test -n "$ac_tool_prefix"; then
5145   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5146 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148 $as_echo_n "checking for $ac_word... " >&6; }
5149 if ${ac_cv_prog_OBJDUMP+:} false; then :
5150   $as_echo_n "(cached) " >&6
5151 else
5152   if test -n "$OBJDUMP"; then
5153   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5154 else
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH
5157 do
5158   IFS=$as_save_IFS
5159   test -z "$as_dir" && as_dir=.
5160     for ac_exec_ext in '' $ac_executable_extensions; do
5161   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5162     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164     break 2
5165   fi
5166 done
5167   done
5168 IFS=$as_save_IFS
5169
5170 fi
5171 fi
5172 OBJDUMP=$ac_cv_prog_OBJDUMP
5173 if test -n "$OBJDUMP"; then
5174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5175 $as_echo "$OBJDUMP" >&6; }
5176 else
5177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178 $as_echo "no" >&6; }
5179 fi
5180
5181
5182 fi
5183 if test -z "$ac_cv_prog_OBJDUMP"; then
5184   ac_ct_OBJDUMP=$OBJDUMP
5185   # Extract the first word of "objdump", so it can be a program name with args.
5186 set dummy objdump; ac_word=$2
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188 $as_echo_n "checking for $ac_word... " >&6; }
5189 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5190   $as_echo_n "(cached) " >&6
5191 else
5192   if test -n "$ac_ct_OBJDUMP"; then
5193   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5194 else
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 for as_dir in $PATH
5197 do
5198   IFS=$as_save_IFS
5199   test -z "$as_dir" && as_dir=.
5200     for ac_exec_ext in '' $ac_executable_extensions; do
5201   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5204     break 2
5205   fi
5206 done
5207   done
5208 IFS=$as_save_IFS
5209
5210 fi
5211 fi
5212 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5213 if test -n "$ac_ct_OBJDUMP"; then
5214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5215 $as_echo "$ac_ct_OBJDUMP" >&6; }
5216 else
5217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218 $as_echo "no" >&6; }
5219 fi
5220
5221   if test "x$ac_ct_OBJDUMP" = x; then
5222     OBJDUMP="false"
5223   else
5224     case $cross_compiling:$ac_tool_warned in
5225 yes:)
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5228 ac_tool_warned=yes ;;
5229 esac
5230     OBJDUMP=$ac_ct_OBJDUMP
5231   fi
5232 else
5233   OBJDUMP="$ac_cv_prog_OBJDUMP"
5234 fi
5235
5236   ;;
5237 esac
5238
5239 test -z "$AS" && AS=as
5240
5241
5242
5243
5244
5245 test -z "$DLLTOOL" && DLLTOOL=dlltool
5246
5247
5248
5249
5250
5251 test -z "$OBJDUMP" && OBJDUMP=objdump
5252
5253
5254
5255
5256
5257
5258
5259 case `pwd` in
5260   *\ * | *\     *)
5261     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5262 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5263 esac
5264
5265
5266
5267 macro_version='2.4.2'
5268 macro_revision='1.3337'
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282 ltmain="$ac_aux_dir/ltmain.sh"
5283
5284 # Backslashify metacharacters that are still active within
5285 # double-quoted strings.
5286 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5287
5288 # Same as above, but do not quote variable references.
5289 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5290
5291 # Sed substitution to delay expansion of an escaped shell variable in a
5292 # double_quote_subst'ed string.
5293 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5294
5295 # Sed substitution to delay expansion of an escaped single quote.
5296 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5297
5298 # Sed substitution to avoid accidental globbing in evaled expressions
5299 no_glob_subst='s/\*/\\\*/g'
5300
5301 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5302 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5303 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5304
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5306 $as_echo_n "checking how to print strings... " >&6; }
5307 # Test print first, because it will be a builtin if present.
5308 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5309    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5310   ECHO='print -r --'
5311 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5312   ECHO='printf %s\n'
5313 else
5314   # Use this function as a fallback that always works.
5315   func_fallback_echo ()
5316   {
5317     eval 'cat <<_LTECHO_EOF
5318 $1
5319 _LTECHO_EOF'
5320   }
5321   ECHO='func_fallback_echo'
5322 fi
5323
5324 # func_echo_all arg...
5325 # Invoke $ECHO with all args, space-separated.
5326 func_echo_all ()
5327 {
5328     $ECHO ""
5329 }
5330
5331 case "$ECHO" in
5332   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5333 $as_echo "printf" >&6; } ;;
5334   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5335 $as_echo "print -r" >&6; } ;;
5336   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5337 $as_echo "cat" >&6; } ;;
5338 esac
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5354 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5355 if ${ac_cv_path_SED+:} false; then :
5356   $as_echo_n "(cached) " >&6
5357 else
5358             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5359      for ac_i in 1 2 3 4 5 6 7; do
5360        ac_script="$ac_script$as_nl$ac_script"
5361      done
5362      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5363      { ac_script=; unset ac_script;}
5364      if test -z "$SED"; then
5365   ac_path_SED_found=false
5366   # Loop through the user's path and test for each of PROGNAME-LIST
5367   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 for as_dir in $PATH
5369 do
5370   IFS=$as_save_IFS
5371   test -z "$as_dir" && as_dir=.
5372     for ac_prog in sed gsed; do
5373     for ac_exec_ext in '' $ac_executable_extensions; do
5374       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5375       as_fn_executable_p "$ac_path_SED" || continue
5376 # Check for GNU ac_path_SED and select it if it is found.
5377   # Check for GNU $ac_path_SED
5378 case `"$ac_path_SED" --version 2>&1` in
5379 *GNU*)
5380   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5381 *)
5382   ac_count=0
5383   $as_echo_n 0123456789 >"conftest.in"
5384   while :
5385   do
5386     cat "conftest.in" "conftest.in" >"conftest.tmp"
5387     mv "conftest.tmp" "conftest.in"
5388     cp "conftest.in" "conftest.nl"
5389     $as_echo '' >> "conftest.nl"
5390     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5391     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5392     as_fn_arith $ac_count + 1 && ac_count=$as_val
5393     if test $ac_count -gt ${ac_path_SED_max-0}; then
5394       # Best one so far, save it but keep looking for a better one
5395       ac_cv_path_SED="$ac_path_SED"
5396       ac_path_SED_max=$ac_count
5397     fi
5398     # 10*(2^10) chars as input seems more than enough
5399     test $ac_count -gt 10 && break
5400   done
5401   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5402 esac
5403
5404       $ac_path_SED_found && break 3
5405     done
5406   done
5407   done
5408 IFS=$as_save_IFS
5409   if test -z "$ac_cv_path_SED"; then
5410     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5411   fi
5412 else
5413   ac_cv_path_SED=$SED
5414 fi
5415
5416 fi
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5418 $as_echo "$ac_cv_path_SED" >&6; }
5419  SED="$ac_cv_path_SED"
5420   rm -f conftest.sed
5421
5422 test -z "$SED" && SED=sed
5423 Xsed="$SED -e 1s/^X//"
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5436 $as_echo_n "checking for fgrep... " >&6; }
5437 if ${ac_cv_path_FGREP+:} false; then :
5438   $as_echo_n "(cached) " >&6
5439 else
5440   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5441    then ac_cv_path_FGREP="$GREP -F"
5442    else
5443      if test -z "$FGREP"; then
5444   ac_path_FGREP_found=false
5445   # Loop through the user's path and test for each of PROGNAME-LIST
5446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5448 do
5449   IFS=$as_save_IFS
5450   test -z "$as_dir" && as_dir=.
5451     for ac_prog in fgrep; do
5452     for ac_exec_ext in '' $ac_executable_extensions; do
5453       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5454       as_fn_executable_p "$ac_path_FGREP" || continue
5455 # Check for GNU ac_path_FGREP and select it if it is found.
5456   # Check for GNU $ac_path_FGREP
5457 case `"$ac_path_FGREP" --version 2>&1` in
5458 *GNU*)
5459   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5460 *)
5461   ac_count=0
5462   $as_echo_n 0123456789 >"conftest.in"
5463   while :
5464   do
5465     cat "conftest.in" "conftest.in" >"conftest.tmp"
5466     mv "conftest.tmp" "conftest.in"
5467     cp "conftest.in" "conftest.nl"
5468     $as_echo 'FGREP' >> "conftest.nl"
5469     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5470     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5471     as_fn_arith $ac_count + 1 && ac_count=$as_val
5472     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5473       # Best one so far, save it but keep looking for a better one
5474       ac_cv_path_FGREP="$ac_path_FGREP"
5475       ac_path_FGREP_max=$ac_count
5476     fi
5477     # 10*(2^10) chars as input seems more than enough
5478     test $ac_count -gt 10 && break
5479   done
5480   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5481 esac
5482
5483       $ac_path_FGREP_found && break 3
5484     done
5485   done
5486   done
5487 IFS=$as_save_IFS
5488   if test -z "$ac_cv_path_FGREP"; then
5489     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5490   fi
5491 else
5492   ac_cv_path_FGREP=$FGREP
5493 fi
5494
5495    fi
5496 fi
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5498 $as_echo "$ac_cv_path_FGREP" >&6; }
5499  FGREP="$ac_cv_path_FGREP"
5500
5501
5502 test -z "$GREP" && GREP=grep
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522 # Check whether --with-gnu-ld was given.
5523 if test "${with_gnu_ld+set}" = set; then :
5524   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5525 else
5526   with_gnu_ld=no
5527 fi
5528
5529 ac_prog=ld
5530 if test "$GCC" = yes; then
5531   # Check if gcc -print-prog-name=ld gives a path.
5532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5533 $as_echo_n "checking for ld used by $CC... " >&6; }
5534   case $host in
5535   *-*-mingw*)
5536     # gcc leaves a trailing carriage return which upsets mingw
5537     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5538   *)
5539     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5540   esac
5541   case $ac_prog in
5542     # Accept absolute paths.
5543     [\\/]* | ?:[\\/]*)
5544       re_direlt='/[^/][^/]*/\.\./'
5545       # Canonicalize the pathname of ld
5546       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5547       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5548         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5549       done
5550       test -z "$LD" && LD="$ac_prog"
5551       ;;
5552   "")
5553     # If it fails, then pretend we aren't using GCC.
5554     ac_prog=ld
5555     ;;
5556   *)
5557     # If it is relative, then search for the first ld in PATH.
5558     with_gnu_ld=unknown
5559     ;;
5560   esac
5561 elif test "$with_gnu_ld" = yes; then
5562   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5563 $as_echo_n "checking for GNU ld... " >&6; }
5564 else
5565   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5566 $as_echo_n "checking for non-GNU ld... " >&6; }
5567 fi
5568 if ${lt_cv_path_LD+:} false; then :
5569   $as_echo_n "(cached) " >&6
5570 else
5571   if test -z "$LD"; then
5572   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5573   for ac_dir in $PATH; do
5574     IFS="$lt_save_ifs"
5575     test -z "$ac_dir" && ac_dir=.
5576     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5577       lt_cv_path_LD="$ac_dir/$ac_prog"
5578       # Check to see if the program is GNU ld.  I'd rather use --version,
5579       # but apparently some variants of GNU ld only accept -v.
5580       # Break only if it was the GNU/non-GNU ld that we prefer.
5581       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5582       *GNU* | *'with BFD'*)
5583         test "$with_gnu_ld" != no && break
5584         ;;
5585       *)
5586         test "$with_gnu_ld" != yes && break
5587         ;;
5588       esac
5589     fi
5590   done
5591   IFS="$lt_save_ifs"
5592 else
5593   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5594 fi
5595 fi
5596
5597 LD="$lt_cv_path_LD"
5598 if test -n "$LD"; then
5599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5600 $as_echo "$LD" >&6; }
5601 else
5602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 $as_echo "no" >&6; }
5604 fi
5605 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5607 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5608 if ${lt_cv_prog_gnu_ld+:} false; then :
5609   $as_echo_n "(cached) " >&6
5610 else
5611   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5612 case `$LD -v 2>&1 </dev/null` in
5613 *GNU* | *'with BFD'*)
5614   lt_cv_prog_gnu_ld=yes
5615   ;;
5616 *)
5617   lt_cv_prog_gnu_ld=no
5618   ;;
5619 esac
5620 fi
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5622 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5623 with_gnu_ld=$lt_cv_prog_gnu_ld
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5634 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5635 if ${lt_cv_path_NM+:} false; then :
5636   $as_echo_n "(cached) " >&6
5637 else
5638   if test -n "$NM"; then
5639   # Let the user override the test.
5640   lt_cv_path_NM="$NM"
5641 else
5642   lt_nm_to_check="${ac_tool_prefix}nm"
5643   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5644     lt_nm_to_check="$lt_nm_to_check nm"
5645   fi
5646   for lt_tmp_nm in $lt_nm_to_check; do
5647     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5648     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5649       IFS="$lt_save_ifs"
5650       test -z "$ac_dir" && ac_dir=.
5651       tmp_nm="$ac_dir/$lt_tmp_nm"
5652       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5653         # Check to see if the nm accepts a BSD-compat flag.
5654         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5655         #   nm: unknown option "B" ignored
5656         # Tru64's nm complains that /dev/null is an invalid object file
5657         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5658         */dev/null* | *'Invalid file or object type'*)
5659           lt_cv_path_NM="$tmp_nm -B"
5660           break
5661           ;;
5662         *)
5663           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5664           */dev/null*)
5665             lt_cv_path_NM="$tmp_nm -p"
5666             break
5667             ;;
5668           *)
5669             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5670             continue # so that we can try to find one that supports BSD flags
5671             ;;
5672           esac
5673           ;;
5674         esac
5675       fi
5676     done
5677     IFS="$lt_save_ifs"
5678   done
5679   : ${lt_cv_path_NM=no}
5680 fi
5681 fi
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5683 $as_echo "$lt_cv_path_NM" >&6; }
5684 if test "$lt_cv_path_NM" != "no"; then
5685   NM="$lt_cv_path_NM"
5686 else
5687   # Didn't find any BSD compatible name lister, look for dumpbin.
5688   if test -n "$DUMPBIN"; then :
5689     # Let the user override the test.
5690   else
5691     if test -n "$ac_tool_prefix"; then
5692   for ac_prog in dumpbin "link -dump"
5693   do
5694     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5695 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5697 $as_echo_n "checking for $ac_word... " >&6; }
5698 if ${ac_cv_prog_DUMPBIN+:} false; then :
5699   $as_echo_n "(cached) " >&6
5700 else
5701   if test -n "$DUMPBIN"; then
5702   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5703 else
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH
5706 do
5707   IFS=$as_save_IFS
5708   test -z "$as_dir" && as_dir=.
5709     for ac_exec_ext in '' $ac_executable_extensions; do
5710   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5711     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5713     break 2
5714   fi
5715 done
5716   done
5717 IFS=$as_save_IFS
5718
5719 fi
5720 fi
5721 DUMPBIN=$ac_cv_prog_DUMPBIN
5722 if test -n "$DUMPBIN"; then
5723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5724 $as_echo "$DUMPBIN" >&6; }
5725 else
5726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5727 $as_echo "no" >&6; }
5728 fi
5729
5730
5731     test -n "$DUMPBIN" && break
5732   done
5733 fi
5734 if test -z "$DUMPBIN"; then
5735   ac_ct_DUMPBIN=$DUMPBIN
5736   for ac_prog in dumpbin "link -dump"
5737 do
5738   # Extract the first word of "$ac_prog", so it can be a program name with args.
5739 set dummy $ac_prog; ac_word=$2
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741 $as_echo_n "checking for $ac_word... " >&6; }
5742 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5743   $as_echo_n "(cached) " >&6
5744 else
5745   if test -n "$ac_ct_DUMPBIN"; then
5746   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5747 else
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH
5750 do
5751   IFS=$as_save_IFS
5752   test -z "$as_dir" && as_dir=.
5753     for ac_exec_ext in '' $ac_executable_extensions; do
5754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5755     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757     break 2
5758   fi
5759 done
5760   done
5761 IFS=$as_save_IFS
5762
5763 fi
5764 fi
5765 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5766 if test -n "$ac_ct_DUMPBIN"; then
5767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5768 $as_echo "$ac_ct_DUMPBIN" >&6; }
5769 else
5770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771 $as_echo "no" >&6; }
5772 fi
5773
5774
5775   test -n "$ac_ct_DUMPBIN" && break
5776 done
5777
5778   if test "x$ac_ct_DUMPBIN" = x; then
5779     DUMPBIN=":"
5780   else
5781     case $cross_compiling:$ac_tool_warned in
5782 yes:)
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5785 ac_tool_warned=yes ;;
5786 esac
5787     DUMPBIN=$ac_ct_DUMPBIN
5788   fi
5789 fi
5790
5791     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5792     *COFF*)
5793       DUMPBIN="$DUMPBIN -symbols"
5794       ;;
5795     *)
5796       DUMPBIN=:
5797       ;;
5798     esac
5799   fi
5800
5801   if test "$DUMPBIN" != ":"; then
5802     NM="$DUMPBIN"
5803   fi
5804 fi
5805 test -z "$NM" && NM=nm
5806
5807
5808
5809
5810
5811
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5813 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5814 if ${lt_cv_nm_interface+:} false; then :
5815   $as_echo_n "(cached) " >&6
5816 else
5817   lt_cv_nm_interface="BSD nm"
5818   echo "int some_variable = 0;" > conftest.$ac_ext
5819   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5820   (eval "$ac_compile" 2>conftest.err)
5821   cat conftest.err >&5
5822   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5823   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5824   cat conftest.err >&5
5825   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5826   cat conftest.out >&5
5827   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5828     lt_cv_nm_interface="MS dumpbin"
5829   fi
5830   rm -f conftest*
5831 fi
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5833 $as_echo "$lt_cv_nm_interface" >&6; }
5834
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5836 $as_echo_n "checking whether ln -s works... " >&6; }
5837 LN_S=$as_ln_s
5838 if test "$LN_S" = "ln -s"; then
5839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5840 $as_echo "yes" >&6; }
5841 else
5842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5843 $as_echo "no, using $LN_S" >&6; }
5844 fi
5845
5846 # find the maximum length of command line arguments
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5848 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5849 if ${lt_cv_sys_max_cmd_len+:} false; then :
5850   $as_echo_n "(cached) " >&6
5851 else
5852     i=0
5853   teststring="ABCD"
5854
5855   case $build_os in
5856   msdosdjgpp*)
5857     # On DJGPP, this test can blow up pretty badly due to problems in libc
5858     # (any single argument exceeding 2000 bytes causes a buffer overrun
5859     # during glob expansion).  Even if it were fixed, the result of this
5860     # check would be larger than it should be.
5861     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5862     ;;
5863
5864   gnu*)
5865     # Under GNU Hurd, this test is not required because there is
5866     # no limit to the length of command line arguments.
5867     # Libtool will interpret -1 as no limit whatsoever
5868     lt_cv_sys_max_cmd_len=-1;
5869     ;;
5870
5871   cygwin* | mingw* | cegcc*)
5872     # On Win9x/ME, this test blows up -- it succeeds, but takes
5873     # about 5 minutes as the teststring grows exponentially.
5874     # Worse, since 9x/ME are not pre-emptively multitasking,
5875     # you end up with a "frozen" computer, even though with patience
5876     # the test eventually succeeds (with a max line length of 256k).
5877     # Instead, let's just punt: use the minimum linelength reported by
5878     # all of the supported platforms: 8192 (on NT/2K/XP).
5879     lt_cv_sys_max_cmd_len=8192;
5880     ;;
5881
5882   mint*)
5883     # On MiNT this can take a long time and run out of memory.
5884     lt_cv_sys_max_cmd_len=8192;
5885     ;;
5886
5887   amigaos*)
5888     # On AmigaOS with pdksh, this test takes hours, literally.
5889     # So we just punt and use a minimum line length of 8192.
5890     lt_cv_sys_max_cmd_len=8192;
5891     ;;
5892
5893   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5894     # This has been around since 386BSD, at least.  Likely further.
5895     if test -x /sbin/sysctl; then
5896       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5897     elif test -x /usr/sbin/sysctl; then
5898       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5899     else
5900       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5901     fi
5902     # And add a safety zone
5903     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5904     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5905     ;;
5906
5907   interix*)
5908     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5909     lt_cv_sys_max_cmd_len=196608
5910     ;;
5911
5912   os2*)
5913     # The test takes a long time on OS/2.
5914     lt_cv_sys_max_cmd_len=8192
5915     ;;
5916
5917   osf*)
5918     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5919     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5920     # nice to cause kernel panics so lets avoid the loop below.
5921     # First set a reasonable default.
5922     lt_cv_sys_max_cmd_len=16384
5923     #
5924     if test -x /sbin/sysconfig; then
5925       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5926         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5927       esac
5928     fi
5929     ;;
5930   sco3.2v5*)
5931     lt_cv_sys_max_cmd_len=102400
5932     ;;
5933   sysv5* | sco5v6* | sysv4.2uw2*)
5934     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5935     if test -n "$kargmax"; then
5936       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5937     else
5938       lt_cv_sys_max_cmd_len=32768
5939     fi
5940     ;;
5941   *)
5942     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5943     if test -n "$lt_cv_sys_max_cmd_len"; then
5944       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5945       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5946     else
5947       # Make teststring a little bigger before we do anything with it.
5948       # a 1K string should be a reasonable start.
5949       for i in 1 2 3 4 5 6 7 8 ; do
5950         teststring=$teststring$teststring
5951       done
5952       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5953       # If test is not a shell built-in, we'll probably end up computing a
5954       # maximum length that is only half of the actual maximum length, but
5955       # we can't tell.
5956       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5957                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5958               test $i != 17 # 1/2 MB should be enough
5959       do
5960         i=`expr $i + 1`
5961         teststring=$teststring$teststring
5962       done
5963       # Only check the string length outside the loop.
5964       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5965       teststring=
5966       # Add a significant safety factor because C++ compilers can tack on
5967       # massive amounts of additional arguments before passing them to the
5968       # linker.  It appears as though 1/2 is a usable value.
5969       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5970     fi
5971     ;;
5972   esac
5973
5974 fi
5975
5976 if test -n $lt_cv_sys_max_cmd_len ; then
5977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5978 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5979 else
5980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5981 $as_echo "none" >&6; }
5982 fi
5983 max_cmd_len=$lt_cv_sys_max_cmd_len
5984
5985
5986
5987
5988
5989
5990 : ${CP="cp -f"}
5991 : ${MV="mv -f"}
5992 : ${RM="rm -f"}
5993
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5995 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5996 # Try some XSI features
5997 xsi_shell=no
5998 ( _lt_dummy="a/b/c"
5999   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6000       = c,a/b,b/c, \
6001     && eval 'test $(( 1 + 1 )) -eq 2 \
6002     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6003   && xsi_shell=yes
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6005 $as_echo "$xsi_shell" >&6; }
6006
6007
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6009 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6010 lt_shell_append=no
6011 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6012     >/dev/null 2>&1 \
6013   && lt_shell_append=yes
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6015 $as_echo "$lt_shell_append" >&6; }
6016
6017
6018 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6019   lt_unset=unset
6020 else
6021   lt_unset=false
6022 fi
6023
6024
6025
6026
6027
6028 # test EBCDIC or ASCII
6029 case `echo X|tr X '\101'` in
6030  A) # ASCII based system
6031     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6032   lt_SP2NL='tr \040 \012'
6033   lt_NL2SP='tr \015\012 \040\040'
6034   ;;
6035  *) # EBCDIC based system
6036   lt_SP2NL='tr \100 \n'
6037   lt_NL2SP='tr \r\n \100\100'
6038   ;;
6039 esac
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6050 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6051 if ${lt_cv_to_host_file_cmd+:} false; then :
6052   $as_echo_n "(cached) " >&6
6053 else
6054   case $host in
6055   *-*-mingw* )
6056     case $build in
6057       *-*-mingw* ) # actually msys
6058         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6059         ;;
6060       *-*-cygwin* )
6061         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6062         ;;
6063       * ) # otherwise, assume *nix
6064         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6065         ;;
6066     esac
6067     ;;
6068   *-*-cygwin* )
6069     case $build in
6070       *-*-mingw* ) # actually msys
6071         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6072         ;;
6073       *-*-cygwin* )
6074         lt_cv_to_host_file_cmd=func_convert_file_noop
6075         ;;
6076       * ) # otherwise, assume *nix
6077         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6078         ;;
6079     esac
6080     ;;
6081   * ) # unhandled hosts (and "normal" native builds)
6082     lt_cv_to_host_file_cmd=func_convert_file_noop
6083     ;;
6084 esac
6085
6086 fi
6087
6088 to_host_file_cmd=$lt_cv_to_host_file_cmd
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6090 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6091
6092
6093
6094
6095
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6097 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6098 if ${lt_cv_to_tool_file_cmd+:} false; then :
6099   $as_echo_n "(cached) " >&6
6100 else
6101   #assume ordinary cross tools, or native build.
6102 lt_cv_to_tool_file_cmd=func_convert_file_noop
6103 case $host in
6104   *-*-mingw* )
6105     case $build in
6106       *-*-mingw* ) # actually msys
6107         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6108         ;;
6109     esac
6110     ;;
6111 esac
6112
6113 fi
6114
6115 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6117 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6118
6119
6120
6121
6122
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6124 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6125 if ${lt_cv_ld_reload_flag+:} false; then :
6126   $as_echo_n "(cached) " >&6
6127 else
6128   lt_cv_ld_reload_flag='-r'
6129 fi
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6131 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6132 reload_flag=$lt_cv_ld_reload_flag
6133 case $reload_flag in
6134 "" | " "*) ;;
6135 *) reload_flag=" $reload_flag" ;;
6136 esac
6137 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6138 case $host_os in
6139   cygwin* | mingw* | pw32* | cegcc*)
6140     if test "$GCC" != yes; then
6141       reload_cmds=false
6142     fi
6143     ;;
6144   darwin*)
6145     if test "$GCC" = yes; then
6146       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6147     else
6148       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6149     fi
6150     ;;
6151 esac
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161 if test -n "$ac_tool_prefix"; then
6162   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6163 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6165 $as_echo_n "checking for $ac_word... " >&6; }
6166 if ${ac_cv_prog_OBJDUMP+:} false; then :
6167   $as_echo_n "(cached) " >&6
6168 else
6169   if test -n "$OBJDUMP"; then
6170   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6171 else
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173 for as_dir in $PATH
6174 do
6175   IFS=$as_save_IFS
6176   test -z "$as_dir" && as_dir=.
6177     for ac_exec_ext in '' $ac_executable_extensions; do
6178   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6179     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6181     break 2
6182   fi
6183 done
6184   done
6185 IFS=$as_save_IFS
6186
6187 fi
6188 fi
6189 OBJDUMP=$ac_cv_prog_OBJDUMP
6190 if test -n "$OBJDUMP"; then
6191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6192 $as_echo "$OBJDUMP" >&6; }
6193 else
6194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6195 $as_echo "no" >&6; }
6196 fi
6197
6198
6199 fi
6200 if test -z "$ac_cv_prog_OBJDUMP"; then
6201   ac_ct_OBJDUMP=$OBJDUMP
6202   # Extract the first word of "objdump", so it can be a program name with args.
6203 set dummy objdump; ac_word=$2
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6205 $as_echo_n "checking for $ac_word... " >&6; }
6206 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6207   $as_echo_n "(cached) " >&6
6208 else
6209   if test -n "$ac_ct_OBJDUMP"; then
6210   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6211 else
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 for as_dir in $PATH
6214 do
6215   IFS=$as_save_IFS
6216   test -z "$as_dir" && as_dir=.
6217     for ac_exec_ext in '' $ac_executable_extensions; do
6218   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6219     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6221     break 2
6222   fi
6223 done
6224   done
6225 IFS=$as_save_IFS
6226
6227 fi
6228 fi
6229 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6230 if test -n "$ac_ct_OBJDUMP"; then
6231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6232 $as_echo "$ac_ct_OBJDUMP" >&6; }
6233 else
6234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235 $as_echo "no" >&6; }
6236 fi
6237
6238   if test "x$ac_ct_OBJDUMP" = x; then
6239     OBJDUMP="false"
6240   else
6241     case $cross_compiling:$ac_tool_warned in
6242 yes:)
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6245 ac_tool_warned=yes ;;
6246 esac
6247     OBJDUMP=$ac_ct_OBJDUMP
6248   fi
6249 else
6250   OBJDUMP="$ac_cv_prog_OBJDUMP"
6251 fi
6252
6253 test -z "$OBJDUMP" && OBJDUMP=objdump
6254
6255
6256
6257
6258
6259
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6261 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6262 if ${lt_cv_deplibs_check_method+:} false; then :
6263   $as_echo_n "(cached) " >&6
6264 else
6265   lt_cv_file_magic_cmd='$MAGIC_CMD'
6266 lt_cv_file_magic_test_file=
6267 lt_cv_deplibs_check_method='unknown'
6268 # Need to set the preceding variable on all platforms that support
6269 # interlibrary dependencies.
6270 # 'none' -- dependencies not supported.
6271 # `unknown' -- same as none, but documents that we really don't know.
6272 # 'pass_all' -- all dependencies passed with no checks.
6273 # 'test_compile' -- check by making test program.
6274 # 'file_magic [[regex]]' -- check by looking for files in library path
6275 # which responds to the $file_magic_cmd with a given extended regex.
6276 # If you have `file' or equivalent on your system and you're not sure
6277 # whether `pass_all' will *always* work, you probably want this one.
6278
6279 case $host_os in
6280 aix[4-9]*)
6281   lt_cv_deplibs_check_method=pass_all
6282   ;;
6283
6284 beos*)
6285   lt_cv_deplibs_check_method=pass_all
6286   ;;
6287
6288 bsdi[45]*)
6289   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6290   lt_cv_file_magic_cmd='/usr/bin/file -L'
6291   lt_cv_file_magic_test_file=/shlib/libc.so
6292   ;;
6293
6294 cygwin*)
6295   # func_win32_libid is a shell function defined in ltmain.sh
6296   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6297   lt_cv_file_magic_cmd='func_win32_libid'
6298   ;;
6299
6300 mingw* | pw32*)
6301   # Base MSYS/MinGW do not provide the 'file' command needed by
6302   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6303   # unless we find 'file', for example because we are cross-compiling.
6304   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6305   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6306     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6307     lt_cv_file_magic_cmd='func_win32_libid'
6308   else
6309     # Keep this pattern in sync with the one in func_win32_libid.
6310     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6311     lt_cv_file_magic_cmd='$OBJDUMP -f'
6312   fi
6313   ;;
6314
6315 cegcc*)
6316   # use the weaker test based on 'objdump'. See mingw*.
6317   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6318   lt_cv_file_magic_cmd='$OBJDUMP -f'
6319   ;;
6320
6321 darwin* | rhapsody*)
6322   lt_cv_deplibs_check_method=pass_all
6323   ;;
6324
6325 freebsd* | dragonfly*)
6326   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6327     case $host_cpu in
6328     i*86 )
6329       # Not sure whether the presence of OpenBSD here was a mistake.
6330       # Let's accept both of them until this is cleared up.
6331       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6332       lt_cv_file_magic_cmd=/usr/bin/file
6333       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6334       ;;
6335     esac
6336   else
6337     lt_cv_deplibs_check_method=pass_all
6338   fi
6339   ;;
6340
6341 gnu*)
6342   lt_cv_deplibs_check_method=pass_all
6343   ;;
6344
6345 haiku*)
6346   lt_cv_deplibs_check_method=pass_all
6347   ;;
6348
6349 hpux10.20* | hpux11*)
6350   lt_cv_file_magic_cmd=/usr/bin/file
6351   case $host_cpu in
6352   ia64*)
6353     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6354     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6355     ;;
6356   hppa*64*)
6357     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]'
6358     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6359     ;;
6360   *)
6361     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6362     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6363     ;;
6364   esac
6365   ;;
6366
6367 interix[3-9]*)
6368   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6369   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6370   ;;
6371
6372 irix5* | irix6* | nonstopux*)
6373   case $LD in
6374   *-32|*"-32 ") libmagic=32-bit;;
6375   *-n32|*"-n32 ") libmagic=N32;;
6376   *-64|*"-64 ") libmagic=64-bit;;
6377   *) libmagic=never-match;;
6378   esac
6379   lt_cv_deplibs_check_method=pass_all
6380   ;;
6381
6382 # This must be glibc/ELF.
6383 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6384   lt_cv_deplibs_check_method=pass_all
6385   ;;
6386
6387 netbsd* | netbsdelf*-gnu)
6388   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6389     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6390   else
6391     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6392   fi
6393   ;;
6394
6395 newos6*)
6396   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6397   lt_cv_file_magic_cmd=/usr/bin/file
6398   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6399   ;;
6400
6401 *nto* | *qnx*)
6402   lt_cv_deplibs_check_method=pass_all
6403   ;;
6404
6405 openbsd*)
6406   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6407     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6408   else
6409     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6410   fi
6411   ;;
6412
6413 osf3* | osf4* | osf5*)
6414   lt_cv_deplibs_check_method=pass_all
6415   ;;
6416
6417 rdos*)
6418   lt_cv_deplibs_check_method=pass_all
6419   ;;
6420
6421 solaris*)
6422   lt_cv_deplibs_check_method=pass_all
6423   ;;
6424
6425 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6426   lt_cv_deplibs_check_method=pass_all
6427   ;;
6428
6429 sysv4 | sysv4.3*)
6430   case $host_vendor in
6431   motorola)
6432     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]'
6433     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6434     ;;
6435   ncr)
6436     lt_cv_deplibs_check_method=pass_all
6437     ;;
6438   sequent)
6439     lt_cv_file_magic_cmd='/bin/file'
6440     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6441     ;;
6442   sni)
6443     lt_cv_file_magic_cmd='/bin/file'
6444     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6445     lt_cv_file_magic_test_file=/lib/libc.so
6446     ;;
6447   siemens)
6448     lt_cv_deplibs_check_method=pass_all
6449     ;;
6450   pc)
6451     lt_cv_deplibs_check_method=pass_all
6452     ;;
6453   esac
6454   ;;
6455
6456 tpf*)
6457   lt_cv_deplibs_check_method=pass_all
6458   ;;
6459 esac
6460
6461 fi
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6463 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6464
6465 file_magic_glob=
6466 want_nocaseglob=no
6467 if test "$build" = "$host"; then
6468   case $host_os in
6469   mingw* | pw32*)
6470     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6471       want_nocaseglob=yes
6472     else
6473       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6474     fi
6475     ;;
6476   esac
6477 fi
6478
6479 file_magic_cmd=$lt_cv_file_magic_cmd
6480 deplibs_check_method=$lt_cv_deplibs_check_method
6481 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504 if test -n "$ac_tool_prefix"; then
6505   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6506 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6508 $as_echo_n "checking for $ac_word... " >&6; }
6509 if ${ac_cv_prog_DLLTOOL+:} false; then :
6510   $as_echo_n "(cached) " >&6
6511 else
6512   if test -n "$DLLTOOL"; then
6513   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6514 else
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 for as_dir in $PATH
6517 do
6518   IFS=$as_save_IFS
6519   test -z "$as_dir" && as_dir=.
6520     for ac_exec_ext in '' $ac_executable_extensions; do
6521   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6522     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6524     break 2
6525   fi
6526 done
6527   done
6528 IFS=$as_save_IFS
6529
6530 fi
6531 fi
6532 DLLTOOL=$ac_cv_prog_DLLTOOL
6533 if test -n "$DLLTOOL"; then
6534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6535 $as_echo "$DLLTOOL" >&6; }
6536 else
6537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538 $as_echo "no" >&6; }
6539 fi
6540
6541
6542 fi
6543 if test -z "$ac_cv_prog_DLLTOOL"; then
6544   ac_ct_DLLTOOL=$DLLTOOL
6545   # Extract the first word of "dlltool", so it can be a program name with args.
6546 set dummy dlltool; ac_word=$2
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6548 $as_echo_n "checking for $ac_word... " >&6; }
6549 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6550   $as_echo_n "(cached) " >&6
6551 else
6552   if test -n "$ac_ct_DLLTOOL"; then
6553   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6554 else
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 for as_dir in $PATH
6557 do
6558   IFS=$as_save_IFS
6559   test -z "$as_dir" && as_dir=.
6560     for ac_exec_ext in '' $ac_executable_extensions; do
6561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6562     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6564     break 2
6565   fi
6566 done
6567   done
6568 IFS=$as_save_IFS
6569
6570 fi
6571 fi
6572 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6573 if test -n "$ac_ct_DLLTOOL"; then
6574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6575 $as_echo "$ac_ct_DLLTOOL" >&6; }
6576 else
6577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578 $as_echo "no" >&6; }
6579 fi
6580
6581   if test "x$ac_ct_DLLTOOL" = x; then
6582     DLLTOOL="false"
6583   else
6584     case $cross_compiling:$ac_tool_warned in
6585 yes:)
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6588 ac_tool_warned=yes ;;
6589 esac
6590     DLLTOOL=$ac_ct_DLLTOOL
6591   fi
6592 else
6593   DLLTOOL="$ac_cv_prog_DLLTOOL"
6594 fi
6595
6596 test -z "$DLLTOOL" && DLLTOOL=dlltool
6597
6598
6599
6600
6601
6602
6603
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6605 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6606 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6607   $as_echo_n "(cached) " >&6
6608 else
6609   lt_cv_sharedlib_from_linklib_cmd='unknown'
6610
6611 case $host_os in
6612 cygwin* | mingw* | pw32* | cegcc*)
6613   # two different shell functions defined in ltmain.sh
6614   # decide which to use based on capabilities of $DLLTOOL
6615   case `$DLLTOOL --help 2>&1` in
6616   *--identify-strict*)
6617     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6618     ;;
6619   *)
6620     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6621     ;;
6622   esac
6623   ;;
6624 *)
6625   # fallback: assume linklib IS sharedlib
6626   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6627   ;;
6628 esac
6629
6630 fi
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6632 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6633 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6634 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6635
6636
6637
6638
6639
6640
6641
6642 if test -n "$ac_tool_prefix"; then
6643   for ac_prog in ar
6644   do
6645     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6646 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6648 $as_echo_n "checking for $ac_word... " >&6; }
6649 if ${ac_cv_prog_AR+:} false; then :
6650   $as_echo_n "(cached) " >&6
6651 else
6652   if test -n "$AR"; then
6653   ac_cv_prog_AR="$AR" # Let the user override the test.
6654 else
6655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656 for as_dir in $PATH
6657 do
6658   IFS=$as_save_IFS
6659   test -z "$as_dir" && as_dir=.
6660     for ac_exec_ext in '' $ac_executable_extensions; do
6661   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6662     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6664     break 2
6665   fi
6666 done
6667   done
6668 IFS=$as_save_IFS
6669
6670 fi
6671 fi
6672 AR=$ac_cv_prog_AR
6673 if test -n "$AR"; then
6674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6675 $as_echo "$AR" >&6; }
6676 else
6677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6678 $as_echo "no" >&6; }
6679 fi
6680
6681
6682     test -n "$AR" && break
6683   done
6684 fi
6685 if test -z "$AR"; then
6686   ac_ct_AR=$AR
6687   for ac_prog in ar
6688 do
6689   # Extract the first word of "$ac_prog", so it can be a program name with args.
6690 set dummy $ac_prog; ac_word=$2
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6692 $as_echo_n "checking for $ac_word... " >&6; }
6693 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6694   $as_echo_n "(cached) " >&6
6695 else
6696   if test -n "$ac_ct_AR"; then
6697   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6698 else
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 for as_dir in $PATH
6701 do
6702   IFS=$as_save_IFS
6703   test -z "$as_dir" && as_dir=.
6704     for ac_exec_ext in '' $ac_executable_extensions; do
6705   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6706     ac_cv_prog_ac_ct_AR="$ac_prog"
6707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6708     break 2
6709   fi
6710 done
6711   done
6712 IFS=$as_save_IFS
6713
6714 fi
6715 fi
6716 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6717 if test -n "$ac_ct_AR"; then
6718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6719 $as_echo "$ac_ct_AR" >&6; }
6720 else
6721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6722 $as_echo "no" >&6; }
6723 fi
6724
6725
6726   test -n "$ac_ct_AR" && break
6727 done
6728
6729   if test "x$ac_ct_AR" = x; then
6730     AR="false"
6731   else
6732     case $cross_compiling:$ac_tool_warned in
6733 yes:)
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6736 ac_tool_warned=yes ;;
6737 esac
6738     AR=$ac_ct_AR
6739   fi
6740 fi
6741
6742 : ${AR=ar}
6743 : ${AR_FLAGS=cru}
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6756 $as_echo_n "checking for archiver @FILE support... " >&6; }
6757 if ${lt_cv_ar_at_file+:} false; then :
6758   $as_echo_n "(cached) " >&6
6759 else
6760   lt_cv_ar_at_file=no
6761    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h.  */
6763
6764 int
6765 main ()
6766 {
6767
6768   ;
6769   return 0;
6770 }
6771 _ACEOF
6772 if ac_fn_c_try_compile "$LINENO"; then :
6773   echo conftest.$ac_objext > conftest.lst
6774       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6775       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6776   (eval $lt_ar_try) 2>&5
6777   ac_status=$?
6778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6779   test $ac_status = 0; }
6780       if test "$ac_status" -eq 0; then
6781         # Ensure the archiver fails upon bogus file names.
6782         rm -f conftest.$ac_objext libconftest.a
6783         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6784   (eval $lt_ar_try) 2>&5
6785   ac_status=$?
6786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6787   test $ac_status = 0; }
6788         if test "$ac_status" -ne 0; then
6789           lt_cv_ar_at_file=@
6790         fi
6791       fi
6792       rm -f conftest.* libconftest.a
6793
6794 fi
6795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6796
6797 fi
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6799 $as_echo "$lt_cv_ar_at_file" >&6; }
6800
6801 if test "x$lt_cv_ar_at_file" = xno; then
6802   archiver_list_spec=
6803 else
6804   archiver_list_spec=$lt_cv_ar_at_file
6805 fi
6806
6807
6808
6809
6810
6811
6812
6813 if test -n "$ac_tool_prefix"; then
6814   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6815 set dummy ${ac_tool_prefix}strip; ac_word=$2
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817 $as_echo_n "checking for $ac_word... " >&6; }
6818 if ${ac_cv_prog_STRIP+:} false; then :
6819   $as_echo_n "(cached) " >&6
6820 else
6821   if test -n "$STRIP"; then
6822   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6823 else
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6826 do
6827   IFS=$as_save_IFS
6828   test -z "$as_dir" && as_dir=.
6829     for ac_exec_ext in '' $ac_executable_extensions; do
6830   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6831     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833     break 2
6834   fi
6835 done
6836   done
6837 IFS=$as_save_IFS
6838
6839 fi
6840 fi
6841 STRIP=$ac_cv_prog_STRIP
6842 if test -n "$STRIP"; then
6843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6844 $as_echo "$STRIP" >&6; }
6845 else
6846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847 $as_echo "no" >&6; }
6848 fi
6849
6850
6851 fi
6852 if test -z "$ac_cv_prog_STRIP"; then
6853   ac_ct_STRIP=$STRIP
6854   # Extract the first word of "strip", so it can be a program name with args.
6855 set dummy strip; ac_word=$2
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857 $as_echo_n "checking for $ac_word... " >&6; }
6858 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6859   $as_echo_n "(cached) " >&6
6860 else
6861   if test -n "$ac_ct_STRIP"; then
6862   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6863 else
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 for as_dir in $PATH
6866 do
6867   IFS=$as_save_IFS
6868   test -z "$as_dir" && as_dir=.
6869     for ac_exec_ext in '' $ac_executable_extensions; do
6870   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6871     ac_cv_prog_ac_ct_STRIP="strip"
6872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6873     break 2
6874   fi
6875 done
6876   done
6877 IFS=$as_save_IFS
6878
6879 fi
6880 fi
6881 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6882 if test -n "$ac_ct_STRIP"; then
6883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6884 $as_echo "$ac_ct_STRIP" >&6; }
6885 else
6886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887 $as_echo "no" >&6; }
6888 fi
6889
6890   if test "x$ac_ct_STRIP" = x; then
6891     STRIP=":"
6892   else
6893     case $cross_compiling:$ac_tool_warned in
6894 yes:)
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6897 ac_tool_warned=yes ;;
6898 esac
6899     STRIP=$ac_ct_STRIP
6900   fi
6901 else
6902   STRIP="$ac_cv_prog_STRIP"
6903 fi
6904
6905 test -z "$STRIP" && STRIP=:
6906
6907
6908
6909
6910
6911
6912 if test -n "$ac_tool_prefix"; then
6913   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6914 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if ${ac_cv_prog_RANLIB+:} false; then :
6918   $as_echo_n "(cached) " >&6
6919 else
6920   if test -n "$RANLIB"; then
6921   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6922 else
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926   IFS=$as_save_IFS
6927   test -z "$as_dir" && as_dir=.
6928     for ac_exec_ext in '' $ac_executable_extensions; do
6929   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6930     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6932     break 2
6933   fi
6934 done
6935   done
6936 IFS=$as_save_IFS
6937
6938 fi
6939 fi
6940 RANLIB=$ac_cv_prog_RANLIB
6941 if test -n "$RANLIB"; then
6942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6943 $as_echo "$RANLIB" >&6; }
6944 else
6945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6947 fi
6948
6949
6950 fi
6951 if test -z "$ac_cv_prog_RANLIB"; then
6952   ac_ct_RANLIB=$RANLIB
6953   # Extract the first word of "ranlib", so it can be a program name with args.
6954 set dummy ranlib; ac_word=$2
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956 $as_echo_n "checking for $ac_word... " >&6; }
6957 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6958   $as_echo_n "(cached) " >&6
6959 else
6960   if test -n "$ac_ct_RANLIB"; then
6961   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6962 else
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 for as_dir in $PATH
6965 do
6966   IFS=$as_save_IFS
6967   test -z "$as_dir" && as_dir=.
6968     for ac_exec_ext in '' $ac_executable_extensions; do
6969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6970     ac_cv_prog_ac_ct_RANLIB="ranlib"
6971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6972     break 2
6973   fi
6974 done
6975   done
6976 IFS=$as_save_IFS
6977
6978 fi
6979 fi
6980 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6981 if test -n "$ac_ct_RANLIB"; then
6982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6983 $as_echo "$ac_ct_RANLIB" >&6; }
6984 else
6985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986 $as_echo "no" >&6; }
6987 fi
6988
6989   if test "x$ac_ct_RANLIB" = x; then
6990     RANLIB=":"
6991   else
6992     case $cross_compiling:$ac_tool_warned in
6993 yes:)
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6996 ac_tool_warned=yes ;;
6997 esac
6998     RANLIB=$ac_ct_RANLIB
6999   fi
7000 else
7001   RANLIB="$ac_cv_prog_RANLIB"
7002 fi
7003
7004 test -z "$RANLIB" && RANLIB=:
7005
7006
7007
7008
7009
7010
7011 # Determine commands to create old-style static archives.
7012 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7013 old_postinstall_cmds='chmod 644 $oldlib'
7014 old_postuninstall_cmds=
7015
7016 if test -n "$RANLIB"; then
7017   case $host_os in
7018   openbsd*)
7019     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7020     ;;
7021   *)
7022     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7023     ;;
7024   esac
7025   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7026 fi
7027
7028 case $host_os in
7029   darwin*)
7030     lock_old_archive_extraction=yes ;;
7031   *)
7032     lock_old_archive_extraction=no ;;
7033 esac
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073 # If no C compiler was specified, use CC.
7074 LTCC=${LTCC-"$CC"}
7075
7076 # If no C compiler flags were specified, use CFLAGS.
7077 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7078
7079 # Allow CC to be a program name with arguments.
7080 compiler=$CC
7081
7082
7083 # Check for command to grab the raw symbol name followed by C symbol from nm.
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7085 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7086 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7087   $as_echo_n "(cached) " >&6
7088 else
7089
7090 # These are sane defaults that work on at least a few old systems.
7091 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7092
7093 # Character class describing NM global symbol codes.
7094 symcode='[BCDEGRST]'
7095
7096 # Regexp to match symbols that can be accessed directly from C.
7097 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7098
7099 # Define system-specific variables.
7100 case $host_os in
7101 aix*)
7102   symcode='[BCDT]'
7103   ;;
7104 cygwin* | mingw* | pw32* | cegcc*)
7105   symcode='[ABCDGISTW]'
7106   ;;
7107 hpux*)
7108   if test "$host_cpu" = ia64; then
7109     symcode='[ABCDEGRST]'
7110   fi
7111   ;;
7112 irix* | nonstopux*)
7113   symcode='[BCDEGRST]'
7114   ;;
7115 osf*)
7116   symcode='[BCDEGQRST]'
7117   ;;
7118 solaris*)
7119   symcode='[BDRT]'
7120   ;;
7121 sco3.2v5*)
7122   symcode='[DT]'
7123   ;;
7124 sysv4.2uw2*)
7125   symcode='[DT]'
7126   ;;
7127 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7128   symcode='[ABDT]'
7129   ;;
7130 sysv4)
7131   symcode='[DFNSTU]'
7132   ;;
7133 esac
7134
7135 # If we're using GNU nm, then use its standard symbol codes.
7136 case `$NM -V 2>&1` in
7137 *GNU* | *'with BFD'*)
7138   symcode='[ABCDGIRSTW]' ;;
7139 esac
7140
7141 # Transform an extracted symbol line into a proper C declaration.
7142 # Some systems (esp. on ia64) link data and code symbols differently,
7143 # so use this general approach.
7144 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7145
7146 # Transform an extracted symbol line into symbol name and symbol address
7147 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7148 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'"
7149
7150 # Handle CRLF in mingw tool chain
7151 opt_cr=
7152 case $build_os in
7153 mingw*)
7154   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7155   ;;
7156 esac
7157
7158 # Try without a prefix underscore, then with it.
7159 for ac_symprfx in "" "_"; do
7160
7161   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7162   symxfrm="\\1 $ac_symprfx\\2 \\2"
7163
7164   # Write the raw and C identifiers.
7165   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7166     # Fake it for dumpbin and say T for any non-static function
7167     # and D for any global variable.
7168     # Also find C++ and __fastcall symbols from MSVC++,
7169     # which start with @ or ?.
7170     lt_cv_sys_global_symbol_pipe="$AWK '"\
7171 "     {last_section=section; section=\$ 3};"\
7172 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7173 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7174 "     \$ 0!~/External *\|/{next};"\
7175 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7176 "     {if(hide[section]) next};"\
7177 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7178 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7179 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7180 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7181 "     ' prfx=^$ac_symprfx"
7182   else
7183     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7184   fi
7185   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7186
7187   # Check to see that the pipe works correctly.
7188   pipe_works=no
7189
7190   rm -f conftest*
7191   cat > conftest.$ac_ext <<_LT_EOF
7192 #ifdef __cplusplus
7193 extern "C" {
7194 #endif
7195 char nm_test_var;
7196 void nm_test_func(void);
7197 void nm_test_func(void){}
7198 #ifdef __cplusplus
7199 }
7200 #endif
7201 int main(){nm_test_var='a';nm_test_func();return(0);}
7202 _LT_EOF
7203
7204   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7205   (eval $ac_compile) 2>&5
7206   ac_status=$?
7207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7208   test $ac_status = 0; }; then
7209     # Now try to grab the symbols.
7210     nlist=conftest.nm
7211     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7212   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7213   ac_status=$?
7214   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7215   test $ac_status = 0; } && test -s "$nlist"; then
7216       # Try sorting and uniquifying the output.
7217       if sort "$nlist" | uniq > "$nlist"T; then
7218         mv -f "$nlist"T "$nlist"
7219       else
7220         rm -f "$nlist"T
7221       fi
7222
7223       # Make sure that we snagged all the symbols we need.
7224       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7225         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7226           cat <<_LT_EOF > conftest.$ac_ext
7227 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7228 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7229 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7230    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7231 # define LT_DLSYM_CONST
7232 #elif defined(__osf__)
7233 /* This system does not cope well with relocations in const data.  */
7234 # define LT_DLSYM_CONST
7235 #else
7236 # define LT_DLSYM_CONST const
7237 #endif
7238
7239 #ifdef __cplusplus
7240 extern "C" {
7241 #endif
7242
7243 _LT_EOF
7244           # Now generate the symbol file.
7245           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7246
7247           cat <<_LT_EOF >> conftest.$ac_ext
7248
7249 /* The mapping between symbol names and symbols.  */
7250 LT_DLSYM_CONST struct {
7251   const char *name;
7252   void       *address;
7253 }
7254 lt__PROGRAM__LTX_preloaded_symbols[] =
7255 {
7256   { "@PROGRAM@", (void *) 0 },
7257 _LT_EOF
7258           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7259           cat <<\_LT_EOF >> conftest.$ac_ext
7260   {0, (void *) 0}
7261 };
7262
7263 /* This works around a problem in FreeBSD linker */
7264 #ifdef FREEBSD_WORKAROUND
7265 static const void *lt_preloaded_setup() {
7266   return lt__PROGRAM__LTX_preloaded_symbols;
7267 }
7268 #endif
7269
7270 #ifdef __cplusplus
7271 }
7272 #endif
7273 _LT_EOF
7274           # Now try linking the two files.
7275           mv conftest.$ac_objext conftstm.$ac_objext
7276           lt_globsym_save_LIBS=$LIBS
7277           lt_globsym_save_CFLAGS=$CFLAGS
7278           LIBS="conftstm.$ac_objext"
7279           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7280           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7281   (eval $ac_link) 2>&5
7282   ac_status=$?
7283   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7284   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7285             pipe_works=yes
7286           fi
7287           LIBS=$lt_globsym_save_LIBS
7288           CFLAGS=$lt_globsym_save_CFLAGS
7289         else
7290           echo "cannot find nm_test_func in $nlist" >&5
7291         fi
7292       else
7293         echo "cannot find nm_test_var in $nlist" >&5
7294       fi
7295     else
7296       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7297     fi
7298   else
7299     echo "$progname: failed program was:" >&5
7300     cat conftest.$ac_ext >&5
7301   fi
7302   rm -rf conftest* conftst*
7303
7304   # Do not use the global_symbol_pipe unless it works.
7305   if test "$pipe_works" = yes; then
7306     break
7307   else
7308     lt_cv_sys_global_symbol_pipe=
7309   fi
7310 done
7311
7312 fi
7313
7314 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7315   lt_cv_sys_global_symbol_to_cdecl=
7316 fi
7317 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7319 $as_echo "failed" >&6; }
7320 else
7321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7322 $as_echo "ok" >&6; }
7323 fi
7324
7325 # Response file support.
7326 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7327   nm_file_list_spec='@'
7328 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7329   nm_file_list_spec='@'
7330 fi
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7359 $as_echo_n "checking for sysroot... " >&6; }
7360
7361 # Check whether --with-sysroot was given.
7362 if test "${with_sysroot+set}" = set; then :
7363   withval=$with_sysroot;
7364 else
7365   with_sysroot=no
7366 fi
7367
7368
7369 lt_sysroot=
7370 case ${with_sysroot} in #(
7371  yes)
7372    if test "$GCC" = yes; then
7373      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7374    fi
7375    ;; #(
7376  /*)
7377    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7378    ;; #(
7379  no|'')
7380    ;; #(
7381  *)
7382    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7383 $as_echo "${with_sysroot}" >&6; }
7384    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7385    ;;
7386 esac
7387
7388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7389 $as_echo "${lt_sysroot:-no}" >&6; }
7390
7391
7392
7393
7394
7395 # Check whether --enable-libtool-lock was given.
7396 if test "${enable_libtool_lock+set}" = set; then :
7397   enableval=$enable_libtool_lock;
7398 fi
7399
7400 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7401
7402 # Some flags need to be propagated to the compiler or linker for good
7403 # libtool support.
7404 case $host in
7405 ia64-*-hpux*)
7406   # Find out which ABI we are using.
7407   echo 'int i;' > conftest.$ac_ext
7408   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7409   (eval $ac_compile) 2>&5
7410   ac_status=$?
7411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7412   test $ac_status = 0; }; then
7413     case `/usr/bin/file conftest.$ac_objext` in
7414       *ELF-32*)
7415         HPUX_IA64_MODE="32"
7416         ;;
7417       *ELF-64*)
7418         HPUX_IA64_MODE="64"
7419         ;;
7420     esac
7421   fi
7422   rm -rf conftest*
7423   ;;
7424 *-*-irix6*)
7425   # Find out which ABI we are using.
7426   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7427   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7428   (eval $ac_compile) 2>&5
7429   ac_status=$?
7430   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7431   test $ac_status = 0; }; then
7432     if test "$lt_cv_prog_gnu_ld" = yes; then
7433       case `/usr/bin/file conftest.$ac_objext` in
7434         *32-bit*)
7435           LD="${LD-ld} -melf32bsmip"
7436           ;;
7437         *N32*)
7438           LD="${LD-ld} -melf32bmipn32"
7439           ;;
7440         *64-bit*)
7441           LD="${LD-ld} -melf64bmip"
7442         ;;
7443       esac
7444     else
7445       case `/usr/bin/file conftest.$ac_objext` in
7446         *32-bit*)
7447           LD="${LD-ld} -32"
7448           ;;
7449         *N32*)
7450           LD="${LD-ld} -n32"
7451           ;;
7452         *64-bit*)
7453           LD="${LD-ld} -64"
7454           ;;
7455       esac
7456     fi
7457   fi
7458   rm -rf conftest*
7459   ;;
7460
7461 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7462 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7463   # Find out which ABI we are using.
7464   echo 'int i;' > conftest.$ac_ext
7465   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7466   (eval $ac_compile) 2>&5
7467   ac_status=$?
7468   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7469   test $ac_status = 0; }; then
7470     case `/usr/bin/file conftest.o` in
7471       *32-bit*)
7472         case $host in
7473           x86_64-*kfreebsd*-gnu)
7474             LD="${LD-ld} -m elf_i386_fbsd"
7475             ;;
7476           x86_64-*linux*)
7477             LD="${LD-ld} -m elf_i386"
7478             ;;
7479           ppc64-*linux*|powerpc64-*linux*)
7480             LD="${LD-ld} -m elf32ppclinux"
7481             ;;
7482           s390x-*linux*)
7483             LD="${LD-ld} -m elf_s390"
7484             ;;
7485           sparc64-*linux*)
7486             LD="${LD-ld} -m elf32_sparc"
7487             ;;
7488         esac
7489         ;;
7490       *64-bit*)
7491         case $host in
7492           x86_64-*kfreebsd*-gnu)
7493             LD="${LD-ld} -m elf_x86_64_fbsd"
7494             ;;
7495           x86_64-*linux*)
7496             LD="${LD-ld} -m elf_x86_64"
7497             ;;
7498           ppc*-*linux*|powerpc*-*linux*)
7499             LD="${LD-ld} -m elf64ppc"
7500             ;;
7501           s390*-*linux*|s390*-*tpf*)
7502             LD="${LD-ld} -m elf64_s390"
7503             ;;
7504           sparc*-*linux*)
7505             LD="${LD-ld} -m elf64_sparc"
7506             ;;
7507         esac
7508         ;;
7509     esac
7510   fi
7511   rm -rf conftest*
7512   ;;
7513
7514 *-*-sco3.2v5*)
7515   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7516   SAVE_CFLAGS="$CFLAGS"
7517   CFLAGS="$CFLAGS -belf"
7518   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7519 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7520 if ${lt_cv_cc_needs_belf+:} false; then :
7521   $as_echo_n "(cached) " >&6
7522 else
7523   ac_ext=c
7524 ac_cpp='$CPP $CPPFLAGS'
7525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7528
7529      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530 /* end confdefs.h.  */
7531
7532 int
7533 main ()
7534 {
7535
7536   ;
7537   return 0;
7538 }
7539 _ACEOF
7540 if ac_fn_c_try_link "$LINENO"; then :
7541   lt_cv_cc_needs_belf=yes
7542 else
7543   lt_cv_cc_needs_belf=no
7544 fi
7545 rm -f core conftest.err conftest.$ac_objext \
7546     conftest$ac_exeext conftest.$ac_ext
7547      ac_ext=c
7548 ac_cpp='$CPP $CPPFLAGS'
7549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7552
7553 fi
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7555 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7556   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7557     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7558     CFLAGS="$SAVE_CFLAGS"
7559   fi
7560   ;;
7561 *-*solaris*)
7562   # Find out which ABI we are using.
7563   echo 'int i;' > conftest.$ac_ext
7564   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7565   (eval $ac_compile) 2>&5
7566   ac_status=$?
7567   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7568   test $ac_status = 0; }; then
7569     case `/usr/bin/file conftest.o` in
7570     *64-bit*)
7571       case $lt_cv_prog_gnu_ld in
7572       yes*)
7573         case $host in
7574         i?86-*-solaris*)
7575           LD="${LD-ld} -m elf_x86_64"
7576           ;;
7577         sparc*-*-solaris*)
7578           LD="${LD-ld} -m elf64_sparc"
7579           ;;
7580         esac
7581         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7582         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7583           LD="${LD-ld}_sol2"
7584         fi
7585         ;;
7586       *)
7587         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7588           LD="${LD-ld} -64"
7589         fi
7590         ;;
7591       esac
7592       ;;
7593     esac
7594   fi
7595   rm -rf conftest*
7596   ;;
7597 esac
7598
7599 need_locks="$enable_libtool_lock"
7600
7601 if test -n "$ac_tool_prefix"; then
7602   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7603 set dummy ${ac_tool_prefix}mt; ac_word=$2
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605 $as_echo_n "checking for $ac_word... " >&6; }
7606 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7607   $as_echo_n "(cached) " >&6
7608 else
7609   if test -n "$MANIFEST_TOOL"; then
7610   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7611 else
7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 for as_dir in $PATH
7614 do
7615   IFS=$as_save_IFS
7616   test -z "$as_dir" && as_dir=.
7617     for ac_exec_ext in '' $ac_executable_extensions; do
7618   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7619     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7621     break 2
7622   fi
7623 done
7624   done
7625 IFS=$as_save_IFS
7626
7627 fi
7628 fi
7629 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7630 if test -n "$MANIFEST_TOOL"; then
7631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7632 $as_echo "$MANIFEST_TOOL" >&6; }
7633 else
7634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635 $as_echo "no" >&6; }
7636 fi
7637
7638
7639 fi
7640 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7641   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7642   # Extract the first word of "mt", so it can be a program name with args.
7643 set dummy mt; ac_word=$2
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7645 $as_echo_n "checking for $ac_word... " >&6; }
7646 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7647   $as_echo_n "(cached) " >&6
7648 else
7649   if test -n "$ac_ct_MANIFEST_TOOL"; then
7650   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7651 else
7652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653 for as_dir in $PATH
7654 do
7655   IFS=$as_save_IFS
7656   test -z "$as_dir" && as_dir=.
7657     for ac_exec_ext in '' $ac_executable_extensions; do
7658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7659     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7661     break 2
7662   fi
7663 done
7664   done
7665 IFS=$as_save_IFS
7666
7667 fi
7668 fi
7669 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7670 if test -n "$ac_ct_MANIFEST_TOOL"; then
7671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7672 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7673 else
7674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675 $as_echo "no" >&6; }
7676 fi
7677
7678   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7679     MANIFEST_TOOL=":"
7680   else
7681     case $cross_compiling:$ac_tool_warned in
7682 yes:)
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7685 ac_tool_warned=yes ;;
7686 esac
7687     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7688   fi
7689 else
7690   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7691 fi
7692
7693 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7695 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7696 if ${lt_cv_path_mainfest_tool+:} false; then :
7697   $as_echo_n "(cached) " >&6
7698 else
7699   lt_cv_path_mainfest_tool=no
7700   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7701   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7702   cat conftest.err >&5
7703   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7704     lt_cv_path_mainfest_tool=yes
7705   fi
7706   rm -f conftest*
7707 fi
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7709 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7710 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7711   MANIFEST_TOOL=:
7712 fi
7713
7714
7715
7716
7717
7718
7719   case $host_os in
7720     rhapsody* | darwin*)
7721     if test -n "$ac_tool_prefix"; then
7722   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7723 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7725 $as_echo_n "checking for $ac_word... " >&6; }
7726 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7727   $as_echo_n "(cached) " >&6
7728 else
7729   if test -n "$DSYMUTIL"; then
7730   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7731 else
7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 for as_dir in $PATH
7734 do
7735   IFS=$as_save_IFS
7736   test -z "$as_dir" && as_dir=.
7737     for ac_exec_ext in '' $ac_executable_extensions; do
7738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7739     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7741     break 2
7742   fi
7743 done
7744   done
7745 IFS=$as_save_IFS
7746
7747 fi
7748 fi
7749 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7750 if test -n "$DSYMUTIL"; then
7751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7752 $as_echo "$DSYMUTIL" >&6; }
7753 else
7754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7755 $as_echo "no" >&6; }
7756 fi
7757
7758
7759 fi
7760 if test -z "$ac_cv_prog_DSYMUTIL"; then
7761   ac_ct_DSYMUTIL=$DSYMUTIL
7762   # Extract the first word of "dsymutil", so it can be a program name with args.
7763 set dummy dsymutil; ac_word=$2
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7765 $as_echo_n "checking for $ac_word... " >&6; }
7766 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7767   $as_echo_n "(cached) " >&6
7768 else
7769   if test -n "$ac_ct_DSYMUTIL"; then
7770   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7771 else
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 for as_dir in $PATH
7774 do
7775   IFS=$as_save_IFS
7776   test -z "$as_dir" && as_dir=.
7777     for ac_exec_ext in '' $ac_executable_extensions; do
7778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7779     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7781     break 2
7782   fi
7783 done
7784   done
7785 IFS=$as_save_IFS
7786
7787 fi
7788 fi
7789 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7790 if test -n "$ac_ct_DSYMUTIL"; then
7791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7792 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7793 else
7794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 $as_echo "no" >&6; }
7796 fi
7797
7798   if test "x$ac_ct_DSYMUTIL" = x; then
7799     DSYMUTIL=":"
7800   else
7801     case $cross_compiling:$ac_tool_warned in
7802 yes:)
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7805 ac_tool_warned=yes ;;
7806 esac
7807     DSYMUTIL=$ac_ct_DSYMUTIL
7808   fi
7809 else
7810   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7811 fi
7812
7813     if test -n "$ac_tool_prefix"; then
7814   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7815 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7817 $as_echo_n "checking for $ac_word... " >&6; }
7818 if ${ac_cv_prog_NMEDIT+:} false; then :
7819   $as_echo_n "(cached) " >&6
7820 else
7821   if test -n "$NMEDIT"; then
7822   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7823 else
7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825 for as_dir in $PATH
7826 do
7827   IFS=$as_save_IFS
7828   test -z "$as_dir" && as_dir=.
7829     for ac_exec_ext in '' $ac_executable_extensions; do
7830   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7831     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7833     break 2
7834   fi
7835 done
7836   done
7837 IFS=$as_save_IFS
7838
7839 fi
7840 fi
7841 NMEDIT=$ac_cv_prog_NMEDIT
7842 if test -n "$NMEDIT"; then
7843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7844 $as_echo "$NMEDIT" >&6; }
7845 else
7846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 $as_echo "no" >&6; }
7848 fi
7849
7850
7851 fi
7852 if test -z "$ac_cv_prog_NMEDIT"; then
7853   ac_ct_NMEDIT=$NMEDIT
7854   # Extract the first word of "nmedit", so it can be a program name with args.
7855 set dummy nmedit; ac_word=$2
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7857 $as_echo_n "checking for $ac_word... " >&6; }
7858 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7859   $as_echo_n "(cached) " >&6
7860 else
7861   if test -n "$ac_ct_NMEDIT"; then
7862   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7863 else
7864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865 for as_dir in $PATH
7866 do
7867   IFS=$as_save_IFS
7868   test -z "$as_dir" && as_dir=.
7869     for ac_exec_ext in '' $ac_executable_extensions; do
7870   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7871     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7873     break 2
7874   fi
7875 done
7876   done
7877 IFS=$as_save_IFS
7878
7879 fi
7880 fi
7881 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7882 if test -n "$ac_ct_NMEDIT"; then
7883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7884 $as_echo "$ac_ct_NMEDIT" >&6; }
7885 else
7886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7887 $as_echo "no" >&6; }
7888 fi
7889
7890   if test "x$ac_ct_NMEDIT" = x; then
7891     NMEDIT=":"
7892   else
7893     case $cross_compiling:$ac_tool_warned in
7894 yes:)
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7897 ac_tool_warned=yes ;;
7898 esac
7899     NMEDIT=$ac_ct_NMEDIT
7900   fi
7901 else
7902   NMEDIT="$ac_cv_prog_NMEDIT"
7903 fi
7904
7905     if test -n "$ac_tool_prefix"; then
7906   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7907 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 $as_echo_n "checking for $ac_word... " >&6; }
7910 if ${ac_cv_prog_LIPO+:} false; then :
7911   $as_echo_n "(cached) " >&6
7912 else
7913   if test -n "$LIPO"; then
7914   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7915 else
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 for as_dir in $PATH
7918 do
7919   IFS=$as_save_IFS
7920   test -z "$as_dir" && as_dir=.
7921     for ac_exec_ext in '' $ac_executable_extensions; do
7922   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7923     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7925     break 2
7926   fi
7927 done
7928   done
7929 IFS=$as_save_IFS
7930
7931 fi
7932 fi
7933 LIPO=$ac_cv_prog_LIPO
7934 if test -n "$LIPO"; then
7935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7936 $as_echo "$LIPO" >&6; }
7937 else
7938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 $as_echo "no" >&6; }
7940 fi
7941
7942
7943 fi
7944 if test -z "$ac_cv_prog_LIPO"; then
7945   ac_ct_LIPO=$LIPO
7946   # Extract the first word of "lipo", so it can be a program name with args.
7947 set dummy lipo; ac_word=$2
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949 $as_echo_n "checking for $ac_word... " >&6; }
7950 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7951   $as_echo_n "(cached) " >&6
7952 else
7953   if test -n "$ac_ct_LIPO"; then
7954   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7955 else
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 for as_dir in $PATH
7958 do
7959   IFS=$as_save_IFS
7960   test -z "$as_dir" && as_dir=.
7961     for ac_exec_ext in '' $ac_executable_extensions; do
7962   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7963     ac_cv_prog_ac_ct_LIPO="lipo"
7964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7965     break 2
7966   fi
7967 done
7968   done
7969 IFS=$as_save_IFS
7970
7971 fi
7972 fi
7973 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7974 if test -n "$ac_ct_LIPO"; then
7975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7976 $as_echo "$ac_ct_LIPO" >&6; }
7977 else
7978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979 $as_echo "no" >&6; }
7980 fi
7981
7982   if test "x$ac_ct_LIPO" = x; then
7983     LIPO=":"
7984   else
7985     case $cross_compiling:$ac_tool_warned in
7986 yes:)
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7989 ac_tool_warned=yes ;;
7990 esac
7991     LIPO=$ac_ct_LIPO
7992   fi
7993 else
7994   LIPO="$ac_cv_prog_LIPO"
7995 fi
7996
7997     if test -n "$ac_tool_prefix"; then
7998   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7999 set dummy ${ac_tool_prefix}otool; ac_word=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; }
8002 if ${ac_cv_prog_OTOOL+:} false; then :
8003   $as_echo_n "(cached) " >&6
8004 else
8005   if test -n "$OTOOL"; then
8006   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8007 else
8008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009 for as_dir in $PATH
8010 do
8011   IFS=$as_save_IFS
8012   test -z "$as_dir" && as_dir=.
8013     for ac_exec_ext in '' $ac_executable_extensions; do
8014   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8015     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8017     break 2
8018   fi
8019 done
8020   done
8021 IFS=$as_save_IFS
8022
8023 fi
8024 fi
8025 OTOOL=$ac_cv_prog_OTOOL
8026 if test -n "$OTOOL"; then
8027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8028 $as_echo "$OTOOL" >&6; }
8029 else
8030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8032 fi
8033
8034
8035 fi
8036 if test -z "$ac_cv_prog_OTOOL"; then
8037   ac_ct_OTOOL=$OTOOL
8038   # Extract the first word of "otool", so it can be a program name with args.
8039 set dummy otool; ac_word=$2
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8041 $as_echo_n "checking for $ac_word... " >&6; }
8042 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8043   $as_echo_n "(cached) " >&6
8044 else
8045   if test -n "$ac_ct_OTOOL"; then
8046   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8047 else
8048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8049 for as_dir in $PATH
8050 do
8051   IFS=$as_save_IFS
8052   test -z "$as_dir" && as_dir=.
8053     for ac_exec_ext in '' $ac_executable_extensions; do
8054   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8055     ac_cv_prog_ac_ct_OTOOL="otool"
8056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8057     break 2
8058   fi
8059 done
8060   done
8061 IFS=$as_save_IFS
8062
8063 fi
8064 fi
8065 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8066 if test -n "$ac_ct_OTOOL"; then
8067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8068 $as_echo "$ac_ct_OTOOL" >&6; }
8069 else
8070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071 $as_echo "no" >&6; }
8072 fi
8073
8074   if test "x$ac_ct_OTOOL" = x; then
8075     OTOOL=":"
8076   else
8077     case $cross_compiling:$ac_tool_warned in
8078 yes:)
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8081 ac_tool_warned=yes ;;
8082 esac
8083     OTOOL=$ac_ct_OTOOL
8084   fi
8085 else
8086   OTOOL="$ac_cv_prog_OTOOL"
8087 fi
8088
8089     if test -n "$ac_tool_prefix"; then
8090   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8091 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8093 $as_echo_n "checking for $ac_word... " >&6; }
8094 if ${ac_cv_prog_OTOOL64+:} false; then :
8095   $as_echo_n "(cached) " >&6
8096 else
8097   if test -n "$OTOOL64"; then
8098   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8099 else
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 for as_dir in $PATH
8102 do
8103   IFS=$as_save_IFS
8104   test -z "$as_dir" && as_dir=.
8105     for ac_exec_ext in '' $ac_executable_extensions; do
8106   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8107     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8109     break 2
8110   fi
8111 done
8112   done
8113 IFS=$as_save_IFS
8114
8115 fi
8116 fi
8117 OTOOL64=$ac_cv_prog_OTOOL64
8118 if test -n "$OTOOL64"; then
8119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8120 $as_echo "$OTOOL64" >&6; }
8121 else
8122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123 $as_echo "no" >&6; }
8124 fi
8125
8126
8127 fi
8128 if test -z "$ac_cv_prog_OTOOL64"; then
8129   ac_ct_OTOOL64=$OTOOL64
8130   # Extract the first word of "otool64", so it can be a program name with args.
8131 set dummy otool64; ac_word=$2
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133 $as_echo_n "checking for $ac_word... " >&6; }
8134 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8135   $as_echo_n "(cached) " >&6
8136 else
8137   if test -n "$ac_ct_OTOOL64"; then
8138   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8139 else
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 for as_dir in $PATH
8142 do
8143   IFS=$as_save_IFS
8144   test -z "$as_dir" && as_dir=.
8145     for ac_exec_ext in '' $ac_executable_extensions; do
8146   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8147     ac_cv_prog_ac_ct_OTOOL64="otool64"
8148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149     break 2
8150   fi
8151 done
8152   done
8153 IFS=$as_save_IFS
8154
8155 fi
8156 fi
8157 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8158 if test -n "$ac_ct_OTOOL64"; then
8159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8160 $as_echo "$ac_ct_OTOOL64" >&6; }
8161 else
8162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 $as_echo "no" >&6; }
8164 fi
8165
8166   if test "x$ac_ct_OTOOL64" = x; then
8167     OTOOL64=":"
8168   else
8169     case $cross_compiling:$ac_tool_warned in
8170 yes:)
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8173 ac_tool_warned=yes ;;
8174 esac
8175     OTOOL64=$ac_ct_OTOOL64
8176   fi
8177 else
8178   OTOOL64="$ac_cv_prog_OTOOL64"
8179 fi
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8208 $as_echo_n "checking for -single_module linker flag... " >&6; }
8209 if ${lt_cv_apple_cc_single_mod+:} false; then :
8210   $as_echo_n "(cached) " >&6
8211 else
8212   lt_cv_apple_cc_single_mod=no
8213       if test -z "${LT_MULTI_MODULE}"; then
8214         # By default we will add the -single_module flag. You can override
8215         # by either setting the environment variable LT_MULTI_MODULE
8216         # non-empty at configure time, or by adding -multi_module to the
8217         # link flags.
8218         rm -rf libconftest.dylib*
8219         echo "int foo(void){return 1;}" > conftest.c
8220         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8221 -dynamiclib -Wl,-single_module conftest.c" >&5
8222         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8223           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8224         _lt_result=$?
8225         # If there is a non-empty error log, and "single_module"
8226         # appears in it, assume the flag caused a linker warning
8227         if test -s conftest.err && $GREP single_module conftest.err; then
8228           cat conftest.err >&5
8229         # Otherwise, if the output was created with a 0 exit code from
8230         # the compiler, it worked.
8231         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8232           lt_cv_apple_cc_single_mod=yes
8233         else
8234           cat conftest.err >&5
8235         fi
8236         rm -rf libconftest.dylib*
8237         rm -f conftest.*
8238       fi
8239 fi
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8241 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8242
8243     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8244 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8245 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8246   $as_echo_n "(cached) " >&6
8247 else
8248   lt_cv_ld_exported_symbols_list=no
8249       save_LDFLAGS=$LDFLAGS
8250       echo "_main" > conftest.sym
8251       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8252       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253 /* end confdefs.h.  */
8254
8255 int
8256 main ()
8257 {
8258
8259   ;
8260   return 0;
8261 }
8262 _ACEOF
8263 if ac_fn_c_try_link "$LINENO"; then :
8264   lt_cv_ld_exported_symbols_list=yes
8265 else
8266   lt_cv_ld_exported_symbols_list=no
8267 fi
8268 rm -f core conftest.err conftest.$ac_objext \
8269     conftest$ac_exeext conftest.$ac_ext
8270         LDFLAGS="$save_LDFLAGS"
8271
8272 fi
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8274 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8275
8276     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8277 $as_echo_n "checking for -force_load linker flag... " >&6; }
8278 if ${lt_cv_ld_force_load+:} false; then :
8279   $as_echo_n "(cached) " >&6
8280 else
8281   lt_cv_ld_force_load=no
8282       cat > conftest.c << _LT_EOF
8283 int forced_loaded() { return 2;}
8284 _LT_EOF
8285       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8286       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8287       echo "$AR cru libconftest.a conftest.o" >&5
8288       $AR cru libconftest.a conftest.o 2>&5
8289       echo "$RANLIB libconftest.a" >&5
8290       $RANLIB libconftest.a 2>&5
8291       cat > conftest.c << _LT_EOF
8292 int main() { return 0;}
8293 _LT_EOF
8294       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8295       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8296       _lt_result=$?
8297       if test -s conftest.err && $GREP force_load conftest.err; then
8298         cat conftest.err >&5
8299       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8300         lt_cv_ld_force_load=yes
8301       else
8302         cat conftest.err >&5
8303       fi
8304         rm -f conftest.err libconftest.a conftest conftest.c
8305         rm -rf conftest.dSYM
8306
8307 fi
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8309 $as_echo "$lt_cv_ld_force_load" >&6; }
8310     case $host_os in
8311     rhapsody* | darwin1.[012])
8312       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8313     darwin1.*)
8314       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8315     darwin*) # darwin 5.x on
8316       # if running on 10.5 or later, the deployment target defaults
8317       # to the OS version, if on x86, and 10.4, the deployment
8318       # target defaults to 10.4. Don't you love it?
8319       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8320         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8321           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8322         10.[012]*)
8323           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8324         10.*)
8325           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8326       esac
8327     ;;
8328   esac
8329     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8330       _lt_dar_single_mod='$single_module'
8331     fi
8332     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8333       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8334     else
8335       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8336     fi
8337     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8338       _lt_dsymutil='~$DSYMUTIL $lib || :'
8339     else
8340       _lt_dsymutil=
8341     fi
8342     ;;
8343   esac
8344
8345 for ac_header in dlfcn.h
8346 do :
8347   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8348 "
8349 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8350   cat >>confdefs.h <<_ACEOF
8351 #define HAVE_DLFCN_H 1
8352 _ACEOF
8353
8354 fi
8355
8356 done
8357
8358
8359
8360
8361
8362 # Set options
8363
8364
8365
8366         enable_dlopen=no
8367
8368
8369
8370             # Check whether --enable-shared was given.
8371 if test "${enable_shared+set}" = set; then :
8372   enableval=$enable_shared; p=${PACKAGE-default}
8373     case $enableval in
8374     yes) enable_shared=yes ;;
8375     no) enable_shared=no ;;
8376     *)
8377       enable_shared=no
8378       # Look at the argument we got.  We use all the common list separators.
8379       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8380       for pkg in $enableval; do
8381         IFS="$lt_save_ifs"
8382         if test "X$pkg" = "X$p"; then
8383           enable_shared=yes
8384         fi
8385       done
8386       IFS="$lt_save_ifs"
8387       ;;
8388     esac
8389 else
8390   enable_shared=yes
8391 fi
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401   # Check whether --enable-static was given.
8402 if test "${enable_static+set}" = set; then :
8403   enableval=$enable_static; p=${PACKAGE-default}
8404     case $enableval in
8405     yes) enable_static=yes ;;
8406     no) enable_static=no ;;
8407     *)
8408      enable_static=no
8409       # Look at the argument we got.  We use all the common list separators.
8410       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8411       for pkg in $enableval; do
8412         IFS="$lt_save_ifs"
8413         if test "X$pkg" = "X$p"; then
8414           enable_static=yes
8415         fi
8416       done
8417       IFS="$lt_save_ifs"
8418       ;;
8419     esac
8420 else
8421   enable_static=yes
8422 fi
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433 # Check whether --with-pic was given.
8434 if test "${with_pic+set}" = set; then :
8435   withval=$with_pic; lt_p=${PACKAGE-default}
8436     case $withval in
8437     yes|no) pic_mode=$withval ;;
8438     *)
8439       pic_mode=default
8440       # Look at the argument we got.  We use all the common list separators.
8441       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8442       for lt_pkg in $withval; do
8443         IFS="$lt_save_ifs"
8444         if test "X$lt_pkg" = "X$lt_p"; then
8445           pic_mode=yes
8446         fi
8447       done
8448       IFS="$lt_save_ifs"
8449       ;;
8450     esac
8451 else
8452   pic_mode=default
8453 fi
8454
8455
8456 test -z "$pic_mode" && pic_mode=default
8457
8458
8459
8460
8461
8462
8463
8464   # Check whether --enable-fast-install was given.
8465 if test "${enable_fast_install+set}" = set; then :
8466   enableval=$enable_fast_install; p=${PACKAGE-default}
8467     case $enableval in
8468     yes) enable_fast_install=yes ;;
8469     no) enable_fast_install=no ;;
8470     *)
8471       enable_fast_install=no
8472       # Look at the argument we got.  We use all the common list separators.
8473       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8474       for pkg in $enableval; do
8475         IFS="$lt_save_ifs"
8476         if test "X$pkg" = "X$p"; then
8477           enable_fast_install=yes
8478         fi
8479       done
8480       IFS="$lt_save_ifs"
8481       ;;
8482     esac
8483 else
8484   enable_fast_install=yes
8485 fi
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497 # This can be used to rebuild libtool when needed
8498 LIBTOOL_DEPS="$ltmain"
8499
8500 # Always use our own libtool.
8501 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532 test -z "$LN_S" && LN_S="ln -s"
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547 if test -n "${ZSH_VERSION+set}" ; then
8548    setopt NO_GLOB_SUBST
8549 fi
8550
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8552 $as_echo_n "checking for objdir... " >&6; }
8553 if ${lt_cv_objdir+:} false; then :
8554   $as_echo_n "(cached) " >&6
8555 else
8556   rm -f .libs 2>/dev/null
8557 mkdir .libs 2>/dev/null
8558 if test -d .libs; then
8559   lt_cv_objdir=.libs
8560 else
8561   # MS-DOS does not allow filenames that begin with a dot.
8562   lt_cv_objdir=_libs
8563 fi
8564 rmdir .libs 2>/dev/null
8565 fi
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8567 $as_echo "$lt_cv_objdir" >&6; }
8568 objdir=$lt_cv_objdir
8569
8570
8571
8572
8573
8574 cat >>confdefs.h <<_ACEOF
8575 #define LT_OBJDIR "$lt_cv_objdir/"
8576 _ACEOF
8577
8578
8579
8580
8581 case $host_os in
8582 aix3*)
8583   # AIX sometimes has problems with the GCC collect2 program.  For some
8584   # reason, if we set the COLLECT_NAMES environment variable, the problems
8585   # vanish in a puff of smoke.
8586   if test "X${COLLECT_NAMES+set}" != Xset; then
8587     COLLECT_NAMES=
8588     export COLLECT_NAMES
8589   fi
8590   ;;
8591 esac
8592
8593 # Global variables:
8594 ofile=libtool
8595 can_build_shared=yes
8596
8597 # All known linkers require a `.a' archive for static linking (except MSVC,
8598 # which needs '.lib').
8599 libext=a
8600
8601 with_gnu_ld="$lt_cv_prog_gnu_ld"
8602
8603 old_CC="$CC"
8604 old_CFLAGS="$CFLAGS"
8605
8606 # Set sane defaults for various variables
8607 test -z "$CC" && CC=cc
8608 test -z "$LTCC" && LTCC=$CC
8609 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8610 test -z "$LD" && LD=ld
8611 test -z "$ac_objext" && ac_objext=o
8612
8613 for cc_temp in $compiler""; do
8614   case $cc_temp in
8615     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8616     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8617     \-*) ;;
8618     *) break;;
8619   esac
8620 done
8621 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8622
8623
8624 # Only perform the check for file, if the check method requires it
8625 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8626 case $deplibs_check_method in
8627 file_magic*)
8628   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8629     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8630 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8631 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8632   $as_echo_n "(cached) " >&6
8633 else
8634   case $MAGIC_CMD in
8635 [\\/*] |  ?:[\\/]*)
8636   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8637   ;;
8638 *)
8639   lt_save_MAGIC_CMD="$MAGIC_CMD"
8640   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8641   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8642   for ac_dir in $ac_dummy; do
8643     IFS="$lt_save_ifs"
8644     test -z "$ac_dir" && ac_dir=.
8645     if test -f $ac_dir/${ac_tool_prefix}file; then
8646       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8647       if test -n "$file_magic_test_file"; then
8648         case $deplibs_check_method in
8649         "file_magic "*)
8650           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8651           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8652           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8653             $EGREP "$file_magic_regex" > /dev/null; then
8654             :
8655           else
8656             cat <<_LT_EOF 1>&2
8657
8658 *** Warning: the command libtool uses to detect shared libraries,
8659 *** $file_magic_cmd, produces output that libtool cannot recognize.
8660 *** The result is that libtool may fail to recognize shared libraries
8661 *** as such.  This will affect the creation of libtool libraries that
8662 *** depend on shared libraries, but programs linked with such libtool
8663 *** libraries will work regardless of this problem.  Nevertheless, you
8664 *** may want to report the problem to your system manager and/or to
8665 *** bug-libtool@gnu.org
8666
8667 _LT_EOF
8668           fi ;;
8669         esac
8670       fi
8671       break
8672     fi
8673   done
8674   IFS="$lt_save_ifs"
8675   MAGIC_CMD="$lt_save_MAGIC_CMD"
8676   ;;
8677 esac
8678 fi
8679
8680 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8681 if test -n "$MAGIC_CMD"; then
8682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8683 $as_echo "$MAGIC_CMD" >&6; }
8684 else
8685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8686 $as_echo "no" >&6; }
8687 fi
8688
8689
8690
8691
8692
8693 if test -z "$lt_cv_path_MAGIC_CMD"; then
8694   if test -n "$ac_tool_prefix"; then
8695     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8696 $as_echo_n "checking for file... " >&6; }
8697 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8698   $as_echo_n "(cached) " >&6
8699 else
8700   case $MAGIC_CMD in
8701 [\\/*] |  ?:[\\/]*)
8702   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8703   ;;
8704 *)
8705   lt_save_MAGIC_CMD="$MAGIC_CMD"
8706   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8707   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8708   for ac_dir in $ac_dummy; do
8709     IFS="$lt_save_ifs"
8710     test -z "$ac_dir" && ac_dir=.
8711     if test -f $ac_dir/file; then
8712       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8713       if test -n "$file_magic_test_file"; then
8714         case $deplibs_check_method in
8715         "file_magic "*)
8716           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8717           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8718           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8719             $EGREP "$file_magic_regex" > /dev/null; then
8720             :
8721           else
8722             cat <<_LT_EOF 1>&2
8723
8724 *** Warning: the command libtool uses to detect shared libraries,
8725 *** $file_magic_cmd, produces output that libtool cannot recognize.
8726 *** The result is that libtool may fail to recognize shared libraries
8727 *** as such.  This will affect the creation of libtool libraries that
8728 *** depend on shared libraries, but programs linked with such libtool
8729 *** libraries will work regardless of this problem.  Nevertheless, you
8730 *** may want to report the problem to your system manager and/or to
8731 *** bug-libtool@gnu.org
8732
8733 _LT_EOF
8734           fi ;;
8735         esac
8736       fi
8737       break
8738     fi
8739   done
8740   IFS="$lt_save_ifs"
8741   MAGIC_CMD="$lt_save_MAGIC_CMD"
8742   ;;
8743 esac
8744 fi
8745
8746 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8747 if test -n "$MAGIC_CMD"; then
8748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8749 $as_echo "$MAGIC_CMD" >&6; }
8750 else
8751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8752 $as_echo "no" >&6; }
8753 fi
8754
8755
8756   else
8757     MAGIC_CMD=:
8758   fi
8759 fi
8760
8761   fi
8762   ;;
8763 esac
8764
8765 # Use C for the default configuration in the libtool script
8766
8767 lt_save_CC="$CC"
8768 ac_ext=c
8769 ac_cpp='$CPP $CPPFLAGS'
8770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8773
8774
8775 # Source file extension for C test sources.
8776 ac_ext=c
8777
8778 # Object file extension for compiled C test sources.
8779 objext=o
8780 objext=$objext
8781
8782 # Code to be used in simple compile tests
8783 lt_simple_compile_test_code="int some_variable = 0;"
8784
8785 # Code to be used in simple link tests
8786 lt_simple_link_test_code='int main(){return(0);}'
8787
8788
8789
8790
8791
8792
8793
8794 # If no C compiler was specified, use CC.
8795 LTCC=${LTCC-"$CC"}
8796
8797 # If no C compiler flags were specified, use CFLAGS.
8798 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8799
8800 # Allow CC to be a program name with arguments.
8801 compiler=$CC
8802
8803 # Save the default compiler, since it gets overwritten when the other
8804 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8805 compiler_DEFAULT=$CC
8806
8807 # save warnings/boilerplate of simple test code
8808 ac_outfile=conftest.$ac_objext
8809 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8810 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8811 _lt_compiler_boilerplate=`cat conftest.err`
8812 $RM conftest*
8813
8814 ac_outfile=conftest.$ac_objext
8815 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8816 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8817 _lt_linker_boilerplate=`cat conftest.err`
8818 $RM -r conftest*
8819
8820
8821 ## CAVEAT EMPTOR:
8822 ## There is no encapsulation within the following macros, do not change
8823 ## the running order or otherwise move them around unless you know exactly
8824 ## what you are doing...
8825 if test -n "$compiler"; then
8826
8827 lt_prog_compiler_no_builtin_flag=
8828
8829 if test "$GCC" = yes; then
8830   case $cc_basename in
8831   nvcc*)
8832     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8833   *)
8834     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8835   esac
8836
8837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8838 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8839 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8840   $as_echo_n "(cached) " >&6
8841 else
8842   lt_cv_prog_compiler_rtti_exceptions=no
8843    ac_outfile=conftest.$ac_objext
8844    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8845    lt_compiler_flag="-fno-rtti -fno-exceptions"
8846    # Insert the option either (1) after the last *FLAGS variable, or
8847    # (2) before a word containing "conftest.", or (3) at the end.
8848    # Note that $ac_compile itself does not contain backslashes and begins
8849    # with a dollar sign (not a hyphen), so the echo should work correctly.
8850    # The option is referenced via a variable to avoid confusing sed.
8851    lt_compile=`echo "$ac_compile" | $SED \
8852    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8853    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8854    -e 's:$: $lt_compiler_flag:'`
8855    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8856    (eval "$lt_compile" 2>conftest.err)
8857    ac_status=$?
8858    cat conftest.err >&5
8859    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860    if (exit $ac_status) && test -s "$ac_outfile"; then
8861      # The compiler can only warn and ignore the option if not recognized
8862      # So say no if there are warnings other than the usual output.
8863      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8864      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8865      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8866        lt_cv_prog_compiler_rtti_exceptions=yes
8867      fi
8868    fi
8869    $RM conftest*
8870
8871 fi
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8873 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8874
8875 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8876     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8877 else
8878     :
8879 fi
8880
8881 fi
8882
8883
8884
8885
8886
8887
8888   lt_prog_compiler_wl=
8889 lt_prog_compiler_pic=
8890 lt_prog_compiler_static=
8891
8892
8893   if test "$GCC" = yes; then
8894     lt_prog_compiler_wl='-Wl,'
8895     lt_prog_compiler_static='-static'
8896
8897     case $host_os in
8898       aix*)
8899       # All AIX code is PIC.
8900       if test "$host_cpu" = ia64; then
8901         # AIX 5 now supports IA64 processor
8902         lt_prog_compiler_static='-Bstatic'
8903       fi
8904       ;;
8905
8906     amigaos*)
8907       case $host_cpu in
8908       powerpc)
8909             # see comment about AmigaOS4 .so support
8910             lt_prog_compiler_pic='-fPIC'
8911         ;;
8912       m68k)
8913             # FIXME: we need at least 68020 code to build shared libraries, but
8914             # adding the `-m68020' flag to GCC prevents building anything better,
8915             # like `-m68040'.
8916             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8917         ;;
8918       esac
8919       ;;
8920
8921     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8922       # PIC is the default for these OSes.
8923       ;;
8924
8925     mingw* | cygwin* | pw32* | os2* | cegcc*)
8926       # This hack is so that the source file can tell whether it is being
8927       # built for inclusion in a dll (and should export symbols for example).
8928       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8929       # (--disable-auto-import) libraries
8930       lt_prog_compiler_pic='-DDLL_EXPORT'
8931       ;;
8932
8933     darwin* | rhapsody*)
8934       # PIC is the default on this platform
8935       # Common symbols not allowed in MH_DYLIB files
8936       lt_prog_compiler_pic='-fno-common'
8937       ;;
8938
8939     haiku*)
8940       # PIC is the default for Haiku.
8941       # The "-static" flag exists, but is broken.
8942       lt_prog_compiler_static=
8943       ;;
8944
8945     hpux*)
8946       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8947       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8948       # sets the default TLS model and affects inlining.
8949       case $host_cpu in
8950       hppa*64*)
8951         # +Z the default
8952         ;;
8953       *)
8954         lt_prog_compiler_pic='-fPIC'
8955         ;;
8956       esac
8957       ;;
8958
8959     interix[3-9]*)
8960       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8961       # Instead, we relocate shared libraries at runtime.
8962       ;;
8963
8964     msdosdjgpp*)
8965       # Just because we use GCC doesn't mean we suddenly get shared libraries
8966       # on systems that don't support them.
8967       lt_prog_compiler_can_build_shared=no
8968       enable_shared=no
8969       ;;
8970
8971     *nto* | *qnx*)
8972       # QNX uses GNU C++, but need to define -shared option too, otherwise
8973       # it will coredump.
8974       lt_prog_compiler_pic='-fPIC -shared'
8975       ;;
8976
8977     sysv4*MP*)
8978       if test -d /usr/nec; then
8979         lt_prog_compiler_pic=-Kconform_pic
8980       fi
8981       ;;
8982
8983     *)
8984       lt_prog_compiler_pic='-fPIC'
8985       ;;
8986     esac
8987
8988     case $cc_basename in
8989     nvcc*) # Cuda Compiler Driver 2.2
8990       lt_prog_compiler_wl='-Xlinker '
8991       if test -n "$lt_prog_compiler_pic"; then
8992         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8993       fi
8994       ;;
8995     esac
8996   else
8997     # PORTME Check for flag to pass linker flags through the system compiler.
8998     case $host_os in
8999     aix*)
9000       lt_prog_compiler_wl='-Wl,'
9001       if test "$host_cpu" = ia64; then
9002         # AIX 5 now supports IA64 processor
9003         lt_prog_compiler_static='-Bstatic'
9004       else
9005         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9006       fi
9007       ;;
9008
9009     mingw* | cygwin* | pw32* | os2* | cegcc*)
9010       # This hack is so that the source file can tell whether it is being
9011       # built for inclusion in a dll (and should export symbols for example).
9012       lt_prog_compiler_pic='-DDLL_EXPORT'
9013       ;;
9014
9015     hpux9* | hpux10* | hpux11*)
9016       lt_prog_compiler_wl='-Wl,'
9017       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9018       # not for PA HP-UX.
9019       case $host_cpu in
9020       hppa*64*|ia64*)
9021         # +Z the default
9022         ;;
9023       *)
9024         lt_prog_compiler_pic='+Z'
9025         ;;
9026       esac
9027       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9028       lt_prog_compiler_static='${wl}-a ${wl}archive'
9029       ;;
9030
9031     irix5* | irix6* | nonstopux*)
9032       lt_prog_compiler_wl='-Wl,'
9033       # PIC (with -KPIC) is the default.
9034       lt_prog_compiler_static='-non_shared'
9035       ;;
9036
9037     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9038       case $cc_basename in
9039       # old Intel for x86_64 which still supported -KPIC.
9040       ecc*)
9041         lt_prog_compiler_wl='-Wl,'
9042         lt_prog_compiler_pic='-KPIC'
9043         lt_prog_compiler_static='-static'
9044         ;;
9045       # icc used to be incompatible with GCC.
9046       # ICC 10 doesn't accept -KPIC any more.
9047       icc* | ifort*)
9048         lt_prog_compiler_wl='-Wl,'
9049         lt_prog_compiler_pic='-fPIC'
9050         lt_prog_compiler_static='-static'
9051         ;;
9052       # Lahey Fortran 8.1.
9053       lf95*)
9054         lt_prog_compiler_wl='-Wl,'
9055         lt_prog_compiler_pic='--shared'
9056         lt_prog_compiler_static='--static'
9057         ;;
9058       nagfor*)
9059         # NAG Fortran compiler
9060         lt_prog_compiler_wl='-Wl,-Wl,,'
9061         lt_prog_compiler_pic='-PIC'
9062         lt_prog_compiler_static='-Bstatic'
9063         ;;
9064       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9065         # Portland Group compilers (*not* the Pentium gcc compiler,
9066         # which looks to be a dead project)
9067         lt_prog_compiler_wl='-Wl,'
9068         lt_prog_compiler_pic='-fpic'
9069         lt_prog_compiler_static='-Bstatic'
9070         ;;
9071       ccc*)
9072         lt_prog_compiler_wl='-Wl,'
9073         # All Alpha code is PIC.
9074         lt_prog_compiler_static='-non_shared'
9075         ;;
9076       xl* | bgxl* | bgf* | mpixl*)
9077         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9078         lt_prog_compiler_wl='-Wl,'
9079         lt_prog_compiler_pic='-qpic'
9080         lt_prog_compiler_static='-qstaticlink'
9081         ;;
9082       *)
9083         case `$CC -V 2>&1 | sed 5q` in
9084         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9085           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9086           lt_prog_compiler_pic='-KPIC'
9087           lt_prog_compiler_static='-Bstatic'
9088           lt_prog_compiler_wl=''
9089           ;;
9090         *Sun\ F* | *Sun*Fortran*)
9091           lt_prog_compiler_pic='-KPIC'
9092           lt_prog_compiler_static='-Bstatic'
9093           lt_prog_compiler_wl='-Qoption ld '
9094           ;;
9095         *Sun\ C*)
9096           # Sun C 5.9
9097           lt_prog_compiler_pic='-KPIC'
9098           lt_prog_compiler_static='-Bstatic'
9099           lt_prog_compiler_wl='-Wl,'
9100           ;;
9101         *Intel*\ [CF]*Compiler*)
9102           lt_prog_compiler_wl='-Wl,'
9103           lt_prog_compiler_pic='-fPIC'
9104           lt_prog_compiler_static='-static'
9105           ;;
9106         *Portland\ Group*)
9107           lt_prog_compiler_wl='-Wl,'
9108           lt_prog_compiler_pic='-fpic'
9109           lt_prog_compiler_static='-Bstatic'
9110           ;;
9111         esac
9112         ;;
9113       esac
9114       ;;
9115
9116     newsos6)
9117       lt_prog_compiler_pic='-KPIC'
9118       lt_prog_compiler_static='-Bstatic'
9119       ;;
9120
9121     *nto* | *qnx*)
9122       # QNX uses GNU C++, but need to define -shared option too, otherwise
9123       # it will coredump.
9124       lt_prog_compiler_pic='-fPIC -shared'
9125       ;;
9126
9127     osf3* | osf4* | osf5*)
9128       lt_prog_compiler_wl='-Wl,'
9129       # All OSF/1 code is PIC.
9130       lt_prog_compiler_static='-non_shared'
9131       ;;
9132
9133     rdos*)
9134       lt_prog_compiler_static='-non_shared'
9135       ;;
9136
9137     solaris*)
9138       lt_prog_compiler_pic='-KPIC'
9139       lt_prog_compiler_static='-Bstatic'
9140       case $cc_basename in
9141       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9142         lt_prog_compiler_wl='-Qoption ld ';;
9143       *)
9144         lt_prog_compiler_wl='-Wl,';;
9145       esac
9146       ;;
9147
9148     sunos4*)
9149       lt_prog_compiler_wl='-Qoption ld '
9150       lt_prog_compiler_pic='-PIC'
9151       lt_prog_compiler_static='-Bstatic'
9152       ;;
9153
9154     sysv4 | sysv4.2uw2* | sysv4.3*)
9155       lt_prog_compiler_wl='-Wl,'
9156       lt_prog_compiler_pic='-KPIC'
9157       lt_prog_compiler_static='-Bstatic'
9158       ;;
9159
9160     sysv4*MP*)
9161       if test -d /usr/nec ;then
9162         lt_prog_compiler_pic='-Kconform_pic'
9163         lt_prog_compiler_static='-Bstatic'
9164       fi
9165       ;;
9166
9167     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9168       lt_prog_compiler_wl='-Wl,'
9169       lt_prog_compiler_pic='-KPIC'
9170       lt_prog_compiler_static='-Bstatic'
9171       ;;
9172
9173     unicos*)
9174       lt_prog_compiler_wl='-Wl,'
9175       lt_prog_compiler_can_build_shared=no
9176       ;;
9177
9178     uts4*)
9179       lt_prog_compiler_pic='-pic'
9180       lt_prog_compiler_static='-Bstatic'
9181       ;;
9182
9183     *)
9184       lt_prog_compiler_can_build_shared=no
9185       ;;
9186     esac
9187   fi
9188
9189 case $host_os in
9190   # For platforms which do not support PIC, -DPIC is meaningless:
9191   *djgpp*)
9192     lt_prog_compiler_pic=
9193     ;;
9194   *)
9195     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9196     ;;
9197 esac
9198
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9200 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9201 if ${lt_cv_prog_compiler_pic+:} false; then :
9202   $as_echo_n "(cached) " >&6
9203 else
9204   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9205 fi
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9207 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9208 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9209
9210 #
9211 # Check to make sure the PIC flag actually works.
9212 #
9213 if test -n "$lt_prog_compiler_pic"; then
9214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9215 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9216 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9217   $as_echo_n "(cached) " >&6
9218 else
9219   lt_cv_prog_compiler_pic_works=no
9220    ac_outfile=conftest.$ac_objext
9221    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9222    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9223    # Insert the option either (1) after the last *FLAGS variable, or
9224    # (2) before a word containing "conftest.", or (3) at the end.
9225    # Note that $ac_compile itself does not contain backslashes and begins
9226    # with a dollar sign (not a hyphen), so the echo should work correctly.
9227    # The option is referenced via a variable to avoid confusing sed.
9228    lt_compile=`echo "$ac_compile" | $SED \
9229    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9230    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9231    -e 's:$: $lt_compiler_flag:'`
9232    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9233    (eval "$lt_compile" 2>conftest.err)
9234    ac_status=$?
9235    cat conftest.err >&5
9236    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237    if (exit $ac_status) && test -s "$ac_outfile"; then
9238      # The compiler can only warn and ignore the option if not recognized
9239      # So say no if there are warnings other than the usual output.
9240      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9241      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9242      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9243        lt_cv_prog_compiler_pic_works=yes
9244      fi
9245    fi
9246    $RM conftest*
9247
9248 fi
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9250 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9251
9252 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9253     case $lt_prog_compiler_pic in
9254      "" | " "*) ;;
9255      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9256      esac
9257 else
9258     lt_prog_compiler_pic=
9259      lt_prog_compiler_can_build_shared=no
9260 fi
9261
9262 fi
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274 #
9275 # Check to make sure the static flag actually works.
9276 #
9277 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9279 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9280 if ${lt_cv_prog_compiler_static_works+:} false; then :
9281   $as_echo_n "(cached) " >&6
9282 else
9283   lt_cv_prog_compiler_static_works=no
9284    save_LDFLAGS="$LDFLAGS"
9285    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9286    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9287    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9288      # The linker can only warn and ignore the option if not recognized
9289      # So say no if there are warnings
9290      if test -s conftest.err; then
9291        # Append any errors to the config.log.
9292        cat conftest.err 1>&5
9293        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9294        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9295        if diff conftest.exp conftest.er2 >/dev/null; then
9296          lt_cv_prog_compiler_static_works=yes
9297        fi
9298      else
9299        lt_cv_prog_compiler_static_works=yes
9300      fi
9301    fi
9302    $RM -r conftest*
9303    LDFLAGS="$save_LDFLAGS"
9304
9305 fi
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9307 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9308
9309 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9310     :
9311 else
9312     lt_prog_compiler_static=
9313 fi
9314
9315
9316
9317
9318
9319
9320
9321   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9322 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9323 if ${lt_cv_prog_compiler_c_o+:} false; then :
9324   $as_echo_n "(cached) " >&6
9325 else
9326   lt_cv_prog_compiler_c_o=no
9327    $RM -r conftest 2>/dev/null
9328    mkdir conftest
9329    cd conftest
9330    mkdir out
9331    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9332
9333    lt_compiler_flag="-o out/conftest2.$ac_objext"
9334    # Insert the option either (1) after the last *FLAGS variable, or
9335    # (2) before a word containing "conftest.", or (3) at the end.
9336    # Note that $ac_compile itself does not contain backslashes and begins
9337    # with a dollar sign (not a hyphen), so the echo should work correctly.
9338    lt_compile=`echo "$ac_compile" | $SED \
9339    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9340    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9341    -e 's:$: $lt_compiler_flag:'`
9342    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9343    (eval "$lt_compile" 2>out/conftest.err)
9344    ac_status=$?
9345    cat out/conftest.err >&5
9346    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9348    then
9349      # The compiler can only warn and ignore the option if not recognized
9350      # So say no if there are warnings
9351      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9352      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9353      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9354        lt_cv_prog_compiler_c_o=yes
9355      fi
9356    fi
9357    chmod u+w . 2>&5
9358    $RM conftest*
9359    # SGI C++ compiler will create directory out/ii_files/ for
9360    # template instantiation
9361    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9362    $RM out/* && rmdir out
9363    cd ..
9364    $RM -r conftest
9365    $RM conftest*
9366
9367 fi
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9369 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9370
9371
9372
9373
9374
9375
9376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9377 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9378 if ${lt_cv_prog_compiler_c_o+:} false; then :
9379   $as_echo_n "(cached) " >&6
9380 else
9381   lt_cv_prog_compiler_c_o=no
9382    $RM -r conftest 2>/dev/null
9383    mkdir conftest
9384    cd conftest
9385    mkdir out
9386    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9387
9388    lt_compiler_flag="-o out/conftest2.$ac_objext"
9389    # Insert the option either (1) after the last *FLAGS variable, or
9390    # (2) before a word containing "conftest.", or (3) at the end.
9391    # Note that $ac_compile itself does not contain backslashes and begins
9392    # with a dollar sign (not a hyphen), so the echo should work correctly.
9393    lt_compile=`echo "$ac_compile" | $SED \
9394    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9395    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9396    -e 's:$: $lt_compiler_flag:'`
9397    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9398    (eval "$lt_compile" 2>out/conftest.err)
9399    ac_status=$?
9400    cat out/conftest.err >&5
9401    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9403    then
9404      # The compiler can only warn and ignore the option if not recognized
9405      # So say no if there are warnings
9406      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9407      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9408      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9409        lt_cv_prog_compiler_c_o=yes
9410      fi
9411    fi
9412    chmod u+w . 2>&5
9413    $RM conftest*
9414    # SGI C++ compiler will create directory out/ii_files/ for
9415    # template instantiation
9416    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9417    $RM out/* && rmdir out
9418    cd ..
9419    $RM -r conftest
9420    $RM conftest*
9421
9422 fi
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9424 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9425
9426
9427
9428
9429 hard_links="nottested"
9430 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9431   # do not overwrite the value of need_locks provided by the user
9432   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9433 $as_echo_n "checking if we can lock with hard links... " >&6; }
9434   hard_links=yes
9435   $RM conftest*
9436   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9437   touch conftest.a
9438   ln conftest.a conftest.b 2>&5 || hard_links=no
9439   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9441 $as_echo "$hard_links" >&6; }
9442   if test "$hard_links" = no; then
9443     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9444 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9445     need_locks=warn
9446   fi
9447 else
9448   need_locks=no
9449 fi
9450
9451
9452
9453
9454
9455
9456   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9457 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9458
9459   runpath_var=
9460   allow_undefined_flag=
9461   always_export_symbols=no
9462   archive_cmds=
9463   archive_expsym_cmds=
9464   compiler_needs_object=no
9465   enable_shared_with_static_runtimes=no
9466   export_dynamic_flag_spec=
9467   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9468   hardcode_automatic=no
9469   hardcode_direct=no
9470   hardcode_direct_absolute=no
9471   hardcode_libdir_flag_spec=
9472   hardcode_libdir_separator=
9473   hardcode_minus_L=no
9474   hardcode_shlibpath_var=unsupported
9475   inherit_rpath=no
9476   link_all_deplibs=unknown
9477   module_cmds=
9478   module_expsym_cmds=
9479   old_archive_from_new_cmds=
9480   old_archive_from_expsyms_cmds=
9481   thread_safe_flag_spec=
9482   whole_archive_flag_spec=
9483   # include_expsyms should be a list of space-separated symbols to be *always*
9484   # included in the symbol list
9485   include_expsyms=
9486   # exclude_expsyms can be an extended regexp of symbols to exclude
9487   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9488   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9489   # as well as any symbol that contains `d'.
9490   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9491   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9492   # platforms (ab)use it in PIC code, but their linkers get confused if
9493   # the symbol is explicitly referenced.  Since portable code cannot
9494   # rely on this symbol name, it's probably fine to never include it in
9495   # preloaded symbol tables.
9496   # Exclude shared library initialization/finalization symbols.
9497   extract_expsyms_cmds=
9498
9499   case $host_os in
9500   cygwin* | mingw* | pw32* | cegcc*)
9501     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9502     # When not using gcc, we currently assume that we are using
9503     # Microsoft Visual C++.
9504     if test "$GCC" != yes; then
9505       with_gnu_ld=no
9506     fi
9507     ;;
9508   interix*)
9509     # we just hope/assume this is gcc and not c89 (= MSVC++)
9510     with_gnu_ld=yes
9511     ;;
9512   openbsd*)
9513     with_gnu_ld=no
9514     ;;
9515   linux* | k*bsd*-gnu | gnu*)
9516     link_all_deplibs=no
9517     ;;
9518   esac
9519
9520   ld_shlibs=yes
9521
9522   # On some targets, GNU ld is compatible enough with the native linker
9523   # that we're better off using the native interface for both.
9524   lt_use_gnu_ld_interface=no
9525   if test "$with_gnu_ld" = yes; then
9526     case $host_os in
9527       aix*)
9528         # The AIX port of GNU ld has always aspired to compatibility
9529         # with the native linker.  However, as the warning in the GNU ld
9530         # block says, versions before 2.19.5* couldn't really create working
9531         # shared libraries, regardless of the interface used.
9532         case `$LD -v 2>&1` in
9533           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9534           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9535           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9536           *)
9537             lt_use_gnu_ld_interface=yes
9538             ;;
9539         esac
9540         ;;
9541       *)
9542         lt_use_gnu_ld_interface=yes
9543         ;;
9544     esac
9545   fi
9546
9547   if test "$lt_use_gnu_ld_interface" = yes; then
9548     # If archive_cmds runs LD, not CC, wlarc should be empty
9549     wlarc='${wl}'
9550
9551     # Set some defaults for GNU ld with shared library support. These
9552     # are reset later if shared libraries are not supported. Putting them
9553     # here allows them to be overridden if necessary.
9554     runpath_var=LD_RUN_PATH
9555     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9556     export_dynamic_flag_spec='${wl}--export-dynamic'
9557     # ancient GNU ld didn't support --whole-archive et. al.
9558     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9559       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9560     else
9561       whole_archive_flag_spec=
9562     fi
9563     supports_anon_versioning=no
9564     case `$LD -v 2>&1` in
9565       *GNU\ gold*) supports_anon_versioning=yes ;;
9566       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9567       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9568       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9569       *\ 2.11.*) ;; # other 2.11 versions
9570       *) supports_anon_versioning=yes ;;
9571     esac
9572
9573     # See if GNU ld supports shared libraries.
9574     case $host_os in
9575     aix[3-9]*)
9576       # On AIX/PPC, the GNU linker is very broken
9577       if test "$host_cpu" != ia64; then
9578         ld_shlibs=no
9579         cat <<_LT_EOF 1>&2
9580
9581 *** Warning: the GNU linker, at least up to release 2.19, is reported
9582 *** to be unable to reliably create shared libraries on AIX.
9583 *** Therefore, libtool is disabling shared libraries support.  If you
9584 *** really care for shared libraries, you may want to install binutils
9585 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9586 *** You will then need to restart the configuration process.
9587
9588 _LT_EOF
9589       fi
9590       ;;
9591
9592     amigaos*)
9593       case $host_cpu in
9594       powerpc)
9595             # see comment about AmigaOS4 .so support
9596             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9597             archive_expsym_cmds=''
9598         ;;
9599       m68k)
9600             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)'
9601             hardcode_libdir_flag_spec='-L$libdir'
9602             hardcode_minus_L=yes
9603         ;;
9604       esac
9605       ;;
9606
9607     beos*)
9608       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9609         allow_undefined_flag=unsupported
9610         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9611         # support --undefined.  This deserves some investigation.  FIXME
9612         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9613       else
9614         ld_shlibs=no
9615       fi
9616       ;;
9617
9618     cygwin* | mingw* | pw32* | cegcc*)
9619       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9620       # as there is no search path for DLLs.
9621       hardcode_libdir_flag_spec='-L$libdir'
9622       export_dynamic_flag_spec='${wl}--export-all-symbols'
9623       allow_undefined_flag=unsupported
9624       always_export_symbols=no
9625       enable_shared_with_static_runtimes=yes
9626       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'
9627       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9628
9629       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9630         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9631         # If the export-symbols file already is a .def file (1st line
9632         # is EXPORTS), use it as is; otherwise, prepend...
9633         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9634           cp $export_symbols $output_objdir/$soname.def;
9635         else
9636           echo EXPORTS > $output_objdir/$soname.def;
9637           cat $export_symbols >> $output_objdir/$soname.def;
9638         fi~
9639         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9640       else
9641         ld_shlibs=no
9642       fi
9643       ;;
9644
9645     haiku*)
9646       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9647       link_all_deplibs=yes
9648       ;;
9649
9650     interix[3-9]*)
9651       hardcode_direct=no
9652       hardcode_shlibpath_var=no
9653       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9654       export_dynamic_flag_spec='${wl}-E'
9655       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9656       # Instead, shared libraries are loaded at an image base (0x10000000 by
9657       # default) and relocated if they conflict, which is a slow very memory
9658       # consuming and fragmenting process.  To avoid this, we pick a random,
9659       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9660       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9661       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9662       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'
9663       ;;
9664
9665     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9666       tmp_diet=no
9667       if test "$host_os" = linux-dietlibc; then
9668         case $cc_basename in
9669           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9670         esac
9671       fi
9672       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9673          && test "$tmp_diet" = no
9674       then
9675         tmp_addflag=' $pic_flag'
9676         tmp_sharedflag='-shared'
9677         case $cc_basename,$host_cpu in
9678         pgcc*)                          # Portland Group C compiler
9679           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'
9680           tmp_addflag=' $pic_flag'
9681           ;;
9682         pgf77* | pgf90* | pgf95* | pgfortran*)
9683                                         # Portland Group f77 and f90 compilers
9684           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'
9685           tmp_addflag=' $pic_flag -Mnomain' ;;
9686         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9687           tmp_addflag=' -i_dynamic' ;;
9688         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9689           tmp_addflag=' -i_dynamic -nofor_main' ;;
9690         ifc* | ifort*)                  # Intel Fortran compiler
9691           tmp_addflag=' -nofor_main' ;;
9692         lf95*)                          # Lahey Fortran 8.1
9693           whole_archive_flag_spec=
9694           tmp_sharedflag='--shared' ;;
9695         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9696           tmp_sharedflag='-qmkshrobj'
9697           tmp_addflag= ;;
9698         nvcc*)  # Cuda Compiler Driver 2.2
9699           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'
9700           compiler_needs_object=yes
9701           ;;
9702         esac
9703         case `$CC -V 2>&1 | sed 5q` in
9704         *Sun\ C*)                       # Sun C 5.9
9705           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'
9706           compiler_needs_object=yes
9707           tmp_sharedflag='-G' ;;
9708         *Sun\ F*)                       # Sun Fortran 8.3
9709           tmp_sharedflag='-G' ;;
9710         esac
9711         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9712
9713         if test "x$supports_anon_versioning" = xyes; then
9714           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9715             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9716             echo "local: *; };" >> $output_objdir/$libname.ver~
9717             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9718         fi
9719
9720         case $cc_basename in
9721         xlf* | bgf* | bgxlf* | mpixlf*)
9722           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9723           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9724           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9725           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9726           if test "x$supports_anon_versioning" = xyes; then
9727             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9728               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9729               echo "local: *; };" >> $output_objdir/$libname.ver~
9730               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9731           fi
9732           ;;
9733         esac
9734       else
9735         ld_shlibs=no
9736       fi
9737       ;;
9738
9739     netbsd* | netbsdelf*-gnu)
9740       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9741         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9742         wlarc=
9743       else
9744         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9745         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9746       fi
9747       ;;
9748
9749     solaris*)
9750       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9751         ld_shlibs=no
9752         cat <<_LT_EOF 1>&2
9753
9754 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9755 *** create shared libraries on Solaris systems.  Therefore, libtool
9756 *** is disabling shared libraries support.  We urge you to upgrade GNU
9757 *** binutils to release 2.9.1 or newer.  Another option is to modify
9758 *** your PATH or compiler configuration so that the native linker is
9759 *** used, and then restart.
9760
9761 _LT_EOF
9762       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9763         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9764         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9765       else
9766         ld_shlibs=no
9767       fi
9768       ;;
9769
9770     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9771       case `$LD -v 2>&1` in
9772         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9773         ld_shlibs=no
9774         cat <<_LT_EOF 1>&2
9775
9776 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9777 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9778 *** is disabling shared libraries support.  We urge you to upgrade GNU
9779 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9780 *** your PATH or compiler configuration so that the native linker is
9781 *** used, and then restart.
9782
9783 _LT_EOF
9784         ;;
9785         *)
9786           # For security reasons, it is highly recommended that you always
9787           # use absolute paths for naming shared libraries, and exclude the
9788           # DT_RUNPATH tag from executables and libraries.  But doing so
9789           # requires that you compile everything twice, which is a pain.
9790           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9791             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9792             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9793             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9794           else
9795             ld_shlibs=no
9796           fi
9797         ;;
9798       esac
9799       ;;
9800
9801     sunos4*)
9802       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9803       wlarc=
9804       hardcode_direct=yes
9805       hardcode_shlibpath_var=no
9806       ;;
9807
9808     *)
9809       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9810         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9811         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9812       else
9813         ld_shlibs=no
9814       fi
9815       ;;
9816     esac
9817
9818     if test "$ld_shlibs" = no; then
9819       runpath_var=
9820       hardcode_libdir_flag_spec=
9821       export_dynamic_flag_spec=
9822       whole_archive_flag_spec=
9823     fi
9824   else
9825     # PORTME fill in a description of your system's linker (not GNU ld)
9826     case $host_os in
9827     aix3*)
9828       allow_undefined_flag=unsupported
9829       always_export_symbols=yes
9830       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'
9831       # Note: this linker hardcodes the directories in LIBPATH if there
9832       # are no directories specified by -L.
9833       hardcode_minus_L=yes
9834       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9835         # Neither direct hardcoding nor static linking is supported with a
9836         # broken collect2.
9837         hardcode_direct=unsupported
9838       fi
9839       ;;
9840
9841     aix[4-9]*)
9842       if test "$host_cpu" = ia64; then
9843         # On IA64, the linker does run time linking by default, so we don't
9844         # have to do anything special.
9845         aix_use_runtimelinking=no
9846         exp_sym_flag='-Bexport'
9847         no_entry_flag=""
9848       else
9849         # If we're using GNU nm, then we don't want the "-C" option.
9850         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9851         # Also, AIX nm treats weak defined symbols like other global
9852         # defined symbols, whereas GNU nm marks them as "W".
9853         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9854           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'
9855         else
9856           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'
9857         fi
9858         aix_use_runtimelinking=no
9859
9860         # Test if we are trying to use run time linking or normal
9861         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9862         # need to do runtime linking.
9863         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9864           for ld_flag in $LDFLAGS; do
9865           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9866             aix_use_runtimelinking=yes
9867             break
9868           fi
9869           done
9870           ;;
9871         esac
9872
9873         exp_sym_flag='-bexport'
9874         no_entry_flag='-bnoentry'
9875       fi
9876
9877       # When large executables or shared objects are built, AIX ld can
9878       # have problems creating the table of contents.  If linking a library
9879       # or program results in "error TOC overflow" add -mminimal-toc to
9880       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9881       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9882
9883       archive_cmds=''
9884       hardcode_direct=yes
9885       hardcode_direct_absolute=yes
9886       hardcode_libdir_separator=':'
9887       link_all_deplibs=yes
9888       file_list_spec='${wl}-f,'
9889
9890       if test "$GCC" = yes; then
9891         case $host_os in aix4.[012]|aix4.[012].*)
9892         # We only want to do this on AIX 4.2 and lower, the check
9893         # below for broken collect2 doesn't work under 4.3+
9894           collect2name=`${CC} -print-prog-name=collect2`
9895           if test -f "$collect2name" &&
9896            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9897           then
9898           # We have reworked collect2
9899           :
9900           else
9901           # We have old collect2
9902           hardcode_direct=unsupported
9903           # It fails to find uninstalled libraries when the uninstalled
9904           # path is not listed in the libpath.  Setting hardcode_minus_L
9905           # to unsupported forces relinking
9906           hardcode_minus_L=yes
9907           hardcode_libdir_flag_spec='-L$libdir'
9908           hardcode_libdir_separator=
9909           fi
9910           ;;
9911         esac
9912         shared_flag='-shared'
9913         if test "$aix_use_runtimelinking" = yes; then
9914           shared_flag="$shared_flag "'${wl}-G'
9915         fi
9916         link_all_deplibs=no
9917       else
9918         # not using gcc
9919         if test "$host_cpu" = ia64; then
9920         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9921         # chokes on -Wl,-G. The following line is correct:
9922           shared_flag='-G'
9923         else
9924           if test "$aix_use_runtimelinking" = yes; then
9925             shared_flag='${wl}-G'
9926           else
9927             shared_flag='${wl}-bM:SRE'
9928           fi
9929         fi
9930       fi
9931
9932       export_dynamic_flag_spec='${wl}-bexpall'
9933       # It seems that -bexpall does not export symbols beginning with
9934       # underscore (_), so it is better to generate a list of symbols to export.
9935       always_export_symbols=yes
9936       if test "$aix_use_runtimelinking" = yes; then
9937         # Warning - without using the other runtime loading flags (-brtl),
9938         # -berok will link without error, but may produce a broken library.
9939         allow_undefined_flag='-berok'
9940         # Determine the default libpath from the value encoded in an
9941         # empty executable.
9942         if test "${lt_cv_aix_libpath+set}" = set; then
9943   aix_libpath=$lt_cv_aix_libpath
9944 else
9945   if ${lt_cv_aix_libpath_+:} false; then :
9946   $as_echo_n "(cached) " >&6
9947 else
9948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9949 /* end confdefs.h.  */
9950
9951 int
9952 main ()
9953 {
9954
9955   ;
9956   return 0;
9957 }
9958 _ACEOF
9959 if ac_fn_c_try_link "$LINENO"; then :
9960
9961   lt_aix_libpath_sed='
9962       /Import File Strings/,/^$/ {
9963           /^0/ {
9964               s/^0  *\([^ ]*\) *$/\1/
9965               p
9966           }
9967       }'
9968   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9969   # Check for a 64-bit object if we didn't find anything.
9970   if test -z "$lt_cv_aix_libpath_"; then
9971     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9972   fi
9973 fi
9974 rm -f core conftest.err conftest.$ac_objext \
9975     conftest$ac_exeext conftest.$ac_ext
9976   if test -z "$lt_cv_aix_libpath_"; then
9977     lt_cv_aix_libpath_="/usr/lib:/lib"
9978   fi
9979
9980 fi
9981
9982   aix_libpath=$lt_cv_aix_libpath_
9983 fi
9984
9985         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9986         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"
9987       else
9988         if test "$host_cpu" = ia64; then
9989           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9990           allow_undefined_flag="-z nodefs"
9991           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"
9992         else
9993          # Determine the default libpath from the value encoded in an
9994          # empty executable.
9995          if test "${lt_cv_aix_libpath+set}" = set; then
9996   aix_libpath=$lt_cv_aix_libpath
9997 else
9998   if ${lt_cv_aix_libpath_+:} false; then :
9999   $as_echo_n "(cached) " >&6
10000 else
10001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10002 /* end confdefs.h.  */
10003
10004 int
10005 main ()
10006 {
10007
10008   ;
10009   return 0;
10010 }
10011 _ACEOF
10012 if ac_fn_c_try_link "$LINENO"; then :
10013
10014   lt_aix_libpath_sed='
10015       /Import File Strings/,/^$/ {
10016           /^0/ {
10017               s/^0  *\([^ ]*\) *$/\1/
10018               p
10019           }
10020       }'
10021   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10022   # Check for a 64-bit object if we didn't find anything.
10023   if test -z "$lt_cv_aix_libpath_"; then
10024     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10025   fi
10026 fi
10027 rm -f core conftest.err conftest.$ac_objext \
10028     conftest$ac_exeext conftest.$ac_ext
10029   if test -z "$lt_cv_aix_libpath_"; then
10030     lt_cv_aix_libpath_="/usr/lib:/lib"
10031   fi
10032
10033 fi
10034
10035   aix_libpath=$lt_cv_aix_libpath_
10036 fi
10037
10038          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10039           # Warning - without using the other run time loading flags,
10040           # -berok will link without error, but may produce a broken library.
10041           no_undefined_flag=' ${wl}-bernotok'
10042           allow_undefined_flag=' ${wl}-berok'
10043           if test "$with_gnu_ld" = yes; then
10044             # We only use this code for GNU lds that support --whole-archive.
10045             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10046           else
10047             # Exported symbols can be pulled into shared objects from archives
10048             whole_archive_flag_spec='$convenience'
10049           fi
10050           archive_cmds_need_lc=yes
10051           # This is similar to how AIX traditionally builds its shared libraries.
10052           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'
10053         fi
10054       fi
10055       ;;
10056
10057     amigaos*)
10058       case $host_cpu in
10059       powerpc)
10060             # see comment about AmigaOS4 .so support
10061             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10062             archive_expsym_cmds=''
10063         ;;
10064       m68k)
10065             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)'
10066             hardcode_libdir_flag_spec='-L$libdir'
10067             hardcode_minus_L=yes
10068         ;;
10069       esac
10070       ;;
10071
10072     bsdi[45]*)
10073       export_dynamic_flag_spec=-rdynamic
10074       ;;
10075
10076     cygwin* | mingw* | pw32* | cegcc*)
10077       # When not using gcc, we currently assume that we are using
10078       # Microsoft Visual C++.
10079       # hardcode_libdir_flag_spec is actually meaningless, as there is
10080       # no search path for DLLs.
10081       case $cc_basename in
10082       cl*)
10083         # Native MSVC
10084         hardcode_libdir_flag_spec=' '
10085         allow_undefined_flag=unsupported
10086         always_export_symbols=yes
10087         file_list_spec='@'
10088         # Tell ltmain to make .lib files, not .a files.
10089         libext=lib
10090         # Tell ltmain to make .dll files, not .so files.
10091         shrext_cmds=".dll"
10092         # FIXME: Setting linknames here is a bad hack.
10093         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10094         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10095             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10096           else
10097             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10098           fi~
10099           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10100           linknames='
10101         # The linker will not automatically build a static lib if we build a DLL.
10102         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10103         enable_shared_with_static_runtimes=yes
10104         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10105         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10106         # Don't use ranlib
10107         old_postinstall_cmds='chmod 644 $oldlib'
10108         postlink_cmds='lt_outputfile="@OUTPUT@"~
10109           lt_tool_outputfile="@TOOL_OUTPUT@"~
10110           case $lt_outputfile in
10111             *.exe|*.EXE) ;;
10112             *)
10113               lt_outputfile="$lt_outputfile.exe"
10114               lt_tool_outputfile="$lt_tool_outputfile.exe"
10115               ;;
10116           esac~
10117           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10118             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10119             $RM "$lt_outputfile.manifest";
10120           fi'
10121         ;;
10122       *)
10123         # Assume MSVC wrapper
10124         hardcode_libdir_flag_spec=' '
10125         allow_undefined_flag=unsupported
10126         # Tell ltmain to make .lib files, not .a files.
10127         libext=lib
10128         # Tell ltmain to make .dll files, not .so files.
10129         shrext_cmds=".dll"
10130         # FIXME: Setting linknames here is a bad hack.
10131         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10132         # The linker will automatically build a .lib file if we build a DLL.
10133         old_archive_from_new_cmds='true'
10134         # FIXME: Should let the user specify the lib program.
10135         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10136         enable_shared_with_static_runtimes=yes
10137         ;;
10138       esac
10139       ;;
10140
10141     darwin* | rhapsody*)
10142
10143
10144   archive_cmds_need_lc=no
10145   hardcode_direct=no
10146   hardcode_automatic=yes
10147   hardcode_shlibpath_var=unsupported
10148   if test "$lt_cv_ld_force_load" = "yes"; then
10149     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\"`'
10150
10151   else
10152     whole_archive_flag_spec=''
10153   fi
10154   link_all_deplibs=yes
10155   allow_undefined_flag="$_lt_dar_allow_undefined"
10156   case $cc_basename in
10157      ifort*) _lt_dar_can_shared=yes ;;
10158      *) _lt_dar_can_shared=$GCC ;;
10159   esac
10160   if test "$_lt_dar_can_shared" = "yes"; then
10161     output_verbose_link_cmd=func_echo_all
10162     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10163     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10164     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}"
10165     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}"
10166
10167   else
10168   ld_shlibs=no
10169   fi
10170
10171       ;;
10172
10173     dgux*)
10174       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10175       hardcode_libdir_flag_spec='-L$libdir'
10176       hardcode_shlibpath_var=no
10177       ;;
10178
10179     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10180     # support.  Future versions do this automatically, but an explicit c++rt0.o
10181     # does not break anything, and helps significantly (at the cost of a little
10182     # extra space).
10183     freebsd2.2*)
10184       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10185       hardcode_libdir_flag_spec='-R$libdir'
10186       hardcode_direct=yes
10187       hardcode_shlibpath_var=no
10188       ;;
10189
10190     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10191     freebsd2.*)
10192       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10193       hardcode_direct=yes
10194       hardcode_minus_L=yes
10195       hardcode_shlibpath_var=no
10196       ;;
10197
10198     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10199     freebsd* | dragonfly*)
10200       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10201       hardcode_libdir_flag_spec='-R$libdir'
10202       hardcode_direct=yes
10203       hardcode_shlibpath_var=no
10204       ;;
10205
10206     hpux9*)
10207       if test "$GCC" = yes; then
10208         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'
10209       else
10210         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'
10211       fi
10212       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10213       hardcode_libdir_separator=:
10214       hardcode_direct=yes
10215
10216       # hardcode_minus_L: Not really in the search PATH,
10217       # but as the default location of the library.
10218       hardcode_minus_L=yes
10219       export_dynamic_flag_spec='${wl}-E'
10220       ;;
10221
10222     hpux10*)
10223       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10224         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10225       else
10226         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10227       fi
10228       if test "$with_gnu_ld" = no; then
10229         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10230         hardcode_libdir_separator=:
10231         hardcode_direct=yes
10232         hardcode_direct_absolute=yes
10233         export_dynamic_flag_spec='${wl}-E'
10234         # hardcode_minus_L: Not really in the search PATH,
10235         # but as the default location of the library.
10236         hardcode_minus_L=yes
10237       fi
10238       ;;
10239
10240     hpux11*)
10241       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10242         case $host_cpu in
10243         hppa*64*)
10244           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10245           ;;
10246         ia64*)
10247           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10248           ;;
10249         *)
10250           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10251           ;;
10252         esac
10253       else
10254         case $host_cpu in
10255         hppa*64*)
10256           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10257           ;;
10258         ia64*)
10259           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10260           ;;
10261         *)
10262
10263           # Older versions of the 11.00 compiler do not understand -b yet
10264           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10265           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10266 $as_echo_n "checking if $CC understands -b... " >&6; }
10267 if ${lt_cv_prog_compiler__b+:} false; then :
10268   $as_echo_n "(cached) " >&6
10269 else
10270   lt_cv_prog_compiler__b=no
10271    save_LDFLAGS="$LDFLAGS"
10272    LDFLAGS="$LDFLAGS -b"
10273    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10274    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10275      # The linker can only warn and ignore the option if not recognized
10276      # So say no if there are warnings
10277      if test -s conftest.err; then
10278        # Append any errors to the config.log.
10279        cat conftest.err 1>&5
10280        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10281        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10282        if diff conftest.exp conftest.er2 >/dev/null; then
10283          lt_cv_prog_compiler__b=yes
10284        fi
10285      else
10286        lt_cv_prog_compiler__b=yes
10287      fi
10288    fi
10289    $RM -r conftest*
10290    LDFLAGS="$save_LDFLAGS"
10291
10292 fi
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10294 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10295
10296 if test x"$lt_cv_prog_compiler__b" = xyes; then
10297     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10298 else
10299     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10300 fi
10301
10302           ;;
10303         esac
10304       fi
10305       if test "$with_gnu_ld" = no; then
10306         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10307         hardcode_libdir_separator=:
10308
10309         case $host_cpu in
10310         hppa*64*|ia64*)
10311           hardcode_direct=no
10312           hardcode_shlibpath_var=no
10313           ;;
10314         *)
10315           hardcode_direct=yes
10316           hardcode_direct_absolute=yes
10317           export_dynamic_flag_spec='${wl}-E'
10318
10319           # hardcode_minus_L: Not really in the search PATH,
10320           # but as the default location of the library.
10321           hardcode_minus_L=yes
10322           ;;
10323         esac
10324       fi
10325       ;;
10326
10327     irix5* | irix6* | nonstopux*)
10328       if test "$GCC" = yes; then
10329         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'
10330         # Try to use the -exported_symbol ld option, if it does not
10331         # work, assume that -exports_file does not work either and
10332         # implicitly export all symbols.
10333         # This should be the same for all languages, so no per-tag cache variable.
10334         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10335 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10336 if ${lt_cv_irix_exported_symbol+:} false; then :
10337   $as_echo_n "(cached) " >&6
10338 else
10339   save_LDFLAGS="$LDFLAGS"
10340            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10341            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10342 /* end confdefs.h.  */
10343 int foo (void) { return 0; }
10344 _ACEOF
10345 if ac_fn_c_try_link "$LINENO"; then :
10346   lt_cv_irix_exported_symbol=yes
10347 else
10348   lt_cv_irix_exported_symbol=no
10349 fi
10350 rm -f core conftest.err conftest.$ac_objext \
10351     conftest$ac_exeext conftest.$ac_ext
10352            LDFLAGS="$save_LDFLAGS"
10353 fi
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10355 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10356         if test "$lt_cv_irix_exported_symbol" = yes; then
10357           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'
10358         fi
10359       else
10360         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'
10361         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'
10362       fi
10363       archive_cmds_need_lc='no'
10364       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10365       hardcode_libdir_separator=:
10366       inherit_rpath=yes
10367       link_all_deplibs=yes
10368       ;;
10369
10370     netbsd* | netbsdelf*-gnu)
10371       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10372         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10373       else
10374         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10375       fi
10376       hardcode_libdir_flag_spec='-R$libdir'
10377       hardcode_direct=yes
10378       hardcode_shlibpath_var=no
10379       ;;
10380
10381     newsos6)
10382       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10383       hardcode_direct=yes
10384       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10385       hardcode_libdir_separator=:
10386       hardcode_shlibpath_var=no
10387       ;;
10388
10389     *nto* | *qnx*)
10390       ;;
10391
10392     openbsd*)
10393       if test -f /usr/libexec/ld.so; then
10394         hardcode_direct=yes
10395         hardcode_shlibpath_var=no
10396         hardcode_direct_absolute=yes
10397         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10398           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10399           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10400           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10401           export_dynamic_flag_spec='${wl}-E'
10402         else
10403           case $host_os in
10404            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10405              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10406              hardcode_libdir_flag_spec='-R$libdir'
10407              ;;
10408            *)
10409              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10410              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10411              ;;
10412           esac
10413         fi
10414       else
10415         ld_shlibs=no
10416       fi
10417       ;;
10418
10419     os2*)
10420       hardcode_libdir_flag_spec='-L$libdir'
10421       hardcode_minus_L=yes
10422       allow_undefined_flag=unsupported
10423       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'
10424       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10425       ;;
10426
10427     osf3*)
10428       if test "$GCC" = yes; then
10429         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10430         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'
10431       else
10432         allow_undefined_flag=' -expect_unresolved \*'
10433         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'
10434       fi
10435       archive_cmds_need_lc='no'
10436       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10437       hardcode_libdir_separator=:
10438       ;;
10439
10440     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10441       if test "$GCC" = yes; then
10442         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10443         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'
10444         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10445       else
10446         allow_undefined_flag=' -expect_unresolved \*'
10447         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'
10448         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~
10449         $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'
10450
10451         # Both c and cxx compiler support -rpath directly
10452         hardcode_libdir_flag_spec='-rpath $libdir'
10453       fi
10454       archive_cmds_need_lc='no'
10455       hardcode_libdir_separator=:
10456       ;;
10457
10458     solaris*)
10459       no_undefined_flag=' -z defs'
10460       if test "$GCC" = yes; then
10461         wlarc='${wl}'
10462         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10463         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10464           $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'
10465       else
10466         case `$CC -V 2>&1` in
10467         *"Compilers 5.0"*)
10468           wlarc=''
10469           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10470           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10471           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10472           ;;
10473         *)
10474           wlarc='${wl}'
10475           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10476           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10477           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10478           ;;
10479         esac
10480       fi
10481       hardcode_libdir_flag_spec='-R$libdir'
10482       hardcode_shlibpath_var=no
10483       case $host_os in
10484       solaris2.[0-5] | solaris2.[0-5].*) ;;
10485       *)
10486         # The compiler driver will combine and reorder linker options,
10487         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10488         # but is careful enough not to reorder.
10489         # Supported since Solaris 2.6 (maybe 2.5.1?)
10490         if test "$GCC" = yes; then
10491           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10492         else
10493           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10494         fi
10495         ;;
10496       esac
10497       link_all_deplibs=yes
10498       ;;
10499
10500     sunos4*)
10501       if test "x$host_vendor" = xsequent; then
10502         # Use $CC to link under sequent, because it throws in some extra .o
10503         # files that make .init and .fini sections work.
10504         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10505       else
10506         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10507       fi
10508       hardcode_libdir_flag_spec='-L$libdir'
10509       hardcode_direct=yes
10510       hardcode_minus_L=yes
10511       hardcode_shlibpath_var=no
10512       ;;
10513
10514     sysv4)
10515       case $host_vendor in
10516         sni)
10517           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10518           hardcode_direct=yes # is this really true???
10519         ;;
10520         siemens)
10521           ## LD is ld it makes a PLAMLIB
10522           ## CC just makes a GrossModule.
10523           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10524           reload_cmds='$CC -r -o $output$reload_objs'
10525           hardcode_direct=no
10526         ;;
10527         motorola)
10528           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10529           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10530         ;;
10531       esac
10532       runpath_var='LD_RUN_PATH'
10533       hardcode_shlibpath_var=no
10534       ;;
10535
10536     sysv4.3*)
10537       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10538       hardcode_shlibpath_var=no
10539       export_dynamic_flag_spec='-Bexport'
10540       ;;
10541
10542     sysv4*MP*)
10543       if test -d /usr/nec; then
10544         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10545         hardcode_shlibpath_var=no
10546         runpath_var=LD_RUN_PATH
10547         hardcode_runpath_var=yes
10548         ld_shlibs=yes
10549       fi
10550       ;;
10551
10552     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10553       no_undefined_flag='${wl}-z,text'
10554       archive_cmds_need_lc=no
10555       hardcode_shlibpath_var=no
10556       runpath_var='LD_RUN_PATH'
10557
10558       if test "$GCC" = yes; then
10559         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10560         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10561       else
10562         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10563         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10564       fi
10565       ;;
10566
10567     sysv5* | sco3.2v5* | sco5v6*)
10568       # Note: We can NOT use -z defs as we might desire, because we do not
10569       # link with -lc, and that would cause any symbols used from libc to
10570       # always be unresolved, which means just about no library would
10571       # ever link correctly.  If we're not using GNU ld we use -z text
10572       # though, which does catch some bad symbols but isn't as heavy-handed
10573       # as -z defs.
10574       no_undefined_flag='${wl}-z,text'
10575       allow_undefined_flag='${wl}-z,nodefs'
10576       archive_cmds_need_lc=no
10577       hardcode_shlibpath_var=no
10578       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10579       hardcode_libdir_separator=':'
10580       link_all_deplibs=yes
10581       export_dynamic_flag_spec='${wl}-Bexport'
10582       runpath_var='LD_RUN_PATH'
10583
10584       if test "$GCC" = yes; then
10585         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10586         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10587       else
10588         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10589         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10590       fi
10591       ;;
10592
10593     uts4*)
10594       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10595       hardcode_libdir_flag_spec='-L$libdir'
10596       hardcode_shlibpath_var=no
10597       ;;
10598
10599     *)
10600       ld_shlibs=no
10601       ;;
10602     esac
10603
10604     if test x$host_vendor = xsni; then
10605       case $host in
10606       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10607         export_dynamic_flag_spec='${wl}-Blargedynsym'
10608         ;;
10609       esac
10610     fi
10611   fi
10612
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10614 $as_echo "$ld_shlibs" >&6; }
10615 test "$ld_shlibs" = no && can_build_shared=no
10616
10617 with_gnu_ld=$with_gnu_ld
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633 #
10634 # Do we need to explicitly link libc?
10635 #
10636 case "x$archive_cmds_need_lc" in
10637 x|xyes)
10638   # Assume -lc should be added
10639   archive_cmds_need_lc=yes
10640
10641   if test "$enable_shared" = yes && test "$GCC" = yes; then
10642     case $archive_cmds in
10643     *'~'*)
10644       # FIXME: we may have to deal with multi-command sequences.
10645       ;;
10646     '$CC '*)
10647       # Test whether the compiler implicitly links with -lc since on some
10648       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10649       # to ld, don't add -lc before -lgcc.
10650       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10651 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10652 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10653   $as_echo_n "(cached) " >&6
10654 else
10655   $RM conftest*
10656         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10657
10658         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10659   (eval $ac_compile) 2>&5
10660   ac_status=$?
10661   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10662   test $ac_status = 0; } 2>conftest.err; then
10663           soname=conftest
10664           lib=conftest
10665           libobjs=conftest.$ac_objext
10666           deplibs=
10667           wl=$lt_prog_compiler_wl
10668           pic_flag=$lt_prog_compiler_pic
10669           compiler_flags=-v
10670           linker_flags=-v
10671           verstring=
10672           output_objdir=.
10673           libname=conftest
10674           lt_save_allow_undefined_flag=$allow_undefined_flag
10675           allow_undefined_flag=
10676           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10677   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10678   ac_status=$?
10679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10680   test $ac_status = 0; }
10681           then
10682             lt_cv_archive_cmds_need_lc=no
10683           else
10684             lt_cv_archive_cmds_need_lc=yes
10685           fi
10686           allow_undefined_flag=$lt_save_allow_undefined_flag
10687         else
10688           cat conftest.err 1>&5
10689         fi
10690         $RM conftest*
10691
10692 fi
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10694 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10695       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10696       ;;
10697     esac
10698   fi
10699   ;;
10700 esac
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10854 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10855
10856 if test "$GCC" = yes; then
10857   case $host_os in
10858     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10859     *) lt_awk_arg="/^libraries:/" ;;
10860   esac
10861   case $host_os in
10862     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10863     *) lt_sed_strip_eq="s,=/,/,g" ;;
10864   esac
10865   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10866   case $lt_search_path_spec in
10867   *\;*)
10868     # if the path contains ";" then we assume it to be the separator
10869     # otherwise default to the standard path separator (i.e. ":") - it is
10870     # assumed that no part of a normal pathname contains ";" but that should
10871     # okay in the real world where ";" in dirpaths is itself problematic.
10872     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10873     ;;
10874   *)
10875     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10876     ;;
10877   esac
10878   # Ok, now we have the path, separated by spaces, we can step through it
10879   # and add multilib dir if necessary.
10880   lt_tmp_lt_search_path_spec=
10881   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10882   for lt_sys_path in $lt_search_path_spec; do
10883     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10884       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10885     else
10886       test -d "$lt_sys_path" && \
10887         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10888     fi
10889   done
10890   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10891 BEGIN {RS=" "; FS="/|\n";} {
10892   lt_foo="";
10893   lt_count=0;
10894   for (lt_i = NF; lt_i > 0; lt_i--) {
10895     if ($lt_i != "" && $lt_i != ".") {
10896       if ($lt_i == "..") {
10897         lt_count++;
10898       } else {
10899         if (lt_count == 0) {
10900           lt_foo="/" $lt_i lt_foo;
10901         } else {
10902           lt_count--;
10903         }
10904       }
10905     }
10906   }
10907   if (lt_foo != "") { lt_freq[lt_foo]++; }
10908   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10909 }'`
10910   # AWK program above erroneously prepends '/' to C:/dos/paths
10911   # for these hosts.
10912   case $host_os in
10913     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10914       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10915   esac
10916   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10917 else
10918   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10919 fi
10920 library_names_spec=
10921 libname_spec='lib$name'
10922 soname_spec=
10923 shrext_cmds=".so"
10924 postinstall_cmds=
10925 postuninstall_cmds=
10926 finish_cmds=
10927 finish_eval=
10928 shlibpath_var=
10929 shlibpath_overrides_runpath=unknown
10930 version_type=none
10931 dynamic_linker="$host_os ld.so"
10932 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10933 need_lib_prefix=unknown
10934 hardcode_into_libs=no
10935
10936 # when you set need_version to no, make sure it does not cause -set_version
10937 # flags to be left without arguments
10938 need_version=unknown
10939
10940 case $host_os in
10941 aix3*)
10942   version_type=linux # correct to gnu/linux during the next big refactor
10943   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10944   shlibpath_var=LIBPATH
10945
10946   # AIX 3 has no versioning support, so we append a major version to the name.
10947   soname_spec='${libname}${release}${shared_ext}$major'
10948   ;;
10949
10950 aix[4-9]*)
10951   version_type=linux # correct to gnu/linux during the next big refactor
10952   need_lib_prefix=no
10953   need_version=no
10954   hardcode_into_libs=yes
10955   if test "$host_cpu" = ia64; then
10956     # AIX 5 supports IA64
10957     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10958     shlibpath_var=LD_LIBRARY_PATH
10959   else
10960     # With GCC up to 2.95.x, collect2 would create an import file
10961     # for dependence libraries.  The import file would start with
10962     # the line `#! .'.  This would cause the generated library to
10963     # depend on `.', always an invalid library.  This was fixed in
10964     # development snapshots of GCC prior to 3.0.
10965     case $host_os in
10966       aix4 | aix4.[01] | aix4.[01].*)
10967       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10968            echo ' yes '
10969            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10970         :
10971       else
10972         can_build_shared=no
10973       fi
10974       ;;
10975     esac
10976     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10977     # soname into executable. Probably we can add versioning support to
10978     # collect2, so additional links can be useful in future.
10979     if test "$aix_use_runtimelinking" = yes; then
10980       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10981       # instead of lib<name>.a to let people know that these are not
10982       # typical AIX shared libraries.
10983       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10984     else
10985       # We preserve .a as extension for shared libraries through AIX4.2
10986       # and later when we are not doing run time linking.
10987       library_names_spec='${libname}${release}.a $libname.a'
10988       soname_spec='${libname}${release}${shared_ext}$major'
10989     fi
10990     shlibpath_var=LIBPATH
10991   fi
10992   ;;
10993
10994 amigaos*)
10995   case $host_cpu in
10996   powerpc)
10997     # Since July 2007 AmigaOS4 officially supports .so libraries.
10998     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10999     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11000     ;;
11001   m68k)
11002     library_names_spec='$libname.ixlibrary $libname.a'
11003     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11004     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'
11005     ;;
11006   esac
11007   ;;
11008
11009 beos*)
11010   library_names_spec='${libname}${shared_ext}'
11011   dynamic_linker="$host_os ld.so"
11012   shlibpath_var=LIBRARY_PATH
11013   ;;
11014
11015 bsdi[45]*)
11016   version_type=linux # correct to gnu/linux during the next big refactor
11017   need_version=no
11018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11019   soname_spec='${libname}${release}${shared_ext}$major'
11020   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11021   shlibpath_var=LD_LIBRARY_PATH
11022   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11023   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11024   # the default ld.so.conf also contains /usr/contrib/lib and
11025   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11026   # libtool to hard-code these into programs
11027   ;;
11028
11029 cygwin* | mingw* | pw32* | cegcc*)
11030   version_type=windows
11031   shrext_cmds=".dll"
11032   need_version=no
11033   need_lib_prefix=no
11034
11035   case $GCC,$cc_basename in
11036   yes,*)
11037     # gcc
11038     library_names_spec='$libname.dll.a'
11039     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11040     postinstall_cmds='base_file=`basename \${file}`~
11041       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11042       dldir=$destdir/`dirname \$dlpath`~
11043       test -d \$dldir || mkdir -p \$dldir~
11044       $install_prog $dir/$dlname \$dldir/$dlname~
11045       chmod a+x \$dldir/$dlname~
11046       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11047         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11048       fi'
11049     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11050       dlpath=$dir/\$dldll~
11051        $RM \$dlpath'
11052     shlibpath_overrides_runpath=yes
11053
11054     case $host_os in
11055     cygwin*)
11056       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11057       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11058
11059       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11060       ;;
11061     mingw* | cegcc*)
11062       # MinGW DLLs use traditional 'lib' prefix
11063       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11064       ;;
11065     pw32*)
11066       # pw32 DLLs use 'pw' prefix rather than 'lib'
11067       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11068       ;;
11069     esac
11070     dynamic_linker='Win32 ld.exe'
11071     ;;
11072
11073   *,cl*)
11074     # Native MSVC
11075     libname_spec='$name'
11076     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11077     library_names_spec='${libname}.dll.lib'
11078
11079     case $build_os in
11080     mingw*)
11081       sys_lib_search_path_spec=
11082       lt_save_ifs=$IFS
11083       IFS=';'
11084       for lt_path in $LIB
11085       do
11086         IFS=$lt_save_ifs
11087         # Let DOS variable expansion print the short 8.3 style file name.
11088         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11089         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11090       done
11091       IFS=$lt_save_ifs
11092       # Convert to MSYS style.
11093       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11094       ;;
11095     cygwin*)
11096       # Convert to unix form, then to dos form, then back to unix form
11097       # but this time dos style (no spaces!) so that the unix form looks
11098       # like /cygdrive/c/PROGRA~1:/cygdr...
11099       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11100       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11101       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11102       ;;
11103     *)
11104       sys_lib_search_path_spec="$LIB"
11105       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11106         # It is most probably a Windows format PATH.
11107         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11108       else
11109         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11110       fi
11111       # FIXME: find the short name or the path components, as spaces are
11112       # common. (e.g. "Program Files" -> "PROGRA~1")
11113       ;;
11114     esac
11115
11116     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11117     postinstall_cmds='base_file=`basename \${file}`~
11118       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11119       dldir=$destdir/`dirname \$dlpath`~
11120       test -d \$dldir || mkdir -p \$dldir~
11121       $install_prog $dir/$dlname \$dldir/$dlname'
11122     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11123       dlpath=$dir/\$dldll~
11124        $RM \$dlpath'
11125     shlibpath_overrides_runpath=yes
11126     dynamic_linker='Win32 link.exe'
11127     ;;
11128
11129   *)
11130     # Assume MSVC wrapper
11131     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11132     dynamic_linker='Win32 ld.exe'
11133     ;;
11134   esac
11135   # FIXME: first we should search . and the directory the executable is in
11136   shlibpath_var=PATH
11137   ;;
11138
11139 darwin* | rhapsody*)
11140   dynamic_linker="$host_os dyld"
11141   version_type=darwin
11142   need_lib_prefix=no
11143   need_version=no
11144   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11145   soname_spec='${libname}${release}${major}$shared_ext'
11146   shlibpath_overrides_runpath=yes
11147   shlibpath_var=DYLD_LIBRARY_PATH
11148   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11149
11150   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11151   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11152   ;;
11153
11154 dgux*)
11155   version_type=linux # correct to gnu/linux during the next big refactor
11156   need_lib_prefix=no
11157   need_version=no
11158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11159   soname_spec='${libname}${release}${shared_ext}$major'
11160   shlibpath_var=LD_LIBRARY_PATH
11161   ;;
11162
11163 freebsd* | dragonfly*)
11164   # DragonFly does not have aout.  When/if they implement a new
11165   # versioning mechanism, adjust this.
11166   if test -x /usr/bin/objformat; then
11167     objformat=`/usr/bin/objformat`
11168   else
11169     case $host_os in
11170     freebsd[23].*) objformat=aout ;;
11171     *) objformat=elf ;;
11172     esac
11173   fi
11174   version_type=freebsd-$objformat
11175   case $version_type in
11176     freebsd-elf*)
11177       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11178       need_version=no
11179       need_lib_prefix=no
11180       ;;
11181     freebsd-*)
11182       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11183       need_version=yes
11184       ;;
11185   esac
11186   shlibpath_var=LD_LIBRARY_PATH
11187   case $host_os in
11188   freebsd2.*)
11189     shlibpath_overrides_runpath=yes
11190     ;;
11191   freebsd3.[01]* | freebsdelf3.[01]*)
11192     shlibpath_overrides_runpath=yes
11193     hardcode_into_libs=yes
11194     ;;
11195   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11196   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11197     shlibpath_overrides_runpath=no
11198     hardcode_into_libs=yes
11199     ;;
11200   *) # from 4.6 on, and DragonFly
11201     shlibpath_overrides_runpath=yes
11202     hardcode_into_libs=yes
11203     ;;
11204   esac
11205   ;;
11206
11207 gnu*)
11208   version_type=linux # correct to gnu/linux during the next big refactor
11209   need_lib_prefix=no
11210   need_version=no
11211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11212   soname_spec='${libname}${release}${shared_ext}$major'
11213   shlibpath_var=LD_LIBRARY_PATH
11214   shlibpath_overrides_runpath=no
11215   hardcode_into_libs=yes
11216   ;;
11217
11218 haiku*)
11219   version_type=linux # correct to gnu/linux during the next big refactor
11220   need_lib_prefix=no
11221   need_version=no
11222   dynamic_linker="$host_os runtime_loader"
11223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11224   soname_spec='${libname}${release}${shared_ext}$major'
11225   shlibpath_var=LIBRARY_PATH
11226   shlibpath_overrides_runpath=yes
11227   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11228   hardcode_into_libs=yes
11229   ;;
11230
11231 hpux9* | hpux10* | hpux11*)
11232   # Give a soname corresponding to the major version so that dld.sl refuses to
11233   # link against other versions.
11234   version_type=sunos
11235   need_lib_prefix=no
11236   need_version=no
11237   case $host_cpu in
11238   ia64*)
11239     shrext_cmds='.so'
11240     hardcode_into_libs=yes
11241     dynamic_linker="$host_os dld.so"
11242     shlibpath_var=LD_LIBRARY_PATH
11243     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11244     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11245     soname_spec='${libname}${release}${shared_ext}$major'
11246     if test "X$HPUX_IA64_MODE" = X32; then
11247       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11248     else
11249       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11250     fi
11251     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11252     ;;
11253   hppa*64*)
11254     shrext_cmds='.sl'
11255     hardcode_into_libs=yes
11256     dynamic_linker="$host_os dld.sl"
11257     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11258     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11259     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11260     soname_spec='${libname}${release}${shared_ext}$major'
11261     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11262     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11263     ;;
11264   *)
11265     shrext_cmds='.sl'
11266     dynamic_linker="$host_os dld.sl"
11267     shlibpath_var=SHLIB_PATH
11268     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11269     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11270     soname_spec='${libname}${release}${shared_ext}$major'
11271     ;;
11272   esac
11273   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11274   postinstall_cmds='chmod 555 $lib'
11275   # or fails outright, so override atomically:
11276   install_override_mode=555
11277   ;;
11278
11279 interix[3-9]*)
11280   version_type=linux # correct to gnu/linux during the next big refactor
11281   need_lib_prefix=no
11282   need_version=no
11283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11284   soname_spec='${libname}${release}${shared_ext}$major'
11285   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11286   shlibpath_var=LD_LIBRARY_PATH
11287   shlibpath_overrides_runpath=no
11288   hardcode_into_libs=yes
11289   ;;
11290
11291 irix5* | irix6* | nonstopux*)
11292   case $host_os in
11293     nonstopux*) version_type=nonstopux ;;
11294     *)
11295         if test "$lt_cv_prog_gnu_ld" = yes; then
11296                 version_type=linux # correct to gnu/linux during the next big refactor
11297         else
11298                 version_type=irix
11299         fi ;;
11300   esac
11301   need_lib_prefix=no
11302   need_version=no
11303   soname_spec='${libname}${release}${shared_ext}$major'
11304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11305   case $host_os in
11306   irix5* | nonstopux*)
11307     libsuff= shlibsuff=
11308     ;;
11309   *)
11310     case $LD in # libtool.m4 will add one of these switches to LD
11311     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11312       libsuff= shlibsuff= libmagic=32-bit;;
11313     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11314       libsuff=32 shlibsuff=N32 libmagic=N32;;
11315     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11316       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11317     *) libsuff= shlibsuff= libmagic=never-match;;
11318     esac
11319     ;;
11320   esac
11321   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11322   shlibpath_overrides_runpath=no
11323   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11324   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11325   hardcode_into_libs=yes
11326   ;;
11327
11328 # No shared lib support for Linux oldld, aout, or coff.
11329 linux*oldld* | linux*aout* | linux*coff*)
11330   dynamic_linker=no
11331   ;;
11332
11333 # This must be glibc/ELF.
11334 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11335   version_type=linux # correct to gnu/linux during the next big refactor
11336   need_lib_prefix=no
11337   need_version=no
11338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11339   soname_spec='${libname}${release}${shared_ext}$major'
11340   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11341   shlibpath_var=LD_LIBRARY_PATH
11342   shlibpath_overrides_runpath=no
11343
11344   # Some binutils ld are patched to set DT_RUNPATH
11345   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11346   $as_echo_n "(cached) " >&6
11347 else
11348   lt_cv_shlibpath_overrides_runpath=no
11349     save_LDFLAGS=$LDFLAGS
11350     save_libdir=$libdir
11351     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11352          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11353     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11354 /* end confdefs.h.  */
11355
11356 int
11357 main ()
11358 {
11359
11360   ;
11361   return 0;
11362 }
11363 _ACEOF
11364 if ac_fn_c_try_link "$LINENO"; then :
11365   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11366   lt_cv_shlibpath_overrides_runpath=yes
11367 fi
11368 fi
11369 rm -f core conftest.err conftest.$ac_objext \
11370     conftest$ac_exeext conftest.$ac_ext
11371     LDFLAGS=$save_LDFLAGS
11372     libdir=$save_libdir
11373
11374 fi
11375
11376   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11377
11378   # This implies no fast_install, which is unacceptable.
11379   # Some rework will be needed to allow for fast_install
11380   # before this can be enabled.
11381   hardcode_into_libs=yes
11382
11383   # Append ld.so.conf contents to the search path
11384   if test -f /etc/ld.so.conf; then
11385     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' ' '`
11386     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11387   fi
11388
11389   # We used to test for /lib/ld.so.1 and disable shared libraries on
11390   # powerpc, because MkLinux only supported shared libraries with the
11391   # GNU dynamic linker.  Since this was broken with cross compilers,
11392   # most powerpc-linux boxes support dynamic linking these days and
11393   # people can always --disable-shared, the test was removed, and we
11394   # assume the GNU/Linux dynamic linker is in use.
11395   dynamic_linker='GNU/Linux ld.so'
11396   ;;
11397
11398 netbsdelf*-gnu)
11399   version_type=linux
11400   need_lib_prefix=no
11401   need_version=no
11402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11403   soname_spec='${libname}${release}${shared_ext}$major'
11404   shlibpath_var=LD_LIBRARY_PATH
11405   shlibpath_overrides_runpath=no
11406   hardcode_into_libs=yes
11407   dynamic_linker='NetBSD ld.elf_so'
11408   ;;
11409
11410 netbsd*)
11411   version_type=sunos
11412   need_lib_prefix=no
11413   need_version=no
11414   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11415     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11416     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11417     dynamic_linker='NetBSD (a.out) ld.so'
11418   else
11419     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11420     soname_spec='${libname}${release}${shared_ext}$major'
11421     dynamic_linker='NetBSD ld.elf_so'
11422   fi
11423   shlibpath_var=LD_LIBRARY_PATH
11424   shlibpath_overrides_runpath=yes
11425   hardcode_into_libs=yes
11426   ;;
11427
11428 newsos6)
11429   version_type=linux # correct to gnu/linux during the next big refactor
11430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431   shlibpath_var=LD_LIBRARY_PATH
11432   shlibpath_overrides_runpath=yes
11433   ;;
11434
11435 *nto* | *qnx*)
11436   version_type=qnx
11437   need_lib_prefix=no
11438   need_version=no
11439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11440   soname_spec='${libname}${release}${shared_ext}$major'
11441   shlibpath_var=LD_LIBRARY_PATH
11442   shlibpath_overrides_runpath=no
11443   hardcode_into_libs=yes
11444   dynamic_linker='ldqnx.so'
11445   ;;
11446
11447 openbsd*)
11448   version_type=sunos
11449   sys_lib_dlsearch_path_spec="/usr/lib"
11450   need_lib_prefix=no
11451   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11452   case $host_os in
11453     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11454     *)                          need_version=no  ;;
11455   esac
11456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11457   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11458   shlibpath_var=LD_LIBRARY_PATH
11459   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11460     case $host_os in
11461       openbsd2.[89] | openbsd2.[89].*)
11462         shlibpath_overrides_runpath=no
11463         ;;
11464       *)
11465         shlibpath_overrides_runpath=yes
11466         ;;
11467       esac
11468   else
11469     shlibpath_overrides_runpath=yes
11470   fi
11471   ;;
11472
11473 os2*)
11474   libname_spec='$name'
11475   shrext_cmds=".dll"
11476   need_lib_prefix=no
11477   library_names_spec='$libname${shared_ext} $libname.a'
11478   dynamic_linker='OS/2 ld.exe'
11479   shlibpath_var=LIBPATH
11480   ;;
11481
11482 osf3* | osf4* | osf5*)
11483   version_type=osf
11484   need_lib_prefix=no
11485   need_version=no
11486   soname_spec='${libname}${release}${shared_ext}$major'
11487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11488   shlibpath_var=LD_LIBRARY_PATH
11489   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11490   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11491   ;;
11492
11493 rdos*)
11494   dynamic_linker=no
11495   ;;
11496
11497 solaris*)
11498   version_type=linux # correct to gnu/linux during the next big refactor
11499   need_lib_prefix=no
11500   need_version=no
11501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11502   soname_spec='${libname}${release}${shared_ext}$major'
11503   shlibpath_var=LD_LIBRARY_PATH
11504   shlibpath_overrides_runpath=yes
11505   hardcode_into_libs=yes
11506   # ldd complains unless libraries are executable
11507   postinstall_cmds='chmod +x $lib'
11508   ;;
11509
11510 sunos4*)
11511   version_type=sunos
11512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11513   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11514   shlibpath_var=LD_LIBRARY_PATH
11515   shlibpath_overrides_runpath=yes
11516   if test "$with_gnu_ld" = yes; then
11517     need_lib_prefix=no
11518   fi
11519   need_version=yes
11520   ;;
11521
11522 sysv4 | sysv4.3*)
11523   version_type=linux # correct to gnu/linux during the next big refactor
11524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11525   soname_spec='${libname}${release}${shared_ext}$major'
11526   shlibpath_var=LD_LIBRARY_PATH
11527   case $host_vendor in
11528     sni)
11529       shlibpath_overrides_runpath=no
11530       need_lib_prefix=no
11531       runpath_var=LD_RUN_PATH
11532       ;;
11533     siemens)
11534       need_lib_prefix=no
11535       ;;
11536     motorola)
11537       need_lib_prefix=no
11538       need_version=no
11539       shlibpath_overrides_runpath=no
11540       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11541       ;;
11542   esac
11543   ;;
11544
11545 sysv4*MP*)
11546   if test -d /usr/nec ;then
11547     version_type=linux # correct to gnu/linux during the next big refactor
11548     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11549     soname_spec='$libname${shared_ext}.$major'
11550     shlibpath_var=LD_LIBRARY_PATH
11551   fi
11552   ;;
11553
11554 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11555   version_type=freebsd-elf
11556   need_lib_prefix=no
11557   need_version=no
11558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11559   soname_spec='${libname}${release}${shared_ext}$major'
11560   shlibpath_var=LD_LIBRARY_PATH
11561   shlibpath_overrides_runpath=yes
11562   hardcode_into_libs=yes
11563   if test "$with_gnu_ld" = yes; then
11564     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11565   else
11566     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11567     case $host_os in
11568       sco3.2v5*)
11569         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11570         ;;
11571     esac
11572   fi
11573   sys_lib_dlsearch_path_spec='/usr/lib'
11574   ;;
11575
11576 tpf*)
11577   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11578   version_type=linux # correct to gnu/linux during the next big refactor
11579   need_lib_prefix=no
11580   need_version=no
11581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11582   shlibpath_var=LD_LIBRARY_PATH
11583   shlibpath_overrides_runpath=no
11584   hardcode_into_libs=yes
11585   ;;
11586
11587 uts4*)
11588   version_type=linux # correct to gnu/linux during the next big refactor
11589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11590   soname_spec='${libname}${release}${shared_ext}$major'
11591   shlibpath_var=LD_LIBRARY_PATH
11592   ;;
11593
11594 *)
11595   dynamic_linker=no
11596   ;;
11597 esac
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11599 $as_echo "$dynamic_linker" >&6; }
11600 test "$dynamic_linker" = no && can_build_shared=no
11601
11602 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11603 if test "$GCC" = yes; then
11604   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11605 fi
11606
11607 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11608   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11609 fi
11610 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11611   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11612 fi
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11706 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11707 hardcode_action=
11708 if test -n "$hardcode_libdir_flag_spec" ||
11709    test -n "$runpath_var" ||
11710    test "X$hardcode_automatic" = "Xyes" ; then
11711
11712   # We can hardcode non-existent directories.
11713   if test "$hardcode_direct" != no &&
11714      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11715      # have to relink, otherwise we might link with an installed library
11716      # when we should be linking with a yet-to-be-installed one
11717      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11718      test "$hardcode_minus_L" != no; then
11719     # Linking always hardcodes the temporary library directory.
11720     hardcode_action=relink
11721   else
11722     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11723     hardcode_action=immediate
11724   fi
11725 else
11726   # We cannot hardcode anything, or else we can only hardcode existing
11727   # directories.
11728   hardcode_action=unsupported
11729 fi
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11731 $as_echo "$hardcode_action" >&6; }
11732
11733 if test "$hardcode_action" = relink ||
11734    test "$inherit_rpath" = yes; then
11735   # Fast installation is not supported
11736   enable_fast_install=no
11737 elif test "$shlibpath_overrides_runpath" = yes ||
11738      test "$enable_shared" = no; then
11739   # Fast installation is not necessary
11740   enable_fast_install=needless
11741 fi
11742
11743
11744
11745
11746
11747
11748   if test "x$enable_dlopen" != xyes; then
11749   enable_dlopen=unknown
11750   enable_dlopen_self=unknown
11751   enable_dlopen_self_static=unknown
11752 else
11753   lt_cv_dlopen=no
11754   lt_cv_dlopen_libs=
11755
11756   case $host_os in
11757   beos*)
11758     lt_cv_dlopen="load_add_on"
11759     lt_cv_dlopen_libs=
11760     lt_cv_dlopen_self=yes
11761     ;;
11762
11763   mingw* | pw32* | cegcc*)
11764     lt_cv_dlopen="LoadLibrary"
11765     lt_cv_dlopen_libs=
11766     ;;
11767
11768   cygwin*)
11769     lt_cv_dlopen="dlopen"
11770     lt_cv_dlopen_libs=
11771     ;;
11772
11773   darwin*)
11774   # if libdl is installed we need to link against it
11775     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11776 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11777 if ${ac_cv_lib_dl_dlopen+:} false; then :
11778   $as_echo_n "(cached) " >&6
11779 else
11780   ac_check_lib_save_LIBS=$LIBS
11781 LIBS="-ldl  $LIBS"
11782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11783 /* end confdefs.h.  */
11784
11785 /* Override any GCC internal prototype to avoid an error.
11786    Use char because int might match the return type of a GCC
11787    builtin and then its argument prototype would still apply.  */
11788 #ifdef __cplusplus
11789 extern "C"
11790 #endif
11791 char dlopen ();
11792 int
11793 main ()
11794 {
11795 return dlopen ();
11796   ;
11797   return 0;
11798 }
11799 _ACEOF
11800 if ac_fn_c_try_link "$LINENO"; then :
11801   ac_cv_lib_dl_dlopen=yes
11802 else
11803   ac_cv_lib_dl_dlopen=no
11804 fi
11805 rm -f core conftest.err conftest.$ac_objext \
11806     conftest$ac_exeext conftest.$ac_ext
11807 LIBS=$ac_check_lib_save_LIBS
11808 fi
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11810 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11811 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11812   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11813 else
11814
11815     lt_cv_dlopen="dyld"
11816     lt_cv_dlopen_libs=
11817     lt_cv_dlopen_self=yes
11818
11819 fi
11820
11821     ;;
11822
11823   *)
11824     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11825 if test "x$ac_cv_func_shl_load" = xyes; then :
11826   lt_cv_dlopen="shl_load"
11827 else
11828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11829 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11830 if ${ac_cv_lib_dld_shl_load+:} false; then :
11831   $as_echo_n "(cached) " >&6
11832 else
11833   ac_check_lib_save_LIBS=$LIBS
11834 LIBS="-ldld  $LIBS"
11835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11836 /* end confdefs.h.  */
11837
11838 /* Override any GCC internal prototype to avoid an error.
11839    Use char because int might match the return type of a GCC
11840    builtin and then its argument prototype would still apply.  */
11841 #ifdef __cplusplus
11842 extern "C"
11843 #endif
11844 char shl_load ();
11845 int
11846 main ()
11847 {
11848 return shl_load ();
11849   ;
11850   return 0;
11851 }
11852 _ACEOF
11853 if ac_fn_c_try_link "$LINENO"; then :
11854   ac_cv_lib_dld_shl_load=yes
11855 else
11856   ac_cv_lib_dld_shl_load=no
11857 fi
11858 rm -f core conftest.err conftest.$ac_objext \
11859     conftest$ac_exeext conftest.$ac_ext
11860 LIBS=$ac_check_lib_save_LIBS
11861 fi
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11863 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11864 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11865   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11866 else
11867   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11868 if test "x$ac_cv_func_dlopen" = xyes; then :
11869   lt_cv_dlopen="dlopen"
11870 else
11871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11872 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11873 if ${ac_cv_lib_dl_dlopen+:} false; then :
11874   $as_echo_n "(cached) " >&6
11875 else
11876   ac_check_lib_save_LIBS=$LIBS
11877 LIBS="-ldl  $LIBS"
11878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11879 /* end confdefs.h.  */
11880
11881 /* Override any GCC internal prototype to avoid an error.
11882    Use char because int might match the return type of a GCC
11883    builtin and then its argument prototype would still apply.  */
11884 #ifdef __cplusplus
11885 extern "C"
11886 #endif
11887 char dlopen ();
11888 int
11889 main ()
11890 {
11891 return dlopen ();
11892   ;
11893   return 0;
11894 }
11895 _ACEOF
11896 if ac_fn_c_try_link "$LINENO"; then :
11897   ac_cv_lib_dl_dlopen=yes
11898 else
11899   ac_cv_lib_dl_dlopen=no
11900 fi
11901 rm -f core conftest.err conftest.$ac_objext \
11902     conftest$ac_exeext conftest.$ac_ext
11903 LIBS=$ac_check_lib_save_LIBS
11904 fi
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11906 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11907 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11908   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11909 else
11910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11911 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11912 if ${ac_cv_lib_svld_dlopen+:} false; then :
11913   $as_echo_n "(cached) " >&6
11914 else
11915   ac_check_lib_save_LIBS=$LIBS
11916 LIBS="-lsvld  $LIBS"
11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h.  */
11919
11920 /* Override any GCC internal prototype to avoid an error.
11921    Use char because int might match the return type of a GCC
11922    builtin and then its argument prototype would still apply.  */
11923 #ifdef __cplusplus
11924 extern "C"
11925 #endif
11926 char dlopen ();
11927 int
11928 main ()
11929 {
11930 return dlopen ();
11931   ;
11932   return 0;
11933 }
11934 _ACEOF
11935 if ac_fn_c_try_link "$LINENO"; then :
11936   ac_cv_lib_svld_dlopen=yes
11937 else
11938   ac_cv_lib_svld_dlopen=no
11939 fi
11940 rm -f core conftest.err conftest.$ac_objext \
11941     conftest$ac_exeext conftest.$ac_ext
11942 LIBS=$ac_check_lib_save_LIBS
11943 fi
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11945 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11946 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11947   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11948 else
11949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11950 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11951 if ${ac_cv_lib_dld_dld_link+:} false; then :
11952   $as_echo_n "(cached) " >&6
11953 else
11954   ac_check_lib_save_LIBS=$LIBS
11955 LIBS="-ldld  $LIBS"
11956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957 /* end confdefs.h.  */
11958
11959 /* Override any GCC internal prototype to avoid an error.
11960    Use char because int might match the return type of a GCC
11961    builtin and then its argument prototype would still apply.  */
11962 #ifdef __cplusplus
11963 extern "C"
11964 #endif
11965 char dld_link ();
11966 int
11967 main ()
11968 {
11969 return dld_link ();
11970   ;
11971   return 0;
11972 }
11973 _ACEOF
11974 if ac_fn_c_try_link "$LINENO"; then :
11975   ac_cv_lib_dld_dld_link=yes
11976 else
11977   ac_cv_lib_dld_dld_link=no
11978 fi
11979 rm -f core conftest.err conftest.$ac_objext \
11980     conftest$ac_exeext conftest.$ac_ext
11981 LIBS=$ac_check_lib_save_LIBS
11982 fi
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11984 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11985 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11986   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11987 fi
11988
11989
11990 fi
11991
11992
11993 fi
11994
11995
11996 fi
11997
11998
11999 fi
12000
12001
12002 fi
12003
12004     ;;
12005   esac
12006
12007   if test "x$lt_cv_dlopen" != xno; then
12008     enable_dlopen=yes
12009   else
12010     enable_dlopen=no
12011   fi
12012
12013   case $lt_cv_dlopen in
12014   dlopen)
12015     save_CPPFLAGS="$CPPFLAGS"
12016     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12017
12018     save_LDFLAGS="$LDFLAGS"
12019     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12020
12021     save_LIBS="$LIBS"
12022     LIBS="$lt_cv_dlopen_libs $LIBS"
12023
12024     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12025 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12026 if ${lt_cv_dlopen_self+:} false; then :
12027   $as_echo_n "(cached) " >&6
12028 else
12029           if test "$cross_compiling" = yes; then :
12030   lt_cv_dlopen_self=cross
12031 else
12032   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12033   lt_status=$lt_dlunknown
12034   cat > conftest.$ac_ext <<_LT_EOF
12035 #line $LINENO "configure"
12036 #include "confdefs.h"
12037
12038 #if HAVE_DLFCN_H
12039 #include <dlfcn.h>
12040 #endif
12041
12042 #include <stdio.h>
12043
12044 #ifdef RTLD_GLOBAL
12045 #  define LT_DLGLOBAL           RTLD_GLOBAL
12046 #else
12047 #  ifdef DL_GLOBAL
12048 #    define LT_DLGLOBAL         DL_GLOBAL
12049 #  else
12050 #    define LT_DLGLOBAL         0
12051 #  endif
12052 #endif
12053
12054 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12055    find out it does not work in some platform. */
12056 #ifndef LT_DLLAZY_OR_NOW
12057 #  ifdef RTLD_LAZY
12058 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12059 #  else
12060 #    ifdef DL_LAZY
12061 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12062 #    else
12063 #      ifdef RTLD_NOW
12064 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12065 #      else
12066 #        ifdef DL_NOW
12067 #          define LT_DLLAZY_OR_NOW      DL_NOW
12068 #        else
12069 #          define LT_DLLAZY_OR_NOW      0
12070 #        endif
12071 #      endif
12072 #    endif
12073 #  endif
12074 #endif
12075
12076 /* When -fvisbility=hidden is used, assume the code has been annotated
12077    correspondingly for the symbols needed.  */
12078 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12079 int fnord () __attribute__((visibility("default")));
12080 #endif
12081
12082 int fnord () { return 42; }
12083 int main ()
12084 {
12085   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12086   int status = $lt_dlunknown;
12087
12088   if (self)
12089     {
12090       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12091       else
12092         {
12093           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12094           else puts (dlerror ());
12095         }
12096       /* dlclose (self); */
12097     }
12098   else
12099     puts (dlerror ());
12100
12101   return status;
12102 }
12103 _LT_EOF
12104   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12105   (eval $ac_link) 2>&5
12106   ac_status=$?
12107   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12108   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12109     (./conftest; exit; ) >&5 2>/dev/null
12110     lt_status=$?
12111     case x$lt_status in
12112       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12113       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12114       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12115     esac
12116   else :
12117     # compilation failed
12118     lt_cv_dlopen_self=no
12119   fi
12120 fi
12121 rm -fr conftest*
12122
12123
12124 fi
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12126 $as_echo "$lt_cv_dlopen_self" >&6; }
12127
12128     if test "x$lt_cv_dlopen_self" = xyes; then
12129       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12130       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12131 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12132 if ${lt_cv_dlopen_self_static+:} false; then :
12133   $as_echo_n "(cached) " >&6
12134 else
12135           if test "$cross_compiling" = yes; then :
12136   lt_cv_dlopen_self_static=cross
12137 else
12138   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12139   lt_status=$lt_dlunknown
12140   cat > conftest.$ac_ext <<_LT_EOF
12141 #line $LINENO "configure"
12142 #include "confdefs.h"
12143
12144 #if HAVE_DLFCN_H
12145 #include <dlfcn.h>
12146 #endif
12147
12148 #include <stdio.h>
12149
12150 #ifdef RTLD_GLOBAL
12151 #  define LT_DLGLOBAL           RTLD_GLOBAL
12152 #else
12153 #  ifdef DL_GLOBAL
12154 #    define LT_DLGLOBAL         DL_GLOBAL
12155 #  else
12156 #    define LT_DLGLOBAL         0
12157 #  endif
12158 #endif
12159
12160 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12161    find out it does not work in some platform. */
12162 #ifndef LT_DLLAZY_OR_NOW
12163 #  ifdef RTLD_LAZY
12164 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12165 #  else
12166 #    ifdef DL_LAZY
12167 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12168 #    else
12169 #      ifdef RTLD_NOW
12170 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12171 #      else
12172 #        ifdef DL_NOW
12173 #          define LT_DLLAZY_OR_NOW      DL_NOW
12174 #        else
12175 #          define LT_DLLAZY_OR_NOW      0
12176 #        endif
12177 #      endif
12178 #    endif
12179 #  endif
12180 #endif
12181
12182 /* When -fvisbility=hidden is used, assume the code has been annotated
12183    correspondingly for the symbols needed.  */
12184 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12185 int fnord () __attribute__((visibility("default")));
12186 #endif
12187
12188 int fnord () { return 42; }
12189 int main ()
12190 {
12191   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12192   int status = $lt_dlunknown;
12193
12194   if (self)
12195     {
12196       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12197       else
12198         {
12199           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12200           else puts (dlerror ());
12201         }
12202       /* dlclose (self); */
12203     }
12204   else
12205     puts (dlerror ());
12206
12207   return status;
12208 }
12209 _LT_EOF
12210   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12211   (eval $ac_link) 2>&5
12212   ac_status=$?
12213   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12214   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12215     (./conftest; exit; ) >&5 2>/dev/null
12216     lt_status=$?
12217     case x$lt_status in
12218       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12219       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12220       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12221     esac
12222   else :
12223     # compilation failed
12224     lt_cv_dlopen_self_static=no
12225   fi
12226 fi
12227 rm -fr conftest*
12228
12229
12230 fi
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12232 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12233     fi
12234
12235     CPPFLAGS="$save_CPPFLAGS"
12236     LDFLAGS="$save_LDFLAGS"
12237     LIBS="$save_LIBS"
12238     ;;
12239   esac
12240
12241   case $lt_cv_dlopen_self in
12242   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12243   *) enable_dlopen_self=unknown ;;
12244   esac
12245
12246   case $lt_cv_dlopen_self_static in
12247   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12248   *) enable_dlopen_self_static=unknown ;;
12249   esac
12250 fi
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268 striplib=
12269 old_striplib=
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12271 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12272 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12273   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12274   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12276 $as_echo "yes" >&6; }
12277 else
12278 # FIXME - insert some real tests, host_os isn't really good enough
12279   case $host_os in
12280   darwin*)
12281     if test -n "$STRIP" ; then
12282       striplib="$STRIP -x"
12283       old_striplib="$STRIP -S"
12284       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12285 $as_echo "yes" >&6; }
12286     else
12287       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12288 $as_echo "no" >&6; }
12289     fi
12290     ;;
12291   *)
12292     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293 $as_echo "no" >&6; }
12294     ;;
12295   esac
12296 fi
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309   # Report which library types will actually be built
12310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12311 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12313 $as_echo "$can_build_shared" >&6; }
12314
12315   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12316 $as_echo_n "checking whether to build shared libraries... " >&6; }
12317   test "$can_build_shared" = "no" && enable_shared=no
12318
12319   # On AIX, shared libraries and static libraries use the same namespace, and
12320   # are all built from PIC.
12321   case $host_os in
12322   aix3*)
12323     test "$enable_shared" = yes && enable_static=no
12324     if test -n "$RANLIB"; then
12325       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12326       postinstall_cmds='$RANLIB $lib'
12327     fi
12328     ;;
12329
12330   aix[4-9]*)
12331     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12332       test "$enable_shared" = yes && enable_static=no
12333     fi
12334     ;;
12335   esac
12336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12337 $as_echo "$enable_shared" >&6; }
12338
12339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12340 $as_echo_n "checking whether to build static libraries... " >&6; }
12341   # Make sure either enable_shared or enable_static is yes.
12342   test "$enable_shared" = yes || enable_static=yes
12343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12344 $as_echo "$enable_static" >&6; }
12345
12346
12347
12348
12349 fi
12350 ac_ext=c
12351 ac_cpp='$CPP $CPPFLAGS'
12352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12355
12356 CC="$lt_save_CC"
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372         ac_config_commands="$ac_config_commands libtool"
12373
12374
12375
12376
12377 # Only expand once:
12378
12379
12380
12381
12382       if test "X$prefix" = "XNONE"; then
12383     acl_final_prefix="$ac_default_prefix"
12384   else
12385     acl_final_prefix="$prefix"
12386   fi
12387   if test "X$exec_prefix" = "XNONE"; then
12388     acl_final_exec_prefix='${prefix}'
12389   else
12390     acl_final_exec_prefix="$exec_prefix"
12391   fi
12392   acl_save_prefix="$prefix"
12393   prefix="$acl_final_prefix"
12394   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12395   prefix="$acl_save_prefix"
12396
12397
12398 # Check whether --with-gnu-ld was given.
12399 if test "${with_gnu_ld+set}" = set; then :
12400   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12401 else
12402   with_gnu_ld=no
12403 fi
12404
12405 # Prepare PATH_SEPARATOR.
12406 # The user is always right.
12407 if test "${PATH_SEPARATOR+set}" != set; then
12408   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
12409   # contains only /bin. Note that ksh looks also at the FPATH variable,
12410   # so we have to set that as well for the test.
12411   PATH_SEPARATOR=:
12412   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
12413     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
12414            || PATH_SEPARATOR=';'
12415        }
12416 fi
12417 ac_prog=ld
12418 if test "$GCC" = yes; then
12419   # Check if gcc -print-prog-name=ld gives a path.
12420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12421 $as_echo_n "checking for ld used by GCC... " >&6; }
12422   case $host in
12423   *-*-mingw*)
12424     # gcc leaves a trailing carriage return which upsets mingw
12425     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12426   *)
12427     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12428   esac
12429   case $ac_prog in
12430     # Accept absolute paths.
12431     [\\/]* | [A-Za-z]:[\\/]*)
12432       re_direlt='/[^/][^/]*/\.\./'
12433       # Canonicalize the path of ld
12434       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12435       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12436         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12437       done
12438       test -z "$LD" && LD="$ac_prog"
12439       ;;
12440   "")
12441     # If it fails, then pretend we aren't using GCC.
12442     ac_prog=ld
12443     ;;
12444   *)
12445     # If it is relative, then search for the first ld in PATH.
12446     with_gnu_ld=unknown
12447     ;;
12448   esac
12449 elif test "$with_gnu_ld" = yes; then
12450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12451 $as_echo_n "checking for GNU ld... " >&6; }
12452 else
12453   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12454 $as_echo_n "checking for non-GNU ld... " >&6; }
12455 fi
12456 if ${acl_cv_path_LD+:} false; then :
12457   $as_echo_n "(cached) " >&6
12458 else
12459   if test -z "$LD"; then
12460   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12461   for ac_dir in $PATH; do
12462     test -z "$ac_dir" && ac_dir=.
12463     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12464       acl_cv_path_LD="$ac_dir/$ac_prog"
12465       # Check to see if the program is GNU ld.  I'd rather use --version,
12466       # but apparently some GNU ld's only accept -v.
12467       # Break only if it was the GNU/non-GNU ld that we prefer.
12468       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12469       *GNU* | *'with BFD'*)
12470         test "$with_gnu_ld" != no && break ;;
12471       *)
12472         test "$with_gnu_ld" != yes && break ;;
12473       esac
12474     fi
12475   done
12476   IFS="$ac_save_ifs"
12477 else
12478   acl_cv_path_LD="$LD" # Let the user override the test with a path.
12479 fi
12480 fi
12481
12482 LD="$acl_cv_path_LD"
12483 if test -n "$LD"; then
12484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12485 $as_echo "$LD" >&6; }
12486 else
12487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12488 $as_echo "no" >&6; }
12489 fi
12490 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12492 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12493 if ${acl_cv_prog_gnu_ld+:} false; then :
12494   $as_echo_n "(cached) " >&6
12495 else
12496   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12497 case `$LD -v 2>&1 </dev/null` in
12498 *GNU* | *'with BFD'*)
12499   acl_cv_prog_gnu_ld=yes ;;
12500 *)
12501   acl_cv_prog_gnu_ld=no ;;
12502 esac
12503 fi
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12505 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12506 with_gnu_ld=$acl_cv_prog_gnu_ld
12507
12508
12509
12510
12511                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12512 $as_echo_n "checking for shared library run path origin... " >&6; }
12513 if ${acl_cv_rpath+:} false; then :
12514   $as_echo_n "(cached) " >&6
12515 else
12516
12517     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12518     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12519     . ./conftest.sh
12520     rm -f ./conftest.sh
12521     acl_cv_rpath=done
12522
12523 fi
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12525 $as_echo "$acl_cv_rpath" >&6; }
12526   wl="$acl_cv_wl"
12527   acl_libext="$acl_cv_libext"
12528   acl_shlibext="$acl_cv_shlibext"
12529   acl_libname_spec="$acl_cv_libname_spec"
12530   acl_library_names_spec="$acl_cv_library_names_spec"
12531   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12532   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12533   acl_hardcode_direct="$acl_cv_hardcode_direct"
12534   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12535     # Check whether --enable-rpath was given.
12536 if test "${enable_rpath+set}" = set; then :
12537   enableval=$enable_rpath; :
12538 else
12539   enable_rpath=yes
12540 fi
12541
12542
12543
12544
12545   acl_libdirstem=lib
12546   acl_libdirstem2=
12547   case "$host_os" in
12548     solaris*)
12549                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
12550 $as_echo_n "checking for 64-bit host... " >&6; }
12551 if ${gl_cv_solaris_64bit+:} false; then :
12552   $as_echo_n "(cached) " >&6
12553 else
12554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12555 /* end confdefs.h.  */
12556
12557 #ifdef _LP64
12558 sixtyfour bits
12559 #endif
12560
12561 _ACEOF
12562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12563   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
12564   gl_cv_solaris_64bit=yes
12565 else
12566   gl_cv_solaris_64bit=no
12567 fi
12568 rm -f conftest*
12569
12570
12571 fi
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12573 $as_echo "$gl_cv_solaris_64bit" >&6; }
12574       if test $gl_cv_solaris_64bit = yes; then
12575         acl_libdirstem=lib/64
12576         case "$host_cpu" in
12577           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
12578           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
12579         esac
12580       fi
12581       ;;
12582     *)
12583       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12584       if test -n "$searchpath"; then
12585         acl_save_IFS="${IFS=    }"; IFS=":"
12586         for searchdir in $searchpath; do
12587           if test -d "$searchdir"; then
12588             case "$searchdir" in
12589               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12590               */../ | */.. )
12591                 # Better ignore directories of this form. They are misleading.
12592                 ;;
12593               *) searchdir=`cd "$searchdir" && pwd`
12594                  case "$searchdir" in
12595                    */lib64 ) acl_libdirstem=lib64 ;;
12596                  esac ;;
12597             esac
12598           fi
12599         done
12600         IFS="$acl_save_IFS"
12601       fi
12602       ;;
12603   esac
12604   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
12605
12606
12607   # Library code modified:                              REVISION++
12608   # Interfaces changed/added/removed:   CURRENT++       REVISION=0
12609   # Interfaces added:                             AGE++
12610   # Interfaces removed:                           AGE=0
12611   LT_CURRENT=48
12612
12613   LT_REVISION=4
12614
12615   LT_AGE=22
12616
12617
12618   LT_SSL_CURRENT=27
12619
12620   LT_SSL_REVISION=0
12621
12622   LT_SSL_AGE=0
12623
12624
12625   CXX_LT_CURRENT=27
12626
12627   CXX_LT_REVISION=0
12628
12629   CXX_LT_AGE=0
12630
12631
12632   # Used when creating the Windows libgnutls-XX.def files.
12633   DLL_VERSION=`expr ${LT_CURRENT} - ${LT_AGE}`
12634
12635
12636   cryptolib="nettle"
12637
12638
12639 # Check whether --with-libgcrypt was given.
12640 if test "${with_libgcrypt+set}" = set; then :
12641   withval=$with_libgcrypt; libgcrypt=$withval
12642 else
12643   libgcrypt=no
12644 fi
12645
12646     if test "$libgcrypt" = "yes"; then
12647         cryptolib=libgcrypt
12648
12649 $as_echo "#define HAVE_GCRYPT 1" >>confdefs.h
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664     use_additional=yes
12665
12666   acl_save_prefix="$prefix"
12667   prefix="$acl_final_prefix"
12668   acl_save_exec_prefix="$exec_prefix"
12669   exec_prefix="$acl_final_exec_prefix"
12670
12671     eval additional_includedir=\"$includedir\"
12672     eval additional_libdir=\"$libdir\"
12673
12674   exec_prefix="$acl_save_exec_prefix"
12675   prefix="$acl_save_prefix"
12676
12677
12678 # Check whether --with-libgcrypt-prefix was given.
12679 if test "${with_libgcrypt_prefix+set}" = set; then :
12680   withval=$with_libgcrypt_prefix;
12681     if test "X$withval" = "Xno"; then
12682       use_additional=no
12683     else
12684       if test "X$withval" = "X"; then
12685
12686   acl_save_prefix="$prefix"
12687   prefix="$acl_final_prefix"
12688   acl_save_exec_prefix="$exec_prefix"
12689   exec_prefix="$acl_final_exec_prefix"
12690
12691           eval additional_includedir=\"$includedir\"
12692           eval additional_libdir=\"$libdir\"
12693
12694   exec_prefix="$acl_save_exec_prefix"
12695   prefix="$acl_save_prefix"
12696
12697       else
12698         additional_includedir="$withval/include"
12699         additional_libdir="$withval/$acl_libdirstem"
12700         if test "$acl_libdirstem2" != "$acl_libdirstem" \
12701            && ! test -d "$withval/$acl_libdirstem"; then
12702           additional_libdir="$withval/$acl_libdirstem2"
12703         fi
12704       fi
12705     fi
12706
12707 fi
12708
12709       LIBGCRYPT=
12710   LTLIBGCRYPT=
12711   INCGCRYPT=
12712   LIBGCRYPT_PREFIX=
12713       HAVE_LIBGCRYPT=
12714   rpathdirs=
12715   ltrpathdirs=
12716   names_already_handled=
12717   names_next_round='gcrypt gpg-error'
12718   while test -n "$names_next_round"; do
12719     names_this_round="$names_next_round"
12720     names_next_round=
12721     for name in $names_this_round; do
12722       already_handled=
12723       for n in $names_already_handled; do
12724         if test "$n" = "$name"; then
12725           already_handled=yes
12726           break
12727         fi
12728       done
12729       if test -z "$already_handled"; then
12730         names_already_handled="$names_already_handled $name"
12731                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
12732         eval value=\"\$HAVE_LIB$uppername\"
12733         if test -n "$value"; then
12734           if test "$value" = yes; then
12735             eval value=\"\$LIB$uppername\"
12736             test -z "$value" || LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$value"
12737             eval value=\"\$LTLIB$uppername\"
12738             test -z "$value" || LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }$value"
12739           else
12740                                     :
12741           fi
12742         else
12743                               found_dir=
12744           found_la=
12745           found_so=
12746           found_a=
12747           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
12748           if test -n "$acl_shlibext"; then
12749             shrext=".$acl_shlibext"             # typically: shrext=.so
12750           else
12751             shrext=
12752           fi
12753           if test $use_additional = yes; then
12754             dir="$additional_libdir"
12755                                     if test -n "$acl_shlibext"; then
12756               if test -f "$dir/$libname$shrext"; then
12757                 found_dir="$dir"
12758                 found_so="$dir/$libname$shrext"
12759               else
12760                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12761                   ver=`(cd "$dir" && \
12762                         for f in "$libname$shrext".*; do echo "$f"; done \
12763                         | sed -e "s,^$libname$shrext\\\\.,," \
12764                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12765                         | sed 1q ) 2>/dev/null`
12766                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12767                     found_dir="$dir"
12768                     found_so="$dir/$libname$shrext.$ver"
12769                   fi
12770                 else
12771                   eval library_names=\"$acl_library_names_spec\"
12772                   for f in $library_names; do
12773                     if test -f "$dir/$f"; then
12774                       found_dir="$dir"
12775                       found_so="$dir/$f"
12776                       break
12777                     fi
12778                   done
12779                 fi
12780               fi
12781             fi
12782                         if test "X$found_dir" = "X"; then
12783               if test -f "$dir/$libname.$acl_libext"; then
12784                 found_dir="$dir"
12785                 found_a="$dir/$libname.$acl_libext"
12786               fi
12787             fi
12788             if test "X$found_dir" != "X"; then
12789               if test -f "$dir/$libname.la"; then
12790                 found_la="$dir/$libname.la"
12791               fi
12792             fi
12793           fi
12794           if test "X$found_dir" = "X"; then
12795             for x in $LDFLAGS $LTLIBGCRYPT; do
12796
12797   acl_save_prefix="$prefix"
12798   prefix="$acl_final_prefix"
12799   acl_save_exec_prefix="$exec_prefix"
12800   exec_prefix="$acl_final_exec_prefix"
12801   eval x=\"$x\"
12802   exec_prefix="$acl_save_exec_prefix"
12803   prefix="$acl_save_prefix"
12804
12805               case "$x" in
12806                 -L*)
12807                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12808                                     if test -n "$acl_shlibext"; then
12809                     if test -f "$dir/$libname$shrext"; then
12810                       found_dir="$dir"
12811                       found_so="$dir/$libname$shrext"
12812                     else
12813                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12814                         ver=`(cd "$dir" && \
12815                               for f in "$libname$shrext".*; do echo "$f"; done \
12816                               | sed -e "s,^$libname$shrext\\\\.,," \
12817                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12818                               | sed 1q ) 2>/dev/null`
12819                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12820                           found_dir="$dir"
12821                           found_so="$dir/$libname$shrext.$ver"
12822                         fi
12823                       else
12824                         eval library_names=\"$acl_library_names_spec\"
12825                         for f in $library_names; do
12826                           if test -f "$dir/$f"; then
12827                             found_dir="$dir"
12828                             found_so="$dir/$f"
12829                             break
12830                           fi
12831                         done
12832                       fi
12833                     fi
12834                   fi
12835                                     if test "X$found_dir" = "X"; then
12836                     if test -f "$dir/$libname.$acl_libext"; then
12837                       found_dir="$dir"
12838                       found_a="$dir/$libname.$acl_libext"
12839                     fi
12840                   fi
12841                   if test "X$found_dir" != "X"; then
12842                     if test -f "$dir/$libname.la"; then
12843                       found_la="$dir/$libname.la"
12844                     fi
12845                   fi
12846                   ;;
12847               esac
12848               if test "X$found_dir" != "X"; then
12849                 break
12850               fi
12851             done
12852           fi
12853           if test "X$found_dir" != "X"; then
12854                         LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-L$found_dir -l$name"
12855             if test "X$found_so" != "X"; then
12856                                                         if test "$enable_rpath" = no \
12857                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12858                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12859                                 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
12860               else
12861                                                                                 haveit=
12862                 for x in $ltrpathdirs; do
12863                   if test "X$x" = "X$found_dir"; then
12864                     haveit=yes
12865                     break
12866                   fi
12867                 done
12868                 if test -z "$haveit"; then
12869                   ltrpathdirs="$ltrpathdirs $found_dir"
12870                 fi
12871                                 if test "$acl_hardcode_direct" = yes; then
12872                                                       LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
12873                 else
12874                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12875                                                             LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
12876                                                             haveit=
12877                     for x in $rpathdirs; do
12878                       if test "X$x" = "X$found_dir"; then
12879                         haveit=yes
12880                         break
12881                       fi
12882                     done
12883                     if test -z "$haveit"; then
12884                       rpathdirs="$rpathdirs $found_dir"
12885                     fi
12886                   else
12887                                                                                 haveit=
12888                     for x in $LDFLAGS $LIBGCRYPT; do
12889
12890   acl_save_prefix="$prefix"
12891   prefix="$acl_final_prefix"
12892   acl_save_exec_prefix="$exec_prefix"
12893   exec_prefix="$acl_final_exec_prefix"
12894   eval x=\"$x\"
12895   exec_prefix="$acl_save_exec_prefix"
12896   prefix="$acl_save_prefix"
12897
12898                       if test "X$x" = "X-L$found_dir"; then
12899                         haveit=yes
12900                         break
12901                       fi
12902                     done
12903                     if test -z "$haveit"; then
12904                       LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$found_dir"
12905                     fi
12906                     if test "$acl_hardcode_minus_L" != no; then
12907                                                                                         LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
12908                     else
12909                                                                                                                                                                                 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-l$name"
12910                     fi
12911                   fi
12912                 fi
12913               fi
12914             else
12915               if test "X$found_a" != "X"; then
12916                                 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_a"
12917               else
12918                                                 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$found_dir -l$name"
12919               fi
12920             fi
12921                         additional_includedir=
12922             case "$found_dir" in
12923               */$acl_libdirstem | */$acl_libdirstem/)
12924                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12925                 if test "$name" = 'gcrypt'; then
12926                   LIBGCRYPT_PREFIX="$basedir"
12927                 fi
12928                 additional_includedir="$basedir/include"
12929                 ;;
12930               */$acl_libdirstem2 | */$acl_libdirstem2/)
12931                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12932                 if test "$name" = 'gcrypt'; then
12933                   LIBGCRYPT_PREFIX="$basedir"
12934                 fi
12935                 additional_includedir="$basedir/include"
12936                 ;;
12937             esac
12938             if test "X$additional_includedir" != "X"; then
12939                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12940                 haveit=
12941                 if test "X$additional_includedir" = "X/usr/local/include"; then
12942                   if test -n "$GCC"; then
12943                     case $host_os in
12944                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12945                     esac
12946                   fi
12947                 fi
12948                 if test -z "$haveit"; then
12949                   for x in $CPPFLAGS $INCGCRYPT; do
12950
12951   acl_save_prefix="$prefix"
12952   prefix="$acl_final_prefix"
12953   acl_save_exec_prefix="$exec_prefix"
12954   exec_prefix="$acl_final_exec_prefix"
12955   eval x=\"$x\"
12956   exec_prefix="$acl_save_exec_prefix"
12957   prefix="$acl_save_prefix"
12958
12959                     if test "X$x" = "X-I$additional_includedir"; then
12960                       haveit=yes
12961                       break
12962                     fi
12963                   done
12964                   if test -z "$haveit"; then
12965                     if test -d "$additional_includedir"; then
12966                                             INCGCRYPT="${INCGCRYPT}${INCGCRYPT:+ }-I$additional_includedir"
12967                     fi
12968                   fi
12969                 fi
12970               fi
12971             fi
12972                         if test -n "$found_la"; then
12973                                                         save_libdir="$libdir"
12974               case "$found_la" in
12975                 */* | *\\*) . "$found_la" ;;
12976                 *) . "./$found_la" ;;
12977               esac
12978               libdir="$save_libdir"
12979                             for dep in $dependency_libs; do
12980                 case "$dep" in
12981                   -L*)
12982                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12983                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12984                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12985                       haveit=
12986                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12987                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12988                         if test -n "$GCC"; then
12989                           case $host_os in
12990                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12991                           esac
12992                         fi
12993                       fi
12994                       if test -z "$haveit"; then
12995                         haveit=
12996                         for x in $LDFLAGS $LIBGCRYPT; do
12997
12998   acl_save_prefix="$prefix"
12999   prefix="$acl_final_prefix"
13000   acl_save_exec_prefix="$exec_prefix"
13001   exec_prefix="$acl_final_exec_prefix"
13002   eval x=\"$x\"
13003   exec_prefix="$acl_save_exec_prefix"
13004   prefix="$acl_save_prefix"
13005
13006                           if test "X$x" = "X-L$additional_libdir"; then
13007                             haveit=yes
13008                             break
13009                           fi
13010                         done
13011                         if test -z "$haveit"; then
13012                           if test -d "$additional_libdir"; then
13013                                                         LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$additional_libdir"
13014                           fi
13015                         fi
13016                         haveit=
13017                         for x in $LDFLAGS $LTLIBGCRYPT; do
13018
13019   acl_save_prefix="$prefix"
13020   prefix="$acl_final_prefix"
13021   acl_save_exec_prefix="$exec_prefix"
13022   exec_prefix="$acl_final_exec_prefix"
13023   eval x=\"$x\"
13024   exec_prefix="$acl_save_exec_prefix"
13025   prefix="$acl_save_prefix"
13026
13027                           if test "X$x" = "X-L$additional_libdir"; then
13028                             haveit=yes
13029                             break
13030                           fi
13031                         done
13032                         if test -z "$haveit"; then
13033                           if test -d "$additional_libdir"; then
13034                                                         LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-L$additional_libdir"
13035                           fi
13036                         fi
13037                       fi
13038                     fi
13039                     ;;
13040                   -R*)
13041                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13042                     if test "$enable_rpath" != no; then
13043                                                                   haveit=
13044                       for x in $rpathdirs; do
13045                         if test "X$x" = "X$dir"; then
13046                           haveit=yes
13047                           break
13048                         fi
13049                       done
13050                       if test -z "$haveit"; then
13051                         rpathdirs="$rpathdirs $dir"
13052                       fi
13053                                                                   haveit=
13054                       for x in $ltrpathdirs; do
13055                         if test "X$x" = "X$dir"; then
13056                           haveit=yes
13057                           break
13058                         fi
13059                       done
13060                       if test -z "$haveit"; then
13061                         ltrpathdirs="$ltrpathdirs $dir"
13062                       fi
13063                     fi
13064                     ;;
13065                   -l*)
13066                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13067                     ;;
13068                   *.la)
13069                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13070                     ;;
13071                   *)
13072                                         LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$dep"
13073                     LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }$dep"
13074                     ;;
13075                 esac
13076               done
13077             fi
13078           else
13079                                                             LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-l$name"
13080             LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-l$name"
13081           fi
13082         fi
13083       fi
13084     done
13085   done
13086   if test "X$rpathdirs" != "X"; then
13087     if test -n "$acl_hardcode_libdir_separator"; then
13088                         alldirs=
13089       for found_dir in $rpathdirs; do
13090         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13091       done
13092             acl_save_libdir="$libdir"
13093       libdir="$alldirs"
13094       eval flag=\"$acl_hardcode_libdir_flag_spec\"
13095       libdir="$acl_save_libdir"
13096       LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$flag"
13097     else
13098             for found_dir in $rpathdirs; do
13099         acl_save_libdir="$libdir"
13100         libdir="$found_dir"
13101         eval flag=\"$acl_hardcode_libdir_flag_spec\"
13102         libdir="$acl_save_libdir"
13103         LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$flag"
13104       done
13105     fi
13106   fi
13107   if test "X$ltrpathdirs" != "X"; then
13108             for found_dir in $ltrpathdirs; do
13109       LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-R$found_dir"
13110     done
13111   fi
13112
13113
13114
13115
13116
13117
13118
13119         ac_save_CPPFLAGS="$CPPFLAGS"
13120
13121   for element in $INCGCRYPT; do
13122     haveit=
13123     for x in $CPPFLAGS; do
13124
13125   acl_save_prefix="$prefix"
13126   prefix="$acl_final_prefix"
13127   acl_save_exec_prefix="$exec_prefix"
13128   exec_prefix="$acl_final_exec_prefix"
13129   eval x=\"$x\"
13130   exec_prefix="$acl_save_exec_prefix"
13131   prefix="$acl_save_prefix"
13132
13133       if test "X$x" = "X$element"; then
13134         haveit=yes
13135         break
13136       fi
13137     done
13138     if test -z "$haveit"; then
13139       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13140     fi
13141   done
13142
13143
13144   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcrypt" >&5
13145 $as_echo_n "checking for libgcrypt... " >&6; }
13146 if ${ac_cv_libgcrypt+:} false; then :
13147   $as_echo_n "(cached) " >&6
13148 else
13149
13150     ac_save_LIBS="$LIBS"
13151                                 case " $LIBGCRYPT" in
13152       *" -l"*) LIBS="$LIBS $LIBGCRYPT" ;;
13153       *)       LIBS="$LIBGCRYPT $LIBS" ;;
13154     esac
13155     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156 /* end confdefs.h.  */
13157 #include <gcrypt.h>
13158 int
13159 main ()
13160 {
13161 enum gcry_cipher_algos i = GCRY_CIPHER_CAMELLIA128
13162   ;
13163   return 0;
13164 }
13165 _ACEOF
13166 if ac_fn_c_try_link "$LINENO"; then :
13167   ac_cv_libgcrypt=yes
13168 else
13169   ac_cv_libgcrypt='no'
13170 fi
13171 rm -f core conftest.err conftest.$ac_objext \
13172     conftest$ac_exeext conftest.$ac_ext
13173     LIBS="$ac_save_LIBS"
13174
13175 fi
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgcrypt" >&5
13177 $as_echo "$ac_cv_libgcrypt" >&6; }
13178   if test "$ac_cv_libgcrypt" = yes; then
13179     HAVE_LIBGCRYPT=yes
13180
13181 $as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
13182
13183     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgcrypt" >&5
13184 $as_echo_n "checking how to link with libgcrypt... " >&6; }
13185     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT" >&5
13186 $as_echo "$LIBGCRYPT" >&6; }
13187   else
13188     HAVE_LIBGCRYPT=no
13189             CPPFLAGS="$ac_save_CPPFLAGS"
13190     LIBGCRYPT=
13191     LTLIBGCRYPT=
13192     LIBGCRYPT_PREFIX=
13193   fi
13194
13195
13196
13197
13198
13199
13200
13201       if test "$ac_cv_libgcrypt" != yes; then
13202         as_fn_error $? "
13203 ***
13204 *** Libgcrypt v1.4.0 or later was not found. You may want to get it from
13205 *** ftp://ftp.gnupg.org/gcrypt/libgcrypt/
13206 ***
13207     " "$LINENO" 5
13208       fi
13209     fi
13210
13211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use nettle" >&5
13212 $as_echo_n "checking whether to use nettle... " >&6; }
13213 if test "$cryptolib" = "nettle";then
13214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13215 $as_echo "yes" >&6; }
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229     use_additional=yes
13230
13231   acl_save_prefix="$prefix"
13232   prefix="$acl_final_prefix"
13233   acl_save_exec_prefix="$exec_prefix"
13234   exec_prefix="$acl_final_exec_prefix"
13235
13236     eval additional_includedir=\"$includedir\"
13237     eval additional_libdir=\"$libdir\"
13238
13239   exec_prefix="$acl_save_exec_prefix"
13240   prefix="$acl_save_prefix"
13241
13242
13243 # Check whether --with-libnettle-prefix was given.
13244 if test "${with_libnettle_prefix+set}" = set; then :
13245   withval=$with_libnettle_prefix;
13246     if test "X$withval" = "Xno"; then
13247       use_additional=no
13248     else
13249       if test "X$withval" = "X"; then
13250
13251   acl_save_prefix="$prefix"
13252   prefix="$acl_final_prefix"
13253   acl_save_exec_prefix="$exec_prefix"
13254   exec_prefix="$acl_final_exec_prefix"
13255
13256           eval additional_includedir=\"$includedir\"
13257           eval additional_libdir=\"$libdir\"
13258
13259   exec_prefix="$acl_save_exec_prefix"
13260   prefix="$acl_save_prefix"
13261
13262       else
13263         additional_includedir="$withval/include"
13264         additional_libdir="$withval/$acl_libdirstem"
13265         if test "$acl_libdirstem2" != "$acl_libdirstem" \
13266            && ! test -d "$withval/$acl_libdirstem"; then
13267           additional_libdir="$withval/$acl_libdirstem2"
13268         fi
13269       fi
13270     fi
13271
13272 fi
13273
13274       LIBNETTLE=
13275   LTLIBNETTLE=
13276   INCNETTLE=
13277   LIBNETTLE_PREFIX=
13278       HAVE_LIBNETTLE=
13279   rpathdirs=
13280   ltrpathdirs=
13281   names_already_handled=
13282   names_next_round='nettle '
13283   while test -n "$names_next_round"; do
13284     names_this_round="$names_next_round"
13285     names_next_round=
13286     for name in $names_this_round; do
13287       already_handled=
13288       for n in $names_already_handled; do
13289         if test "$n" = "$name"; then
13290           already_handled=yes
13291           break
13292         fi
13293       done
13294       if test -z "$already_handled"; then
13295         names_already_handled="$names_already_handled $name"
13296                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
13297         eval value=\"\$HAVE_LIB$uppername\"
13298         if test -n "$value"; then
13299           if test "$value" = yes; then
13300             eval value=\"\$LIB$uppername\"
13301             test -z "$value" || LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$value"
13302             eval value=\"\$LTLIB$uppername\"
13303             test -z "$value" || LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }$value"
13304           else
13305                                     :
13306           fi
13307         else
13308                               found_dir=
13309           found_la=
13310           found_so=
13311           found_a=
13312           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
13313           if test -n "$acl_shlibext"; then
13314             shrext=".$acl_shlibext"             # typically: shrext=.so
13315           else
13316             shrext=
13317           fi
13318           if test $use_additional = yes; then
13319             dir="$additional_libdir"
13320                                     if test -n "$acl_shlibext"; then
13321               if test -f "$dir/$libname$shrext"; then
13322                 found_dir="$dir"
13323                 found_so="$dir/$libname$shrext"
13324               else
13325                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13326                   ver=`(cd "$dir" && \
13327                         for f in "$libname$shrext".*; do echo "$f"; done \
13328                         | sed -e "s,^$libname$shrext\\\\.,," \
13329                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13330                         | sed 1q ) 2>/dev/null`
13331                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13332                     found_dir="$dir"
13333                     found_so="$dir/$libname$shrext.$ver"
13334                   fi
13335                 else
13336                   eval library_names=\"$acl_library_names_spec\"
13337                   for f in $library_names; do
13338                     if test -f "$dir/$f"; then
13339                       found_dir="$dir"
13340                       found_so="$dir/$f"
13341                       break
13342                     fi
13343                   done
13344                 fi
13345               fi
13346             fi
13347                         if test "X$found_dir" = "X"; then
13348               if test -f "$dir/$libname.$acl_libext"; then
13349                 found_dir="$dir"
13350                 found_a="$dir/$libname.$acl_libext"
13351               fi
13352             fi
13353             if test "X$found_dir" != "X"; then
13354               if test -f "$dir/$libname.la"; then
13355                 found_la="$dir/$libname.la"
13356               fi
13357             fi
13358           fi
13359           if test "X$found_dir" = "X"; then
13360             for x in $LDFLAGS $LTLIBNETTLE; do
13361
13362   acl_save_prefix="$prefix"
13363   prefix="$acl_final_prefix"
13364   acl_save_exec_prefix="$exec_prefix"
13365   exec_prefix="$acl_final_exec_prefix"
13366   eval x=\"$x\"
13367   exec_prefix="$acl_save_exec_prefix"
13368   prefix="$acl_save_prefix"
13369
13370               case "$x" in
13371                 -L*)
13372                   dir=`echo "X$x" | sed -e 's/^X-L//'`
13373                                     if test -n "$acl_shlibext"; then
13374                     if test -f "$dir/$libname$shrext"; then
13375                       found_dir="$dir"
13376                       found_so="$dir/$libname$shrext"
13377                     else
13378                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13379                         ver=`(cd "$dir" && \
13380                               for f in "$libname$shrext".*; do echo "$f"; done \
13381                               | sed -e "s,^$libname$shrext\\\\.,," \
13382                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13383                               | sed 1q ) 2>/dev/null`
13384                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13385                           found_dir="$dir"
13386                           found_so="$dir/$libname$shrext.$ver"
13387                         fi
13388                       else
13389                         eval library_names=\"$acl_library_names_spec\"
13390                         for f in $library_names; do
13391                           if test -f "$dir/$f"; then
13392                             found_dir="$dir"
13393                             found_so="$dir/$f"
13394                             break
13395                           fi
13396                         done
13397                       fi
13398                     fi
13399                   fi
13400                                     if test "X$found_dir" = "X"; then
13401                     if test -f "$dir/$libname.$acl_libext"; then
13402                       found_dir="$dir"
13403                       found_a="$dir/$libname.$acl_libext"
13404                     fi
13405                   fi
13406                   if test "X$found_dir" != "X"; then
13407                     if test -f "$dir/$libname.la"; then
13408                       found_la="$dir/$libname.la"
13409                     fi
13410                   fi
13411                   ;;
13412               esac
13413               if test "X$found_dir" != "X"; then
13414                 break
13415               fi
13416             done
13417           fi
13418           if test "X$found_dir" != "X"; then
13419                         LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-L$found_dir -l$name"
13420             if test "X$found_so" != "X"; then
13421                                                         if test "$enable_rpath" = no \
13422                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13423                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13424                                 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
13425               else
13426                                                                                 haveit=
13427                 for x in $ltrpathdirs; do
13428                   if test "X$x" = "X$found_dir"; then
13429                     haveit=yes
13430                     break
13431                   fi
13432                 done
13433                 if test -z "$haveit"; then
13434                   ltrpathdirs="$ltrpathdirs $found_dir"
13435                 fi
13436                                 if test "$acl_hardcode_direct" = yes; then
13437                                                       LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
13438                 else
13439                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13440                                                             LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
13441                                                             haveit=
13442                     for x in $rpathdirs; do
13443                       if test "X$x" = "X$found_dir"; then
13444                         haveit=yes
13445                         break
13446                       fi
13447                     done
13448                     if test -z "$haveit"; then
13449                       rpathdirs="$rpathdirs $found_dir"
13450                     fi
13451                   else
13452                                                                                 haveit=
13453                     for x in $LDFLAGS $LIBNETTLE; do
13454
13455   acl_save_prefix="$prefix"
13456   prefix="$acl_final_prefix"
13457   acl_save_exec_prefix="$exec_prefix"
13458   exec_prefix="$acl_final_exec_prefix"
13459   eval x=\"$x\"
13460   exec_prefix="$acl_save_exec_prefix"
13461   prefix="$acl_save_prefix"
13462
13463                       if test "X$x" = "X-L$found_dir"; then
13464                         haveit=yes
13465                         break
13466                       fi
13467                     done
13468                     if test -z "$haveit"; then
13469                       LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-L$found_dir"
13470                     fi
13471                     if test "$acl_hardcode_minus_L" != no; then
13472                                                                                         LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
13473                     else
13474                                                                                                                                                                                 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-l$name"
13475                     fi
13476                   fi
13477                 fi
13478               fi
13479             else
13480               if test "X$found_a" != "X"; then
13481                                 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_a"
13482               else
13483                                                 LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-L$found_dir -l$name"
13484               fi
13485             fi
13486                         additional_includedir=
13487             case "$found_dir" in
13488               */$acl_libdirstem | */$acl_libdirstem/)
13489                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13490                 if test "$name" = 'nettle'; then
13491                   LIBNETTLE_PREFIX="$basedir"
13492                 fi
13493                 additional_includedir="$basedir/include"
13494                 ;;
13495               */$acl_libdirstem2 | */$acl_libdirstem2/)
13496                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13497                 if test "$name" = 'nettle'; then
13498                   LIBNETTLE_PREFIX="$basedir"
13499                 fi
13500                 additional_includedir="$basedir/include"
13501                 ;;
13502             esac
13503             if test "X$additional_includedir" != "X"; then
13504                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
13505                 haveit=
13506                 if test "X$additional_includedir" = "X/usr/local/include"; then
13507                   if test -n "$GCC"; then
13508                     case $host_os in
13509                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13510                     esac
13511                   fi
13512                 fi
13513                 if test -z "$haveit"; then
13514                   for x in $CPPFLAGS $INCNETTLE; do
13515
13516   acl_save_prefix="$prefix"
13517   prefix="$acl_final_prefix"
13518   acl_save_exec_prefix="$exec_prefix"
13519   exec_prefix="$acl_final_exec_prefix"
13520   eval x=\"$x\"
13521   exec_prefix="$acl_save_exec_prefix"
13522   prefix="$acl_save_prefix"
13523
13524                     if test "X$x" = "X-I$additional_includedir"; then
13525                       haveit=yes
13526                       break
13527                     fi
13528                   done
13529                   if test -z "$haveit"; then
13530                     if test -d "$additional_includedir"; then
13531                                             INCNETTLE="${INCNETTLE}${INCNETTLE:+ }-I$additional_includedir"
13532                     fi
13533                   fi
13534                 fi
13535               fi
13536             fi
13537                         if test -n "$found_la"; then
13538                                                         save_libdir="$libdir"
13539               case "$found_la" in
13540                 */* | *\\*) . "$found_la" ;;
13541                 *) . "./$found_la" ;;
13542               esac
13543               libdir="$save_libdir"
13544                             for dep in $dependency_libs; do
13545                 case "$dep" in
13546                   -L*)
13547                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13548                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13549                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13550                       haveit=
13551                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13552                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13553                         if test -n "$GCC"; then
13554                           case $host_os in
13555                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13556                           esac
13557                         fi
13558                       fi
13559                       if test -z "$haveit"; then
13560                         haveit=
13561                         for x in $LDFLAGS $LIBNETTLE; do
13562
13563   acl_save_prefix="$prefix"
13564   prefix="$acl_final_prefix"
13565   acl_save_exec_prefix="$exec_prefix"
13566   exec_prefix="$acl_final_exec_prefix"
13567   eval x=\"$x\"
13568   exec_prefix="$acl_save_exec_prefix"
13569   prefix="$acl_save_prefix"
13570
13571                           if test "X$x" = "X-L$additional_libdir"; then
13572                             haveit=yes
13573                             break
13574                           fi
13575                         done
13576                         if test -z "$haveit"; then
13577                           if test -d "$additional_libdir"; then
13578                                                         LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-L$additional_libdir"
13579                           fi
13580                         fi
13581                         haveit=
13582                         for x in $LDFLAGS $LTLIBNETTLE; do
13583
13584   acl_save_prefix="$prefix"
13585   prefix="$acl_final_prefix"
13586   acl_save_exec_prefix="$exec_prefix"
13587   exec_prefix="$acl_final_exec_prefix"
13588   eval x=\"$x\"
13589   exec_prefix="$acl_save_exec_prefix"
13590   prefix="$acl_save_prefix"
13591
13592                           if test "X$x" = "X-L$additional_libdir"; then
13593                             haveit=yes
13594                             break
13595                           fi
13596                         done
13597                         if test -z "$haveit"; then
13598                           if test -d "$additional_libdir"; then
13599                                                         LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-L$additional_libdir"
13600                           fi
13601                         fi
13602                       fi
13603                     fi
13604                     ;;
13605                   -R*)
13606                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13607                     if test "$enable_rpath" != no; then
13608                                                                   haveit=
13609                       for x in $rpathdirs; do
13610                         if test "X$x" = "X$dir"; then
13611                           haveit=yes
13612                           break
13613                         fi
13614                       done
13615                       if test -z "$haveit"; then
13616                         rpathdirs="$rpathdirs $dir"
13617                       fi
13618                                                                   haveit=
13619                       for x in $ltrpathdirs; do
13620                         if test "X$x" = "X$dir"; then
13621                           haveit=yes
13622                           break
13623                         fi
13624                       done
13625                       if test -z "$haveit"; then
13626                         ltrpathdirs="$ltrpathdirs $dir"
13627                       fi
13628                     fi
13629                     ;;
13630                   -l*)
13631                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13632                     ;;
13633                   *.la)
13634                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13635                     ;;
13636                   *)
13637                                         LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$dep"
13638                     LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }$dep"
13639                     ;;
13640                 esac
13641               done
13642             fi
13643           else
13644                                                             LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-l$name"
13645             LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-l$name"
13646           fi
13647         fi
13648       fi
13649     done
13650   done
13651   if test "X$rpathdirs" != "X"; then
13652     if test -n "$acl_hardcode_libdir_separator"; then
13653                         alldirs=
13654       for found_dir in $rpathdirs; do
13655         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13656       done
13657             acl_save_libdir="$libdir"
13658       libdir="$alldirs"
13659       eval flag=\"$acl_hardcode_libdir_flag_spec\"
13660       libdir="$acl_save_libdir"
13661       LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$flag"
13662     else
13663             for found_dir in $rpathdirs; do
13664         acl_save_libdir="$libdir"
13665         libdir="$found_dir"
13666         eval flag=\"$acl_hardcode_libdir_flag_spec\"
13667         libdir="$acl_save_libdir"
13668         LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$flag"
13669       done
13670     fi
13671   fi
13672   if test "X$ltrpathdirs" != "X"; then
13673             for found_dir in $ltrpathdirs; do
13674       LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-R$found_dir"
13675     done
13676   fi
13677
13678
13679
13680
13681
13682
13683
13684         ac_save_CPPFLAGS="$CPPFLAGS"
13685
13686   for element in $INCNETTLE; do
13687     haveit=
13688     for x in $CPPFLAGS; do
13689
13690   acl_save_prefix="$prefix"
13691   prefix="$acl_final_prefix"
13692   acl_save_exec_prefix="$exec_prefix"
13693   exec_prefix="$acl_final_exec_prefix"
13694   eval x=\"$x\"
13695   exec_prefix="$acl_save_exec_prefix"
13696   prefix="$acl_save_prefix"
13697
13698       if test "X$x" = "X$element"; then
13699         haveit=yes
13700         break
13701       fi
13702     done
13703     if test -z "$haveit"; then
13704       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13705     fi
13706   done
13707
13708
13709   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnettle" >&5
13710 $as_echo_n "checking for libnettle... " >&6; }
13711 if ${ac_cv_libnettle+:} false; then :
13712   $as_echo_n "(cached) " >&6
13713 else
13714
13715     ac_save_LIBS="$LIBS"
13716                                 case " $LIBNETTLE" in
13717       *" -l"*) LIBS="$LIBS $LIBNETTLE" ;;
13718       *)       LIBS="$LIBNETTLE $LIBS" ;;
13719     esac
13720     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h.  */
13722 #include <nettle/aes.h>
13723 int
13724 main ()
13725 {
13726 nettle_aes_invert_key (0, 0)
13727   ;
13728   return 0;
13729 }
13730 _ACEOF
13731 if ac_fn_c_try_link "$LINENO"; then :
13732   ac_cv_libnettle=yes
13733 else
13734   ac_cv_libnettle='no'
13735 fi
13736 rm -f core conftest.err conftest.$ac_objext \
13737     conftest$ac_exeext conftest.$ac_ext
13738     LIBS="$ac_save_LIBS"
13739
13740 fi
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libnettle" >&5
13742 $as_echo "$ac_cv_libnettle" >&6; }
13743   if test "$ac_cv_libnettle" = yes; then
13744     HAVE_LIBNETTLE=yes
13745
13746 $as_echo "#define HAVE_LIBNETTLE 1" >>confdefs.h
13747
13748     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libnettle" >&5
13749 $as_echo_n "checking how to link with libnettle... " >&6; }
13750     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBNETTLE" >&5
13751 $as_echo "$LIBNETTLE" >&6; }
13752   else
13753     HAVE_LIBNETTLE=no
13754             CPPFLAGS="$ac_save_CPPFLAGS"
13755     LIBNETTLE=
13756     LTLIBNETTLE=
13757     LIBNETTLE_PREFIX=
13758   fi
13759
13760
13761
13762
13763
13764
13765
13766     if test "$ac_cv_libnettle" != yes; then
13767       as_fn_error $? "
13768   ***
13769   *** Libnettle 2.1 was not found.
13770   " "$LINENO" 5
13771     fi
13772     NETTLE_LIBS="-lgmp -lhogweed"
13773 else
13774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13775 $as_echo "no" >&6; }
13776 fi
13777
13778    if test "$cryptolib" = "nettle"; then
13779   ENABLE_NETTLE_TRUE=
13780   ENABLE_NETTLE_FALSE='#'
13781 else
13782   ENABLE_NETTLE_TRUE='#'
13783   ENABLE_NETTLE_FALSE=
13784 fi
13785
13786
13787
13788 # Check whether --with-included-libtasn1 was given.
13789 if test "${with_included_libtasn1+set}" = set; then :
13790   withval=$with_included_libtasn1; included_libtasn1=$withval
13791 else
13792   included_libtasn1=no
13793 fi
13794
13795   if test "$included_libtasn1" = "no"; then
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809     use_additional=yes
13810
13811   acl_save_prefix="$prefix"
13812   prefix="$acl_final_prefix"
13813   acl_save_exec_prefix="$exec_prefix"
13814   exec_prefix="$acl_final_exec_prefix"
13815
13816     eval additional_includedir=\"$includedir\"
13817     eval additional_libdir=\"$libdir\"
13818
13819   exec_prefix="$acl_save_exec_prefix"
13820   prefix="$acl_save_prefix"
13821
13822
13823 # Check whether --with-libtasn1-prefix was given.
13824 if test "${with_libtasn1_prefix+set}" = set; then :
13825   withval=$with_libtasn1_prefix;
13826     if test "X$withval" = "Xno"; then
13827       use_additional=no
13828     else
13829       if test "X$withval" = "X"; then
13830
13831   acl_save_prefix="$prefix"
13832   prefix="$acl_final_prefix"
13833   acl_save_exec_prefix="$exec_prefix"
13834   exec_prefix="$acl_final_exec_prefix"
13835
13836           eval additional_includedir=\"$includedir\"
13837           eval additional_libdir=\"$libdir\"
13838
13839   exec_prefix="$acl_save_exec_prefix"
13840   prefix="$acl_save_prefix"
13841
13842       else
13843         additional_includedir="$withval/include"
13844         additional_libdir="$withval/$acl_libdirstem"
13845         if test "$acl_libdirstem2" != "$acl_libdirstem" \
13846            && ! test -d "$withval/$acl_libdirstem"; then
13847           additional_libdir="$withval/$acl_libdirstem2"
13848         fi
13849       fi
13850     fi
13851
13852 fi
13853
13854       LIBTASN1=
13855   LTLIBTASN1=
13856   INCTASN1=
13857   LIBTASN1_PREFIX=
13858       HAVE_LIBTASN1=
13859   rpathdirs=
13860   ltrpathdirs=
13861   names_already_handled=
13862   names_next_round='tasn1 '
13863   while test -n "$names_next_round"; do
13864     names_this_round="$names_next_round"
13865     names_next_round=
13866     for name in $names_this_round; do
13867       already_handled=
13868       for n in $names_already_handled; do
13869         if test "$n" = "$name"; then
13870           already_handled=yes
13871           break
13872         fi
13873       done
13874       if test -z "$already_handled"; then
13875         names_already_handled="$names_already_handled $name"
13876                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
13877         eval value=\"\$HAVE_LIB$uppername\"
13878         if test -n "$value"; then
13879           if test "$value" = yes; then
13880             eval value=\"\$LIB$uppername\"
13881             test -z "$value" || LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$value"
13882             eval value=\"\$LTLIB$uppername\"
13883             test -z "$value" || LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }$value"
13884           else
13885                                     :
13886           fi
13887         else
13888                               found_dir=
13889           found_la=
13890           found_so=
13891           found_a=
13892           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
13893           if test -n "$acl_shlibext"; then
13894             shrext=".$acl_shlibext"             # typically: shrext=.so
13895           else
13896             shrext=
13897           fi
13898           if test $use_additional = yes; then
13899             dir="$additional_libdir"
13900                                     if test -n "$acl_shlibext"; then
13901               if test -f "$dir/$libname$shrext"; then
13902                 found_dir="$dir"
13903                 found_so="$dir/$libname$shrext"
13904               else
13905                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13906                   ver=`(cd "$dir" && \
13907                         for f in "$libname$shrext".*; do echo "$f"; done \
13908                         | sed -e "s,^$libname$shrext\\\\.,," \
13909                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13910                         | sed 1q ) 2>/dev/null`
13911                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13912                     found_dir="$dir"
13913                     found_so="$dir/$libname$shrext.$ver"
13914                   fi
13915                 else
13916                   eval library_names=\"$acl_library_names_spec\"
13917                   for f in $library_names; do
13918                     if test -f "$dir/$f"; then
13919                       found_dir="$dir"
13920                       found_so="$dir/$f"
13921                       break
13922                     fi
13923                   done
13924                 fi
13925               fi
13926             fi
13927                         if test "X$found_dir" = "X"; then
13928               if test -f "$dir/$libname.$acl_libext"; then
13929                 found_dir="$dir"
13930                 found_a="$dir/$libname.$acl_libext"
13931               fi
13932             fi
13933             if test "X$found_dir" != "X"; then
13934               if test -f "$dir/$libname.la"; then
13935                 found_la="$dir/$libname.la"
13936               fi
13937             fi
13938           fi
13939           if test "X$found_dir" = "X"; then
13940             for x in $LDFLAGS $LTLIBTASN1; do
13941
13942   acl_save_prefix="$prefix"
13943   prefix="$acl_final_prefix"
13944   acl_save_exec_prefix="$exec_prefix"
13945   exec_prefix="$acl_final_exec_prefix"
13946   eval x=\"$x\"
13947   exec_prefix="$acl_save_exec_prefix"
13948   prefix="$acl_save_prefix"
13949
13950               case "$x" in
13951                 -L*)
13952                   dir=`echo "X$x" | sed -e 's/^X-L//'`
13953                                     if test -n "$acl_shlibext"; then
13954                     if test -f "$dir/$libname$shrext"; then
13955                       found_dir="$dir"
13956                       found_so="$dir/$libname$shrext"
13957                     else
13958                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13959                         ver=`(cd "$dir" && \
13960                               for f in "$libname$shrext".*; do echo "$f"; done \
13961                               | sed -e "s,^$libname$shrext\\\\.,," \
13962                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13963                               | sed 1q ) 2>/dev/null`
13964                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13965                           found_dir="$dir"
13966                           found_so="$dir/$libname$shrext.$ver"
13967                         fi
13968                       else
13969                         eval library_names=\"$acl_library_names_spec\"
13970                         for f in $library_names; do
13971                           if test -f "$dir/$f"; then
13972                             found_dir="$dir"
13973                             found_so="$dir/$f"
13974                             break
13975                           fi
13976                         done
13977                       fi
13978                     fi
13979                   fi
13980                                     if test "X$found_dir" = "X"; then
13981                     if test -f "$dir/$libname.$acl_libext"; then
13982                       found_dir="$dir"
13983                       found_a="$dir/$libname.$acl_libext"
13984                     fi
13985                   fi
13986                   if test "X$found_dir" != "X"; then
13987                     if test -f "$dir/$libname.la"; then
13988                       found_la="$dir/$libname.la"
13989                     fi
13990                   fi
13991                   ;;
13992               esac
13993               if test "X$found_dir" != "X"; then
13994                 break
13995               fi
13996             done
13997           fi
13998           if test "X$found_dir" != "X"; then
13999                         LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-L$found_dir -l$name"
14000             if test "X$found_so" != "X"; then
14001                                                         if test "$enable_rpath" = no \
14002                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14003                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14004                                 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so"
14005               else
14006                                                                                 haveit=
14007                 for x in $ltrpathdirs; do
14008                   if test "X$x" = "X$found_dir"; then
14009                     haveit=yes
14010                     break
14011                   fi
14012                 done
14013                 if test -z "$haveit"; then
14014                   ltrpathdirs="$ltrpathdirs $found_dir"
14015                 fi
14016                                 if test "$acl_hardcode_direct" = yes; then
14017                                                       LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so"
14018                 else
14019                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14020                                                             LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so"
14021                                                             haveit=
14022                     for x in $rpathdirs; do
14023                       if test "X$x" = "X$found_dir"; then
14024                         haveit=yes
14025                         break
14026                       fi
14027                     done
14028                     if test -z "$haveit"; then
14029                       rpathdirs="$rpathdirs $found_dir"
14030                     fi
14031                   else
14032                                                                                 haveit=
14033                     for x in $LDFLAGS $LIBTASN1; do
14034
14035   acl_save_prefix="$prefix"
14036   prefix="$acl_final_prefix"
14037   acl_save_exec_prefix="$exec_prefix"
14038   exec_prefix="$acl_final_exec_prefix"
14039   eval x=\"$x\"
14040   exec_prefix="$acl_save_exec_prefix"
14041   prefix="$acl_save_prefix"
14042
14043                       if test "X$x" = "X-L$found_dir"; then
14044                         haveit=yes
14045                         break
14046                       fi
14047                     done
14048                     if test -z "$haveit"; then
14049                       LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-L$found_dir"
14050                     fi
14051                     if test "$acl_hardcode_minus_L" != no; then
14052                                                                                         LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so"
14053                     else
14054                                                                                                                                                                                 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-l$name"
14055                     fi
14056                   fi
14057                 fi
14058               fi
14059             else
14060               if test "X$found_a" != "X"; then
14061                                 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_a"
14062               else
14063                                                 LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-L$found_dir -l$name"
14064               fi
14065             fi
14066                         additional_includedir=
14067             case "$found_dir" in
14068               */$acl_libdirstem | */$acl_libdirstem/)
14069                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14070                 if test "$name" = 'tasn1'; then
14071                   LIBTASN1_PREFIX="$basedir"
14072                 fi
14073                 additional_includedir="$basedir/include"
14074                 ;;
14075               */$acl_libdirstem2 | */$acl_libdirstem2/)
14076                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14077                 if test "$name" = 'tasn1'; then
14078                   LIBTASN1_PREFIX="$basedir"
14079                 fi
14080                 additional_includedir="$basedir/include"
14081                 ;;
14082             esac
14083             if test "X$additional_includedir" != "X"; then
14084                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14085                 haveit=
14086                 if test "X$additional_includedir" = "X/usr/local/include"; then
14087                   if test -n "$GCC"; then
14088                     case $host_os in
14089                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14090                     esac
14091                   fi
14092                 fi
14093                 if test -z "$haveit"; then
14094                   for x in $CPPFLAGS $INCTASN1; do
14095
14096   acl_save_prefix="$prefix"
14097   prefix="$acl_final_prefix"
14098   acl_save_exec_prefix="$exec_prefix"
14099   exec_prefix="$acl_final_exec_prefix"
14100   eval x=\"$x\"
14101   exec_prefix="$acl_save_exec_prefix"
14102   prefix="$acl_save_prefix"
14103
14104                     if test "X$x" = "X-I$additional_includedir"; then
14105                       haveit=yes
14106                       break
14107                     fi
14108                   done
14109                   if test -z "$haveit"; then
14110                     if test -d "$additional_includedir"; then
14111                                             INCTASN1="${INCTASN1}${INCTASN1:+ }-I$additional_includedir"
14112                     fi
14113                   fi
14114                 fi
14115               fi
14116             fi
14117                         if test -n "$found_la"; then
14118                                                         save_libdir="$libdir"
14119               case "$found_la" in
14120                 */* | *\\*) . "$found_la" ;;
14121                 *) . "./$found_la" ;;
14122               esac
14123               libdir="$save_libdir"
14124                             for dep in $dependency_libs; do
14125                 case "$dep" in
14126                   -L*)
14127                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14128                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14129                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14130                       haveit=
14131                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14132                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14133                         if test -n "$GCC"; then
14134                           case $host_os in
14135                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14136                           esac
14137                         fi
14138                       fi
14139                       if test -z "$haveit"; then
14140                         haveit=
14141                         for x in $LDFLAGS $LIBTASN1; do
14142
14143   acl_save_prefix="$prefix"
14144   prefix="$acl_final_prefix"
14145   acl_save_exec_prefix="$exec_prefix"
14146   exec_prefix="$acl_final_exec_prefix"
14147   eval x=\"$x\"
14148   exec_prefix="$acl_save_exec_prefix"
14149   prefix="$acl_save_prefix"
14150
14151                           if test "X$x" = "X-L$additional_libdir"; then
14152                             haveit=yes
14153                             break
14154                           fi
14155                         done
14156                         if test -z "$haveit"; then
14157                           if test -d "$additional_libdir"; then
14158                                                         LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-L$additional_libdir"
14159                           fi
14160                         fi
14161                         haveit=
14162                         for x in $LDFLAGS $LTLIBTASN1; do
14163
14164   acl_save_prefix="$prefix"
14165   prefix="$acl_final_prefix"
14166   acl_save_exec_prefix="$exec_prefix"
14167   exec_prefix="$acl_final_exec_prefix"
14168   eval x=\"$x\"
14169   exec_prefix="$acl_save_exec_prefix"
14170   prefix="$acl_save_prefix"
14171
14172                           if test "X$x" = "X-L$additional_libdir"; then
14173                             haveit=yes
14174                             break
14175                           fi
14176                         done
14177                         if test -z "$haveit"; then
14178                           if test -d "$additional_libdir"; then
14179                                                         LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-L$additional_libdir"
14180                           fi
14181                         fi
14182                       fi
14183                     fi
14184                     ;;
14185                   -R*)
14186                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14187                     if test "$enable_rpath" != no; then
14188                                                                   haveit=
14189                       for x in $rpathdirs; do
14190                         if test "X$x" = "X$dir"; then
14191                           haveit=yes
14192                           break
14193                         fi
14194                       done
14195                       if test -z "$haveit"; then
14196                         rpathdirs="$rpathdirs $dir"
14197                       fi
14198                                                                   haveit=
14199                       for x in $ltrpathdirs; do
14200                         if test "X$x" = "X$dir"; then
14201                           haveit=yes
14202                           break
14203                         fi
14204                       done
14205                       if test -z "$haveit"; then
14206                         ltrpathdirs="$ltrpathdirs $dir"
14207                       fi
14208                     fi
14209                     ;;
14210                   -l*)
14211                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14212                     ;;
14213                   *.la)
14214                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14215                     ;;
14216                   *)
14217                                         LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$dep"
14218                     LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }$dep"
14219                     ;;
14220                 esac
14221               done
14222             fi
14223           else
14224                                                             LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-l$name"
14225             LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-l$name"
14226           fi
14227         fi
14228       fi
14229     done
14230   done
14231   if test "X$rpathdirs" != "X"; then
14232     if test -n "$acl_hardcode_libdir_separator"; then
14233                         alldirs=
14234       for found_dir in $rpathdirs; do
14235         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14236       done
14237             acl_save_libdir="$libdir"
14238       libdir="$alldirs"
14239       eval flag=\"$acl_hardcode_libdir_flag_spec\"
14240       libdir="$acl_save_libdir"
14241       LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$flag"
14242     else
14243             for found_dir in $rpathdirs; do
14244         acl_save_libdir="$libdir"
14245         libdir="$found_dir"
14246         eval flag=\"$acl_hardcode_libdir_flag_spec\"
14247         libdir="$acl_save_libdir"
14248         LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$flag"
14249       done
14250     fi
14251   fi
14252   if test "X$ltrpathdirs" != "X"; then
14253             for found_dir in $ltrpathdirs; do
14254       LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-R$found_dir"
14255     done
14256   fi
14257
14258
14259
14260
14261
14262
14263
14264         ac_save_CPPFLAGS="$CPPFLAGS"
14265
14266   for element in $INCTASN1; do
14267     haveit=
14268     for x in $CPPFLAGS; do
14269
14270   acl_save_prefix="$prefix"
14271   prefix="$acl_final_prefix"
14272   acl_save_exec_prefix="$exec_prefix"
14273   exec_prefix="$acl_final_exec_prefix"
14274   eval x=\"$x\"
14275   exec_prefix="$acl_save_exec_prefix"
14276   prefix="$acl_save_prefix"
14277
14278       if test "X$x" = "X$element"; then
14279         haveit=yes
14280         break
14281       fi
14282     done
14283     if test -z "$haveit"; then
14284       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14285     fi
14286   done
14287
14288
14289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtasn1" >&5
14290 $as_echo_n "checking for libtasn1... " >&6; }
14291 if ${ac_cv_libtasn1+:} false; then :
14292   $as_echo_n "(cached) " >&6
14293 else
14294
14295     ac_save_LIBS="$LIBS"
14296                                 case " $LIBTASN1" in
14297       *" -l"*) LIBS="$LIBS $LIBTASN1" ;;
14298       *)       LIBS="$LIBTASN1 $LIBS" ;;
14299     esac
14300     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14301 /* end confdefs.h.  */
14302 #include <libtasn1.h>
14303 int
14304 main ()
14305 {
14306 asn1_check_version (NULL)
14307   ;
14308   return 0;
14309 }
14310 _ACEOF
14311 if ac_fn_c_try_link "$LINENO"; then :
14312   ac_cv_libtasn1=yes
14313 else
14314   ac_cv_libtasn1='no'
14315 fi
14316 rm -f core conftest.err conftest.$ac_objext \
14317     conftest$ac_exeext conftest.$ac_ext
14318     LIBS="$ac_save_LIBS"
14319
14320 fi
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libtasn1" >&5
14322 $as_echo "$ac_cv_libtasn1" >&6; }
14323   if test "$ac_cv_libtasn1" = yes; then
14324     HAVE_LIBTASN1=yes
14325
14326 $as_echo "#define HAVE_LIBTASN1 1" >>confdefs.h
14327
14328     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libtasn1" >&5
14329 $as_echo_n "checking how to link with libtasn1... " >&6; }
14330     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTASN1" >&5
14331 $as_echo "$LIBTASN1" >&6; }
14332   else
14333     HAVE_LIBTASN1=no
14334             CPPFLAGS="$ac_save_CPPFLAGS"
14335     LIBTASN1=
14336     LTLIBTASN1=
14337     LIBTASN1_PREFIX=
14338   fi
14339
14340
14341
14342
14343
14344
14345
14346     if test "$ac_cv_libtasn1" != yes; then
14347       included_libtasn1=yes
14348       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14349   ***
14350   *** Libtasn1 was not found. Will use the included one.
14351   " >&5
14352 $as_echo "$as_me: WARNING:
14353   ***
14354   *** Libtasn1 was not found. Will use the included one.
14355   " >&2;}
14356     fi
14357   fi
14358   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included minitasn1" >&5
14359 $as_echo_n "checking whether to use the included minitasn1... " >&6; }
14360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $included_libtasn1" >&5
14361 $as_echo "$included_libtasn1" >&6; }
14362    if test "$included_libtasn1" = "yes"; then
14363   ENABLE_MINITASN1_TRUE=
14364   ENABLE_MINITASN1_FALSE='#'
14365 else
14366   ENABLE_MINITASN1_TRUE='#'
14367   ENABLE_MINITASN1_FALSE=
14368 fi
14369
14370
14371   if test "$included_libtasn1" = "no"; then
14372     GNUTLS_REQUIRES_PRIVATE="Requires.private: libtasn1"
14373   fi
14374
14375
14376 # Check whether --with-lzo was given.
14377 if test "${with_lzo+set}" = set; then :
14378   withval=$with_lzo; use_lzo=$withval
14379 else
14380   use_lzo=no
14381 fi
14382
14383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include LZO compression support" >&5
14384 $as_echo_n "checking whether to include LZO compression support... " >&6; }
14385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lzo" >&5
14386 $as_echo "$use_lzo" >&6; }
14387   LZO_LIBS=
14388   if test "$use_lzo" = "yes"; then
14389     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
14390 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
14391 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
14392   $as_echo_n "(cached) " >&6
14393 else
14394   ac_check_lib_save_LIBS=$LIBS
14395 LIBS="-llzo2  $LIBS"
14396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14397 /* end confdefs.h.  */
14398
14399 /* Override any GCC internal prototype to avoid an error.
14400    Use char because int might match the return type of a GCC
14401    builtin and then its argument prototype would still apply.  */
14402 #ifdef __cplusplus
14403 extern "C"
14404 #endif
14405 char lzo1x_1_compress ();
14406 int
14407 main ()
14408 {
14409 return lzo1x_1_compress ();
14410   ;
14411   return 0;
14412 }
14413 _ACEOF
14414 if ac_fn_c_try_link "$LINENO"; then :
14415   ac_cv_lib_lzo2_lzo1x_1_compress=yes
14416 else
14417   ac_cv_lib_lzo2_lzo1x_1_compress=no
14418 fi
14419 rm -f core conftest.err conftest.$ac_objext \
14420     conftest$ac_exeext conftest.$ac_ext
14421 LIBS=$ac_check_lib_save_LIBS
14422 fi
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
14424 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
14425 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
14426   LZO_LIBS=-llzo2
14427 fi
14428
14429     if test "$LZO_LIBS" = ""; then
14430       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo" >&5
14431 $as_echo_n "checking for lzo1x_1_compress in -llzo... " >&6; }
14432 if ${ac_cv_lib_lzo_lzo1x_1_compress+:} false; then :
14433   $as_echo_n "(cached) " >&6
14434 else
14435   ac_check_lib_save_LIBS=$LIBS
14436 LIBS="-llzo  $LIBS"
14437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14438 /* end confdefs.h.  */
14439
14440 /* Override any GCC internal prototype to avoid an error.
14441    Use char because int might match the return type of a GCC
14442    builtin and then its argument prototype would still apply.  */
14443 #ifdef __cplusplus
14444 extern "C"
14445 #endif
14446 char lzo1x_1_compress ();
14447 int
14448 main ()
14449 {
14450 return lzo1x_1_compress ();
14451   ;
14452   return 0;
14453 }
14454 _ACEOF
14455 if ac_fn_c_try_link "$LINENO"; then :
14456   ac_cv_lib_lzo_lzo1x_1_compress=yes
14457 else
14458   ac_cv_lib_lzo_lzo1x_1_compress=no
14459 fi
14460 rm -f core conftest.err conftest.$ac_objext \
14461     conftest$ac_exeext conftest.$ac_ext
14462 LIBS=$ac_check_lib_save_LIBS
14463 fi
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo_lzo1x_1_compress" >&5
14465 $as_echo "$ac_cv_lib_lzo_lzo1x_1_compress" >&6; }
14466 if test "x$ac_cv_lib_lzo_lzo1x_1_compress" = xyes; then :
14467   LZO_LIBS=-llzo
14468 else
14469
14470         use_lzo=no
14471         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***
14472   *** Could not find liblzo or liblzo2.  Disabling LZO compression.
14473   " >&5
14474 $as_echo "$as_me: WARNING: ***
14475   *** Could not find liblzo or liblzo2.  Disabling LZO compression.
14476   " >&2;}
14477
14478 fi
14479
14480     fi
14481   fi
14482
14483   if test "$use_lzo" = "yes"; then
14484
14485 $as_echo "#define USE_LZO 1" >>confdefs.h
14486
14487     if test "$LZO_LIBS" = "-llzo"; then
14488       for ac_header in lzo1x.h
14489 do :
14490   ac_fn_c_check_header_mongrel "$LINENO" "lzo1x.h" "ac_cv_header_lzo1x_h" "$ac_includes_default"
14491 if test "x$ac_cv_header_lzo1x_h" = xyes; then :
14492   cat >>confdefs.h <<_ACEOF
14493 #define HAVE_LZO1X_H 1
14494 _ACEOF
14495
14496 fi
14497
14498 done
14499
14500     elif test "$LZO_LIBS" = "-llzo2"; then
14501       for ac_header in lzo/lzo1x.h
14502 do :
14503   ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
14504 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
14505   cat >>confdefs.h <<_ACEOF
14506 #define HAVE_LZO_LZO1X_H 1
14507 _ACEOF
14508
14509 fi
14510
14511 done
14512
14513     fi
14514   fi
14515    if test "$use_lzo" = "yes"; then
14516   USE_LZO_TRUE=
14517   USE_LZO_FALSE='#'
14518 else
14519   USE_LZO_TRUE='#'
14520   USE_LZO_FALSE=
14521 fi
14522
14523
14524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C99 macros are supported" >&5
14525 $as_echo_n "checking whether C99 macros are supported... " >&6; }
14526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14527 /* end confdefs.h.  */
14528
14529 int
14530 main ()
14531 {
14532
14533     #define test_mac(...)
14534     int z,y,x;
14535     test_mac(x,y,z);
14536     return 0;
14537
14538   ;
14539   return 0;
14540 }
14541 _ACEOF
14542 if ac_fn_c_try_compile "$LINENO"; then :
14543
14544
14545 $as_echo "#define C99_MACROS 1" >>confdefs.h
14546
14547     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14548 $as_echo "yes" >&6; }
14549
14550 else
14551
14552     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14553 $as_echo "no" >&6; }
14554     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C99 macros not supported. This may affect compiling." >&5
14555 $as_echo "$as_me: WARNING: C99 macros not supported. This may affect compiling." >&2;}
14556
14557 fi
14558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14559
14560   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Opaque PRF input support" >&5
14561 $as_echo_n "checking whether to enable Opaque PRF input support... " >&6; }
14562   # Check whether --enable-opaque-prf-input was given.
14563 if test "${enable_opaque_prf_input+set}" = set; then :
14564   enableval=$enable_opaque_prf_input; ac_opaque_prf_input=$enableval
14565 else
14566   ac_opaque_prf_input=no
14567 fi
14568
14569   if test "$ac_opaque_prf_input" != "no"; then
14570     if ! echo $ac_opaque_prf_input | egrep -q '^[0-9]+$'; then
14571       ac_opaque_prf_input=no
14572       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14573   *** Could not parse Opaque PRF Input extension type.
14574   *** Use --enable-opaque-prf-input=XX where XX is decimal, for example
14575   *** to use extension value 42 use --enable-opqaue-prf-input=42" >&5
14576 $as_echo "$as_me: WARNING:
14577   *** Could not parse Opaque PRF Input extension type.
14578   *** Use --enable-opaque-prf-input=XX where XX is decimal, for example
14579   *** to use extension value 42 use --enable-opqaue-prf-input=42" >&2;}
14580     fi
14581   fi
14582   if test "$ac_opaque_prf_input" != "no"; then
14583    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (extension value $ac_opaque_prf_input)" >&5
14584 $as_echo "yes (extension value $ac_opaque_prf_input)" >&6; }
14585
14586 cat >>confdefs.h <<_ACEOF
14587 #define ENABLE_OPRFI $ac_opaque_prf_input
14588 _ACEOF
14589
14590   else
14591    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14592 $as_echo "no" >&6; }
14593   fi
14594    if test "$ac_opaque_prf_input" != "no"; then
14595   ENABLE_OPRFI_TRUE=
14596   ENABLE_OPRFI_FALSE='#'
14597 else
14598   ENABLE_OPRFI_TRUE='#'
14599   ENABLE_OPRFI_FALSE=
14600 fi
14601
14602
14603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable SRP authentication support" >&5
14604 $as_echo_n "checking whether to disable SRP authentication support... " >&6; }
14605   # Check whether --enable-srp-authentication was given.
14606 if test "${enable_srp_authentication+set}" = set; then :
14607   enableval=$enable_srp_authentication; ac_enable_srp=no
14608 fi
14609
14610   if test x$ac_enable_srp != xno; then
14611    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14612 $as_echo "no" >&6; }
14613
14614 $as_echo "#define ENABLE_SRP 1" >>confdefs.h
14615
14616   else
14617    ac_full=0
14618    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14619 $as_echo "yes" >&6; }
14620   fi
14621    if test "$ac_enable_srp" != "no"; then
14622   ENABLE_SRP_TRUE=
14623   ENABLE_SRP_FALSE='#'
14624 else
14625   ENABLE_SRP_TRUE='#'
14626   ENABLE_SRP_FALSE=
14627 fi
14628
14629
14630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable PSK authentication support" >&5
14631 $as_echo_n "checking whether to disable PSK authentication support... " >&6; }
14632   # Check whether --enable-psk-authentication was given.
14633 if test "${enable_psk_authentication+set}" = set; then :
14634   enableval=$enable_psk_authentication; ac_enable_psk=no
14635 fi
14636
14637   if test x$ac_enable_psk != xno; then
14638    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14639 $as_echo "no" >&6; }
14640
14641 $as_echo "#define ENABLE_PSK 1" >>confdefs.h
14642
14643   else
14644    ac_full=0
14645    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14646 $as_echo "yes" >&6; }
14647   fi
14648    if test "$ac_enable_psk" != "no"; then
14649   ENABLE_PSK_TRUE=
14650   ENABLE_PSK_FALSE='#'
14651 else
14652   ENABLE_PSK_TRUE='#'
14653   ENABLE_PSK_FALSE=
14654 fi
14655
14656
14657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable anonymous authentication support" >&5
14658 $as_echo_n "checking whether to disable anonymous authentication support... " >&6; }
14659   # Check whether --enable-anon-authentication was given.
14660 if test "${enable_anon_authentication+set}" = set; then :
14661   enableval=$enable_anon_authentication; ac_enable_anon=no
14662 fi
14663
14664   if test x$ac_enable_anon != xno; then
14665    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14666 $as_echo "no" >&6; }
14667
14668 $as_echo "#define ENABLE_ANON 1" >>confdefs.h
14669
14670   else
14671    ac_full=0
14672    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14673 $as_echo "yes" >&6; }
14674   fi
14675    if test "$ac_enable_anon" != "no"; then
14676   ENABLE_ANON_TRUE=
14677   ENABLE_ANON_FALSE='#'
14678 else
14679   ENABLE_ANON_TRUE='#'
14680   ENABLE_ANON_FALSE=
14681 fi
14682
14683
14684   # Allow disabling Camellia
14685   if test "$nettle" != "yes";then
14686   # Check whether --enable-camellia was given.
14687 if test "${enable_camellia+set}" = set; then :
14688   enableval=$enable_camellia; enable_camellia=$enableval
14689 else
14690   enable_camellia=yes
14691 fi
14692
14693   else
14694     enable_camellia=no
14695   fi
14696
14697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable Camellia cipher" >&5
14698 $as_echo_n "checking whether to disable Camellia cipher... " >&6; }
14699   if test "$enable_camellia" != "no"; then
14700    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14701 $as_echo "no" >&6; }
14702
14703 $as_echo "#define ENABLE_CAMELLIA 1" >>confdefs.h
14704
14705   else
14706    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14707 $as_echo "yes" >&6; }
14708   fi
14709
14710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable extra PKI stuff" >&5
14711 $as_echo_n "checking whether to disable extra PKI stuff... " >&6; }
14712   # Check whether --enable-extra-pki was given.
14713 if test "${enable_extra_pki+set}" = set; then :
14714   enableval=$enable_extra_pki; enable_pki=$enableval
14715 else
14716   enable_pki=yes
14717 fi
14718
14719   if test "$enable_pki" != "yes"; then
14720    ac_full=0
14721    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14722 $as_echo "yes" >&6; }
14723   else
14724    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14725 $as_echo "no" >&6; }
14726
14727 $as_echo "#define ENABLE_PKI 1" >>confdefs.h
14728
14729   fi
14730    if test "$enable_pki" = "yes"; then
14731   ENABLE_PKI_TRUE=
14732   ENABLE_PKI_FALSE='#'
14733 else
14734   ENABLE_PKI_TRUE='#'
14735   ENABLE_PKI_FALSE=
14736 fi
14737
14738
14739   ac_enable_openpgp=yes
14740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable OpenPGP Certificate authentication support" >&5
14741 $as_echo_n "checking whether to disable OpenPGP Certificate authentication support... " >&6; }
14742   # Check whether --enable-openpgp-authentication was given.
14743 if test "${enable_openpgp_authentication+set}" = set; then :
14744   enableval=$enable_openpgp_authentication; ac_enable_openpgp=no
14745 fi
14746
14747   if test x$ac_enable_openpgp = xno; then
14748    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14749 $as_echo "yes" >&6; }
14750    ac_full=0
14751   else
14752
14753 $as_echo "#define ENABLE_OPENPGP 1" >>confdefs.h
14754
14755    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14756 $as_echo "no" >&6; }
14757   fi
14758    if test "$ac_enable_openpgp" = "yes"; then
14759   ENABLE_OPENPGP_TRUE=
14760   ENABLE_OPENPGP_FALSE='#'
14761 else
14762   ENABLE_OPENPGP_TRUE='#'
14763   ENABLE_OPENPGP_FALSE=
14764 fi
14765
14766
14767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable SessionTicket extension support" >&5
14768 $as_echo_n "checking whether to disable SessionTicket extension support... " >&6; }
14769   # Check whether --enable-session-ticket was given.
14770 if test "${enable_session_ticket+set}" = set; then :
14771   enableval=$enable_session_ticket; ac_session_ticket=no
14772 fi
14773
14774   if test x$ac_session_ticket != xno; then
14775    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14776 $as_echo "no" >&6; }
14777
14778 $as_echo "#define ENABLE_SESSION_TICKET 1" >>confdefs.h
14779
14780   else
14781    ac_full=0
14782    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14783 $as_echo "yes" >&6; }
14784   fi
14785    if test "$ac_enable_session_ticket" != "no"; then
14786   ENABLE_SESSION_TICKET_TRUE=
14787   ENABLE_SESSION_TICKET_FALSE='#'
14788 else
14789   ENABLE_SESSION_TICKET_TRUE='#'
14790   ENABLE_SESSION_TICKET_FALSE=
14791 fi
14792
14793
14794   # For cryptodev
14795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to add cryptodev support" >&5
14796 $as_echo_n "checking whether to add cryptodev support... " >&6; }
14797   # Check whether --enable-cryptodev was given.
14798 if test "${enable_cryptodev+set}" = set; then :
14799   enableval=$enable_cryptodev; enable_cryptodev=yes
14800 else
14801   enable_cryptodev=no
14802 fi
14803
14804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cryptodev" >&5
14805 $as_echo "$enable_cryptodev" >&6; }
14806
14807   if test "$enable_cryptodev" = "yes"; then
14808
14809 $as_echo "#define ENABLE_CRYPTODEV 1" >>confdefs.h
14810
14811   fi
14812
14813   # For storing integers in pointers without warnings
14814   # http://developer.gnome.org/doc/API/2.0/glib/glib-Type-Conversion-Macros.html#desc
14815   # The cast to long int works around a bug in the HP C Compiler
14816 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14817 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14818 # This bug is HP SR number 8606223364.
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14820 $as_echo_n "checking size of void *... " >&6; }
14821 if ${ac_cv_sizeof_void_p+:} false; then :
14822   $as_echo_n "(cached) " >&6
14823 else
14824   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
14825
14826 else
14827   if test "$ac_cv_type_void_p" = yes; then
14828      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14830 as_fn_error 77 "cannot compute sizeof (void *)
14831 See \`config.log' for more details" "$LINENO" 5; }
14832    else
14833      ac_cv_sizeof_void_p=0
14834    fi
14835 fi
14836
14837 fi
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14839 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14840
14841
14842
14843 cat >>confdefs.h <<_ACEOF
14844 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14845 _ACEOF
14846
14847
14848   # The cast to long int works around a bug in the HP C Compiler
14849 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14850 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14851 # This bug is HP SR number 8606223364.
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14853 $as_echo_n "checking size of long... " >&6; }
14854 if ${ac_cv_sizeof_long+:} false; then :
14855   $as_echo_n "(cached) " >&6
14856 else
14857   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
14858
14859 else
14860   if test "$ac_cv_type_long" = yes; then
14861      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14863 as_fn_error 77 "cannot compute sizeof (long)
14864 See \`config.log' for more details" "$LINENO" 5; }
14865    else
14866      ac_cv_sizeof_long=0
14867    fi
14868 fi
14869
14870 fi
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14872 $as_echo "$ac_cv_sizeof_long" >&6; }
14873
14874
14875
14876 cat >>confdefs.h <<_ACEOF
14877 #define SIZEOF_LONG $ac_cv_sizeof_long
14878 _ACEOF
14879
14880
14881   # The cast to long int works around a bug in the HP C Compiler
14882 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14883 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14884 # This bug is HP SR number 8606223364.
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14886 $as_echo_n "checking size of int... " >&6; }
14887 if ${ac_cv_sizeof_int+:} false; then :
14888   $as_echo_n "(cached) " >&6
14889 else
14890   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
14891
14892 else
14893   if test "$ac_cv_type_int" = yes; then
14894      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14896 as_fn_error 77 "cannot compute sizeof (int)
14897 See \`config.log' for more details" "$LINENO" 5; }
14898    else
14899      ac_cv_sizeof_int=0
14900    fi
14901 fi
14902
14903 fi
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14905 $as_echo "$ac_cv_sizeof_int" >&6; }
14906
14907
14908
14909 cat >>confdefs.h <<_ACEOF
14910 #define SIZEOF_INT $ac_cv_sizeof_int
14911 _ACEOF
14912
14913
14914   case $ac_cv_sizeof_void_p in
14915     $ac_cv_sizeof_long)
14916
14917 $as_echo "#define GNUTLS_POINTER_TO_INT_CAST (long)" >>confdefs.h
14918
14919       ;;
14920     *)
14921       $as_echo "#define GNUTLS_POINTER_TO_INT_CAST /**/" >>confdefs.h
14922
14923       ;;
14924   esac
14925
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14927 $as_echo_n "checking for inline... " >&6; }
14928 if ${ac_cv_c_inline+:} false; then :
14929   $as_echo_n "(cached) " >&6
14930 else
14931   ac_cv_c_inline=no
14932 for ac_kw in inline __inline__ __inline; do
14933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14934 /* end confdefs.h.  */
14935 #ifndef __cplusplus
14936 typedef int foo_t;
14937 static $ac_kw foo_t static_foo () {return 0; }
14938 $ac_kw foo_t foo () {return 0; }
14939 #endif
14940
14941 _ACEOF
14942 if ac_fn_c_try_compile "$LINENO"; then :
14943   ac_cv_c_inline=$ac_kw
14944 fi
14945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14946   test "$ac_cv_c_inline" != no && break
14947 done
14948
14949 fi
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14951 $as_echo "$ac_cv_c_inline" >&6; }
14952
14953 case $ac_cv_c_inline in
14954   inline | yes) ;;
14955   *)
14956     case $ac_cv_c_inline in
14957       no) ac_val=;;
14958       *) ac_val=$ac_cv_c_inline;;
14959     esac
14960     cat >>confdefs.h <<_ACEOF
14961 #ifndef __cplusplus
14962 #define inline $ac_val
14963 #endif
14964 _ACEOF
14965     ;;
14966 esac
14967
14968
14969   GNULIB_CHDIR=0;
14970   GNULIB_CHOWN=0;
14971   GNULIB_CLOSE=0;
14972   GNULIB_DUP=0;
14973   GNULIB_DUP2=0;
14974   GNULIB_DUP3=0;
14975   GNULIB_ENVIRON=0;
14976   GNULIB_EUIDACCESS=0;
14977   GNULIB_FACCESSAT=0;
14978   GNULIB_FCHDIR=0;
14979   GNULIB_FCHOWNAT=0;
14980   GNULIB_FDATASYNC=0;
14981   GNULIB_FSYNC=0;
14982   GNULIB_FTRUNCATE=0;
14983   GNULIB_GETCWD=0;
14984   GNULIB_GETDOMAINNAME=0;
14985   GNULIB_GETDTABLESIZE=0;
14986   GNULIB_GETGROUPS=0;
14987   GNULIB_GETHOSTNAME=0;
14988   GNULIB_GETLOGIN=0;
14989   GNULIB_GETLOGIN_R=0;
14990   GNULIB_GETPAGESIZE=0;
14991   GNULIB_GETUSERSHELL=0;
14992   GNULIB_GROUP_MEMBER=0;
14993   GNULIB_ISATTY=0;
14994   GNULIB_LCHOWN=0;
14995   GNULIB_LINK=0;
14996   GNULIB_LINKAT=0;
14997   GNULIB_LSEEK=0;
14998   GNULIB_PIPE=0;
14999   GNULIB_PIPE2=0;
15000   GNULIB_PREAD=0;
15001   GNULIB_PWRITE=0;
15002   GNULIB_READ=0;
15003   GNULIB_READLINK=0;
15004   GNULIB_READLINKAT=0;
15005   GNULIB_RMDIR=0;
15006   GNULIB_SETHOSTNAME=0;
15007   GNULIB_SLEEP=0;
15008   GNULIB_SYMLINK=0;
15009   GNULIB_SYMLINKAT=0;
15010   GNULIB_TTYNAME_R=0;
15011   GNULIB_UNISTD_H_NONBLOCKING=0;
15012   GNULIB_UNISTD_H_SIGPIPE=0;
15013   GNULIB_UNLINK=0;
15014   GNULIB_UNLINKAT=0;
15015   GNULIB_USLEEP=0;
15016   GNULIB_WRITE=0;
15017     HAVE_CHOWN=1;
15018   HAVE_DUP2=1;
15019   HAVE_DUP3=1;
15020   HAVE_EUIDACCESS=1;
15021   HAVE_FACCESSAT=1;
15022   HAVE_FCHDIR=1;
15023   HAVE_FCHOWNAT=1;
15024   HAVE_FDATASYNC=1;
15025   HAVE_FSYNC=1;
15026   HAVE_FTRUNCATE=1;
15027   HAVE_GETDTABLESIZE=1;
15028   HAVE_GETGROUPS=1;
15029   HAVE_GETHOSTNAME=1;
15030   HAVE_GETLOGIN=1;
15031   HAVE_GETPAGESIZE=1;
15032   HAVE_GROUP_MEMBER=1;
15033   HAVE_LCHOWN=1;
15034   HAVE_LINK=1;
15035   HAVE_LINKAT=1;
15036   HAVE_PIPE=1;
15037   HAVE_PIPE2=1;
15038   HAVE_PREAD=1;
15039   HAVE_PWRITE=1;
15040   HAVE_READLINK=1;
15041   HAVE_READLINKAT=1;
15042   HAVE_SETHOSTNAME=1;
15043   HAVE_SLEEP=1;
15044   HAVE_SYMLINK=1;
15045   HAVE_SYMLINKAT=1;
15046   HAVE_UNLINKAT=1;
15047   HAVE_USLEEP=1;
15048   HAVE_DECL_ENVIRON=1;
15049   HAVE_DECL_FCHDIR=1;
15050   HAVE_DECL_FDATASYNC=1;
15051   HAVE_DECL_GETDOMAINNAME=1;
15052   HAVE_DECL_GETLOGIN_R=1;
15053   HAVE_DECL_GETPAGESIZE=1;
15054   HAVE_DECL_GETUSERSHELL=1;
15055   HAVE_DECL_SETHOSTNAME=1;
15056   HAVE_DECL_TTYNAME_R=1;
15057   HAVE_OS_H=0;
15058   HAVE_SYS_PARAM_H=0;
15059   REPLACE_CHOWN=0;
15060   REPLACE_CLOSE=0;
15061   REPLACE_DUP=0;
15062   REPLACE_DUP2=0;
15063   REPLACE_FCHOWNAT=0;
15064   REPLACE_GETCWD=0;
15065   REPLACE_GETDOMAINNAME=0;
15066   REPLACE_GETLOGIN_R=0;
15067   REPLACE_GETGROUPS=0;
15068   REPLACE_GETPAGESIZE=0;
15069   REPLACE_ISATTY=0;
15070   REPLACE_LCHOWN=0;
15071   REPLACE_LINK=0;
15072   REPLACE_LINKAT=0;
15073   REPLACE_LSEEK=0;
15074   REPLACE_PREAD=0;
15075   REPLACE_PWRITE=0;
15076   REPLACE_READ=0;
15077   REPLACE_READLINK=0;
15078   REPLACE_RMDIR=0;
15079   REPLACE_SLEEP=0;
15080   REPLACE_SYMLINK=0;
15081   REPLACE_TTYNAME_R=0;
15082   REPLACE_UNLINK=0;
15083   REPLACE_UNLINKAT=0;
15084   REPLACE_USLEEP=0;
15085   REPLACE_WRITE=0;
15086   UNISTD_H_HAVE_WINSOCK2_H=0;
15087   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
15088
15089
15090
15091
15092
15093   for ac_header in $ac_header_list
15094 do :
15095   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15096 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15097 "
15098 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15099   cat >>confdefs.h <<_ACEOF
15100 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15101 _ACEOF
15102
15103 fi
15104
15105 done
15106
15107
15108
15109
15110
15111
15112
15113
15114   if test $ac_cv_header_sys_socket_h != yes; then
15115                     for ac_header in winsock2.h
15116 do :
15117   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
15118 if test "x$ac_cv_header_winsock2_h" = xyes; then :
15119   cat >>confdefs.h <<_ACEOF
15120 #define HAVE_WINSOCK2_H 1
15121 _ACEOF
15122
15123 fi
15124
15125 done
15126
15127   fi
15128   if test "$ac_cv_header_winsock2_h" = yes; then
15129     HAVE_WINSOCK2_H=1
15130     UNISTD_H_HAVE_WINSOCK2_H=1
15131     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
15132   else
15133     HAVE_WINSOCK2_H=0
15134   fi
15135
15136    LIBSOCKET=
15137   if test $HAVE_WINSOCK2_H = 1; then
15138         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5
15139 $as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; }
15140 if ${gl_cv_func_wsastartup+:} false; then :
15141   $as_echo_n "(cached) " >&6
15142 else
15143
15144       gl_save_LIBS="$LIBS"
15145       LIBS="$LIBS -lws2_32"
15146       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15147 /* end confdefs.h.  */
15148
15149 #ifdef HAVE_WINSOCK2_H
15150 # include <winsock2.h>
15151 #endif
15152 int
15153 main ()
15154 {
15155
15156           WORD wVersionRequested = MAKEWORD(1, 1);
15157           WSADATA wsaData;
15158           int err = WSAStartup(wVersionRequested, &wsaData);
15159           WSACleanup ();
15160   ;
15161   return 0;
15162 }
15163 _ACEOF
15164 if ac_fn_c_try_link "$LINENO"; then :
15165   gl_cv_func_wsastartup=yes
15166 else
15167   gl_cv_func_wsastartup=no
15168 fi
15169 rm -f core conftest.err conftest.$ac_objext \
15170     conftest$ac_exeext conftest.$ac_ext
15171       LIBS="$gl_save_LIBS"
15172
15173 fi
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
15175 $as_echo "$gl_cv_func_wsastartup" >&6; }
15176     if test "$gl_cv_func_wsastartup" = "yes"; then
15177
15178 $as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
15179
15180       LIBSOCKET='-lws2_32'
15181     fi
15182   else
15183                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
15184 $as_echo_n "checking for library containing setsockopt... " >&6; }
15185 if ${gl_cv_lib_socket+:} false; then :
15186   $as_echo_n "(cached) " >&6
15187 else
15188
15189       gl_cv_lib_socket=
15190       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15191 /* end confdefs.h.  */
15192 extern
15193 #ifdef __cplusplus
15194 "C"
15195 #endif
15196 char setsockopt();
15197 int
15198 main ()
15199 {
15200 setsockopt();
15201   ;
15202   return 0;
15203 }
15204 _ACEOF
15205 if ac_fn_c_try_link "$LINENO"; then :
15206
15207 else
15208   gl_save_LIBS="$LIBS"
15209          LIBS="$gl_save_LIBS -lsocket"
15210          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15211 /* end confdefs.h.  */
15212 extern
15213 #ifdef __cplusplus
15214 "C"
15215 #endif
15216 char setsockopt();
15217 int
15218 main ()
15219 {
15220 setsockopt();
15221   ;
15222   return 0;
15223 }
15224 _ACEOF
15225 if ac_fn_c_try_link "$LINENO"; then :
15226   gl_cv_lib_socket="-lsocket"
15227 fi
15228 rm -f core conftest.err conftest.$ac_objext \
15229     conftest$ac_exeext conftest.$ac_ext
15230          if test -z "$gl_cv_lib_socket"; then
15231            LIBS="$gl_save_LIBS -lnetwork"
15232            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15233 /* end confdefs.h.  */
15234 extern
15235 #ifdef __cplusplus
15236 "C"
15237 #endif
15238 char setsockopt();
15239 int
15240 main ()
15241 {
15242 setsockopt();
15243   ;
15244   return 0;
15245 }
15246 _ACEOF
15247 if ac_fn_c_try_link "$LINENO"; then :
15248   gl_cv_lib_socket="-lnetwork"
15249 fi
15250 rm -f core conftest.err conftest.$ac_objext \
15251     conftest$ac_exeext conftest.$ac_ext
15252            if test -z "$gl_cv_lib_socket"; then
15253              LIBS="$gl_save_LIBS -lnet"
15254              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15255 /* end confdefs.h.  */
15256 extern
15257 #ifdef __cplusplus
15258 "C"
15259 #endif
15260 char setsockopt();
15261 int
15262 main ()
15263 {
15264 setsockopt();
15265   ;
15266   return 0;
15267 }
15268 _ACEOF
15269 if ac_fn_c_try_link "$LINENO"; then :
15270   gl_cv_lib_socket="-lnet"
15271 fi
15272 rm -f core conftest.err conftest.$ac_objext \
15273     conftest$ac_exeext conftest.$ac_ext
15274            fi
15275          fi
15276          LIBS="$gl_save_LIBS"
15277
15278 fi
15279 rm -f core conftest.err conftest.$ac_objext \
15280     conftest$ac_exeext conftest.$ac_ext
15281       if test -z "$gl_cv_lib_socket"; then
15282         gl_cv_lib_socket="none needed"
15283       fi
15284
15285 fi
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
15287 $as_echo "$gl_cv_lib_socket" >&6; }
15288     if test "$gl_cv_lib_socket" != "none needed"; then
15289       LIBSOCKET="$gl_cv_lib_socket"
15290     fi
15291   fi
15292
15293
15294
15295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build OpenSSL compatibility layer" >&5
15296 $as_echo_n "checking whether to build OpenSSL compatibility layer... " >&6; }
15297   # Check whether --enable-openssl-compatibility was given.
15298 if test "${enable_openssl_compatibility+set}" = set; then :
15299   enableval=$enable_openssl_compatibility; enable_openssl=$enableval
15300 else
15301   enable_openssl=yes
15302 fi
15303
15304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
15305 $as_echo "$enable_openssl" >&6; }
15306    if test "$enable_openssl" = "yes"; then
15307   ENABLE_OPENSSL_TRUE=
15308   ENABLE_OPENSSL_FALSE='#'
15309 else
15310   ENABLE_OPENSSL_TRUE='#'
15311   ENABLE_OPENSSL_FALSE=
15312 fi
15313
15314
15315   # We link to ../lib's gnulib, which needs -lws2_32 via LIBSOCKET in Makefile.am.
15316
15317
15318
15319
15320   :
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330           LIBC_FATAL_STDERR_=1
15331   export LIBC_FATAL_STDERR_
15332
15333
15334    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15335 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15336 if ${ac_cv_c_bigendian+:} false; then :
15337   $as_echo_n "(cached) " >&6
15338 else
15339   ac_cv_c_bigendian=unknown
15340     # See if we're dealing with a universal compiler.
15341     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15342 /* end confdefs.h.  */
15343 #ifndef __APPLE_CC__
15344                not a universal capable compiler
15345              #endif
15346              typedef int dummy;
15347
15348 _ACEOF
15349 if ac_fn_c_try_compile "$LINENO"; then :
15350
15351         # Check for potential -arch flags.  It is not universal unless
15352         # there are at least two -arch flags with different values.
15353         ac_arch=
15354         ac_prev=
15355         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15356          if test -n "$ac_prev"; then
15357            case $ac_word in
15358              i?86 | x86_64 | ppc | ppc64)
15359                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15360                  ac_arch=$ac_word
15361                else
15362                  ac_cv_c_bigendian=universal
15363                  break
15364                fi
15365                ;;
15366            esac
15367            ac_prev=
15368          elif test "x$ac_word" = "x-arch"; then
15369            ac_prev=arch
15370          fi
15371        done
15372 fi
15373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15374     if test $ac_cv_c_bigendian = unknown; then
15375       # See if sys/param.h defines the BYTE_ORDER macro.
15376       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15377 /* end confdefs.h.  */
15378 #include <sys/types.h>
15379              #include <sys/param.h>
15380
15381 int
15382 main ()
15383 {
15384 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15385                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15386                      && LITTLE_ENDIAN)
15387               bogus endian macros
15388              #endif
15389
15390   ;
15391   return 0;
15392 }
15393 _ACEOF
15394 if ac_fn_c_try_compile "$LINENO"; then :
15395   # It does; now see whether it defined to BIG_ENDIAN or not.
15396          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15397 /* end confdefs.h.  */
15398 #include <sys/types.h>
15399                 #include <sys/param.h>
15400
15401 int
15402 main ()
15403 {
15404 #if BYTE_ORDER != BIG_ENDIAN
15405                  not big endian
15406                 #endif
15407
15408   ;
15409   return 0;
15410 }
15411 _ACEOF
15412 if ac_fn_c_try_compile "$LINENO"; then :
15413   ac_cv_c_bigendian=yes
15414 else
15415   ac_cv_c_bigendian=no
15416 fi
15417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15418 fi
15419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15420     fi
15421     if test $ac_cv_c_bigendian = unknown; then
15422       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15423       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15424 /* end confdefs.h.  */
15425 #include <limits.h>
15426
15427 int
15428 main ()
15429 {
15430 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15431               bogus endian macros
15432              #endif
15433
15434   ;
15435   return 0;
15436 }
15437 _ACEOF
15438 if ac_fn_c_try_compile "$LINENO"; then :
15439   # It does; now see whether it defined to _BIG_ENDIAN or not.
15440          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15441 /* end confdefs.h.  */
15442 #include <limits.h>
15443
15444 int
15445 main ()
15446 {
15447 #ifndef _BIG_ENDIAN
15448                  not big endian
15449                 #endif
15450
15451   ;
15452   return 0;
15453 }
15454 _ACEOF
15455 if ac_fn_c_try_compile "$LINENO"; then :
15456   ac_cv_c_bigendian=yes
15457 else
15458   ac_cv_c_bigendian=no
15459 fi
15460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15461 fi
15462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15463     fi
15464     if test $ac_cv_c_bigendian = unknown; then
15465       # Compile a test program.
15466       if test "$cross_compiling" = yes; then :
15467   # Try to guess by grepping values from an object file.
15468          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15469 /* end confdefs.h.  */
15470 short int ascii_mm[] =
15471                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15472                 short int ascii_ii[] =
15473                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15474                 int use_ascii (int i) {
15475                   return ascii_mm[i] + ascii_ii[i];
15476                 }
15477                 short int ebcdic_ii[] =
15478                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15479                 short int ebcdic_mm[] =
15480                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15481                 int use_ebcdic (int i) {
15482                   return ebcdic_mm[i] + ebcdic_ii[i];
15483                 }
15484                 extern int foo;
15485
15486 int
15487 main ()
15488 {
15489 return use_ascii (foo) == use_ebcdic (foo);
15490   ;
15491   return 0;
15492 }
15493 _ACEOF
15494 if ac_fn_c_try_compile "$LINENO"; then :
15495   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15496               ac_cv_c_bigendian=yes
15497             fi
15498             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15499               if test "$ac_cv_c_bigendian" = unknown; then
15500                 ac_cv_c_bigendian=no
15501               else
15502                 # finding both strings is unlikely to happen, but who knows?
15503                 ac_cv_c_bigendian=unknown
15504               fi
15505             fi
15506 fi
15507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15508 else
15509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15510 /* end confdefs.h.  */
15511 $ac_includes_default
15512 int
15513 main ()
15514 {
15515
15516              /* Are we little or big endian?  From Harbison&Steele.  */
15517              union
15518              {
15519                long int l;
15520                char c[sizeof (long int)];
15521              } u;
15522              u.l = 1;
15523              return u.c[sizeof (long int) - 1] == 1;
15524
15525   ;
15526   return 0;
15527 }
15528 _ACEOF
15529 if ac_fn_c_try_run "$LINENO"; then :
15530   ac_cv_c_bigendian=no
15531 else
15532   ac_cv_c_bigendian=yes
15533 fi
15534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15535   conftest.$ac_objext conftest.beam conftest.$ac_ext
15536 fi
15537
15538     fi
15539 fi
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15541 $as_echo "$ac_cv_c_bigendian" >&6; }
15542  case $ac_cv_c_bigendian in #(
15543    yes)
15544      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15545 ;; #(
15546    no)
15547       ;; #(
15548    universal)
15549
15550 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15551
15552      ;; #(
15553    *)
15554      as_fn_error $? "unknown endianness
15555  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15556  esac
15557
15558
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15560 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
15561 if ${ac_cv_c_restrict+:} false; then :
15562   $as_echo_n "(cached) " >&6
15563 else
15564   ac_cv_c_restrict=no
15565    # The order here caters to the fact that C++ does not require restrict.
15566    for ac_kw in __restrict __restrict__ _Restrict restrict; do
15567      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15568 /* end confdefs.h.  */
15569 typedef int * int_ptr;
15570         int foo (int_ptr $ac_kw ip) {
15571         return ip[0];
15572        }
15573 int
15574 main ()
15575 {
15576 int s[1];
15577         int * $ac_kw t = s;
15578         t[0] = 0;
15579         return foo(t)
15580   ;
15581   return 0;
15582 }
15583 _ACEOF
15584 if ac_fn_c_try_compile "$LINENO"; then :
15585   ac_cv_c_restrict=$ac_kw
15586 fi
15587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15588      test "$ac_cv_c_restrict" != no && break
15589    done
15590
15591 fi
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15593 $as_echo "$ac_cv_c_restrict" >&6; }
15594
15595  case $ac_cv_c_restrict in
15596    restrict) ;;
15597    no) $as_echo "#define restrict /**/" >>confdefs.h
15598  ;;
15599    *)  cat >>confdefs.h <<_ACEOF
15600 #define restrict $ac_cv_c_restrict
15601 _ACEOF
15602  ;;
15603  esac
15604
15605
15606    if true; then
15607   GL_COND_LIBTOOL_TRUE=
15608   GL_COND_LIBTOOL_FALSE='#'
15609 else
15610   GL_COND_LIBTOOL_TRUE='#'
15611   GL_COND_LIBTOOL_FALSE=
15612 fi
15613
15614   gl_cond_libtool=true
15615   gl_m4_base='gl/m4'
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625   gl_source_base='gl'
15626
15627
15628
15629   :
15630
15631
15632   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc/ld supports -Wl,--output-def" >&5
15633 $as_echo_n "checking if gcc/ld supports -Wl,--output-def... " >&6; }
15634 if ${gl_cv_ld_output_def+:} false; then :
15635   $as_echo_n "(cached) " >&6
15636 else
15637   if test "$enable_shared" = no; then
15638        gl_cv_ld_output_def="not needed, shared libraries are disabled"
15639      else
15640        gl_ldflags_save=$LDFLAGS
15641        LDFLAGS="-Wl,--output-def,conftest.def"
15642        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15643 /* end confdefs.h.  */
15644
15645 int
15646 main ()
15647 {
15648
15649   ;
15650   return 0;
15651 }
15652 _ACEOF
15653 if ac_fn_c_try_link "$LINENO"; then :
15654   gl_cv_ld_output_def=yes
15655 else
15656   gl_cv_ld_output_def=no
15657 fi
15658 rm -f core conftest.err conftest.$ac_objext \
15659     conftest$ac_exeext conftest.$ac_ext
15660        rm -f conftest.def
15661        LDFLAGS="$gl_ldflags_save"
15662      fi
15663 fi
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_output_def" >&5
15665 $as_echo "$gl_cv_ld_output_def" >&6; }
15666    if test "x$gl_cv_ld_output_def" = "xyes"; then
15667   HAVE_LD_OUTPUT_DEF_TRUE=
15668   HAVE_LD_OUTPUT_DEF_FALSE='#'
15669 else
15670   HAVE_LD_OUTPUT_DEF_TRUE='#'
15671   HAVE_LD_OUTPUT_DEF_FALSE=
15672 fi
15673
15674
15675
15676   # Check whether --enable-ld-version-script was given.
15677 if test "${enable_ld_version_script+set}" = set; then :
15678   enableval=$enable_ld_version_script; have_ld_version_script=$enableval
15679 fi
15680
15681   if test -z "$have_ld_version_script"; then
15682     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
15683 $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
15684     save_LDFLAGS="$LDFLAGS"
15685     LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
15686     cat > conftest.map <<EOF
15687 foo
15688 EOF
15689     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15690 /* end confdefs.h.  */
15691
15692 int
15693 main ()
15694 {
15695
15696   ;
15697   return 0;
15698 }
15699 _ACEOF
15700 if ac_fn_c_try_link "$LINENO"; then :
15701   accepts_syntax_errors=yes
15702 else
15703   accepts_syntax_errors=no
15704 fi
15705 rm -f core conftest.err conftest.$ac_objext \
15706     conftest$ac_exeext conftest.$ac_ext
15707     if test "$accepts_syntax_errors" = no; then
15708       cat > conftest.map <<EOF
15709 VERS_1 {
15710         global: sym;
15711 };
15712
15713 VERS_2 {
15714         global: sym;
15715 } VERS_1;
15716 EOF
15717       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15718 /* end confdefs.h.  */
15719
15720 int
15721 main ()
15722 {
15723
15724   ;
15725   return 0;
15726 }
15727 _ACEOF
15728 if ac_fn_c_try_link "$LINENO"; then :
15729   have_ld_version_script=yes
15730 else
15731   have_ld_version_script=no
15732 fi
15733 rm -f core conftest.err conftest.$ac_objext \
15734     conftest$ac_exeext conftest.$ac_ext
15735     else
15736       have_ld_version_script=no
15737     fi
15738     rm -f conftest.map
15739     LDFLAGS="$save_LDFLAGS"
15740     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
15741 $as_echo "$have_ld_version_script" >&6; }
15742   fi
15743    if test "$have_ld_version_script" = "yes"; then
15744   HAVE_LD_VERSION_SCRIPT_TRUE=
15745   HAVE_LD_VERSION_SCRIPT_FALSE='#'
15746 else
15747   HAVE_LD_VERSION_SCRIPT_TRUE='#'
15748   HAVE_LD_VERSION_SCRIPT_FALSE=
15749 fi
15750
15751
15752
15753
15754
15755
15756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
15757 $as_echo_n "checking for working stdalign.h... " >&6; }
15758 if ${gl_cv_header_working_stdalign_h+:} false; then :
15759   $as_echo_n "(cached) " >&6
15760 else
15761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15762 /* end confdefs.h.  */
15763 #include <stdalign.h>
15764             #include <stddef.h>
15765
15766             /* Test that alignof yields a result consistent with offsetof.
15767                This catches GCC bug 52023
15768                <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>.  */
15769             #ifdef __cplusplus
15770                template <class t> struct alignof_helper { char a; t b; };
15771             # define ao(type) offsetof (alignof_helper<type>, b)
15772             #else
15773             # define ao(type) offsetof (struct { char a; type b; }, b)
15774             #endif
15775             char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
15776             char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
15777             char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
15778
15779             /* Test _Alignas only on platforms where gnulib can help.  */
15780             #if \
15781                 (__GNUC__ || __IBMC__ || __IBMCPP__ \
15782                  || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
15783               int alignas (8) alignas_int = 1;
15784               char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
15785             #endif
15786
15787 int
15788 main ()
15789 {
15790
15791   ;
15792   return 0;
15793 }
15794 _ACEOF
15795 if ac_fn_c_try_compile "$LINENO"; then :
15796   gl_cv_header_working_stdalign_h=yes
15797 else
15798   gl_cv_header_working_stdalign_h=no
15799 fi
15800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15801 fi
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
15803 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
15804
15805   if test $gl_cv_header_working_stdalign_h = yes; then
15806     STDALIGN_H=''
15807   else
15808     STDALIGN_H='stdalign.h'
15809   fi
15810
15811
15812    if test -n "$STDALIGN_H"; then
15813   GL_GENERATE_STDALIGN_H_TRUE=
15814   GL_GENERATE_STDALIGN_H_FALSE='#'
15815 else
15816   GL_GENERATE_STDALIGN_H_TRUE='#'
15817   GL_GENERATE_STDALIGN_H_FALSE=
15818 fi
15819
15820
15821   # End of code from modules
15822
15823
15824
15825
15826
15827
15828
15829   gltests_libdeps=
15830   gltests_ltlibdeps=
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840   gl_source_base='gl/tests'
15841   xgltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
15842
15843   gl_module_indicator_condition=$xgltests_WITNESS
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855 LIBGNUTLS_EXTRA_LIBS="-L${libdir} -lgnutls-extra $LZO_LIBS $LIBGNUTLS_LIBS"
15856 LIBGNUTLS_EXTRA_CFLAGS="-I${includedir}"
15857
15858
15859
15860 # Finish things from ../configure.ac.
15861
15862
15863
15864
15865
15866 $as_echo "#define GNUTLS_COMPAT_H 1" >>confdefs.h
15867
15868
15869 ac_config_files="$ac_config_files Makefile gnutls-extra.pc gl/Makefile includes/Makefile"
15870
15871 cat >confcache <<\_ACEOF
15872 # This file is a shell script that caches the results of configure
15873 # tests run on this system so they can be shared between configure
15874 # scripts and configure runs, see configure's option --config-cache.
15875 # It is not useful on other systems.  If it contains results you don't
15876 # want to keep, you may remove or edit it.
15877 #
15878 # config.status only pays attention to the cache file if you give it
15879 # the --recheck option to rerun configure.
15880 #
15881 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15882 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15883 # following values.
15884
15885 _ACEOF
15886
15887 # The following way of writing the cache mishandles newlines in values,
15888 # but we know of no workaround that is simple, portable, and efficient.
15889 # So, we kill variables containing newlines.
15890 # Ultrix sh set writes to stderr and can't be redirected directly,
15891 # and sets the high bit in the cache file unless we assign to the vars.
15892 (
15893   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15894     eval ac_val=\$$ac_var
15895     case $ac_val in #(
15896     *${as_nl}*)
15897       case $ac_var in #(
15898       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15899 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15900       esac
15901       case $ac_var in #(
15902       _ | IFS | as_nl) ;; #(
15903       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15904       *) { eval $ac_var=; unset $ac_var;} ;;
15905       esac ;;
15906     esac
15907   done
15908
15909   (set) 2>&1 |
15910     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15911     *${as_nl}ac_space=\ *)
15912       # `set' does not quote correctly, so add quotes: double-quote
15913       # substitution turns \\\\ into \\, and sed turns \\ into \.
15914       sed -n \
15915         "s/'/'\\\\''/g;
15916           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15917       ;; #(
15918     *)
15919       # `set' quotes correctly as required by POSIX, so do not add quotes.
15920       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15921       ;;
15922     esac |
15923     sort
15924 ) |
15925   sed '
15926      /^ac_cv_env_/b end
15927      t clear
15928      :clear
15929      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15930      t end
15931      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15932      :end' >>confcache
15933 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15934   if test -w "$cache_file"; then
15935     if test "x$cache_file" != "x/dev/null"; then
15936       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15937 $as_echo "$as_me: updating cache $cache_file" >&6;}
15938       if test ! -f "$cache_file" || test -h "$cache_file"; then
15939         cat confcache >"$cache_file"
15940       else
15941         case $cache_file in #(
15942         */* | ?:*)
15943           mv -f confcache "$cache_file"$$ &&
15944           mv -f "$cache_file"$$ "$cache_file" ;; #(
15945         *)
15946           mv -f confcache "$cache_file" ;;
15947         esac
15948       fi
15949     fi
15950   else
15951     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15952 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15953   fi
15954 fi
15955 rm -f confcache
15956
15957 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15958 # Let make expand exec_prefix.
15959 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15960
15961 DEFS=-DHAVE_CONFIG_H
15962
15963 ac_libobjs=
15964 ac_ltlibobjs=
15965 U=
15966 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15967   # 1. Remove the extension, and $U if already installed.
15968   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15969   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15970   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15971   #    will be set to the directory where LIBOBJS objects are built.
15972   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15973   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15974 done
15975 LIBOBJS=$ac_libobjs
15976
15977 LTLIBOBJS=$ac_ltlibobjs
15978
15979
15980  if test -n "$EXEEXT"; then
15981   am__EXEEXT_TRUE=
15982   am__EXEEXT_FALSE='#'
15983 else
15984   am__EXEEXT_TRUE='#'
15985   am__EXEEXT_FALSE=
15986 fi
15987
15988 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15989   as_fn_error $? "conditional \"AMDEP\" was never defined.
15990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15991 fi
15992 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15993   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15995 fi
15996 if test -z "${ENABLE_NETTLE_TRUE}" && test -z "${ENABLE_NETTLE_FALSE}"; then
15997   as_fn_error $? "conditional \"ENABLE_NETTLE\" was never defined.
15998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15999 fi
16000 if test -z "${ENABLE_MINITASN1_TRUE}" && test -z "${ENABLE_MINITASN1_FALSE}"; then
16001   as_fn_error $? "conditional \"ENABLE_MINITASN1\" was never defined.
16002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16003 fi
16004 if test -z "${USE_LZO_TRUE}" && test -z "${USE_LZO_FALSE}"; then
16005   as_fn_error $? "conditional \"USE_LZO\" was never defined.
16006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16007 fi
16008 if test -z "${ENABLE_OPRFI_TRUE}" && test -z "${ENABLE_OPRFI_FALSE}"; then
16009   as_fn_error $? "conditional \"ENABLE_OPRFI\" was never defined.
16010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16011 fi
16012 if test -z "${ENABLE_SRP_TRUE}" && test -z "${ENABLE_SRP_FALSE}"; then
16013   as_fn_error $? "conditional \"ENABLE_SRP\" was never defined.
16014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16015 fi
16016 if test -z "${ENABLE_PSK_TRUE}" && test -z "${ENABLE_PSK_FALSE}"; then
16017   as_fn_error $? "conditional \"ENABLE_PSK\" was never defined.
16018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16019 fi
16020 if test -z "${ENABLE_ANON_TRUE}" && test -z "${ENABLE_ANON_FALSE}"; then
16021   as_fn_error $? "conditional \"ENABLE_ANON\" was never defined.
16022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16023 fi
16024 if test -z "${ENABLE_PKI_TRUE}" && test -z "${ENABLE_PKI_FALSE}"; then
16025   as_fn_error $? "conditional \"ENABLE_PKI\" was never defined.
16026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16027 fi
16028 if test -z "${ENABLE_OPENPGP_TRUE}" && test -z "${ENABLE_OPENPGP_FALSE}"; then
16029   as_fn_error $? "conditional \"ENABLE_OPENPGP\" was never defined.
16030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16031 fi
16032 if test -z "${ENABLE_SESSION_TICKET_TRUE}" && test -z "${ENABLE_SESSION_TICKET_FALSE}"; then
16033   as_fn_error $? "conditional \"ENABLE_SESSION_TICKET\" was never defined.
16034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16035 fi
16036 if test -z "${ENABLE_OPENSSL_TRUE}" && test -z "${ENABLE_OPENSSL_FALSE}"; then
16037   as_fn_error $? "conditional \"ENABLE_OPENSSL\" was never defined.
16038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16039 fi
16040 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
16041   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
16042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16043 fi
16044
16045 if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then
16046   as_fn_error $? "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined.
16047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16048 fi
16049 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
16050   as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
16051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16052 fi
16053 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
16054   as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
16055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16056 fi
16057
16058     xgl_libobjs=
16059     xgl_ltlibobjs=
16060     if test -n "$xgl_LIBOBJS"; then
16061       # Remove the extension.
16062       sed_drop_objext='s/\.o$//;s/\.obj$//'
16063       for i in `for i in $xgl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16064         xgl_libobjs="$xgl_libobjs $i.$ac_objext"
16065         xgl_ltlibobjs="$xgl_ltlibobjs $i.lo"
16066       done
16067     fi
16068     xgl_LIBOBJS=$xgl_libobjs
16069
16070     xgl_LTLIBOBJS=$xgl_ltlibobjs
16071
16072
16073
16074     xgltests_libobjs=
16075     xgltests_ltlibobjs=
16076     if test -n "$xgltests_LIBOBJS"; then
16077       # Remove the extension.
16078       sed_drop_objext='s/\.o$//;s/\.obj$//'
16079       for i in `for i in $xgltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16080         xgltests_libobjs="$xgltests_libobjs $i.$ac_objext"
16081         xgltests_ltlibobjs="$xgltests_ltlibobjs $i.lo"
16082       done
16083     fi
16084     xgltests_LIBOBJS=$xgltests_libobjs
16085
16086     xgltests_LTLIBOBJS=$xgltests_ltlibobjs
16087
16088
16089
16090 : "${CONFIG_STATUS=./config.status}"
16091 ac_write_fail=0
16092 ac_clean_files_save=$ac_clean_files
16093 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16095 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16096 as_write_fail=0
16097 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16098 #! $SHELL
16099 # Generated by $as_me.
16100 # Run this file to recreate the current configuration.
16101 # Compiler output produced by configure, useful for debugging
16102 # configure, is in config.log if it exists.
16103
16104 debug=false
16105 ac_cs_recheck=false
16106 ac_cs_silent=false
16107
16108 SHELL=\${CONFIG_SHELL-$SHELL}
16109 export SHELL
16110 _ASEOF
16111 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16112 ## -------------------- ##
16113 ## M4sh Initialization. ##
16114 ## -------------------- ##
16115
16116 # Be more Bourne compatible
16117 DUALCASE=1; export DUALCASE # for MKS sh
16118 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16119   emulate sh
16120   NULLCMD=:
16121   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16122   # is contrary to our usage.  Disable this feature.
16123   alias -g '${1+"$@"}'='"$@"'
16124   setopt NO_GLOB_SUBST
16125 else
16126   case `(set -o) 2>/dev/null` in #(
16127   *posix*) :
16128     set -o posix ;; #(
16129   *) :
16130      ;;
16131 esac
16132 fi
16133
16134
16135 as_nl='
16136 '
16137 export as_nl
16138 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16139 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16140 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16141 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16142 # Prefer a ksh shell builtin over an external printf program on Solaris,
16143 # but without wasting forks for bash or zsh.
16144 if test -z "$BASH_VERSION$ZSH_VERSION" \
16145     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16146   as_echo='print -r --'
16147   as_echo_n='print -rn --'
16148 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16149   as_echo='printf %s\n'
16150   as_echo_n='printf %s'
16151 else
16152   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16153     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16154     as_echo_n='/usr/ucb/echo -n'
16155   else
16156     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16157     as_echo_n_body='eval
16158       arg=$1;
16159       case $arg in #(
16160       *"$as_nl"*)
16161         expr "X$arg" : "X\\(.*\\)$as_nl";
16162         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16163       esac;
16164       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16165     '
16166     export as_echo_n_body
16167     as_echo_n='sh -c $as_echo_n_body as_echo'
16168   fi
16169   export as_echo_body
16170   as_echo='sh -c $as_echo_body as_echo'
16171 fi
16172
16173 # The user is always right.
16174 if test "${PATH_SEPARATOR+set}" != set; then
16175   PATH_SEPARATOR=:
16176   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16177     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16178       PATH_SEPARATOR=';'
16179   }
16180 fi
16181
16182
16183 # IFS
16184 # We need space, tab and new line, in precisely that order.  Quoting is
16185 # there to prevent editors from complaining about space-tab.
16186 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16187 # splitting by setting IFS to empty value.)
16188 IFS=" ""        $as_nl"
16189
16190 # Find who we are.  Look in the path if we contain no directory separator.
16191 as_myself=
16192 case $0 in #((
16193   *[\\/]* ) as_myself=$0 ;;
16194   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16195 for as_dir in $PATH
16196 do
16197   IFS=$as_save_IFS
16198   test -z "$as_dir" && as_dir=.
16199     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16200   done
16201 IFS=$as_save_IFS
16202
16203      ;;
16204 esac
16205 # We did not find ourselves, most probably we were run as `sh COMMAND'
16206 # in which case we are not to be found in the path.
16207 if test "x$as_myself" = x; then
16208   as_myself=$0
16209 fi
16210 if test ! -f "$as_myself"; then
16211   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16212   exit 1
16213 fi
16214
16215 # Unset variables that we do not need and which cause bugs (e.g. in
16216 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16217 # suppresses any "Segmentation fault" message there.  '((' could
16218 # trigger a bug in pdksh 5.2.14.
16219 for as_var in BASH_ENV ENV MAIL MAILPATH
16220 do eval test x\${$as_var+set} = xset \
16221   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16222 done
16223 PS1='$ '
16224 PS2='> '
16225 PS4='+ '
16226
16227 # NLS nuisances.
16228 LC_ALL=C
16229 export LC_ALL
16230 LANGUAGE=C
16231 export LANGUAGE
16232
16233 # CDPATH.
16234 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16235
16236
16237 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16238 # ----------------------------------------
16239 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16240 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16241 # script with STATUS, using 1 if that was 0.
16242 as_fn_error ()
16243 {
16244   as_status=$1; test $as_status -eq 0 && as_status=1
16245   if test "$4"; then
16246     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16247     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16248   fi
16249   $as_echo "$as_me: error: $2" >&2
16250   as_fn_exit $as_status
16251 } # as_fn_error
16252
16253
16254 # as_fn_set_status STATUS
16255 # -----------------------
16256 # Set $? to STATUS, without forking.
16257 as_fn_set_status ()
16258 {
16259   return $1
16260 } # as_fn_set_status
16261
16262 # as_fn_exit STATUS
16263 # -----------------
16264 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16265 as_fn_exit ()
16266 {
16267   set +e
16268   as_fn_set_status $1
16269   exit $1
16270 } # as_fn_exit
16271
16272 # as_fn_unset VAR
16273 # ---------------
16274 # Portably unset VAR.
16275 as_fn_unset ()
16276 {
16277   { eval $1=; unset $1;}
16278 }
16279 as_unset=as_fn_unset
16280 # as_fn_append VAR VALUE
16281 # ----------------------
16282 # Append the text in VALUE to the end of the definition contained in VAR. Take
16283 # advantage of any shell optimizations that allow amortized linear growth over
16284 # repeated appends, instead of the typical quadratic growth present in naive
16285 # implementations.
16286 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16287   eval 'as_fn_append ()
16288   {
16289     eval $1+=\$2
16290   }'
16291 else
16292   as_fn_append ()
16293   {
16294     eval $1=\$$1\$2
16295   }
16296 fi # as_fn_append
16297
16298 # as_fn_arith ARG...
16299 # ------------------
16300 # Perform arithmetic evaluation on the ARGs, and store the result in the
16301 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16302 # must be portable across $(()) and expr.
16303 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16304   eval 'as_fn_arith ()
16305   {
16306     as_val=$(( $* ))
16307   }'
16308 else
16309   as_fn_arith ()
16310   {
16311     as_val=`expr "$@" || test $? -eq 1`
16312   }
16313 fi # as_fn_arith
16314
16315
16316 if expr a : '\(a\)' >/dev/null 2>&1 &&
16317    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16318   as_expr=expr
16319 else
16320   as_expr=false
16321 fi
16322
16323 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16324   as_basename=basename
16325 else
16326   as_basename=false
16327 fi
16328
16329 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16330   as_dirname=dirname
16331 else
16332   as_dirname=false
16333 fi
16334
16335 as_me=`$as_basename -- "$0" ||
16336 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16337          X"$0" : 'X\(//\)$' \| \
16338          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16339 $as_echo X/"$0" |
16340     sed '/^.*\/\([^/][^/]*\)\/*$/{
16341             s//\1/
16342             q
16343           }
16344           /^X\/\(\/\/\)$/{
16345             s//\1/
16346             q
16347           }
16348           /^X\/\(\/\).*/{
16349             s//\1/
16350             q
16351           }
16352           s/.*/./; q'`
16353
16354 # Avoid depending upon Character Ranges.
16355 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16356 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16357 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16358 as_cr_digits='0123456789'
16359 as_cr_alnum=$as_cr_Letters$as_cr_digits
16360
16361 ECHO_C= ECHO_N= ECHO_T=
16362 case `echo -n x` in #(((((
16363 -n*)
16364   case `echo 'xy\c'` in
16365   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16366   xy)  ECHO_C='\c';;
16367   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16368        ECHO_T=' ';;
16369   esac;;
16370 *)
16371   ECHO_N='-n';;
16372 esac
16373
16374 rm -f conf$$ conf$$.exe conf$$.file
16375 if test -d conf$$.dir; then
16376   rm -f conf$$.dir/conf$$.file
16377 else
16378   rm -f conf$$.dir
16379   mkdir conf$$.dir 2>/dev/null
16380 fi
16381 if (echo >conf$$.file) 2>/dev/null; then
16382   if ln -s conf$$.file conf$$ 2>/dev/null; then
16383     as_ln_s='ln -s'
16384     # ... but there are two gotchas:
16385     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16386     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16387     # In both cases, we have to default to `cp -pR'.
16388     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16389       as_ln_s='cp -pR'
16390   elif ln conf$$.file conf$$ 2>/dev/null; then
16391     as_ln_s=ln
16392   else
16393     as_ln_s='cp -pR'
16394   fi
16395 else
16396   as_ln_s='cp -pR'
16397 fi
16398 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16399 rmdir conf$$.dir 2>/dev/null
16400
16401
16402 # as_fn_mkdir_p
16403 # -------------
16404 # Create "$as_dir" as a directory, including parents if necessary.
16405 as_fn_mkdir_p ()
16406 {
16407
16408   case $as_dir in #(
16409   -*) as_dir=./$as_dir;;
16410   esac
16411   test -d "$as_dir" || eval $as_mkdir_p || {
16412     as_dirs=
16413     while :; do
16414       case $as_dir in #(
16415       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16416       *) as_qdir=$as_dir;;
16417       esac
16418       as_dirs="'$as_qdir' $as_dirs"
16419       as_dir=`$as_dirname -- "$as_dir" ||
16420 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16421          X"$as_dir" : 'X\(//\)[^/]' \| \
16422          X"$as_dir" : 'X\(//\)$' \| \
16423          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16424 $as_echo X"$as_dir" |
16425     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16426             s//\1/
16427             q
16428           }
16429           /^X\(\/\/\)[^/].*/{
16430             s//\1/
16431             q
16432           }
16433           /^X\(\/\/\)$/{
16434             s//\1/
16435             q
16436           }
16437           /^X\(\/\).*/{
16438             s//\1/
16439             q
16440           }
16441           s/.*/./; q'`
16442       test -d "$as_dir" && break
16443     done
16444     test -z "$as_dirs" || eval "mkdir $as_dirs"
16445   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16446
16447
16448 } # as_fn_mkdir_p
16449 if mkdir -p . 2>/dev/null; then
16450   as_mkdir_p='mkdir -p "$as_dir"'
16451 else
16452   test -d ./-p && rmdir ./-p
16453   as_mkdir_p=false
16454 fi
16455
16456
16457 # as_fn_executable_p FILE
16458 # -----------------------
16459 # Test if FILE is an executable regular file.
16460 as_fn_executable_p ()
16461 {
16462   test -f "$1" && test -x "$1"
16463 } # as_fn_executable_p
16464 as_test_x='test -x'
16465 as_executable_p=as_fn_executable_p
16466
16467 # Sed expression to map a string onto a valid CPP name.
16468 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16469
16470 # Sed expression to map a string onto a valid variable name.
16471 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16472
16473
16474 exec 6>&1
16475 ## ----------------------------------- ##
16476 ## Main body of $CONFIG_STATUS script. ##
16477 ## ----------------------------------- ##
16478 _ASEOF
16479 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16480
16481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16482 # Save the log message, to keep $0 and so on meaningful, and to
16483 # report actual input values of CONFIG_FILES etc. instead of their
16484 # values after options handling.
16485 ac_log="
16486 This file was extended by libgnutls-extra $as_me 2.12.20, which was
16487 generated by GNU Autoconf 2.69.  Invocation command line was
16488
16489   CONFIG_FILES    = $CONFIG_FILES
16490   CONFIG_HEADERS  = $CONFIG_HEADERS
16491   CONFIG_LINKS    = $CONFIG_LINKS
16492   CONFIG_COMMANDS = $CONFIG_COMMANDS
16493   $ $0 $@
16494
16495 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16496 "
16497
16498 _ACEOF
16499
16500 case $ac_config_files in *"
16501 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16502 esac
16503
16504 case $ac_config_headers in *"
16505 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16506 esac
16507
16508
16509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16510 # Files that config.status was made for.
16511 config_files="$ac_config_files"
16512 config_headers="$ac_config_headers"
16513 config_commands="$ac_config_commands"
16514
16515 _ACEOF
16516
16517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16518 ac_cs_usage="\
16519 \`$as_me' instantiates files and other configuration actions
16520 from templates according to the current configuration.  Unless the files
16521 and actions are specified as TAGs, all are instantiated by default.
16522
16523 Usage: $0 [OPTION]... [TAG]...
16524
16525   -h, --help       print this help, then exit
16526   -V, --version    print version number and configuration settings, then exit
16527       --config     print configuration, then exit
16528   -q, --quiet, --silent
16529                    do not print progress messages
16530   -d, --debug      don't remove temporary files
16531       --recheck    update $as_me by reconfiguring in the same conditions
16532       --file=FILE[:TEMPLATE]
16533                    instantiate the configuration file FILE
16534       --header=FILE[:TEMPLATE]
16535                    instantiate the configuration header FILE
16536
16537 Configuration files:
16538 $config_files
16539
16540 Configuration headers:
16541 $config_headers
16542
16543 Configuration commands:
16544 $config_commands
16545
16546 Report bugs to <bug-gnutls@gnu.org>."
16547
16548 _ACEOF
16549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16550 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16551 ac_cs_version="\\
16552 libgnutls-extra config.status 2.12.20
16553 configured by $0, generated by GNU Autoconf 2.69,
16554   with options \\"\$ac_cs_config\\"
16555
16556 Copyright (C) 2012 Free Software Foundation, Inc.
16557 This config.status script is free software; the Free Software Foundation
16558 gives unlimited permission to copy, distribute and modify it."
16559
16560 ac_pwd='$ac_pwd'
16561 srcdir='$srcdir'
16562 INSTALL='$INSTALL'
16563 MKDIR_P='$MKDIR_P'
16564 AWK='$AWK'
16565 test -n "\$AWK" || AWK=awk
16566 _ACEOF
16567
16568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16569 # The default lists apply if the user does not specify any file.
16570 ac_need_defaults=:
16571 while test $# != 0
16572 do
16573   case $1 in
16574   --*=?*)
16575     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16576     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16577     ac_shift=:
16578     ;;
16579   --*=)
16580     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16581     ac_optarg=
16582     ac_shift=:
16583     ;;
16584   *)
16585     ac_option=$1
16586     ac_optarg=$2
16587     ac_shift=shift
16588     ;;
16589   esac
16590
16591   case $ac_option in
16592   # Handling of the options.
16593   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16594     ac_cs_recheck=: ;;
16595   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16596     $as_echo "$ac_cs_version"; exit ;;
16597   --config | --confi | --conf | --con | --co | --c )
16598     $as_echo "$ac_cs_config"; exit ;;
16599   --debug | --debu | --deb | --de | --d | -d )
16600     debug=: ;;
16601   --file | --fil | --fi | --f )
16602     $ac_shift
16603     case $ac_optarg in
16604     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16605     '') as_fn_error $? "missing file argument" ;;
16606     esac
16607     as_fn_append CONFIG_FILES " '$ac_optarg'"
16608     ac_need_defaults=false;;
16609   --header | --heade | --head | --hea )
16610     $ac_shift
16611     case $ac_optarg in
16612     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16613     esac
16614     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16615     ac_need_defaults=false;;
16616   --he | --h)
16617     # Conflict between --help and --header
16618     as_fn_error $? "ambiguous option: \`$1'
16619 Try \`$0 --help' for more information.";;
16620   --help | --hel | -h )
16621     $as_echo "$ac_cs_usage"; exit ;;
16622   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16623   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16624     ac_cs_silent=: ;;
16625
16626   # This is an error.
16627   -*) as_fn_error $? "unrecognized option: \`$1'
16628 Try \`$0 --help' for more information." ;;
16629
16630   *) as_fn_append ac_config_targets " $1"
16631      ac_need_defaults=false ;;
16632
16633   esac
16634   shift
16635 done
16636
16637 ac_configure_extra_args=
16638
16639 if $ac_cs_silent; then
16640   exec 6>/dev/null
16641   ac_configure_extra_args="$ac_configure_extra_args --silent"
16642 fi
16643
16644 _ACEOF
16645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16646 if \$ac_cs_recheck; then
16647   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16648   shift
16649   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16650   CONFIG_SHELL='$SHELL'
16651   export CONFIG_SHELL
16652   exec "\$@"
16653 fi
16654
16655 _ACEOF
16656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16657 exec 5>>config.log
16658 {
16659   echo
16660   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16661 ## Running $as_me. ##
16662 _ASBOX
16663   $as_echo "$ac_log"
16664 } >&5
16665
16666 _ACEOF
16667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16668 #
16669 # INIT-COMMANDS
16670 #
16671 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16672
16673
16674 # The HP-UX ksh and POSIX shell print the target directory to stdout
16675 # if CDPATH is set.
16676 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16677
16678 sed_quote_subst='$sed_quote_subst'
16679 double_quote_subst='$double_quote_subst'
16680 delay_variable_subst='$delay_variable_subst'
16681 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16682 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16683 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16684 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16685 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16686 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16687 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16688 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16689 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16690 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16691 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16692 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16693 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16694 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16695 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16696 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16697 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16698 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16699 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16700 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16701 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16702 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16703 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16704 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16705 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16706 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16707 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16708 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16709 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16710 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16711 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16712 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16713 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16714 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16715 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16716 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16717 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16718 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16719 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16720 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16721 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16722 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16723 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16724 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16725 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16726 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16727 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16728 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16729 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16730 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16731 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16732 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16733 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16734 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16735 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16736 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16737 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16738 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"`'
16739 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16740 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16741 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16742 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16743 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16744 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16745 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16746 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16747 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16748 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16749 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16750 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16751 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16752 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16753 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16754 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16755 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16756 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16757 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16758 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16759 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16760 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16761 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16762 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16763 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16764 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16765 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16766 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16767 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16768 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16769 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16770 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16771 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16772 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16773 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16774 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16775 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16776 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16777 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16778 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16779 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16780 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16781 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16782 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16783 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16784 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16785 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16786 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16787 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16788 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16789 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16790 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16791 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16792 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16793 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16794 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16795 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16796 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16797 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16798 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16799 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16800 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16801 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16802 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16803 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16804 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16805 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16806 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16807 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16808 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16809 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16810 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16811 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16812
16813 LTCC='$LTCC'
16814 LTCFLAGS='$LTCFLAGS'
16815 compiler='$compiler_DEFAULT'
16816
16817 # A function that is used when there is no print builtin or printf.
16818 func_fallback_echo ()
16819 {
16820   eval 'cat <<_LTECHO_EOF
16821 \$1
16822 _LTECHO_EOF'
16823 }
16824
16825 # Quote evaled strings.
16826 for var in AS \
16827 DLLTOOL \
16828 OBJDUMP \
16829 SHELL \
16830 ECHO \
16831 PATH_SEPARATOR \
16832 SED \
16833 GREP \
16834 EGREP \
16835 FGREP \
16836 LD \
16837 NM \
16838 LN_S \
16839 lt_SP2NL \
16840 lt_NL2SP \
16841 reload_flag \
16842 deplibs_check_method \
16843 file_magic_cmd \
16844 file_magic_glob \
16845 want_nocaseglob \
16846 sharedlib_from_linklib_cmd \
16847 AR \
16848 AR_FLAGS \
16849 archiver_list_spec \
16850 STRIP \
16851 RANLIB \
16852 CC \
16853 CFLAGS \
16854 compiler \
16855 lt_cv_sys_global_symbol_pipe \
16856 lt_cv_sys_global_symbol_to_cdecl \
16857 lt_cv_sys_global_symbol_to_c_name_address \
16858 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16859 nm_file_list_spec \
16860 lt_prog_compiler_no_builtin_flag \
16861 lt_prog_compiler_pic \
16862 lt_prog_compiler_wl \
16863 lt_prog_compiler_static \
16864 lt_cv_prog_compiler_c_o \
16865 need_locks \
16866 MANIFEST_TOOL \
16867 DSYMUTIL \
16868 NMEDIT \
16869 LIPO \
16870 OTOOL \
16871 OTOOL64 \
16872 shrext_cmds \
16873 export_dynamic_flag_spec \
16874 whole_archive_flag_spec \
16875 compiler_needs_object \
16876 with_gnu_ld \
16877 allow_undefined_flag \
16878 no_undefined_flag \
16879 hardcode_libdir_flag_spec \
16880 hardcode_libdir_separator \
16881 exclude_expsyms \
16882 include_expsyms \
16883 file_list_spec \
16884 variables_saved_for_relink \
16885 libname_spec \
16886 library_names_spec \
16887 soname_spec \
16888 install_override_mode \
16889 finish_eval \
16890 old_striplib \
16891 striplib; do
16892     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16893     *[\\\\\\\`\\"\\\$]*)
16894       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16895       ;;
16896     *)
16897       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16898       ;;
16899     esac
16900 done
16901
16902 # Double-quote double-evaled strings.
16903 for var in reload_cmds \
16904 old_postinstall_cmds \
16905 old_postuninstall_cmds \
16906 old_archive_cmds \
16907 extract_expsyms_cmds \
16908 old_archive_from_new_cmds \
16909 old_archive_from_expsyms_cmds \
16910 archive_cmds \
16911 archive_expsym_cmds \
16912 module_cmds \
16913 module_expsym_cmds \
16914 export_symbols_cmds \
16915 prelink_cmds \
16916 postlink_cmds \
16917 postinstall_cmds \
16918 postuninstall_cmds \
16919 finish_cmds \
16920 sys_lib_search_path_spec \
16921 sys_lib_dlsearch_path_spec; do
16922     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16923     *[\\\\\\\`\\"\\\$]*)
16924       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16925       ;;
16926     *)
16927       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16928       ;;
16929     esac
16930 done
16931
16932 ac_aux_dir='$ac_aux_dir'
16933 xsi_shell='$xsi_shell'
16934 lt_shell_append='$lt_shell_append'
16935
16936 # See if we are running on zsh, and set the options which allow our
16937 # commands through without removal of \ escapes INIT.
16938 if test -n "\${ZSH_VERSION+set}" ; then
16939    setopt NO_GLOB_SUBST
16940 fi
16941
16942
16943     PACKAGE='$PACKAGE'
16944     VERSION='$VERSION'
16945     TIMESTAMP='$TIMESTAMP'
16946     RM='$RM'
16947     ofile='$ofile'
16948
16949
16950
16951
16952 _ACEOF
16953
16954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16955
16956 # Handling of arguments.
16957 for ac_config_target in $ac_config_targets
16958 do
16959   case $ac_config_target in
16960     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16961     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16962     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16963     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16964     "gnutls-extra.pc") CONFIG_FILES="$CONFIG_FILES gnutls-extra.pc" ;;
16965     "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
16966     "includes/Makefile") CONFIG_FILES="$CONFIG_FILES includes/Makefile" ;;
16967
16968   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16969   esac
16970 done
16971
16972
16973 # If the user did not use the arguments to specify the items to instantiate,
16974 # then the envvar interface is used.  Set only those that are not.
16975 # We use the long form for the default assignment because of an extremely
16976 # bizarre bug on SunOS 4.1.3.
16977 if $ac_need_defaults; then
16978   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16979   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16980   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16981 fi
16982
16983 # Have a temporary directory for convenience.  Make it in the build tree
16984 # simply because there is no reason against having it here, and in addition,
16985 # creating and moving files from /tmp can sometimes cause problems.
16986 # Hook for its removal unless debugging.
16987 # Note that there is a small window in which the directory will not be cleaned:
16988 # after its creation but before its name has been assigned to `$tmp'.
16989 $debug ||
16990 {
16991   tmp= ac_tmp=
16992   trap 'exit_status=$?
16993   : "${ac_tmp:=$tmp}"
16994   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16995 ' 0
16996   trap 'as_fn_exit 1' 1 2 13 15
16997 }
16998 # Create a (secure) tmp directory for tmp files.
16999
17000 {
17001   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17002   test -d "$tmp"
17003 }  ||
17004 {
17005   tmp=./conf$$-$RANDOM
17006   (umask 077 && mkdir "$tmp")
17007 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17008 ac_tmp=$tmp
17009
17010 # Set up the scripts for CONFIG_FILES section.
17011 # No need to generate them if there are no CONFIG_FILES.
17012 # This happens for instance with `./config.status config.h'.
17013 if test -n "$CONFIG_FILES"; then
17014
17015
17016 ac_cr=`echo X | tr X '\015'`
17017 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17018 # But we know of no other shell where ac_cr would be empty at this
17019 # point, so we can use a bashism as a fallback.
17020 if test "x$ac_cr" = x; then
17021   eval ac_cr=\$\'\\r\'
17022 fi
17023 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17024 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17025   ac_cs_awk_cr='\\r'
17026 else
17027   ac_cs_awk_cr=$ac_cr
17028 fi
17029
17030 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17031 _ACEOF
17032
17033
17034 {
17035   echo "cat >conf$$subs.awk <<_ACEOF" &&
17036   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17037   echo "_ACEOF"
17038 } >conf$$subs.sh ||
17039   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17040 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17041 ac_delim='%!_!# '
17042 for ac_last_try in false false false false false :; do
17043   . ./conf$$subs.sh ||
17044     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17045
17046   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17047   if test $ac_delim_n = $ac_delim_num; then
17048     break
17049   elif $ac_last_try; then
17050     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17051   else
17052     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17053   fi
17054 done
17055 rm -f conf$$subs.sh
17056
17057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17058 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17059 _ACEOF
17060 sed -n '
17061 h
17062 s/^/S["/; s/!.*/"]=/
17063 p
17064 g
17065 s/^[^!]*!//
17066 :repl
17067 t repl
17068 s/'"$ac_delim"'$//
17069 t delim
17070 :nl
17071 h
17072 s/\(.\{148\}\)..*/\1/
17073 t more1
17074 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17075 p
17076 n
17077 b repl
17078 :more1
17079 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17080 p
17081 g
17082 s/.\{148\}//
17083 t nl
17084 :delim
17085 h
17086 s/\(.\{148\}\)..*/\1/
17087 t more2
17088 s/["\\]/\\&/g; s/^/"/; s/$/"/
17089 p
17090 b
17091 :more2
17092 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17093 p
17094 g
17095 s/.\{148\}//
17096 t delim
17097 ' <conf$$subs.awk | sed '
17098 /^[^""]/{
17099   N
17100   s/\n//
17101 }
17102 ' >>$CONFIG_STATUS || ac_write_fail=1
17103 rm -f conf$$subs.awk
17104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17105 _ACAWK
17106 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17107   for (key in S) S_is_set[key] = 1
17108   FS = "\a"
17109
17110 }
17111 {
17112   line = $ 0
17113   nfields = split(line, field, "@")
17114   substed = 0
17115   len = length(field[1])
17116   for (i = 2; i < nfields; i++) {
17117     key = field[i]
17118     keylen = length(key)
17119     if (S_is_set[key]) {
17120       value = S[key]
17121       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17122       len += length(value) + length(field[++i])
17123       substed = 1
17124     } else
17125       len += 1 + keylen
17126   }
17127
17128   print line
17129 }
17130
17131 _ACAWK
17132 _ACEOF
17133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17134 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17135   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17136 else
17137   cat
17138 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17139   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17140 _ACEOF
17141
17142 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17143 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17144 # trailing colons and then remove the whole line if VPATH becomes empty
17145 # (actually we leave an empty line to preserve line numbers).
17146 if test "x$srcdir" = x.; then
17147   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17148 h
17149 s///
17150 s/^/:/
17151 s/[      ]*$/:/
17152 s/:\$(srcdir):/:/g
17153 s/:\${srcdir}:/:/g
17154 s/:@srcdir@:/:/g
17155 s/^:*//
17156 s/:*$//
17157 x
17158 s/\(=[   ]*\).*/\1/
17159 G
17160 s/\n//
17161 s/^[^=]*=[       ]*$//
17162 }'
17163 fi
17164
17165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17166 fi # test -n "$CONFIG_FILES"
17167
17168 # Set up the scripts for CONFIG_HEADERS section.
17169 # No need to generate them if there are no CONFIG_HEADERS.
17170 # This happens for instance with `./config.status Makefile'.
17171 if test -n "$CONFIG_HEADERS"; then
17172 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17173 BEGIN {
17174 _ACEOF
17175
17176 # Transform confdefs.h into an awk script `defines.awk', embedded as
17177 # here-document in config.status, that substitutes the proper values into
17178 # config.h.in to produce config.h.
17179
17180 # Create a delimiter string that does not exist in confdefs.h, to ease
17181 # handling of long lines.
17182 ac_delim='%!_!# '
17183 for ac_last_try in false false :; do
17184   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17185   if test -z "$ac_tt"; then
17186     break
17187   elif $ac_last_try; then
17188     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17189   else
17190     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17191   fi
17192 done
17193
17194 # For the awk script, D is an array of macro values keyed by name,
17195 # likewise P contains macro parameters if any.  Preserve backslash
17196 # newline sequences.
17197
17198 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17199 sed -n '
17200 s/.\{148\}/&'"$ac_delim"'/g
17201 t rset
17202 :rset
17203 s/^[     ]*#[    ]*define[       ][      ]*/ /
17204 t def
17205 d
17206 :def
17207 s/\\$//
17208 t bsnl
17209 s/["\\]/\\&/g
17210 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17211 D["\1"]=" \3"/p
17212 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17213 d
17214 :bsnl
17215 s/["\\]/\\&/g
17216 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17217 D["\1"]=" \3\\\\\\n"\\/p
17218 t cont
17219 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17220 t cont
17221 d
17222 :cont
17223 n
17224 s/.\{148\}/&'"$ac_delim"'/g
17225 t clear
17226 :clear
17227 s/\\$//
17228 t bsnlc
17229 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17230 d
17231 :bsnlc
17232 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17233 b cont
17234 ' <confdefs.h | sed '
17235 s/'"$ac_delim"'/"\\\
17236 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17237
17238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17239   for (key in D) D_is_set[key] = 1
17240   FS = "\a"
17241 }
17242 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17243   line = \$ 0
17244   split(line, arg, " ")
17245   if (arg[1] == "#") {
17246     defundef = arg[2]
17247     mac1 = arg[3]
17248   } else {
17249     defundef = substr(arg[1], 2)
17250     mac1 = arg[2]
17251   }
17252   split(mac1, mac2, "(") #)
17253   macro = mac2[1]
17254   prefix = substr(line, 1, index(line, defundef) - 1)
17255   if (D_is_set[macro]) {
17256     # Preserve the white space surrounding the "#".
17257     print prefix "define", macro P[macro] D[macro]
17258     next
17259   } else {
17260     # Replace #undef with comments.  This is necessary, for example,
17261     # in the case of _POSIX_SOURCE, which is predefined and required
17262     # on some systems where configure will not decide to define it.
17263     if (defundef == "undef") {
17264       print "/*", prefix defundef, macro, "*/"
17265       next
17266     }
17267   }
17268 }
17269 { print }
17270 _ACAWK
17271 _ACEOF
17272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17273   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17274 fi # test -n "$CONFIG_HEADERS"
17275
17276
17277 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17278 shift
17279 for ac_tag
17280 do
17281   case $ac_tag in
17282   :[FHLC]) ac_mode=$ac_tag; continue;;
17283   esac
17284   case $ac_mode$ac_tag in
17285   :[FHL]*:*);;
17286   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17287   :[FH]-) ac_tag=-:-;;
17288   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17289   esac
17290   ac_save_IFS=$IFS
17291   IFS=:
17292   set x $ac_tag
17293   IFS=$ac_save_IFS
17294   shift
17295   ac_file=$1
17296   shift
17297
17298   case $ac_mode in
17299   :L) ac_source=$1;;
17300   :[FH])
17301     ac_file_inputs=
17302     for ac_f
17303     do
17304       case $ac_f in
17305       -) ac_f="$ac_tmp/stdin";;
17306       *) # Look for the file first in the build tree, then in the source tree
17307          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17308          # because $ac_f cannot contain `:'.
17309          test -f "$ac_f" ||
17310            case $ac_f in
17311            [\\/$]*) false;;
17312            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17313            esac ||
17314            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17315       esac
17316       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17317       as_fn_append ac_file_inputs " '$ac_f'"
17318     done
17319
17320     # Let's still pretend it is `configure' which instantiates (i.e., don't
17321     # use $as_me), people would be surprised to read:
17322     #    /* config.h.  Generated by config.status.  */
17323     configure_input='Generated from '`
17324           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17325         `' by configure.'
17326     if test x"$ac_file" != x-; then
17327       configure_input="$ac_file.  $configure_input"
17328       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17329 $as_echo "$as_me: creating $ac_file" >&6;}
17330     fi
17331     # Neutralize special characters interpreted by sed in replacement strings.
17332     case $configure_input in #(
17333     *\&* | *\|* | *\\* )
17334        ac_sed_conf_input=`$as_echo "$configure_input" |
17335        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17336     *) ac_sed_conf_input=$configure_input;;
17337     esac
17338
17339     case $ac_tag in
17340     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17341       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17342     esac
17343     ;;
17344   esac
17345
17346   ac_dir=`$as_dirname -- "$ac_file" ||
17347 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17348          X"$ac_file" : 'X\(//\)[^/]' \| \
17349          X"$ac_file" : 'X\(//\)$' \| \
17350          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17351 $as_echo X"$ac_file" |
17352     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17353             s//\1/
17354             q
17355           }
17356           /^X\(\/\/\)[^/].*/{
17357             s//\1/
17358             q
17359           }
17360           /^X\(\/\/\)$/{
17361             s//\1/
17362             q
17363           }
17364           /^X\(\/\).*/{
17365             s//\1/
17366             q
17367           }
17368           s/.*/./; q'`
17369   as_dir="$ac_dir"; as_fn_mkdir_p
17370   ac_builddir=.
17371
17372 case "$ac_dir" in
17373 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17374 *)
17375   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17376   # A ".." for each directory in $ac_dir_suffix.
17377   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17378   case $ac_top_builddir_sub in
17379   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17380   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17381   esac ;;
17382 esac
17383 ac_abs_top_builddir=$ac_pwd
17384 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17385 # for backward compatibility:
17386 ac_top_builddir=$ac_top_build_prefix
17387
17388 case $srcdir in
17389   .)  # We are building in place.
17390     ac_srcdir=.
17391     ac_top_srcdir=$ac_top_builddir_sub
17392     ac_abs_top_srcdir=$ac_pwd ;;
17393   [\\/]* | ?:[\\/]* )  # Absolute name.
17394     ac_srcdir=$srcdir$ac_dir_suffix;
17395     ac_top_srcdir=$srcdir
17396     ac_abs_top_srcdir=$srcdir ;;
17397   *) # Relative name.
17398     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17399     ac_top_srcdir=$ac_top_build_prefix$srcdir
17400     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17401 esac
17402 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17403
17404
17405   case $ac_mode in
17406   :F)
17407   #
17408   # CONFIG_FILE
17409   #
17410
17411   case $INSTALL in
17412   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17413   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17414   esac
17415   ac_MKDIR_P=$MKDIR_P
17416   case $MKDIR_P in
17417   [\\/$]* | ?:[\\/]* ) ;;
17418   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17419   esac
17420 _ACEOF
17421
17422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17423 # If the template does not know about datarootdir, expand it.
17424 # FIXME: This hack should be removed a few years after 2.60.
17425 ac_datarootdir_hack=; ac_datarootdir_seen=
17426 ac_sed_dataroot='
17427 /datarootdir/ {
17428   p
17429   q
17430 }
17431 /@datadir@/p
17432 /@docdir@/p
17433 /@infodir@/p
17434 /@localedir@/p
17435 /@mandir@/p'
17436 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17437 *datarootdir*) ac_datarootdir_seen=yes;;
17438 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17439   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17440 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17441 _ACEOF
17442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17443   ac_datarootdir_hack='
17444   s&@datadir@&$datadir&g
17445   s&@docdir@&$docdir&g
17446   s&@infodir@&$infodir&g
17447   s&@localedir@&$localedir&g
17448   s&@mandir@&$mandir&g
17449   s&\\\${datarootdir}&$datarootdir&g' ;;
17450 esac
17451 _ACEOF
17452
17453 # Neutralize VPATH when `$srcdir' = `.'.
17454 # Shell code in configure.ac might set extrasub.
17455 # FIXME: do we really want to maintain this feature?
17456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17457 ac_sed_extra="$ac_vpsub
17458 $extrasub
17459 _ACEOF
17460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17461 :t
17462 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17463 s|@configure_input@|$ac_sed_conf_input|;t t
17464 s&@top_builddir@&$ac_top_builddir_sub&;t t
17465 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17466 s&@srcdir@&$ac_srcdir&;t t
17467 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17468 s&@top_srcdir@&$ac_top_srcdir&;t t
17469 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17470 s&@builddir@&$ac_builddir&;t t
17471 s&@abs_builddir@&$ac_abs_builddir&;t t
17472 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17473 s&@INSTALL@&$ac_INSTALL&;t t
17474 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17475 $ac_datarootdir_hack
17476 "
17477 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17478   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17479
17480 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17481   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17482   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17483       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17484   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17485 which seems to be undefined.  Please make sure it is defined" >&5
17486 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17487 which seems to be undefined.  Please make sure it is defined" >&2;}
17488
17489   rm -f "$ac_tmp/stdin"
17490   case $ac_file in
17491   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17492   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17493   esac \
17494   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17495  ;;
17496   :H)
17497   #
17498   # CONFIG_HEADER
17499   #
17500   if test x"$ac_file" != x-; then
17501     {
17502       $as_echo "/* $configure_input  */" \
17503       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17504     } >"$ac_tmp/config.h" \
17505       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17506     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17507       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17508 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17509     else
17510       rm -f "$ac_file"
17511       mv "$ac_tmp/config.h" "$ac_file" \
17512         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17513     fi
17514   else
17515     $as_echo "/* $configure_input  */" \
17516       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17517       || as_fn_error $? "could not create -" "$LINENO" 5
17518   fi
17519 # Compute "$ac_file"'s index in $config_headers.
17520 _am_arg="$ac_file"
17521 _am_stamp_count=1
17522 for _am_header in $config_headers :; do
17523   case $_am_header in
17524     $_am_arg | $_am_arg:* )
17525       break ;;
17526     * )
17527       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17528   esac
17529 done
17530 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17531 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17532          X"$_am_arg" : 'X\(//\)[^/]' \| \
17533          X"$_am_arg" : 'X\(//\)$' \| \
17534          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17535 $as_echo X"$_am_arg" |
17536     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17537             s//\1/
17538             q
17539           }
17540           /^X\(\/\/\)[^/].*/{
17541             s//\1/
17542             q
17543           }
17544           /^X\(\/\/\)$/{
17545             s//\1/
17546             q
17547           }
17548           /^X\(\/\).*/{
17549             s//\1/
17550             q
17551           }
17552           s/.*/./; q'`/stamp-h$_am_stamp_count
17553  ;;
17554
17555   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17556 $as_echo "$as_me: executing $ac_file commands" >&6;}
17557  ;;
17558   esac
17559
17560
17561   case $ac_file$ac_mode in
17562     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17563   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17564   # are listed without --file.  Let's play safe and only enable the eval
17565   # if we detect the quoting.
17566   case $CONFIG_FILES in
17567   *\'*) eval set x "$CONFIG_FILES" ;;
17568   *)   set x $CONFIG_FILES ;;
17569   esac
17570   shift
17571   for mf
17572   do
17573     # Strip MF so we end up with the name of the file.
17574     mf=`echo "$mf" | sed -e 's/:.*$//'`
17575     # Check whether this is an Automake generated Makefile or not.
17576     # We used to match only the files named `Makefile.in', but
17577     # some people rename them; so instead we look at the file content.
17578     # Grep'ing the first line is not enough: some people post-process
17579     # each Makefile.in and add a new line on top of each file to say so.
17580     # Grep'ing the whole file is not good either: AIX grep has a line
17581     # limit of 2048, but all sed's we know have understand at least 4000.
17582     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17583       dirpart=`$as_dirname -- "$mf" ||
17584 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17585          X"$mf" : 'X\(//\)[^/]' \| \
17586          X"$mf" : 'X\(//\)$' \| \
17587          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17588 $as_echo X"$mf" |
17589     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17590             s//\1/
17591             q
17592           }
17593           /^X\(\/\/\)[^/].*/{
17594             s//\1/
17595             q
17596           }
17597           /^X\(\/\/\)$/{
17598             s//\1/
17599             q
17600           }
17601           /^X\(\/\).*/{
17602             s//\1/
17603             q
17604           }
17605           s/.*/./; q'`
17606     else
17607       continue
17608     fi
17609     # Extract the definition of DEPDIR, am__include, and am__quote
17610     # from the Makefile without running `make'.
17611     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17612     test -z "$DEPDIR" && continue
17613     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17614     test -z "am__include" && continue
17615     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17616     # When using ansi2knr, U may be empty or an underscore; expand it
17617     U=`sed -n 's/^U = //p' < "$mf"`
17618     # Find all dependency output files, they are included files with
17619     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17620     # simplest approach to changing $(DEPDIR) to its actual value in the
17621     # expansion.
17622     for file in `sed -n "
17623       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17624          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17625       # Make sure the directory exists.
17626       test -f "$dirpart/$file" && continue
17627       fdir=`$as_dirname -- "$file" ||
17628 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17629          X"$file" : 'X\(//\)[^/]' \| \
17630          X"$file" : 'X\(//\)$' \| \
17631          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17632 $as_echo X"$file" |
17633     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17634             s//\1/
17635             q
17636           }
17637           /^X\(\/\/\)[^/].*/{
17638             s//\1/
17639             q
17640           }
17641           /^X\(\/\/\)$/{
17642             s//\1/
17643             q
17644           }
17645           /^X\(\/\).*/{
17646             s//\1/
17647             q
17648           }
17649           s/.*/./; q'`
17650       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17651       # echo "creating $dirpart/$file"
17652       echo '# dummy' > "$dirpart/$file"
17653     done
17654   done
17655 }
17656  ;;
17657     "libtool":C)
17658
17659     # See if we are running on zsh, and set the options which allow our
17660     # commands through without removal of \ escapes.
17661     if test -n "${ZSH_VERSION+set}" ; then
17662       setopt NO_GLOB_SUBST
17663     fi
17664
17665     cfgfile="${ofile}T"
17666     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17667     $RM "$cfgfile"
17668
17669     cat <<_LT_EOF >> "$cfgfile"
17670 #! $SHELL
17671
17672 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17673 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17674 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17675 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17676 #
17677 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17678 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17679 #                 Foundation, Inc.
17680 #   Written by Gordon Matzigkeit, 1996
17681 #
17682 #   This file is part of GNU Libtool.
17683 #
17684 # GNU Libtool is free software; you can redistribute it and/or
17685 # modify it under the terms of the GNU General Public License as
17686 # published by the Free Software Foundation; either version 2 of
17687 # the License, or (at your option) any later version.
17688 #
17689 # As a special exception to the GNU General Public License,
17690 # if you distribute this file as part of a program or library that
17691 # is built using GNU Libtool, you may include this file under the
17692 # same distribution terms that you use for the rest of that program.
17693 #
17694 # GNU Libtool is distributed in the hope that it will be useful,
17695 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17696 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17697 # GNU General Public License for more details.
17698 #
17699 # You should have received a copy of the GNU General Public License
17700 # along with GNU Libtool; see the file COPYING.  If not, a copy
17701 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17702 # obtained by writing to the Free Software Foundation, Inc.,
17703 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17704
17705
17706 # The names of the tagged configurations supported by this script.
17707 available_tags=""
17708
17709 # ### BEGIN LIBTOOL CONFIG
17710
17711 # Assembler program.
17712 AS=$lt_AS
17713
17714 # DLL creation program.
17715 DLLTOOL=$lt_DLLTOOL
17716
17717 # Object dumper program.
17718 OBJDUMP=$lt_OBJDUMP
17719
17720 # Which release of libtool.m4 was used?
17721 macro_version=$macro_version
17722 macro_revision=$macro_revision
17723
17724 # Whether or not to build shared libraries.
17725 build_libtool_libs=$enable_shared
17726
17727 # Whether or not to build static libraries.
17728 build_old_libs=$enable_static
17729
17730 # What type of objects to build.
17731 pic_mode=$pic_mode
17732
17733 # Whether or not to optimize for fast installation.
17734 fast_install=$enable_fast_install
17735
17736 # Shell to use when invoking shell scripts.
17737 SHELL=$lt_SHELL
17738
17739 # An echo program that protects backslashes.
17740 ECHO=$lt_ECHO
17741
17742 # The PATH separator for the build system.
17743 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17744
17745 # The host system.
17746 host_alias=$host_alias
17747 host=$host
17748 host_os=$host_os
17749
17750 # The build system.
17751 build_alias=$build_alias
17752 build=$build
17753 build_os=$build_os
17754
17755 # A sed program that does not truncate output.
17756 SED=$lt_SED
17757
17758 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17759 Xsed="\$SED -e 1s/^X//"
17760
17761 # A grep program that handles long lines.
17762 GREP=$lt_GREP
17763
17764 # An ERE matcher.
17765 EGREP=$lt_EGREP
17766
17767 # A literal string matcher.
17768 FGREP=$lt_FGREP
17769
17770 # A BSD- or MS-compatible name lister.
17771 NM=$lt_NM
17772
17773 # Whether we need soft or hard links.
17774 LN_S=$lt_LN_S
17775
17776 # What is the maximum length of a command?
17777 max_cmd_len=$max_cmd_len
17778
17779 # Object file suffix (normally "o").
17780 objext=$ac_objext
17781
17782 # Executable file suffix (normally "").
17783 exeext=$exeext
17784
17785 # whether the shell understands "unset".
17786 lt_unset=$lt_unset
17787
17788 # turn spaces into newlines.
17789 SP2NL=$lt_lt_SP2NL
17790
17791 # turn newlines into spaces.
17792 NL2SP=$lt_lt_NL2SP
17793
17794 # convert \$build file names to \$host format.
17795 to_host_file_cmd=$lt_cv_to_host_file_cmd
17796
17797 # convert \$build files to toolchain format.
17798 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17799
17800 # Method to check whether dependent libraries are shared objects.
17801 deplibs_check_method=$lt_deplibs_check_method
17802
17803 # Command to use when deplibs_check_method = "file_magic".
17804 file_magic_cmd=$lt_file_magic_cmd
17805
17806 # How to find potential files when deplibs_check_method = "file_magic".
17807 file_magic_glob=$lt_file_magic_glob
17808
17809 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17810 want_nocaseglob=$lt_want_nocaseglob
17811
17812 # Command to associate shared and link libraries.
17813 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17814
17815 # The archiver.
17816 AR=$lt_AR
17817
17818 # Flags to create an archive.
17819 AR_FLAGS=$lt_AR_FLAGS
17820
17821 # How to feed a file listing to the archiver.
17822 archiver_list_spec=$lt_archiver_list_spec
17823
17824 # A symbol stripping program.
17825 STRIP=$lt_STRIP
17826
17827 # Commands used to install an old-style archive.
17828 RANLIB=$lt_RANLIB
17829 old_postinstall_cmds=$lt_old_postinstall_cmds
17830 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17831
17832 # Whether to use a lock for old archive extraction.
17833 lock_old_archive_extraction=$lock_old_archive_extraction
17834
17835 # A C compiler.
17836 LTCC=$lt_CC
17837
17838 # LTCC compiler flags.
17839 LTCFLAGS=$lt_CFLAGS
17840
17841 # Take the output of nm and produce a listing of raw symbols and C names.
17842 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17843
17844 # Transform the output of nm in a proper C declaration.
17845 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17846
17847 # Transform the output of nm in a C name address pair.
17848 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17849
17850 # Transform the output of nm in a C name address pair when lib prefix is needed.
17851 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17852
17853 # Specify filename containing input files for \$NM.
17854 nm_file_list_spec=$lt_nm_file_list_spec
17855
17856 # The root where to search for dependent libraries,and in which our libraries should be installed.
17857 lt_sysroot=$lt_sysroot
17858
17859 # The name of the directory that contains temporary libtool files.
17860 objdir=$objdir
17861
17862 # Used to examine libraries when file_magic_cmd begins with "file".
17863 MAGIC_CMD=$MAGIC_CMD
17864
17865 # Must we lock files when doing compilation?
17866 need_locks=$lt_need_locks
17867
17868 # Manifest tool.
17869 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17870
17871 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17872 DSYMUTIL=$lt_DSYMUTIL
17873
17874 # Tool to change global to local symbols on Mac OS X.
17875 NMEDIT=$lt_NMEDIT
17876
17877 # Tool to manipulate fat objects and archives on Mac OS X.
17878 LIPO=$lt_LIPO
17879
17880 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17881 OTOOL=$lt_OTOOL
17882
17883 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17884 OTOOL64=$lt_OTOOL64
17885
17886 # Old archive suffix (normally "a").
17887 libext=$libext
17888
17889 # Shared library suffix (normally ".so").
17890 shrext_cmds=$lt_shrext_cmds
17891
17892 # The commands to extract the exported symbol list from a shared archive.
17893 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17894
17895 # Variables whose values should be saved in libtool wrapper scripts and
17896 # restored at link time.
17897 variables_saved_for_relink=$lt_variables_saved_for_relink
17898
17899 # Do we need the "lib" prefix for modules?
17900 need_lib_prefix=$need_lib_prefix
17901
17902 # Do we need a version for libraries?
17903 need_version=$need_version
17904
17905 # Library versioning type.
17906 version_type=$version_type
17907
17908 # Shared library runtime path variable.
17909 runpath_var=$runpath_var
17910
17911 # Shared library path variable.
17912 shlibpath_var=$shlibpath_var
17913
17914 # Is shlibpath searched before the hard-coded library search path?
17915 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17916
17917 # Format of library name prefix.
17918 libname_spec=$lt_libname_spec
17919
17920 # List of archive names.  First name is the real one, the rest are links.
17921 # The last name is the one that the linker finds with -lNAME
17922 library_names_spec=$lt_library_names_spec
17923
17924 # The coded name of the library, if different from the real name.
17925 soname_spec=$lt_soname_spec
17926
17927 # Permission mode override for installation of shared libraries.
17928 install_override_mode=$lt_install_override_mode
17929
17930 # Command to use after installation of a shared archive.
17931 postinstall_cmds=$lt_postinstall_cmds
17932
17933 # Command to use after uninstallation of a shared archive.
17934 postuninstall_cmds=$lt_postuninstall_cmds
17935
17936 # Commands used to finish a libtool library installation in a directory.
17937 finish_cmds=$lt_finish_cmds
17938
17939 # As "finish_cmds", except a single script fragment to be evaled but
17940 # not shown.
17941 finish_eval=$lt_finish_eval
17942
17943 # Whether we should hardcode library paths into libraries.
17944 hardcode_into_libs=$hardcode_into_libs
17945
17946 # Compile-time system search path for libraries.
17947 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17948
17949 # Run-time system search path for libraries.
17950 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17951
17952 # Whether dlopen is supported.
17953 dlopen_support=$enable_dlopen
17954
17955 # Whether dlopen of programs is supported.
17956 dlopen_self=$enable_dlopen_self
17957
17958 # Whether dlopen of statically linked programs is supported.
17959 dlopen_self_static=$enable_dlopen_self_static
17960
17961 # Commands to strip libraries.
17962 old_striplib=$lt_old_striplib
17963 striplib=$lt_striplib
17964
17965
17966 # The linker used to build libraries.
17967 LD=$lt_LD
17968
17969 # How to create reloadable object files.
17970 reload_flag=$lt_reload_flag
17971 reload_cmds=$lt_reload_cmds
17972
17973 # Commands used to build an old-style archive.
17974 old_archive_cmds=$lt_old_archive_cmds
17975
17976 # A language specific compiler.
17977 CC=$lt_compiler
17978
17979 # Is the compiler the GNU compiler?
17980 with_gcc=$GCC
17981
17982 # Compiler flag to turn off builtin functions.
17983 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17984
17985 # Additional compiler flags for building library objects.
17986 pic_flag=$lt_lt_prog_compiler_pic
17987
17988 # How to pass a linker flag through the compiler.
17989 wl=$lt_lt_prog_compiler_wl
17990
17991 # Compiler flag to prevent dynamic linking.
17992 link_static_flag=$lt_lt_prog_compiler_static
17993
17994 # Does compiler simultaneously support -c and -o options?
17995 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17996
17997 # Whether or not to add -lc for building shared libraries.
17998 build_libtool_need_lc=$archive_cmds_need_lc
17999
18000 # Whether or not to disallow shared libs when runtime libs are static.
18001 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18002
18003 # Compiler flag to allow reflexive dlopens.
18004 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18005
18006 # Compiler flag to generate shared objects directly from archives.
18007 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18008
18009 # Whether the compiler copes with passing no objects directly.
18010 compiler_needs_object=$lt_compiler_needs_object
18011
18012 # Create an old-style archive from a shared archive.
18013 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18014
18015 # Create a temporary old-style archive to link instead of a shared archive.
18016 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18017
18018 # Commands used to build a shared archive.
18019 archive_cmds=$lt_archive_cmds
18020 archive_expsym_cmds=$lt_archive_expsym_cmds
18021
18022 # Commands used to build a loadable module if different from building
18023 # a shared archive.
18024 module_cmds=$lt_module_cmds
18025 module_expsym_cmds=$lt_module_expsym_cmds
18026
18027 # Whether we are building with GNU ld or not.
18028 with_gnu_ld=$lt_with_gnu_ld
18029
18030 # Flag that allows shared libraries with undefined symbols to be built.
18031 allow_undefined_flag=$lt_allow_undefined_flag
18032
18033 # Flag that enforces no undefined symbols.
18034 no_undefined_flag=$lt_no_undefined_flag
18035
18036 # Flag to hardcode \$libdir into a binary during linking.
18037 # This must work even if \$libdir does not exist
18038 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18039
18040 # Whether we need a single "-rpath" flag with a separated argument.
18041 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18042
18043 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18044 # DIR into the resulting binary.
18045 hardcode_direct=$hardcode_direct
18046
18047 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18048 # DIR into the resulting binary and the resulting library dependency is
18049 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18050 # library is relocated.
18051 hardcode_direct_absolute=$hardcode_direct_absolute
18052
18053 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18054 # into the resulting binary.
18055 hardcode_minus_L=$hardcode_minus_L
18056
18057 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18058 # into the resulting binary.
18059 hardcode_shlibpath_var=$hardcode_shlibpath_var
18060
18061 # Set to "yes" if building a shared library automatically hardcodes DIR
18062 # into the library and all subsequent libraries and executables linked
18063 # against it.
18064 hardcode_automatic=$hardcode_automatic
18065
18066 # Set to yes if linker adds runtime paths of dependent libraries
18067 # to runtime path list.
18068 inherit_rpath=$inherit_rpath
18069
18070 # Whether libtool must link a program against all its dependency libraries.
18071 link_all_deplibs=$link_all_deplibs
18072
18073 # Set to "yes" if exported symbols are required.
18074 always_export_symbols=$always_export_symbols
18075
18076 # The commands to list exported symbols.
18077 export_symbols_cmds=$lt_export_symbols_cmds
18078
18079 # Symbols that should not be listed in the preloaded symbols.
18080 exclude_expsyms=$lt_exclude_expsyms
18081
18082 # Symbols that must always be exported.
18083 include_expsyms=$lt_include_expsyms
18084
18085 # Commands necessary for linking programs (against libraries) with templates.
18086 prelink_cmds=$lt_prelink_cmds
18087
18088 # Commands necessary for finishing linking programs.
18089 postlink_cmds=$lt_postlink_cmds
18090
18091 # Specify filename containing input files.
18092 file_list_spec=$lt_file_list_spec
18093
18094 # How to hardcode a shared library path into an executable.
18095 hardcode_action=$hardcode_action
18096
18097 # ### END LIBTOOL CONFIG
18098
18099 _LT_EOF
18100
18101   case $host_os in
18102   aix3*)
18103     cat <<\_LT_EOF >> "$cfgfile"
18104 # AIX sometimes has problems with the GCC collect2 program.  For some
18105 # reason, if we set the COLLECT_NAMES environment variable, the problems
18106 # vanish in a puff of smoke.
18107 if test "X${COLLECT_NAMES+set}" != Xset; then
18108   COLLECT_NAMES=
18109   export COLLECT_NAMES
18110 fi
18111 _LT_EOF
18112     ;;
18113   esac
18114
18115
18116 ltmain="$ac_aux_dir/ltmain.sh"
18117
18118
18119   # We use sed instead of cat because bash on DJGPP gets confused if
18120   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18121   # text mode, it properly converts lines to CR/LF.  This bash problem
18122   # is reportedly fixed, but why not run on old versions too?
18123   sed '$q' "$ltmain" >> "$cfgfile" \
18124      || (rm -f "$cfgfile"; exit 1)
18125
18126   if test x"$xsi_shell" = xyes; then
18127   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18128 func_dirname ()\
18129 {\
18130 \    case ${1} in\
18131 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18132 \      *  ) func_dirname_result="${3}" ;;\
18133 \    esac\
18134 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18135   && mv -f "$cfgfile.tmp" "$cfgfile" \
18136     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18137 test 0 -eq $? || _lt_function_replace_fail=:
18138
18139
18140   sed -e '/^func_basename ()$/,/^} # func_basename /c\
18141 func_basename ()\
18142 {\
18143 \    func_basename_result="${1##*/}"\
18144 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18145   && mv -f "$cfgfile.tmp" "$cfgfile" \
18146     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18147 test 0 -eq $? || _lt_function_replace_fail=:
18148
18149
18150   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18151 func_dirname_and_basename ()\
18152 {\
18153 \    case ${1} in\
18154 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18155 \      *  ) func_dirname_result="${3}" ;;\
18156 \    esac\
18157 \    func_basename_result="${1##*/}"\
18158 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18159   && mv -f "$cfgfile.tmp" "$cfgfile" \
18160     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18161 test 0 -eq $? || _lt_function_replace_fail=:
18162
18163
18164   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18165 func_stripname ()\
18166 {\
18167 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18168 \    # positional parameters, so assign one to ordinary parameter first.\
18169 \    func_stripname_result=${3}\
18170 \    func_stripname_result=${func_stripname_result#"${1}"}\
18171 \    func_stripname_result=${func_stripname_result%"${2}"}\
18172 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18173   && mv -f "$cfgfile.tmp" "$cfgfile" \
18174     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18175 test 0 -eq $? || _lt_function_replace_fail=:
18176
18177
18178   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18179 func_split_long_opt ()\
18180 {\
18181 \    func_split_long_opt_name=${1%%=*}\
18182 \    func_split_long_opt_arg=${1#*=}\
18183 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18184   && mv -f "$cfgfile.tmp" "$cfgfile" \
18185     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18186 test 0 -eq $? || _lt_function_replace_fail=:
18187
18188
18189   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18190 func_split_short_opt ()\
18191 {\
18192 \    func_split_short_opt_arg=${1#??}\
18193 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18194 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18195   && mv -f "$cfgfile.tmp" "$cfgfile" \
18196     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18197 test 0 -eq $? || _lt_function_replace_fail=:
18198
18199
18200   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18201 func_lo2o ()\
18202 {\
18203 \    case ${1} in\
18204 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18205 \      *)    func_lo2o_result=${1} ;;\
18206 \    esac\
18207 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18208   && mv -f "$cfgfile.tmp" "$cfgfile" \
18209     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18210 test 0 -eq $? || _lt_function_replace_fail=:
18211
18212
18213   sed -e '/^func_xform ()$/,/^} # func_xform /c\
18214 func_xform ()\
18215 {\
18216     func_xform_result=${1%.*}.lo\
18217 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18218   && mv -f "$cfgfile.tmp" "$cfgfile" \
18219     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18220 test 0 -eq $? || _lt_function_replace_fail=:
18221
18222
18223   sed -e '/^func_arith ()$/,/^} # func_arith /c\
18224 func_arith ()\
18225 {\
18226     func_arith_result=$(( $* ))\
18227 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18228   && mv -f "$cfgfile.tmp" "$cfgfile" \
18229     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18230 test 0 -eq $? || _lt_function_replace_fail=:
18231
18232
18233   sed -e '/^func_len ()$/,/^} # func_len /c\
18234 func_len ()\
18235 {\
18236     func_len_result=${#1}\
18237 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18238   && mv -f "$cfgfile.tmp" "$cfgfile" \
18239     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18240 test 0 -eq $? || _lt_function_replace_fail=:
18241
18242 fi
18243
18244 if test x"$lt_shell_append" = xyes; then
18245   sed -e '/^func_append ()$/,/^} # func_append /c\
18246 func_append ()\
18247 {\
18248     eval "${1}+=\\${2}"\
18249 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18250   && mv -f "$cfgfile.tmp" "$cfgfile" \
18251     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18252 test 0 -eq $? || _lt_function_replace_fail=:
18253
18254
18255   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18256 func_append_quoted ()\
18257 {\
18258 \    func_quote_for_eval "${2}"\
18259 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18260 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18261   && mv -f "$cfgfile.tmp" "$cfgfile" \
18262     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18263 test 0 -eq $? || _lt_function_replace_fail=:
18264
18265
18266   # Save a `func_append' function call where possible by direct use of '+='
18267   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18268     && mv -f "$cfgfile.tmp" "$cfgfile" \
18269       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18270   test 0 -eq $? || _lt_function_replace_fail=:
18271 else
18272   # Save a `func_append' function call even when '+=' is not available
18273   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18274     && mv -f "$cfgfile.tmp" "$cfgfile" \
18275       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18276   test 0 -eq $? || _lt_function_replace_fail=:
18277 fi
18278
18279 if test x"$_lt_function_replace_fail" = x":"; then
18280   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18281 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18282 fi
18283
18284
18285    mv -f "$cfgfile" "$ofile" ||
18286     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18287   chmod +x "$ofile"
18288
18289  ;;
18290
18291   esac
18292 done # for ac_tag
18293
18294
18295 as_fn_exit 0
18296 _ACEOF
18297 ac_clean_files=$ac_clean_files_save
18298
18299 test $ac_write_fail = 0 ||
18300   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18301
18302
18303 # configure is writing to config.log, and then calls config.status.
18304 # config.status does its own redirection, appending to config.log.
18305 # Unfortunately, on DOS this fails, as config.log is still kept open
18306 # by configure, so config.status won't be able to write to it; its
18307 # output is simply discarded.  So we exec the FD to /dev/null,
18308 # effectively closing config.log, so it can be properly (re)opened and
18309 # appended to by config.status.  When coming back to configure, we
18310 # need to make the FD available again.
18311 if test "$no_create" != yes; then
18312   ac_cs_success=:
18313   ac_config_status_args=
18314   test "$silent" = yes &&
18315     ac_config_status_args="$ac_config_status_args --quiet"
18316   exec 5>/dev/null
18317   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18318   exec 5>>config.log
18319   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18320   # would make configure fail if this is the last instruction.
18321   $ac_cs_success || as_fn_exit 1
18322 fi
18323 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18324   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18325 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18326 fi
18327