Update package version to 1.8.3
[platform/upstream/libgcrypt.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for libgcrypt 1.8.3.
5 #
6 # Report bugs to <http://bugs.gnupg.org>.
7 #
8 #
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21   emulate sh
22   NULLCMD=:
23   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24   # is contrary to our usage.  Disable this feature.
25   alias -g '${1+"$@"}'='"$@"'
26   setopt NO_GLOB_SUBST
27 else
28   case `(set -o) 2>/dev/null` in #(
29   *posix*) :
30     set -o posix ;; #(
31   *) :
32      ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='print -r --'
49   as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51   as_echo='printf %s\n'
52   as_echo_n='printf %s'
53 else
54   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56     as_echo_n='/usr/ucb/echo -n'
57   else
58     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59     as_echo_n_body='eval
60       arg=$1;
61       case $arg in #(
62       *"$as_nl"*)
63         expr "X$arg" : "X\\(.*\\)$as_nl";
64         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65       esac;
66       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67     '
68     export as_echo_n_body
69     as_echo_n='sh -c $as_echo_n_body as_echo'
70   fi
71   export as_echo_body
72   as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77   PATH_SEPARATOR=:
78   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80       PATH_SEPARATOR=';'
81   }
82 fi
83
84
85 # IFS
86 # We need space, tab and new line, in precisely that order.  Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" ""        $as_nl"
91
92 # Find who we are.  Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 # Use a proper internal environment variable to ensure we don't fall
139   # into an infinite loop, continuously re-executing ourselves.
140   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141     _as_can_reexec=no; export _as_can_reexec;
142     # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150   *v*x* | *x*v* ) as_opts=-vx ;;
151   *v* ) as_opts=-v ;;
152   *x* ) as_opts=-x ;;
153   * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
160   fi
161   # We don't want this to propagate to other subprocesses.
162           { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165   emulate sh
166   NULLCMD=:
167   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168   # is contrary to our usage.  Disable this feature.
169   alias -g '\${1+\"\$@\"}'='\"\$@\"'
170   setopt NO_GLOB_SUBST
171 else
172   case \`(set -o) 2>/dev/null\` in #(
173   *posix*) :
174     set -o posix ;; #(
175   *) :
176      ;;
177 esac
178 fi
179 "
180   as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
185
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193 else
194   exitcode=1; echo positional parameters were not saved.
195 fi
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test \$(( 1 + 1 )) = 2 || exit 1
203
204   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208     PATH=/empty FPATH=/empty; export PATH FPATH
209     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
211   if (eval "$as_required") 2>/dev/null; then :
212   as_have_required=yes
213 else
214   as_have_required=no
215 fi
216   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217
218 else
219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 as_found=false
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223   IFS=$as_save_IFS
224   test -z "$as_dir" && as_dir=.
225   as_found=:
226   case $as_dir in #(
227          /*)
228            for as_base in sh bash ksh sh5; do
229              # Try only shells that exist, to save several forks.
230              as_shell=$as_dir/$as_base
231              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233   CONFIG_SHELL=$as_shell as_have_required=yes
234                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235   break 2
236 fi
237 fi
238            done;;
239        esac
240   as_found=false
241 done
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244   CONFIG_SHELL=$SHELL as_have_required=yes
245 fi; }
246 IFS=$as_save_IFS
247
248
249       if test "x$CONFIG_SHELL" != x; then :
250   export CONFIG_SHELL
251              # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259   *v*x* | *x*v* ) as_opts=-vx ;;
260   *v* ) as_opts=-v ;;
261   *x* ) as_opts=-x ;;
262   * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271     if test x$as_have_required = xno; then :
272   $as_echo "$0: This script requires a shell more modern than all"
273   $as_echo "$0: the shells that I found on your system."
274   if test x${ZSH_VERSION+set} = xset ; then
275     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277   else
278     $as_echo "$0: Please tell bug-autoconf@gnu.org and
279 $0: http://bugs.gnupg.org about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
283   fi
284   exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302   { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311   return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319   set +e
320   as_fn_set_status $1
321   exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330   case $as_dir in #(
331   -*) as_dir=./$as_dir;;
332   esac
333   test -d "$as_dir" || eval $as_mkdir_p || {
334     as_dirs=
335     while :; do
336       case $as_dir in #(
337       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338       *) as_qdir=$as_dir;;
339       esac
340       as_dirs="'$as_qdir' $as_dirs"
341       as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343          X"$as_dir" : 'X\(//\)[^/]' \| \
344          X"$as_dir" : 'X\(//\)$' \| \
345          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)[^/].*/{
352             s//\1/
353             q
354           }
355           /^X\(\/\/\)$/{
356             s//\1/
357             q
358           }
359           /^X\(\/\).*/{
360             s//\1/
361             q
362           }
363           s/.*/./; q'`
364       test -d "$as_dir" && break
365     done
366     test -z "$as_dirs" || eval "mkdir $as_dirs"
367   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377   test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386   eval 'as_fn_append ()
387   {
388     eval $1+=\$2
389   }'
390 else
391   as_fn_append ()
392   {
393     eval $1=\$$1\$2
394   }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403   eval 'as_fn_arith ()
404   {
405     as_val=$(( $* ))
406   }'
407 else
408   as_fn_arith ()
409   {
410     as_val=`expr "$@" || test $? -eq 1`
411   }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422   as_status=$1; test $as_status -eq 0 && as_status=1
423   if test "$4"; then
424     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426   fi
427   $as_echo "$as_me: error: $2" >&2
428   as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432    test "X`expr 00001 : '.*\(...\)'`" = X001; then
433   as_expr=expr
434 else
435   as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439   as_basename=basename
440 else
441   as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445   as_dirname=dirname
446 else
447   as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452          X"$0" : 'X\(//\)$' \| \
453          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455     sed '/^.*\/\([^/][^/]*\)\/*$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\/\)$/{
460             s//\1/
461             q
462           }
463           /^X\/\(\/\).*/{
464             s//\1/
465             q
466           }
467           s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477   as_lineno_1=$LINENO as_lineno_1a=$LINENO
478   as_lineno_2=$LINENO as_lineno_2a=$LINENO
479   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482   sed -n '
483     p
484     /[$]LINENO/=
485   ' <$as_myself |
486     sed '
487       s/[$]LINENO.*/&-/
488       t lineno
489       b
490       :lineno
491       N
492       :loop
493       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494       t loop
495       s/-\n.*//
496     ' >$as_me.lineno &&
497   chmod +x "$as_me.lineno" ||
498     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501   # already done that, so ensure we don't try to do so again and fall
502   # in an infinite loop.  This has already happened in practice.
503   _as_can_reexec=no; export _as_can_reexec
504   # Don't try to exec as it changes $[0], causing all sort of problems
505   # (the dirname of $[0] is not the place where we might find the
506   # original and so on.  Autoconf is especially sensitive to this).
507   . "./$as_me.lineno"
508   # Exit status is that of the last command.
509   exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515   case `echo 'xy\c'` in
516   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
517   xy)  ECHO_C='\c';;
518   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519        ECHO_T=' ';;
520   esac;;
521 *)
522   ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527   rm -f conf$$.dir/conf$$.file
528 else
529   rm -f conf$$.dir
530   mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533   if ln -s conf$$.file conf$$ 2>/dev/null; then
534     as_ln_s='ln -s'
535     # ... but there are two gotchas:
536     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538     # In both cases, we have to default to `cp -pR'.
539     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540       as_ln_s='cp -pR'
541   elif ln conf$$.file conf$$ 2>/dev/null; then
542     as_ln_s=ln
543   else
544     as_ln_s='cp -pR'
545   fi
546 else
547   as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553   as_mkdir_p='mkdir -p "$as_dir"'
554 else
555   test -d ./-p && rmdir ./-p
556   as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='libgcrypt'
593 PACKAGE_TARNAME='libgcrypt'
594 PACKAGE_VERSION='1.8.3'
595 PACKAGE_STRING='libgcrypt 1.8.3'
596 PACKAGE_BUGREPORT='http://bugs.gnupg.org'
597 PACKAGE_URL=''
598
599 ac_unique_file="src/libgcrypt.vers"
600 ac_config_libobj_dir=compat
601 # Factoring default headers for most tests.
602 ac_includes_default="\
603 #include <stdio.h>
604 #ifdef HAVE_SYS_TYPES_H
605 # include <sys/types.h>
606 #endif
607 #ifdef HAVE_SYS_STAT_H
608 # include <sys/stat.h>
609 #endif
610 #ifdef STDC_HEADERS
611 # include <stdlib.h>
612 # include <stddef.h>
613 #else
614 # ifdef HAVE_STDLIB_H
615 #  include <stdlib.h>
616 # endif
617 #endif
618 #ifdef HAVE_STRING_H
619 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620 #  include <memory.h>
621 # endif
622 # include <string.h>
623 #endif
624 #ifdef HAVE_STRINGS_H
625 # include <strings.h>
626 #endif
627 #ifdef HAVE_INTTYPES_H
628 # include <inttypes.h>
629 #endif
630 #ifdef HAVE_STDINT_H
631 # include <stdint.h>
632 #endif
633 #ifdef HAVE_UNISTD_H
634 # include <unistd.h>
635 #endif"
636
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 BUILD_TIMESTAMP
641 BUILD_FILEVERSION
642 BUILD_REVISION
643 BUILD_DOC_FALSE
644 BUILD_DOC_TRUE
645 GCRYPT_HWF_MODULES
646 LIBGCRYPT_DIGESTS
647 LIBGCRYPT_PUBKEY_CIPHERS
648 LIBGCRYPT_CIPHERS
649 GCRYPT_RANDOM
650 GCRYPT_KDFS
651 GCRYPT_DIGESTS
652 GCRYPT_PUBKEY_CIPHERS
653 GCRYPT_CIPHERS
654 LIBGCRYPT_THREAD_MODULES
655 LIBGCRYPT_CONFIG_HOST
656 LIBGCRYPT_CONFIG_CFLAGS
657 LIBGCRYPT_CONFIG_LIBS
658 LIBGCRYPT_CONFIG_API_VERSION
659 NOEXECSTACK_FLAGS
660 CROSS_COMPILING_FALSE
661 CROSS_COMPILING_TRUE
662 DL_LIBS
663 LIBOBJS
664 MPI_MOD_C_UDIV_QRNND_FALSE
665 MPI_MOD_C_UDIV_QRNND_TRUE
666 MPI_MOD_C_UDIV_FALSE
667 MPI_MOD_C_UDIV_TRUE
668 MPI_MOD_C_MPIH_RSHIFT_FALSE
669 MPI_MOD_C_MPIH_RSHIFT_TRUE
670 MPI_MOD_C_MPIH_LSHIFT_FALSE
671 MPI_MOD_C_MPIH_LSHIFT_TRUE
672 MPI_MOD_C_MPIH_MUL3_FALSE
673 MPI_MOD_C_MPIH_MUL3_TRUE
674 MPI_MOD_C_MPIH_MUL2_FALSE
675 MPI_MOD_C_MPIH_MUL2_TRUE
676 MPI_MOD_C_MPIH_MUL1_FALSE
677 MPI_MOD_C_MPIH_MUL1_TRUE
678 MPI_MOD_C_MPIH_SUB1_FALSE
679 MPI_MOD_C_MPIH_SUB1_TRUE
680 MPI_MOD_C_MPIH_ADD1_FALSE
681 MPI_MOD_C_MPIH_ADD1_TRUE
682 MPI_MOD_ASM_UDIV_QRNND_FALSE
683 MPI_MOD_ASM_UDIV_QRNND_TRUE
684 MPI_MOD_ASM_UDIV_FALSE
685 MPI_MOD_ASM_UDIV_TRUE
686 MPI_MOD_ASM_MPIH_RSHIFT_FALSE
687 MPI_MOD_ASM_MPIH_RSHIFT_TRUE
688 MPI_MOD_ASM_MPIH_LSHIFT_FALSE
689 MPI_MOD_ASM_MPIH_LSHIFT_TRUE
690 MPI_MOD_ASM_MPIH_MUL3_FALSE
691 MPI_MOD_ASM_MPIH_MUL3_TRUE
692 MPI_MOD_ASM_MPIH_MUL2_FALSE
693 MPI_MOD_ASM_MPIH_MUL2_TRUE
694 MPI_MOD_ASM_MPIH_MUL1_FALSE
695 MPI_MOD_ASM_MPIH_MUL1_TRUE
696 MPI_MOD_ASM_MPIH_SUB1_FALSE
697 MPI_MOD_ASM_MPIH_SUB1_TRUE
698 MPI_MOD_ASM_MPIH_ADD1_FALSE
699 MPI_MOD_ASM_MPIH_ADD1_TRUE
700 MPI_SFLAGS
701 FALLBACK_SOCKLEN_T
702 SYS_SOCKET_H
703 INSERT_SYS_SELECT_H
704 PTH_LIBS
705 PTH_CFLAGS
706 PTH_CONFIG
707 GPG_ERROR_MT_LIBS
708 GPG_ERROR_MT_CFLAGS
709 GPG_ERROR_LIBS
710 GPG_ERROR_CFLAGS
711 GPG_ERROR_CONFIG
712 HAVE_LD_VERSION_SCRIPT_FALSE
713 HAVE_LD_VERSION_SCRIPT_TRUE
714 ENABLE_O_FLAG_MUNGING_FALSE
715 ENABLE_O_FLAG_MUNGING_TRUE
716 RUN_LARGE_DATA_TESTS
717 USE_RANDOM_DAEMON_FALSE
718 USE_RANDOM_DAEMON_TRUE
719 emacs_local_vars_end
720 emacs_local_vars_read_only
721 emacs_local_vars_begin
722 HAVE_W32CE_SYSTEM_FALSE
723 HAVE_W32CE_SYSTEM_TRUE
724 HAVE_W32_SYSTEM_FALSE
725 HAVE_W32_SYSTEM_TRUE
726 RC
727 OTOOL64
728 OTOOL
729 LIPO
730 NMEDIT
731 DSYMUTIL
732 MANIFEST_TOOL
733 RANLIB
734 ac_ct_AR
735 AR
736 LN_S
737 NM
738 ac_ct_DUMPBIN
739 DUMPBIN
740 LD
741 FGREP
742 SED
743 LIBTOOL
744 OBJDUMP
745 DLLTOOL
746 AS
747 CC_FOR_BUILD
748 EGREP
749 GREP
750 am__fastdepCCAS_FALSE
751 am__fastdepCCAS_TRUE
752 CCASDEPMODE
753 CCASFLAGS
754 CCAS
755 CPP
756 am__fastdepCC_FALSE
757 am__fastdepCC_TRUE
758 CCDEPMODE
759 am__nodep
760 AMDEPBACKSLASH
761 AMDEP_FALSE
762 AMDEP_TRUE
763 am__quote
764 am__include
765 DEPDIR
766 OBJEXT
767 EXEEXT
768 ac_ct_CC
769 CPPFLAGS
770 LDFLAGS
771 CFLAGS
772 CC
773 VERSION_NUMBER
774 LIBGCRYPT_LT_REVISION
775 LIBGCRYPT_LT_AGE
776 LIBGCRYPT_LT_CURRENT
777 SYSROOT
778 MAINT
779 MAINTAINER_MODE_FALSE
780 MAINTAINER_MODE_TRUE
781 host_os
782 host_vendor
783 host_cpu
784 host
785 build_os
786 build_vendor
787 build_cpu
788 build
789 AM_BACKSLASH
790 AM_DEFAULT_VERBOSITY
791 AM_DEFAULT_V
792 AM_V
793 am__untar
794 am__tar
795 AMTAR
796 am__leading_dot
797 SET_MAKE
798 AWK
799 mkdir_p
800 MKDIR_P
801 INSTALL_STRIP_PROGRAM
802 STRIP
803 install_sh
804 MAKEINFO
805 AUTOHEADER
806 AUTOMAKE
807 AUTOCONF
808 ACLOCAL
809 VERSION
810 PACKAGE
811 CYGPATH_W
812 am__isrc
813 INSTALL_DATA
814 INSTALL_SCRIPT
815 INSTALL_PROGRAM
816 target_alias
817 host_alias
818 build_alias
819 LIBS
820 ECHO_T
821 ECHO_N
822 ECHO_C
823 DEFS
824 mandir
825 localedir
826 libdir
827 psdir
828 pdfdir
829 dvidir
830 htmldir
831 infodir
832 docdir
833 oldincludedir
834 includedir
835 localstatedir
836 sharedstatedir
837 sysconfdir
838 datadir
839 datarootdir
840 libexecdir
841 sbindir
842 bindir
843 program_transform_name
844 prefix
845 exec_prefix
846 PACKAGE_URL
847 PACKAGE_BUGREPORT
848 PACKAGE_STRING
849 PACKAGE_VERSION
850 PACKAGE_TARNAME
851 PACKAGE_NAME
852 PATH_SEPARATOR
853 SHELL'
854 ac_subst_files=''
855 ac_user_opts='
856 enable_option_checking
857 enable_silent_rules
858 enable_maintainer_mode
859 enable_dependency_tracking
860 enable_static
861 enable_shared
862 with_pic
863 enable_fast_install
864 with_gnu_ld
865 with_sysroot
866 enable_libtool_lock
867 enable_endian_check
868 enable_ciphers
869 enable_pubkey_ciphers
870 enable_digests
871 enable_kdfs
872 enable_random
873 enable_dev_random
874 with_egd_socket
875 enable_random_daemon
876 enable_asm
877 enable_m_guard
878 enable_large_data_tests
879 with_capabilities
880 enable_hmac_binary_check
881 enable_jent_support
882 enable_padlock_support
883 enable_aesni_support
884 enable_pclmul_support
885 enable_sse41_support
886 enable_drng_support
887 enable_avx_support
888 enable_avx2_support
889 enable_neon_support
890 enable_arm_crypto_support
891 enable_O_flag_munging
892 enable_amd64_as_feature_detection
893 enable_ld_version_script
894 with_libgpg_error_prefix
895 with_gpg_error_prefix
896 with_pth_prefix
897 enable_mpi_path
898 enable_optimization
899 enable_noexecstack
900 enable_doc
901 enable_build_timestamp
902 '
903       ac_precious_vars='build_alias
904 host_alias
905 target_alias
906 SYSROOT
907 CC
908 CFLAGS
909 LDFLAGS
910 LIBS
911 CPPFLAGS
912 CPP
913 CCAS
914 CCASFLAGS
915 CC_FOR_BUILD'
916
917
918 # Initialize some variables set by options.
919 ac_init_help=
920 ac_init_version=false
921 ac_unrecognized_opts=
922 ac_unrecognized_sep=
923 # The variables have the same names as the options, with
924 # dashes changed to underlines.
925 cache_file=/dev/null
926 exec_prefix=NONE
927 no_create=
928 no_recursion=
929 prefix=NONE
930 program_prefix=NONE
931 program_suffix=NONE
932 program_transform_name=s,x,x,
933 silent=
934 site=
935 srcdir=
936 verbose=
937 x_includes=NONE
938 x_libraries=NONE
939
940 # Installation directory options.
941 # These are left unexpanded so users can "make install exec_prefix=/foo"
942 # and all the variables that are supposed to be based on exec_prefix
943 # by default will actually change.
944 # Use braces instead of parens because sh, perl, etc. also accept them.
945 # (The list follows the same order as the GNU Coding Standards.)
946 bindir='${exec_prefix}/bin'
947 sbindir='${exec_prefix}/sbin'
948 libexecdir='${exec_prefix}/libexec'
949 datarootdir='${prefix}/share'
950 datadir='${datarootdir}'
951 sysconfdir='${prefix}/etc'
952 sharedstatedir='${prefix}/com'
953 localstatedir='${prefix}/var'
954 includedir='${prefix}/include'
955 oldincludedir='/usr/include'
956 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
957 infodir='${datarootdir}/info'
958 htmldir='${docdir}'
959 dvidir='${docdir}'
960 pdfdir='${docdir}'
961 psdir='${docdir}'
962 libdir='${exec_prefix}/lib'
963 localedir='${datarootdir}/locale'
964 mandir='${datarootdir}/man'
965
966 ac_prev=
967 ac_dashdash=
968 for ac_option
969 do
970   # If the previous option needs an argument, assign it.
971   if test -n "$ac_prev"; then
972     eval $ac_prev=\$ac_option
973     ac_prev=
974     continue
975   fi
976
977   case $ac_option in
978   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
979   *=)   ac_optarg= ;;
980   *)    ac_optarg=yes ;;
981   esac
982
983   # Accept the important Cygnus configure options, so we can diagnose typos.
984
985   case $ac_dashdash$ac_option in
986   --)
987     ac_dashdash=yes ;;
988
989   -bindir | --bindir | --bindi | --bind | --bin | --bi)
990     ac_prev=bindir ;;
991   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
992     bindir=$ac_optarg ;;
993
994   -build | --build | --buil | --bui | --bu)
995     ac_prev=build_alias ;;
996   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
997     build_alias=$ac_optarg ;;
998
999   -cache-file | --cache-file | --cache-fil | --cache-fi \
1000   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1001     ac_prev=cache_file ;;
1002   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1003   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1004     cache_file=$ac_optarg ;;
1005
1006   --config-cache | -C)
1007     cache_file=config.cache ;;
1008
1009   -datadir | --datadir | --datadi | --datad)
1010     ac_prev=datadir ;;
1011   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1012     datadir=$ac_optarg ;;
1013
1014   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1015   | --dataroo | --dataro | --datar)
1016     ac_prev=datarootdir ;;
1017   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1018   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1019     datarootdir=$ac_optarg ;;
1020
1021   -disable-* | --disable-*)
1022     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1023     # Reject names that are not valid shell variable names.
1024     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025       as_fn_error $? "invalid feature name: $ac_useropt"
1026     ac_useropt_orig=$ac_useropt
1027     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028     case $ac_user_opts in
1029       *"
1030 "enable_$ac_useropt"
1031 "*) ;;
1032       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1033          ac_unrecognized_sep=', ';;
1034     esac
1035     eval enable_$ac_useropt=no ;;
1036
1037   -docdir | --docdir | --docdi | --doc | --do)
1038     ac_prev=docdir ;;
1039   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1040     docdir=$ac_optarg ;;
1041
1042   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1043     ac_prev=dvidir ;;
1044   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1045     dvidir=$ac_optarg ;;
1046
1047   -enable-* | --enable-*)
1048     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1049     # Reject names that are not valid shell variable names.
1050     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051       as_fn_error $? "invalid feature name: $ac_useropt"
1052     ac_useropt_orig=$ac_useropt
1053     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054     case $ac_user_opts in
1055       *"
1056 "enable_$ac_useropt"
1057 "*) ;;
1058       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1059          ac_unrecognized_sep=', ';;
1060     esac
1061     eval enable_$ac_useropt=\$ac_optarg ;;
1062
1063   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1064   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1065   | --exec | --exe | --ex)
1066     ac_prev=exec_prefix ;;
1067   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1068   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1069   | --exec=* | --exe=* | --ex=*)
1070     exec_prefix=$ac_optarg ;;
1071
1072   -gas | --gas | --ga | --g)
1073     # Obsolete; use --with-gas.
1074     with_gas=yes ;;
1075
1076   -help | --help | --hel | --he | -h)
1077     ac_init_help=long ;;
1078   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1079     ac_init_help=recursive ;;
1080   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1081     ac_init_help=short ;;
1082
1083   -host | --host | --hos | --ho)
1084     ac_prev=host_alias ;;
1085   -host=* | --host=* | --hos=* | --ho=*)
1086     host_alias=$ac_optarg ;;
1087
1088   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1089     ac_prev=htmldir ;;
1090   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1091   | --ht=*)
1092     htmldir=$ac_optarg ;;
1093
1094   -includedir | --includedir | --includedi | --included | --include \
1095   | --includ | --inclu | --incl | --inc)
1096     ac_prev=includedir ;;
1097   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1098   | --includ=* | --inclu=* | --incl=* | --inc=*)
1099     includedir=$ac_optarg ;;
1100
1101   -infodir | --infodir | --infodi | --infod | --info | --inf)
1102     ac_prev=infodir ;;
1103   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1104     infodir=$ac_optarg ;;
1105
1106   -libdir | --libdir | --libdi | --libd)
1107     ac_prev=libdir ;;
1108   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1109     libdir=$ac_optarg ;;
1110
1111   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1112   | --libexe | --libex | --libe)
1113     ac_prev=libexecdir ;;
1114   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1115   | --libexe=* | --libex=* | --libe=*)
1116     libexecdir=$ac_optarg ;;
1117
1118   -localedir | --localedir | --localedi | --localed | --locale)
1119     ac_prev=localedir ;;
1120   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1121     localedir=$ac_optarg ;;
1122
1123   -localstatedir | --localstatedir | --localstatedi | --localstated \
1124   | --localstate | --localstat | --localsta | --localst | --locals)
1125     ac_prev=localstatedir ;;
1126   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1127   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1128     localstatedir=$ac_optarg ;;
1129
1130   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1131     ac_prev=mandir ;;
1132   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1133     mandir=$ac_optarg ;;
1134
1135   -nfp | --nfp | --nf)
1136     # Obsolete; use --without-fp.
1137     with_fp=no ;;
1138
1139   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1140   | --no-cr | --no-c | -n)
1141     no_create=yes ;;
1142
1143   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1144   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1145     no_recursion=yes ;;
1146
1147   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1148   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1149   | --oldin | --oldi | --old | --ol | --o)
1150     ac_prev=oldincludedir ;;
1151   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1152   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1153   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1154     oldincludedir=$ac_optarg ;;
1155
1156   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1157     ac_prev=prefix ;;
1158   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1159     prefix=$ac_optarg ;;
1160
1161   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1162   | --program-pre | --program-pr | --program-p)
1163     ac_prev=program_prefix ;;
1164   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1165   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1166     program_prefix=$ac_optarg ;;
1167
1168   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1169   | --program-suf | --program-su | --program-s)
1170     ac_prev=program_suffix ;;
1171   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1172   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1173     program_suffix=$ac_optarg ;;
1174
1175   -program-transform-name | --program-transform-name \
1176   | --program-transform-nam | --program-transform-na \
1177   | --program-transform-n | --program-transform- \
1178   | --program-transform | --program-transfor \
1179   | --program-transfo | --program-transf \
1180   | --program-trans | --program-tran \
1181   | --progr-tra | --program-tr | --program-t)
1182     ac_prev=program_transform_name ;;
1183   -program-transform-name=* | --program-transform-name=* \
1184   | --program-transform-nam=* | --program-transform-na=* \
1185   | --program-transform-n=* | --program-transform-=* \
1186   | --program-transform=* | --program-transfor=* \
1187   | --program-transfo=* | --program-transf=* \
1188   | --program-trans=* | --program-tran=* \
1189   | --progr-tra=* | --program-tr=* | --program-t=*)
1190     program_transform_name=$ac_optarg ;;
1191
1192   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1193     ac_prev=pdfdir ;;
1194   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1195     pdfdir=$ac_optarg ;;
1196
1197   -psdir | --psdir | --psdi | --psd | --ps)
1198     ac_prev=psdir ;;
1199   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1200     psdir=$ac_optarg ;;
1201
1202   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1203   | -silent | --silent | --silen | --sile | --sil)
1204     silent=yes ;;
1205
1206   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1207     ac_prev=sbindir ;;
1208   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1209   | --sbi=* | --sb=*)
1210     sbindir=$ac_optarg ;;
1211
1212   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1213   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1214   | --sharedst | --shareds | --shared | --share | --shar \
1215   | --sha | --sh)
1216     ac_prev=sharedstatedir ;;
1217   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1218   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1219   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1220   | --sha=* | --sh=*)
1221     sharedstatedir=$ac_optarg ;;
1222
1223   -site | --site | --sit)
1224     ac_prev=site ;;
1225   -site=* | --site=* | --sit=*)
1226     site=$ac_optarg ;;
1227
1228   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1229     ac_prev=srcdir ;;
1230   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1231     srcdir=$ac_optarg ;;
1232
1233   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1234   | --syscon | --sysco | --sysc | --sys | --sy)
1235     ac_prev=sysconfdir ;;
1236   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1237   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1238     sysconfdir=$ac_optarg ;;
1239
1240   -target | --target | --targe | --targ | --tar | --ta | --t)
1241     ac_prev=target_alias ;;
1242   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1243     target_alias=$ac_optarg ;;
1244
1245   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1246     verbose=yes ;;
1247
1248   -version | --version | --versio | --versi | --vers | -V)
1249     ac_init_version=: ;;
1250
1251   -with-* | --with-*)
1252     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1253     # Reject names that are not valid shell variable names.
1254     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1255       as_fn_error $? "invalid package name: $ac_useropt"
1256     ac_useropt_orig=$ac_useropt
1257     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258     case $ac_user_opts in
1259       *"
1260 "with_$ac_useropt"
1261 "*) ;;
1262       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1263          ac_unrecognized_sep=', ';;
1264     esac
1265     eval with_$ac_useropt=\$ac_optarg ;;
1266
1267   -without-* | --without-*)
1268     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1269     # Reject names that are not valid shell variable names.
1270     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1271       as_fn_error $? "invalid package name: $ac_useropt"
1272     ac_useropt_orig=$ac_useropt
1273     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1274     case $ac_user_opts in
1275       *"
1276 "with_$ac_useropt"
1277 "*) ;;
1278       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1279          ac_unrecognized_sep=', ';;
1280     esac
1281     eval with_$ac_useropt=no ;;
1282
1283   --x)
1284     # Obsolete; use --with-x.
1285     with_x=yes ;;
1286
1287   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1288   | --x-incl | --x-inc | --x-in | --x-i)
1289     ac_prev=x_includes ;;
1290   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1291   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1292     x_includes=$ac_optarg ;;
1293
1294   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1295   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1296     ac_prev=x_libraries ;;
1297   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1298   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1299     x_libraries=$ac_optarg ;;
1300
1301   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1302 Try \`$0 --help' for more information"
1303     ;;
1304
1305   *=*)
1306     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1307     # Reject names that are not valid shell variable names.
1308     case $ac_envvar in #(
1309       '' | [0-9]* | *[!_$as_cr_alnum]* )
1310       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1311     esac
1312     eval $ac_envvar=\$ac_optarg
1313     export $ac_envvar ;;
1314
1315   *)
1316     # FIXME: should be removed in autoconf 3.0.
1317     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1318     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1319       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1320     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1321     ;;
1322
1323   esac
1324 done
1325
1326 if test -n "$ac_prev"; then
1327   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1328   as_fn_error $? "missing argument to $ac_option"
1329 fi
1330
1331 if test -n "$ac_unrecognized_opts"; then
1332   case $enable_option_checking in
1333     no) ;;
1334     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1335     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1336   esac
1337 fi
1338
1339 # Check all directory arguments for consistency.
1340 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1341                 datadir sysconfdir sharedstatedir localstatedir includedir \
1342                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1343                 libdir localedir mandir
1344 do
1345   eval ac_val=\$$ac_var
1346   # Remove trailing slashes.
1347   case $ac_val in
1348     */ )
1349       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1350       eval $ac_var=\$ac_val;;
1351   esac
1352   # Be sure to have absolute directory names.
1353   case $ac_val in
1354     [\\/$]* | ?:[\\/]* )  continue;;
1355     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1356   esac
1357   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1358 done
1359
1360 # There might be people who depend on the old broken behavior: `$host'
1361 # used to hold the argument of --host etc.
1362 # FIXME: To remove some day.
1363 build=$build_alias
1364 host=$host_alias
1365 target=$target_alias
1366
1367 # FIXME: To remove some day.
1368 if test "x$host_alias" != x; then
1369   if test "x$build_alias" = x; then
1370     cross_compiling=maybe
1371   elif test "x$build_alias" != "x$host_alias"; then
1372     cross_compiling=yes
1373   fi
1374 fi
1375
1376 ac_tool_prefix=
1377 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1378
1379 test "$silent" = yes && exec 6>/dev/null
1380
1381
1382 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1383 ac_ls_di=`ls -di .` &&
1384 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1385   as_fn_error $? "working directory cannot be determined"
1386 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1387   as_fn_error $? "pwd does not report name of working directory"
1388
1389
1390 # Find the source files, if location was not specified.
1391 if test -z "$srcdir"; then
1392   ac_srcdir_defaulted=yes
1393   # Try the directory containing this script, then the parent directory.
1394   ac_confdir=`$as_dirname -- "$as_myself" ||
1395 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1396          X"$as_myself" : 'X\(//\)[^/]' \| \
1397          X"$as_myself" : 'X\(//\)$' \| \
1398          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1399 $as_echo X"$as_myself" |
1400     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1401             s//\1/
1402             q
1403           }
1404           /^X\(\/\/\)[^/].*/{
1405             s//\1/
1406             q
1407           }
1408           /^X\(\/\/\)$/{
1409             s//\1/
1410             q
1411           }
1412           /^X\(\/\).*/{
1413             s//\1/
1414             q
1415           }
1416           s/.*/./; q'`
1417   srcdir=$ac_confdir
1418   if test ! -r "$srcdir/$ac_unique_file"; then
1419     srcdir=..
1420   fi
1421 else
1422   ac_srcdir_defaulted=no
1423 fi
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1425   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1426   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1427 fi
1428 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1429 ac_abs_confdir=`(
1430         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1431         pwd)`
1432 # When building in place, set srcdir=.
1433 if test "$ac_abs_confdir" = "$ac_pwd"; then
1434   srcdir=.
1435 fi
1436 # Remove unnecessary trailing slashes from srcdir.
1437 # Double slashes in file names in object file debugging info
1438 # mess up M-x gdb in Emacs.
1439 case $srcdir in
1440 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441 esac
1442 for ac_var in $ac_precious_vars; do
1443   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1444   eval ac_env_${ac_var}_value=\$${ac_var}
1445   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1446   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1447 done
1448
1449 #
1450 # Report the --help message.
1451 #
1452 if test "$ac_init_help" = "long"; then
1453   # Omit some internal or obsolete options to make the list less imposing.
1454   # This message is too long to be a string in the A/UX 3.1 sh.
1455   cat <<_ACEOF
1456 \`configure' configures libgcrypt 1.8.3 to adapt to many kinds of systems.
1457
1458 Usage: $0 [OPTION]... [VAR=VALUE]...
1459
1460 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1461 VAR=VALUE.  See below for descriptions of some of the useful variables.
1462
1463 Defaults for the options are specified in brackets.
1464
1465 Configuration:
1466   -h, --help              display this help and exit
1467       --help=short        display options specific to this package
1468       --help=recursive    display the short help of all the included packages
1469   -V, --version           display version information and exit
1470   -q, --quiet, --silent   do not print \`checking ...' messages
1471       --cache-file=FILE   cache test results in FILE [disabled]
1472   -C, --config-cache      alias for \`--cache-file=config.cache'
1473   -n, --no-create         do not create output files
1474       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1475
1476 Installation directories:
1477   --prefix=PREFIX         install architecture-independent files in PREFIX
1478                           [$ac_default_prefix]
1479   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1480                           [PREFIX]
1481
1482 By default, \`make install' will install all the files in
1483 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1484 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1485 for instance \`--prefix=\$HOME'.
1486
1487 For better control, use the options below.
1488
1489 Fine tuning of the installation directories:
1490   --bindir=DIR            user executables [EPREFIX/bin]
1491   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1492   --libexecdir=DIR        program executables [EPREFIX/libexec]
1493   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1494   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1495   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1496   --libdir=DIR            object code libraries [EPREFIX/lib]
1497   --includedir=DIR        C header files [PREFIX/include]
1498   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1499   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1500   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1501   --infodir=DIR           info documentation [DATAROOTDIR/info]
1502   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1503   --mandir=DIR            man documentation [DATAROOTDIR/man]
1504   --docdir=DIR            documentation root [DATAROOTDIR/doc/libgcrypt]
1505   --htmldir=DIR           html documentation [DOCDIR]
1506   --dvidir=DIR            dvi documentation [DOCDIR]
1507   --pdfdir=DIR            pdf documentation [DOCDIR]
1508   --psdir=DIR             ps documentation [DOCDIR]
1509 _ACEOF
1510
1511   cat <<\_ACEOF
1512
1513 Program names:
1514   --program-prefix=PREFIX            prepend PREFIX to installed program names
1515   --program-suffix=SUFFIX            append SUFFIX to installed program names
1516   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1517
1518 System types:
1519   --build=BUILD     configure for building on BUILD [guessed]
1520   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1521 _ACEOF
1522 fi
1523
1524 if test -n "$ac_init_help"; then
1525   case $ac_init_help in
1526      short | recursive ) echo "Configuration of libgcrypt 1.8.3:";;
1527    esac
1528   cat <<\_ACEOF
1529
1530 Optional Features:
1531   --disable-option-checking  ignore unrecognized --enable/--with options
1532   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1533   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1534   --enable-silent-rules   less verbose build output (undo: "make V=1")
1535   --disable-silent-rules  verbose build output (undo: "make V=0")
1536   --enable-maintainer-mode
1537                           enable make rules and dependencies not useful (and
1538                           sometimes confusing) to the casual installer
1539   --enable-dependency-tracking
1540                           do not reject slow dependency extractors
1541   --disable-dependency-tracking
1542                           speeds up one-time build
1543   --enable-static[=PKGS]  build static libraries [default=no]
1544   --enable-shared[=PKGS]  build shared libraries [default=yes]
1545   --enable-fast-install[=PKGS]
1546                           optimize for fast installation [default=yes]
1547   --disable-libtool-lock  avoid locking (might break parallel builds)
1548   --disable-endian-check  disable the endian check and trust the OS provided
1549                           macros
1550   --enable-ciphers=ciphers
1551                           select the symmetric ciphers to include
1552   --enable-pubkey-ciphers=ciphers
1553                           select the public-key ciphers to include
1554   --enable-digests=digests
1555                           select the message digests to include
1556   --enable-kfds=kdfs      select the KDFs to include
1557   --enable-random=name    select which random number generator to use
1558   --disable-dev-random    disable the use of dev random
1559   --enable-random-daemon  Build and support the experimental gcryptrnd
1560   --disable-asm           Disable MPI assembler modules
1561   --enable-m-guard        Enable memory guard facility
1562   --enable-large-data-tests
1563                           Enable the real long ruinning large data tests
1564   --enable-hmac-binary-check
1565                           Enable library integrity check
1566   --disable-jent-support  Disable support for the Jitter entropy collector
1567   --disable-padlock-support
1568                           Disable support for the PadLock Engine of VIA
1569                           processors
1570   --disable-aesni-support Disable support for the Intel AES-NI instructions
1571   --disable-pclmul-support
1572                           Disable support for the Intel PCLMUL instructions
1573   --disable-sse41-support Disable support for the Intel SSE4.1 instructions
1574   --disable-drng-support  Disable support for the Intel DRNG (RDRAND
1575                           instruction)
1576   --disable-avx-support   Disable support for the Intel AVX instructions
1577   --disable-avx2-support  Disable support for the Intel AVX2 instructions
1578   --disable-neon-support  Disable support for the ARM NEON instructions
1579   --disable-arm-crypto-support
1580                           Disable support for the ARMv8 Crypto Extension
1581                           instructions
1582   --disable-O-flag-munging
1583                           Disable modification of the cc -O flag
1584   --disable-amd64-as-feature-detection
1585                           Disable the auto-detection of AMD64 as(1) features
1586   --enable-ld-version-script
1587                           enable/disable use of linker version script.
1588                           (default is system dependent)
1589   --enable-mpi-path=EXTRA_PATH
1590                           prepend EXTRA_PATH to list of CPU specific
1591                           optimizations
1592   --disable-optimization  disable compiler optimization
1593   --disable-noexecstack   disable non executable stack support
1594   --disable-doc           do not build the documentation
1595   --enable-build-timestamp
1596                           set an explicit build timestamp for reproducibility.
1597                           (default is the current time in ISO-8601 format)
1598
1599 Optional Packages:
1600   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1601   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1602   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1603                           both]
1604   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1605   --with-sysroot=DIR Search for dependent libraries within DIR
1606                         (or the compiler's sysroot if not specified).
1607   --with-egd-socket=NAME  Use NAME for the EGD socket)
1608   --with-capabilities     Use linux capabilities [default=no]
1609   --with-libgpg-error-prefix=PFX
1610                           prefix where GPG Error is installed (optional)
1611
1612   --with-pth-prefix=PFX   prefix where GNU Pth is installed (optional)
1613
1614 Some influential environment variables:
1615   SYSROOT     locate config scripts also below that directory
1616   CC          C compiler command
1617   CFLAGS      C compiler flags
1618   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1619               nonstandard directory <lib dir>
1620   LIBS        libraries to pass to the linker, e.g. -l<library>
1621   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1622               you have headers in a nonstandard directory <include dir>
1623   CPP         C preprocessor
1624   CCAS        assembler compiler command (defaults to CC)
1625   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1626   CC_FOR_BUILD
1627               build system C compiler
1628
1629 Use these variables to override the choices made by `configure' or to help
1630 it to find libraries and programs with nonstandard names/locations.
1631
1632 Report bugs to <http://bugs.gnupg.org>.
1633 _ACEOF
1634 ac_status=$?
1635 fi
1636
1637 if test "$ac_init_help" = "recursive"; then
1638   # If there are subdirs, report their specific --help.
1639   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1640     test -d "$ac_dir" ||
1641       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1642       continue
1643     ac_builddir=.
1644
1645 case "$ac_dir" in
1646 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647 *)
1648   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1649   # A ".." for each directory in $ac_dir_suffix.
1650   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1651   case $ac_top_builddir_sub in
1652   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1653   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1654   esac ;;
1655 esac
1656 ac_abs_top_builddir=$ac_pwd
1657 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1658 # for backward compatibility:
1659 ac_top_builddir=$ac_top_build_prefix
1660
1661 case $srcdir in
1662   .)  # We are building in place.
1663     ac_srcdir=.
1664     ac_top_srcdir=$ac_top_builddir_sub
1665     ac_abs_top_srcdir=$ac_pwd ;;
1666   [\\/]* | ?:[\\/]* )  # Absolute name.
1667     ac_srcdir=$srcdir$ac_dir_suffix;
1668     ac_top_srcdir=$srcdir
1669     ac_abs_top_srcdir=$srcdir ;;
1670   *) # Relative name.
1671     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1672     ac_top_srcdir=$ac_top_build_prefix$srcdir
1673     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1674 esac
1675 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1676
1677     cd "$ac_dir" || { ac_status=$?; continue; }
1678     # Check for guested configure.
1679     if test -f "$ac_srcdir/configure.gnu"; then
1680       echo &&
1681       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1682     elif test -f "$ac_srcdir/configure"; then
1683       echo &&
1684       $SHELL "$ac_srcdir/configure" --help=recursive
1685     else
1686       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1687     fi || ac_status=$?
1688     cd "$ac_pwd" || { ac_status=$?; break; }
1689   done
1690 fi
1691
1692 test -n "$ac_init_help" && exit $ac_status
1693 if $ac_init_version; then
1694   cat <<\_ACEOF
1695 libgcrypt configure 1.8.3
1696 generated by GNU Autoconf 2.69
1697
1698 Copyright (C) 2012 Free Software Foundation, Inc.
1699 This configure script is free software; the Free Software Foundation
1700 gives unlimited permission to copy, distribute and modify it.
1701 _ACEOF
1702   exit
1703 fi
1704
1705 ## ------------------------ ##
1706 ## Autoconf initialization. ##
1707 ## ------------------------ ##
1708
1709 # ac_fn_c_try_compile LINENO
1710 # --------------------------
1711 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_c_try_compile ()
1713 {
1714   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715   rm -f conftest.$ac_objext
1716   if { { ac_try="$ac_compile"
1717 case "(($ac_try" in
1718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719   *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723   (eval "$ac_compile") 2>conftest.err
1724   ac_status=$?
1725   if test -s conftest.err; then
1726     grep -v '^ *+' conftest.err >conftest.er1
1727     cat conftest.er1 >&5
1728     mv -f conftest.er1 conftest.err
1729   fi
1730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731   test $ac_status = 0; } && {
1732          test -z "$ac_c_werror_flag" ||
1733          test ! -s conftest.err
1734        } && test -s conftest.$ac_objext; then :
1735   ac_retval=0
1736 else
1737   $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1739
1740         ac_retval=1
1741 fi
1742   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743   as_fn_set_status $ac_retval
1744
1745 } # ac_fn_c_try_compile
1746
1747 # ac_fn_c_try_cpp LINENO
1748 # ----------------------
1749 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1750 ac_fn_c_try_cpp ()
1751 {
1752   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753   if { { ac_try="$ac_cpp conftest.$ac_ext"
1754 case "(($ac_try" in
1755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756   *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1761   ac_status=$?
1762   if test -s conftest.err; then
1763     grep -v '^ *+' conftest.err >conftest.er1
1764     cat conftest.er1 >&5
1765     mv -f conftest.er1 conftest.err
1766   fi
1767   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768   test $ac_status = 0; } > conftest.i && {
1769          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1770          test ! -s conftest.err
1771        }; then :
1772   ac_retval=0
1773 else
1774   $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1776
1777     ac_retval=1
1778 fi
1779   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780   as_fn_set_status $ac_retval
1781
1782 } # ac_fn_c_try_cpp
1783
1784 # ac_fn_c_try_link LINENO
1785 # -----------------------
1786 # Try to link conftest.$ac_ext, and return whether this succeeded.
1787 ac_fn_c_try_link ()
1788 {
1789   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790   rm -f conftest.$ac_objext conftest$ac_exeext
1791   if { { ac_try="$ac_link"
1792 case "(($ac_try" in
1793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794   *) ac_try_echo=$ac_try;;
1795 esac
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798   (eval "$ac_link") 2>conftest.err
1799   ac_status=$?
1800   if test -s conftest.err; then
1801     grep -v '^ *+' conftest.err >conftest.er1
1802     cat conftest.er1 >&5
1803     mv -f conftest.er1 conftest.err
1804   fi
1805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806   test $ac_status = 0; } && {
1807          test -z "$ac_c_werror_flag" ||
1808          test ! -s conftest.err
1809        } && test -s conftest$ac_exeext && {
1810          test "$cross_compiling" = yes ||
1811          test -x conftest$ac_exeext
1812        }; then :
1813   ac_retval=0
1814 else
1815   $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1817
1818         ac_retval=1
1819 fi
1820   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1821   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1822   # interfere with the next link command; also delete a directory that is
1823   # left behind by Apple's compiler.  We do this before executing the actions.
1824   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1825   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826   as_fn_set_status $ac_retval
1827
1828 } # ac_fn_c_try_link
1829
1830 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1831 # -------------------------------------------------------
1832 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1833 # the include files in INCLUDES and setting the cache variable VAR
1834 # accordingly.
1835 ac_fn_c_check_header_mongrel ()
1836 {
1837   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838   if eval \${$3+:} false; then :
1839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval \${$3+:} false; then :
1842   $as_echo_n "(cached) " >&6
1843 fi
1844 eval ac_res=\$$3
1845                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846 $as_echo "$ac_res" >&6; }
1847 else
1848   # Is the header compilable?
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1850 $as_echo_n "checking $2 usability... " >&6; }
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h.  */
1853 $4
1854 #include <$2>
1855 _ACEOF
1856 if ac_fn_c_try_compile "$LINENO"; then :
1857   ac_header_compiler=yes
1858 else
1859   ac_header_compiler=no
1860 fi
1861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1863 $as_echo "$ac_header_compiler" >&6; }
1864
1865 # Is the header present?
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1867 $as_echo_n "checking $2 presence... " >&6; }
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h.  */
1870 #include <$2>
1871 _ACEOF
1872 if ac_fn_c_try_cpp "$LINENO"; then :
1873   ac_header_preproc=yes
1874 else
1875   ac_header_preproc=no
1876 fi
1877 rm -f conftest.err conftest.i conftest.$ac_ext
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1879 $as_echo "$ac_header_preproc" >&6; }
1880
1881 # So?  What about this header?
1882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1883   yes:no: )
1884     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1885 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1886     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1887 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1888     ;;
1889   no:yes:* )
1890     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1891 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1892     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1893 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1894     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1895 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1896     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1897 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1898     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1899 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1900 ( $as_echo "## ------------------------------------ ##
1901 ## Report this to http://bugs.gnupg.org ##
1902 ## ------------------------------------ ##"
1903      ) | sed "s/^/$as_me: WARNING:     /" >&2
1904     ;;
1905 esac
1906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907 $as_echo_n "checking for $2... " >&6; }
1908 if eval \${$3+:} false; then :
1909   $as_echo_n "(cached) " >&6
1910 else
1911   eval "$3=\$ac_header_compiler"
1912 fi
1913 eval ac_res=\$$3
1914                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915 $as_echo "$ac_res" >&6; }
1916 fi
1917   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918
1919 } # ac_fn_c_check_header_mongrel
1920
1921 # ac_fn_c_try_run LINENO
1922 # ----------------------
1923 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1924 # that executables *can* be run.
1925 ac_fn_c_try_run ()
1926 {
1927   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928   if { { ac_try="$ac_link"
1929 case "(($ac_try" in
1930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931   *) ac_try_echo=$ac_try;;
1932 esac
1933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935   (eval "$ac_link") 2>&5
1936   ac_status=$?
1937   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1938   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1939   { { case "(($ac_try" in
1940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1941   *) ac_try_echo=$ac_try;;
1942 esac
1943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1944 $as_echo "$ac_try_echo"; } >&5
1945   (eval "$ac_try") 2>&5
1946   ac_status=$?
1947   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1948   test $ac_status = 0; }; }; then :
1949   ac_retval=0
1950 else
1951   $as_echo "$as_me: program exited with status $ac_status" >&5
1952        $as_echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1954
1955        ac_retval=$ac_status
1956 fi
1957   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1958   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959   as_fn_set_status $ac_retval
1960
1961 } # ac_fn_c_try_run
1962
1963 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1964 # -------------------------------------------------------
1965 # Tests whether HEADER exists and can be compiled using the include files in
1966 # INCLUDES, setting the cache variable VAR accordingly.
1967 ac_fn_c_check_header_compile ()
1968 {
1969   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1971 $as_echo_n "checking for $2... " >&6; }
1972 if eval \${$3+:} false; then :
1973   $as_echo_n "(cached) " >&6
1974 else
1975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h.  */
1977 $4
1978 #include <$2>
1979 _ACEOF
1980 if ac_fn_c_try_compile "$LINENO"; then :
1981   eval "$3=yes"
1982 else
1983   eval "$3=no"
1984 fi
1985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986 fi
1987 eval ac_res=\$$3
1988                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989 $as_echo "$ac_res" >&6; }
1990   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991
1992 } # ac_fn_c_check_header_compile
1993
1994 # ac_fn_c_check_func LINENO FUNC VAR
1995 # ----------------------------------
1996 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1997 ac_fn_c_check_func ()
1998 {
1999   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2001 $as_echo_n "checking for $2... " >&6; }
2002 if eval \${$3+:} false; then :
2003   $as_echo_n "(cached) " >&6
2004 else
2005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h.  */
2007 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2008    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2009 #define $2 innocuous_$2
2010
2011 /* System header to define __stub macros and hopefully few prototypes,
2012     which can conflict with char $2 (); below.
2013     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2014     <limits.h> exists even on freestanding compilers.  */
2015
2016 #ifdef __STDC__
2017 # include <limits.h>
2018 #else
2019 # include <assert.h>
2020 #endif
2021
2022 #undef $2
2023
2024 /* Override any GCC internal prototype to avoid an error.
2025    Use char because int might match the return type of a GCC
2026    builtin and then its argument prototype would still apply.  */
2027 #ifdef __cplusplus
2028 extern "C"
2029 #endif
2030 char $2 ();
2031 /* The GNU C library defines this for functions which it implements
2032     to always fail with ENOSYS.  Some functions are actually named
2033     something starting with __ and the normal name is an alias.  */
2034 #if defined __stub_$2 || defined __stub___$2
2035 choke me
2036 #endif
2037
2038 int
2039 main ()
2040 {
2041 return $2 ();
2042   ;
2043   return 0;
2044 }
2045 _ACEOF
2046 if ac_fn_c_try_link "$LINENO"; then :
2047   eval "$3=yes"
2048 else
2049   eval "$3=no"
2050 fi
2051 rm -f core conftest.err conftest.$ac_objext \
2052     conftest$ac_exeext conftest.$ac_ext
2053 fi
2054 eval ac_res=\$$3
2055                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056 $as_echo "$ac_res" >&6; }
2057   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058
2059 } # ac_fn_c_check_func
2060
2061 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2062 # --------------------------------------------
2063 # Tries to find the compile-time value of EXPR in a program that includes
2064 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2065 # computed
2066 ac_fn_c_compute_int ()
2067 {
2068   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069   if test "$cross_compiling" = yes; then
2070     # Depending upon the size, compute the lo and hi bounds.
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h.  */
2073 $4
2074 int
2075 main ()
2076 {
2077 static int test_array [1 - 2 * !(($2) >= 0)];
2078 test_array [0] = 0;
2079 return test_array [0];
2080
2081   ;
2082   return 0;
2083 }
2084 _ACEOF
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086   ac_lo=0 ac_mid=0
2087   while :; do
2088     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h.  */
2090 $4
2091 int
2092 main ()
2093 {
2094 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2095 test_array [0] = 0;
2096 return test_array [0];
2097
2098   ;
2099   return 0;
2100 }
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103   ac_hi=$ac_mid; break
2104 else
2105   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2106                         if test $ac_lo -le $ac_mid; then
2107                           ac_lo= ac_hi=
2108                           break
2109                         fi
2110                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2111 fi
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113   done
2114 else
2115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h.  */
2117 $4
2118 int
2119 main ()
2120 {
2121 static int test_array [1 - 2 * !(($2) < 0)];
2122 test_array [0] = 0;
2123 return test_array [0];
2124
2125   ;
2126   return 0;
2127 }
2128 _ACEOF
2129 if ac_fn_c_try_compile "$LINENO"; then :
2130   ac_hi=-1 ac_mid=-1
2131   while :; do
2132     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h.  */
2134 $4
2135 int
2136 main ()
2137 {
2138 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2139 test_array [0] = 0;
2140 return test_array [0];
2141
2142   ;
2143   return 0;
2144 }
2145 _ACEOF
2146 if ac_fn_c_try_compile "$LINENO"; then :
2147   ac_lo=$ac_mid; break
2148 else
2149   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2150                         if test $ac_mid -le $ac_hi; then
2151                           ac_lo= ac_hi=
2152                           break
2153                         fi
2154                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2155 fi
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157   done
2158 else
2159   ac_lo= ac_hi=
2160 fi
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 fi
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 # Binary search between lo and hi bounds.
2165 while test "x$ac_lo" != "x$ac_hi"; do
2166   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h.  */
2169 $4
2170 int
2171 main ()
2172 {
2173 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2174 test_array [0] = 0;
2175 return test_array [0];
2176
2177   ;
2178   return 0;
2179 }
2180 _ACEOF
2181 if ac_fn_c_try_compile "$LINENO"; then :
2182   ac_hi=$ac_mid
2183 else
2184   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2185 fi
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 done
2188 case $ac_lo in #((
2189 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2190 '') ac_retval=1 ;;
2191 esac
2192   else
2193     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h.  */
2195 $4
2196 static long int longval () { return $2; }
2197 static unsigned long int ulongval () { return $2; }
2198 #include <stdio.h>
2199 #include <stdlib.h>
2200 int
2201 main ()
2202 {
2203
2204   FILE *f = fopen ("conftest.val", "w");
2205   if (! f)
2206     return 1;
2207   if (($2) < 0)
2208     {
2209       long int i = longval ();
2210       if (i != ($2))
2211         return 1;
2212       fprintf (f, "%ld", i);
2213     }
2214   else
2215     {
2216       unsigned long int i = ulongval ();
2217       if (i != ($2))
2218         return 1;
2219       fprintf (f, "%lu", i);
2220     }
2221   /* Do not output a trailing newline, as this causes \r\n confusion
2222      on some platforms.  */
2223   return ferror (f) || fclose (f) != 0;
2224
2225   ;
2226   return 0;
2227 }
2228 _ACEOF
2229 if ac_fn_c_try_run "$LINENO"; then :
2230   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2231 else
2232   ac_retval=1
2233 fi
2234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2235   conftest.$ac_objext conftest.beam conftest.$ac_ext
2236 rm -f conftest.val
2237
2238   fi
2239   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2240   as_fn_set_status $ac_retval
2241
2242 } # ac_fn_c_compute_int
2243
2244 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2245 # -------------------------------------------
2246 # Tests whether TYPE exists after having included INCLUDES, setting cache
2247 # variable VAR accordingly.
2248 ac_fn_c_check_type ()
2249 {
2250   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2252 $as_echo_n "checking for $2... " >&6; }
2253 if eval \${$3+:} false; then :
2254   $as_echo_n "(cached) " >&6
2255 else
2256   eval "$3=no"
2257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h.  */
2259 $4
2260 int
2261 main ()
2262 {
2263 if (sizeof ($2))
2264          return 0;
2265   ;
2266   return 0;
2267 }
2268 _ACEOF
2269 if ac_fn_c_try_compile "$LINENO"; then :
2270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h.  */
2272 $4
2273 int
2274 main ()
2275 {
2276 if (sizeof (($2)))
2277             return 0;
2278   ;
2279   return 0;
2280 }
2281 _ACEOF
2282 if ac_fn_c_try_compile "$LINENO"; then :
2283
2284 else
2285   eval "$3=yes"
2286 fi
2287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2288 fi
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290 fi
2291 eval ac_res=\$$3
2292                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2293 $as_echo "$ac_res" >&6; }
2294   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2295
2296 } # ac_fn_c_check_type
2297
2298 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2299 # ---------------------------------------------
2300 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2301 # accordingly.
2302 ac_fn_c_check_decl ()
2303 {
2304   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305   as_decl_name=`echo $2|sed 's/ *(.*//'`
2306   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2308 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2309 if eval \${$3+:} false; then :
2310   $as_echo_n "(cached) " >&6
2311 else
2312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h.  */
2314 $4
2315 int
2316 main ()
2317 {
2318 #ifndef $as_decl_name
2319 #ifdef __cplusplus
2320   (void) $as_decl_use;
2321 #else
2322   (void) $as_decl_name;
2323 #endif
2324 #endif
2325
2326   ;
2327   return 0;
2328 }
2329 _ACEOF
2330 if ac_fn_c_try_compile "$LINENO"; then :
2331   eval "$3=yes"
2332 else
2333   eval "$3=no"
2334 fi
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 fi
2337 eval ac_res=\$$3
2338                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2339 $as_echo "$ac_res" >&6; }
2340   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2341
2342 } # ac_fn_c_check_decl
2343 cat >config.log <<_ACEOF
2344 This file contains any messages produced by compilers while
2345 running configure, to aid debugging if configure makes a mistake.
2346
2347 It was created by libgcrypt $as_me 1.8.3, which was
2348 generated by GNU Autoconf 2.69.  Invocation command line was
2349
2350   $ $0 $@
2351
2352 _ACEOF
2353 exec 5>>config.log
2354 {
2355 cat <<_ASUNAME
2356 ## --------- ##
2357 ## Platform. ##
2358 ## --------- ##
2359
2360 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2361 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2362 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2363 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2364 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2365
2366 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2367 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2368
2369 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2370 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2371 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2372 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2373 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2374 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2375 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2376
2377 _ASUNAME
2378
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 for as_dir in $PATH
2381 do
2382   IFS=$as_save_IFS
2383   test -z "$as_dir" && as_dir=.
2384     $as_echo "PATH: $as_dir"
2385   done
2386 IFS=$as_save_IFS
2387
2388 } >&5
2389
2390 cat >&5 <<_ACEOF
2391
2392
2393 ## ----------- ##
2394 ## Core tests. ##
2395 ## ----------- ##
2396
2397 _ACEOF
2398
2399
2400 # Keep a trace of the command line.
2401 # Strip out --no-create and --no-recursion so they do not pile up.
2402 # Strip out --silent because we don't want to record it for future runs.
2403 # Also quote any args containing shell meta-characters.
2404 # Make two passes to allow for proper duplicate-argument suppression.
2405 ac_configure_args=
2406 ac_configure_args0=
2407 ac_configure_args1=
2408 ac_must_keep_next=false
2409 for ac_pass in 1 2
2410 do
2411   for ac_arg
2412   do
2413     case $ac_arg in
2414     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2415     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2416     | -silent | --silent | --silen | --sile | --sil)
2417       continue ;;
2418     *\'*)
2419       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2420     esac
2421     case $ac_pass in
2422     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2423     2)
2424       as_fn_append ac_configure_args1 " '$ac_arg'"
2425       if test $ac_must_keep_next = true; then
2426         ac_must_keep_next=false # Got value, back to normal.
2427       else
2428         case $ac_arg in
2429           *=* | --config-cache | -C | -disable-* | --disable-* \
2430           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2431           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2432           | -with-* | --with-* | -without-* | --without-* | --x)
2433             case "$ac_configure_args0 " in
2434               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2435             esac
2436             ;;
2437           -* ) ac_must_keep_next=true ;;
2438         esac
2439       fi
2440       as_fn_append ac_configure_args " '$ac_arg'"
2441       ;;
2442     esac
2443   done
2444 done
2445 { ac_configure_args0=; unset ac_configure_args0;}
2446 { ac_configure_args1=; unset ac_configure_args1;}
2447
2448 # When interrupted or exit'd, cleanup temporary files, and complete
2449 # config.log.  We remove comments because anyway the quotes in there
2450 # would cause problems or look ugly.
2451 # WARNING: Use '\'' to represent an apostrophe within the trap.
2452 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2453 trap 'exit_status=$?
2454   # Save into config.log some information that might help in debugging.
2455   {
2456     echo
2457
2458     $as_echo "## ---------------- ##
2459 ## Cache variables. ##
2460 ## ---------------- ##"
2461     echo
2462     # The following way of writing the cache mishandles newlines in values,
2463 (
2464   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2465     eval ac_val=\$$ac_var
2466     case $ac_val in #(
2467     *${as_nl}*)
2468       case $ac_var in #(
2469       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2470 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2471       esac
2472       case $ac_var in #(
2473       _ | IFS | as_nl) ;; #(
2474       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2475       *) { eval $ac_var=; unset $ac_var;} ;;
2476       esac ;;
2477     esac
2478   done
2479   (set) 2>&1 |
2480     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2481     *${as_nl}ac_space=\ *)
2482       sed -n \
2483         "s/'\''/'\''\\\\'\'''\''/g;
2484           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2485       ;; #(
2486     *)
2487       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2488       ;;
2489     esac |
2490     sort
2491 )
2492     echo
2493
2494     $as_echo "## ----------------- ##
2495 ## Output variables. ##
2496 ## ----------------- ##"
2497     echo
2498     for ac_var in $ac_subst_vars
2499     do
2500       eval ac_val=\$$ac_var
2501       case $ac_val in
2502       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2503       esac
2504       $as_echo "$ac_var='\''$ac_val'\''"
2505     done | sort
2506     echo
2507
2508     if test -n "$ac_subst_files"; then
2509       $as_echo "## ------------------- ##
2510 ## File substitutions. ##
2511 ## ------------------- ##"
2512       echo
2513       for ac_var in $ac_subst_files
2514       do
2515         eval ac_val=\$$ac_var
2516         case $ac_val in
2517         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2518         esac
2519         $as_echo "$ac_var='\''$ac_val'\''"
2520       done | sort
2521       echo
2522     fi
2523
2524     if test -s confdefs.h; then
2525       $as_echo "## ----------- ##
2526 ## confdefs.h. ##
2527 ## ----------- ##"
2528       echo
2529       cat confdefs.h
2530       echo
2531     fi
2532     test "$ac_signal" != 0 &&
2533       $as_echo "$as_me: caught signal $ac_signal"
2534     $as_echo "$as_me: exit $exit_status"
2535   } >&5
2536   rm -f core *.core core.conftest.* &&
2537     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2538     exit $exit_status
2539 ' 0
2540 for ac_signal in 1 2 13 15; do
2541   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2542 done
2543 ac_signal=0
2544
2545 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2546 rm -f -r conftest* confdefs.h
2547
2548 $as_echo "/* confdefs.h */" > confdefs.h
2549
2550 # Predefined preprocessor variables.
2551
2552 cat >>confdefs.h <<_ACEOF
2553 #define PACKAGE_NAME "$PACKAGE_NAME"
2554 _ACEOF
2555
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2558 _ACEOF
2559
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2562 _ACEOF
2563
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_STRING "$PACKAGE_STRING"
2566 _ACEOF
2567
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2570 _ACEOF
2571
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_URL "$PACKAGE_URL"
2574 _ACEOF
2575
2576
2577 # Let the site file select an alternate cache file if it wants to.
2578 # Prefer an explicitly selected file to automatically selected ones.
2579 ac_site_file1=NONE
2580 ac_site_file2=NONE
2581 if test -n "$CONFIG_SITE"; then
2582   # We do not want a PATH search for config.site.
2583   case $CONFIG_SITE in #((
2584     -*)  ac_site_file1=./$CONFIG_SITE;;
2585     */*) ac_site_file1=$CONFIG_SITE;;
2586     *)   ac_site_file1=./$CONFIG_SITE;;
2587   esac
2588 elif test "x$prefix" != xNONE; then
2589   ac_site_file1=$prefix/share/config.site
2590   ac_site_file2=$prefix/etc/config.site
2591 else
2592   ac_site_file1=$ac_default_prefix/share/config.site
2593   ac_site_file2=$ac_default_prefix/etc/config.site
2594 fi
2595 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2596 do
2597   test "x$ac_site_file" = xNONE && continue
2598   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2599     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2600 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2601     sed 's/^/| /' "$ac_site_file" >&5
2602     . "$ac_site_file" \
2603       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2605 as_fn_error $? "failed to load site script $ac_site_file
2606 See \`config.log' for more details" "$LINENO" 5; }
2607   fi
2608 done
2609
2610 if test -r "$cache_file"; then
2611   # Some versions of bash will fail to source /dev/null (special files
2612   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2613   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2614     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2615 $as_echo "$as_me: loading cache $cache_file" >&6;}
2616     case $cache_file in
2617       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2618       *)                      . "./$cache_file";;
2619     esac
2620   fi
2621 else
2622   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2623 $as_echo "$as_me: creating cache $cache_file" >&6;}
2624   >$cache_file
2625 fi
2626
2627 # Check that the precious variables saved in the cache have kept the same
2628 # value.
2629 ac_cache_corrupted=false
2630 for ac_var in $ac_precious_vars; do
2631   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2632   eval ac_new_set=\$ac_env_${ac_var}_set
2633   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2634   eval ac_new_val=\$ac_env_${ac_var}_value
2635   case $ac_old_set,$ac_new_set in
2636     set,)
2637       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2638 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2639       ac_cache_corrupted=: ;;
2640     ,set)
2641       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2642 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2643       ac_cache_corrupted=: ;;
2644     ,);;
2645     *)
2646       if test "x$ac_old_val" != "x$ac_new_val"; then
2647         # differences in whitespace do not lead to failure.
2648         ac_old_val_w=`echo x $ac_old_val`
2649         ac_new_val_w=`echo x $ac_new_val`
2650         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2651           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2652 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2653           ac_cache_corrupted=:
2654         else
2655           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2656 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2657           eval $ac_var=\$ac_old_val
2658         fi
2659         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2660 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2661         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2662 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2663       fi;;
2664   esac
2665   # Pass precious variables to config.status.
2666   if test "$ac_new_set" = set; then
2667     case $ac_new_val in
2668     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2669     *) ac_arg=$ac_var=$ac_new_val ;;
2670     esac
2671     case " $ac_configure_args " in
2672       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2673       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2674     esac
2675   fi
2676 done
2677 if $ac_cache_corrupted; then
2678   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2680   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2681 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2682   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2683 fi
2684 ## -------------------- ##
2685 ## Main body of script. ##
2686 ## -------------------- ##
2687
2688 ac_ext=c
2689 ac_cpp='$CPP $CPPFLAGS'
2690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2693
2694
2695
2696 # LT Version numbers, remember to change them just *before* a release.
2697 #   (Interfaces removed:    CURRENT++, AGE=0, REVISION=0)
2698 #   (Interfaces added:      CURRENT++, AGE++, REVISION=0)
2699 #   (No interfaces changed:                   REVISION++)
2700 LIBGCRYPT_LT_CURRENT=22
2701 LIBGCRYPT_LT_AGE=2
2702 LIBGCRYPT_LT_REVISION=3
2703
2704
2705 # If the API is changed in an incompatible way: increment the next counter.
2706 #
2707 # 1.6: ABI and API change but the change is to most users irrelevant
2708 #      and thus the API version number has not been incremented.
2709 LIBGCRYPT_CONFIG_API_VERSION=1
2710
2711 # If you change the required gpg-error version, please remove
2712 # unnecessary error code defines in src/gcrypt-int.h.
2713 NEED_GPG_ERROR_VERSION=1.25
2714
2715 PACKAGE=$PACKAGE_NAME
2716 VERSION=$PACKAGE_VERSION
2717
2718 ac_aux_dir=
2719 for ac_dir in build-aux "$srcdir"/build-aux; do
2720   if test -f "$ac_dir/install-sh"; then
2721     ac_aux_dir=$ac_dir
2722     ac_install_sh="$ac_aux_dir/install-sh -c"
2723     break
2724   elif test -f "$ac_dir/install.sh"; then
2725     ac_aux_dir=$ac_dir
2726     ac_install_sh="$ac_aux_dir/install.sh -c"
2727     break
2728   elif test -f "$ac_dir/shtool"; then
2729     ac_aux_dir=$ac_dir
2730     ac_install_sh="$ac_aux_dir/shtool install -c"
2731     break
2732   fi
2733 done
2734 if test -z "$ac_aux_dir"; then
2735   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2736 fi
2737
2738 # These three variables are undocumented and unsupported,
2739 # and are intended to be withdrawn in a future Autoconf release.
2740 # They can cause serious problems if a builder's source tree is in a directory
2741 # whose full name contains unusual characters.
2742 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2743 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2744 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2745
2746
2747
2748 am__api_version='1.14'
2749
2750 # Find a good install program.  We prefer a C program (faster),
2751 # so one script is as good as another.  But avoid the broken or
2752 # incompatible versions:
2753 # SysV /etc/install, /usr/sbin/install
2754 # SunOS /usr/etc/install
2755 # IRIX /sbin/install
2756 # AIX /bin/install
2757 # AmigaOS /C/install, which installs bootblocks on floppy discs
2758 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2759 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2760 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2761 # OS/2's system install, which has a completely different semantic
2762 # ./install, which can be erroneously created by make from ./install.sh.
2763 # Reject install programs that cannot install multiple files.
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2765 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2766 if test -z "$INSTALL"; then
2767 if ${ac_cv_path_install+:} false; then :
2768   $as_echo_n "(cached) " >&6
2769 else
2770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2772 do
2773   IFS=$as_save_IFS
2774   test -z "$as_dir" && as_dir=.
2775     # Account for people who put trailing slashes in PATH elements.
2776 case $as_dir/ in #((
2777   ./ | .// | /[cC]/* | \
2778   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2779   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2780   /usr/ucb/* ) ;;
2781   *)
2782     # OSF1 and SCO ODT 3.0 have their own names for install.
2783     # Don't use installbsd from OSF since it installs stuff as root
2784     # by default.
2785     for ac_prog in ginstall scoinst install; do
2786       for ac_exec_ext in '' $ac_executable_extensions; do
2787         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2788           if test $ac_prog = install &&
2789             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2790             # AIX install.  It has an incompatible calling convention.
2791             :
2792           elif test $ac_prog = install &&
2793             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2794             # program-specific install script used by HP pwplus--don't use.
2795             :
2796           else
2797             rm -rf conftest.one conftest.two conftest.dir
2798             echo one > conftest.one
2799             echo two > conftest.two
2800             mkdir conftest.dir
2801             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2802               test -s conftest.one && test -s conftest.two &&
2803               test -s conftest.dir/conftest.one &&
2804               test -s conftest.dir/conftest.two
2805             then
2806               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2807               break 3
2808             fi
2809           fi
2810         fi
2811       done
2812     done
2813     ;;
2814 esac
2815
2816   done
2817 IFS=$as_save_IFS
2818
2819 rm -rf conftest.one conftest.two conftest.dir
2820
2821 fi
2822   if test "${ac_cv_path_install+set}" = set; then
2823     INSTALL=$ac_cv_path_install
2824   else
2825     # As a last resort, use the slow shell script.  Don't cache a
2826     # value for INSTALL within a source directory, because that will
2827     # break other packages using the cache if that directory is
2828     # removed, or if the value is a relative name.
2829     INSTALL=$ac_install_sh
2830   fi
2831 fi
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2833 $as_echo "$INSTALL" >&6; }
2834
2835 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2836 # It thinks the first close brace ends the variable substitution.
2837 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2838
2839 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2840
2841 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2842
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2844 $as_echo_n "checking whether build environment is sane... " >&6; }
2845 # Reject unsafe characters in $srcdir or the absolute working directory
2846 # name.  Accept space and tab only in the latter.
2847 am_lf='
2848 '
2849 case `pwd` in
2850   *[\\\"\#\$\&\'\`$am_lf]*)
2851     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2852 esac
2853 case $srcdir in
2854   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2855     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2856 esac
2857
2858 # Do 'set' in a subshell so we don't clobber the current shell's
2859 # arguments.  Must try -L first in case configure is actually a
2860 # symlink; some systems play weird games with the mod time of symlinks
2861 # (eg FreeBSD returns the mod time of the symlink's containing
2862 # directory).
2863 if (
2864    am_has_slept=no
2865    for am_try in 1 2; do
2866      echo "timestamp, slept: $am_has_slept" > conftest.file
2867      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2868      if test "$*" = "X"; then
2869         # -L didn't work.
2870         set X `ls -t "$srcdir/configure" conftest.file`
2871      fi
2872      if test "$*" != "X $srcdir/configure conftest.file" \
2873         && test "$*" != "X conftest.file $srcdir/configure"; then
2874
2875         # If neither matched, then we have a broken ls.  This can happen
2876         # if, for instance, CONFIG_SHELL is bash and it inherits a
2877         # broken ls alias from the environment.  This has actually
2878         # happened.  Such a system could not be considered "sane".
2879         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2880   alias in your environment" "$LINENO" 5
2881      fi
2882      if test "$2" = conftest.file || test $am_try -eq 2; then
2883        break
2884      fi
2885      # Just in case.
2886      sleep 1
2887      am_has_slept=yes
2888    done
2889    test "$2" = conftest.file
2890    )
2891 then
2892    # Ok.
2893    :
2894 else
2895    as_fn_error $? "newly created file is older than distributed files!
2896 Check your system clock" "$LINENO" 5
2897 fi
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2899 $as_echo "yes" >&6; }
2900 # If we didn't sleep, we still need to ensure time stamps of config.status and
2901 # generated files are strictly newer.
2902 am_sleep_pid=
2903 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2904   ( sleep 1 ) &
2905   am_sleep_pid=$!
2906 fi
2907
2908 rm -f conftest.file
2909
2910 test "$program_prefix" != NONE &&
2911   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2912 # Use a double $ so make ignores it.
2913 test "$program_suffix" != NONE &&
2914   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2915 # Double any \ or $.
2916 # By default was `s,x,x', remove it if useless.
2917 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2918 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2919
2920 # Expand $ac_aux_dir to an absolute path.
2921 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2922
2923 if test x"${MISSING+set}" != xset; then
2924   case $am_aux_dir in
2925   *\ * | *\     *)
2926     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2927   *)
2928     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2929   esac
2930 fi
2931 # Use eval to expand $SHELL
2932 if eval "$MISSING --is-lightweight"; then
2933   am_missing_run="$MISSING "
2934 else
2935   am_missing_run=
2936   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2937 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2938 fi
2939
2940 if test x"${install_sh}" != xset; then
2941   case $am_aux_dir in
2942   *\ * | *\     *)
2943     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2944   *)
2945     install_sh="\${SHELL} $am_aux_dir/install-sh"
2946   esac
2947 fi
2948
2949 # Installed binaries are usually stripped using 'strip' when the user
2950 # run "make install-strip".  However 'strip' might not be the right
2951 # tool to use in cross-compilation environments, therefore Automake
2952 # will honor the 'STRIP' environment variable to overrule this program.
2953 if test "$cross_compiling" != no; then
2954   if test -n "$ac_tool_prefix"; then
2955   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2956 set dummy ${ac_tool_prefix}strip; ac_word=$2
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if ${ac_cv_prog_STRIP+:} false; then :
2960   $as_echo_n "(cached) " >&6
2961 else
2962   if test -n "$STRIP"; then
2963   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2967 do
2968   IFS=$as_save_IFS
2969   test -z "$as_dir" && as_dir=.
2970     for ac_exec_ext in '' $ac_executable_extensions; do
2971   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2972     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974     break 2
2975   fi
2976 done
2977   done
2978 IFS=$as_save_IFS
2979
2980 fi
2981 fi
2982 STRIP=$ac_cv_prog_STRIP
2983 if test -n "$STRIP"; then
2984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2985 $as_echo "$STRIP" >&6; }
2986 else
2987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2989 fi
2990
2991
2992 fi
2993 if test -z "$ac_cv_prog_STRIP"; then
2994   ac_ct_STRIP=$STRIP
2995   # Extract the first word of "strip", so it can be a program name with args.
2996 set dummy strip; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3000   $as_echo_n "(cached) " >&6
3001 else
3002   if test -n "$ac_ct_STRIP"; then
3003   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3007 do
3008   IFS=$as_save_IFS
3009   test -z "$as_dir" && as_dir=.
3010     for ac_exec_ext in '' $ac_executable_extensions; do
3011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3012     ac_cv_prog_ac_ct_STRIP="strip"
3013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014     break 2
3015   fi
3016 done
3017   done
3018 IFS=$as_save_IFS
3019
3020 fi
3021 fi
3022 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3023 if test -n "$ac_ct_STRIP"; then
3024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3025 $as_echo "$ac_ct_STRIP" >&6; }
3026 else
3027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3029 fi
3030
3031   if test "x$ac_ct_STRIP" = x; then
3032     STRIP=":"
3033   else
3034     case $cross_compiling:$ac_tool_warned in
3035 yes:)
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3038 ac_tool_warned=yes ;;
3039 esac
3040     STRIP=$ac_ct_STRIP
3041   fi
3042 else
3043   STRIP="$ac_cv_prog_STRIP"
3044 fi
3045
3046 fi
3047 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3048
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3050 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3051 if test -z "$MKDIR_P"; then
3052   if ${ac_cv_path_mkdir+:} false; then :
3053   $as_echo_n "(cached) " >&6
3054 else
3055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3057 do
3058   IFS=$as_save_IFS
3059   test -z "$as_dir" && as_dir=.
3060     for ac_prog in mkdir gmkdir; do
3061          for ac_exec_ext in '' $ac_executable_extensions; do
3062            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3063            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3064              'mkdir (GNU coreutils) '* | \
3065              'mkdir (coreutils) '* | \
3066              'mkdir (fileutils) '4.1*)
3067                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3068                break 3;;
3069            esac
3070          done
3071        done
3072   done
3073 IFS=$as_save_IFS
3074
3075 fi
3076
3077   test -d ./--version && rmdir ./--version
3078   if test "${ac_cv_path_mkdir+set}" = set; then
3079     MKDIR_P="$ac_cv_path_mkdir -p"
3080   else
3081     # As a last resort, use the slow shell script.  Don't cache a
3082     # value for MKDIR_P within a source directory, because that will
3083     # break other packages using the cache if that directory is
3084     # removed, or if the value is a relative name.
3085     MKDIR_P="$ac_install_sh -d"
3086   fi
3087 fi
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3089 $as_echo "$MKDIR_P" >&6; }
3090
3091 for ac_prog in gawk mawk nawk awk
3092 do
3093   # Extract the first word of "$ac_prog", so it can be a program name with args.
3094 set dummy $ac_prog; ac_word=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if ${ac_cv_prog_AWK+:} false; then :
3098   $as_echo_n "(cached) " >&6
3099 else
3100   if test -n "$AWK"; then
3101   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3102 else
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 for as_dir in $PATH
3105 do
3106   IFS=$as_save_IFS
3107   test -z "$as_dir" && as_dir=.
3108     for ac_exec_ext in '' $ac_executable_extensions; do
3109   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3110     ac_cv_prog_AWK="$ac_prog"
3111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112     break 2
3113   fi
3114 done
3115   done
3116 IFS=$as_save_IFS
3117
3118 fi
3119 fi
3120 AWK=$ac_cv_prog_AWK
3121 if test -n "$AWK"; then
3122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3123 $as_echo "$AWK" >&6; }
3124 else
3125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3127 fi
3128
3129
3130   test -n "$AWK" && break
3131 done
3132
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3134 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3135 set x ${MAKE-make}
3136 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3137 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3138   $as_echo_n "(cached) " >&6
3139 else
3140   cat >conftest.make <<\_ACEOF
3141 SHELL = /bin/sh
3142 all:
3143         @echo '@@@%%%=$(MAKE)=@@@%%%'
3144 _ACEOF
3145 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3146 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3147   *@@@%%%=?*=@@@%%%*)
3148     eval ac_cv_prog_make_${ac_make}_set=yes;;
3149   *)
3150     eval ac_cv_prog_make_${ac_make}_set=no;;
3151 esac
3152 rm -f conftest.make
3153 fi
3154 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3156 $as_echo "yes" >&6; }
3157   SET_MAKE=
3158 else
3159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160 $as_echo "no" >&6; }
3161   SET_MAKE="MAKE=${MAKE-make}"
3162 fi
3163
3164 rm -rf .tst 2>/dev/null
3165 mkdir .tst 2>/dev/null
3166 if test -d .tst; then
3167   am__leading_dot=.
3168 else
3169   am__leading_dot=_
3170 fi
3171 rmdir .tst 2>/dev/null
3172
3173 # Check whether --enable-silent-rules was given.
3174 if test "${enable_silent_rules+set}" = set; then :
3175   enableval=$enable_silent_rules;
3176 fi
3177
3178 case $enable_silent_rules in # (((
3179   yes) AM_DEFAULT_VERBOSITY=0;;
3180    no) AM_DEFAULT_VERBOSITY=1;;
3181     *) AM_DEFAULT_VERBOSITY=1;;
3182 esac
3183 am_make=${MAKE-make}
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3185 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3186 if ${am_cv_make_support_nested_variables+:} false; then :
3187   $as_echo_n "(cached) " >&6
3188 else
3189   if $as_echo 'TRUE=$(BAR$(V))
3190 BAR0=false
3191 BAR1=true
3192 V=1
3193 am__doit:
3194         @$(TRUE)
3195 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3196   am_cv_make_support_nested_variables=yes
3197 else
3198   am_cv_make_support_nested_variables=no
3199 fi
3200 fi
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3202 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3203 if test $am_cv_make_support_nested_variables = yes; then
3204     AM_V='$(V)'
3205   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3206 else
3207   AM_V=$AM_DEFAULT_VERBOSITY
3208   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3209 fi
3210 AM_BACKSLASH='\'
3211
3212 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3213   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3214   # is not polluted with repeated "-I."
3215   am__isrc=' -I$(srcdir)'
3216   # test to see if srcdir already configured
3217   if test -f $srcdir/config.status; then
3218     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3219   fi
3220 fi
3221
3222 # test whether we have cygpath
3223 if test -z "$CYGPATH_W"; then
3224   if (cygpath --version) >/dev/null 2>/dev/null; then
3225     CYGPATH_W='cygpath -w'
3226   else
3227     CYGPATH_W=echo
3228   fi
3229 fi
3230
3231
3232 # Define the identity of the package.
3233  PACKAGE='libgcrypt'
3234  VERSION='1.8.3'
3235
3236
3237 cat >>confdefs.h <<_ACEOF
3238 #define PACKAGE "$PACKAGE"
3239 _ACEOF
3240
3241
3242 cat >>confdefs.h <<_ACEOF
3243 #define VERSION "$VERSION"
3244 _ACEOF
3245
3246 # Some tools Automake needs.
3247
3248 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3249
3250
3251 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3252
3253
3254 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3255
3256
3257 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3258
3259
3260 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3261
3262 # For better backward compatibility.  To be removed once Automake 1.9.x
3263 # dies out for good.  For more background, see:
3264 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3265 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3266 mkdir_p='$(MKDIR_P)'
3267
3268 # We need awk for the "check" target.  The system "awk" is bad on
3269 # some platforms.
3270 # Always define AMTAR for backward compatibility.  Yes, it's still used
3271 # in the wild :-(  We should find a proper way to deprecate it ...
3272 AMTAR='$${TAR-tar}'
3273
3274
3275 # We'll loop over all known methods to create a tar archive until one works.
3276 _am_tools='gnutar  pax cpio none'
3277
3278 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3279
3280
3281
3282
3283
3284
3285 # POSIX will say in a future version that running "rm -f" with no argument
3286 # is OK; and we want to be able to make that assumption in our Makefile
3287 # recipes.  So use an aggressive probe to check that the usage we want is
3288 # actually supported "in the wild" to an acceptable degree.
3289 # See automake bug#10828.
3290 # To make any issue more visible, cause the running configure to be aborted
3291 # by default if the 'rm' program in use doesn't match our expectations; the
3292 # user can still override this though.
3293 if rm -f && rm -fr && rm -rf; then : OK; else
3294   cat >&2 <<'END'
3295 Oops!
3296
3297 Your 'rm' program seems unable to run without file operands specified
3298 on the command line, even when the '-f' option is present.  This is contrary
3299 to the behaviour of most rm programs out there, and not conforming with
3300 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3301
3302 Please tell bug-automake@gnu.org about your system, including the value
3303 of your $PATH and any error possibly output before this message.  This
3304 can help us improve future automake versions.
3305
3306 END
3307   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3308     echo 'Configuration will proceed anyway, since you have set the' >&2
3309     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3310     echo >&2
3311   else
3312     cat >&2 <<'END'
3313 Aborting the configuration process, to ensure you take notice of the issue.
3314
3315 You can download and install GNU coreutils to get an 'rm' implementation
3316 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3317
3318 If you want to complete the configuration process using your problematic
3319 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3320 to "yes", and re-run configure.
3321
3322 END
3323     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3324   fi
3325 fi
3326
3327 ac_config_headers="$ac_config_headers config.h"
3328
3329
3330
3331 # Make sure we can run config.sub.
3332 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3333   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3334
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3336 $as_echo_n "checking build system type... " >&6; }
3337 if ${ac_cv_build+:} false; then :
3338   $as_echo_n "(cached) " >&6
3339 else
3340   ac_build_alias=$build_alias
3341 test "x$ac_build_alias" = x &&
3342   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3343 test "x$ac_build_alias" = x &&
3344   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3345 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3346   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3347
3348 fi
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3350 $as_echo "$ac_cv_build" >&6; }
3351 case $ac_cv_build in
3352 *-*-*) ;;
3353 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3354 esac
3355 build=$ac_cv_build
3356 ac_save_IFS=$IFS; IFS='-'
3357 set x $ac_cv_build
3358 shift
3359 build_cpu=$1
3360 build_vendor=$2
3361 shift; shift
3362 # Remember, the first character of IFS is used to create $*,
3363 # except with old shells:
3364 build_os=$*
3365 IFS=$ac_save_IFS
3366 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3367
3368
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3370 $as_echo_n "checking host system type... " >&6; }
3371 if ${ac_cv_host+:} false; then :
3372   $as_echo_n "(cached) " >&6
3373 else
3374   if test "x$host_alias" = x; then
3375   ac_cv_host=$ac_cv_build
3376 else
3377   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3378     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3379 fi
3380
3381 fi
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3383 $as_echo "$ac_cv_host" >&6; }
3384 case $ac_cv_host in
3385 *-*-*) ;;
3386 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3387 esac
3388 host=$ac_cv_host
3389 ac_save_IFS=$IFS; IFS='-'
3390 set x $ac_cv_host
3391 shift
3392 host_cpu=$1
3393 host_vendor=$2
3394 shift; shift
3395 # Remember, the first character of IFS is used to create $*,
3396 # except with old shells:
3397 host_os=$*
3398 IFS=$ac_save_IFS
3399 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3400
3401
3402
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3404 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3405     # Check whether --enable-maintainer-mode was given.
3406 if test "${enable_maintainer_mode+set}" = set; then :
3407   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3408 else
3409   USE_MAINTAINER_MODE=no
3410 fi
3411
3412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3413 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3414    if test $USE_MAINTAINER_MODE = yes; then
3415   MAINTAINER_MODE_TRUE=
3416   MAINTAINER_MODE_FALSE='#'
3417 else
3418   MAINTAINER_MODE_TRUE='#'
3419   MAINTAINER_MODE_FALSE=
3420 fi
3421
3422   MAINT=$MAINTAINER_MODE_TRUE
3423
3424
3425 # Check whether --enable-silent-rules was given.
3426 if test "${enable_silent_rules+set}" = set; then :
3427   enableval=$enable_silent_rules;
3428 fi
3429
3430 case $enable_silent_rules in # (((
3431   yes) AM_DEFAULT_VERBOSITY=0;;
3432    no) AM_DEFAULT_VERBOSITY=1;;
3433     *) AM_DEFAULT_VERBOSITY=1;;
3434 esac
3435 am_make=${MAKE-make}
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3437 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3438 if ${am_cv_make_support_nested_variables+:} false; then :
3439   $as_echo_n "(cached) " >&6
3440 else
3441   if $as_echo 'TRUE=$(BAR$(V))
3442 BAR0=false
3443 BAR1=true
3444 V=1
3445 am__doit:
3446         @$(TRUE)
3447 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3448   am_cv_make_support_nested_variables=yes
3449 else
3450   am_cv_make_support_nested_variables=no
3451 fi
3452 fi
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3454 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3455 if test $am_cv_make_support_nested_variables = yes; then
3456     AM_V='$(V)'
3457   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3458 else
3459   AM_V=$AM_DEFAULT_VERBOSITY
3460   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3461 fi
3462 AM_BACKSLASH='\'
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480 cat >>confdefs.h <<_ACEOF
3481 #define PACKAGE "$PACKAGE"
3482 _ACEOF
3483
3484
3485 cat >>confdefs.h <<_ACEOF
3486 #define VERSION "$VERSION"
3487 _ACEOF
3488
3489 VERSION_NUMBER=0x010803
3490
3491
3492
3493 ######################
3494 ##  Basic checks.  ### (we need some results later on (e.g. $GCC)
3495 ######################
3496
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3498 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3499 set x ${MAKE-make}
3500 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3501 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3502   $as_echo_n "(cached) " >&6
3503 else
3504   cat >conftest.make <<\_ACEOF
3505 SHELL = /bin/sh
3506 all:
3507         @echo '@@@%%%=$(MAKE)=@@@%%%'
3508 _ACEOF
3509 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3510 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3511   *@@@%%%=?*=@@@%%%*)
3512     eval ac_cv_prog_make_${ac_make}_set=yes;;
3513   *)
3514     eval ac_cv_prog_make_${ac_make}_set=no;;
3515 esac
3516 rm -f conftest.make
3517 fi
3518 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3520 $as_echo "yes" >&6; }
3521   SET_MAKE=
3522 else
3523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 $as_echo "no" >&6; }
3525   SET_MAKE="MAKE=${MAKE-make}"
3526 fi
3527
3528 missing_dir=`cd $ac_aux_dir && pwd`
3529
3530 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
3531
3532
3533 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3534
3535
3536 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
3537
3538
3539 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3540
3541 # AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
3542 ac_ext=c
3543 ac_cpp='$CPP $CPPFLAGS'
3544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3547 if test -n "$ac_tool_prefix"; then
3548   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3549 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551 $as_echo_n "checking for $ac_word... " >&6; }
3552 if ${ac_cv_prog_CC+:} false; then :
3553   $as_echo_n "(cached) " >&6
3554 else
3555   if test -n "$CC"; then
3556   ac_cv_prog_CC="$CC" # Let the user override the test.
3557 else
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 for as_dir in $PATH
3560 do
3561   IFS=$as_save_IFS
3562   test -z "$as_dir" && as_dir=.
3563     for ac_exec_ext in '' $ac_executable_extensions; do
3564   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3565     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3567     break 2
3568   fi
3569 done
3570   done
3571 IFS=$as_save_IFS
3572
3573 fi
3574 fi
3575 CC=$ac_cv_prog_CC
3576 if test -n "$CC"; then
3577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3578 $as_echo "$CC" >&6; }
3579 else
3580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 $as_echo "no" >&6; }
3582 fi
3583
3584
3585 fi
3586 if test -z "$ac_cv_prog_CC"; then
3587   ac_ct_CC=$CC
3588   # Extract the first word of "gcc", so it can be a program name with args.
3589 set dummy gcc; ac_word=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3593   $as_echo_n "(cached) " >&6
3594 else
3595   if test -n "$ac_ct_CC"; then
3596   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3597 else
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3600 do
3601   IFS=$as_save_IFS
3602   test -z "$as_dir" && as_dir=.
3603     for ac_exec_ext in '' $ac_executable_extensions; do
3604   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3605     ac_cv_prog_ac_ct_CC="gcc"
3606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607     break 2
3608   fi
3609 done
3610   done
3611 IFS=$as_save_IFS
3612
3613 fi
3614 fi
3615 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3616 if test -n "$ac_ct_CC"; then
3617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3618 $as_echo "$ac_ct_CC" >&6; }
3619 else
3620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3622 fi
3623
3624   if test "x$ac_ct_CC" = x; then
3625     CC=""
3626   else
3627     case $cross_compiling:$ac_tool_warned in
3628 yes:)
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3631 ac_tool_warned=yes ;;
3632 esac
3633     CC=$ac_ct_CC
3634   fi
3635 else
3636   CC="$ac_cv_prog_CC"
3637 fi
3638
3639 if test -z "$CC"; then
3640           if test -n "$ac_tool_prefix"; then
3641     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3642 set dummy ${ac_tool_prefix}cc; ac_word=$2
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644 $as_echo_n "checking for $ac_word... " >&6; }
3645 if ${ac_cv_prog_CC+:} false; then :
3646   $as_echo_n "(cached) " >&6
3647 else
3648   if test -n "$CC"; then
3649   ac_cv_prog_CC="$CC" # Let the user override the test.
3650 else
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 for as_dir in $PATH
3653 do
3654   IFS=$as_save_IFS
3655   test -z "$as_dir" && as_dir=.
3656     for ac_exec_ext in '' $ac_executable_extensions; do
3657   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3658     ac_cv_prog_CC="${ac_tool_prefix}cc"
3659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3660     break 2
3661   fi
3662 done
3663   done
3664 IFS=$as_save_IFS
3665
3666 fi
3667 fi
3668 CC=$ac_cv_prog_CC
3669 if test -n "$CC"; then
3670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3671 $as_echo "$CC" >&6; }
3672 else
3673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3675 fi
3676
3677
3678   fi
3679 fi
3680 if test -z "$CC"; then
3681   # Extract the first word of "cc", so it can be a program name with args.
3682 set dummy cc; ac_word=$2
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3684 $as_echo_n "checking for $ac_word... " >&6; }
3685 if ${ac_cv_prog_CC+:} false; then :
3686   $as_echo_n "(cached) " >&6
3687 else
3688   if test -n "$CC"; then
3689   ac_cv_prog_CC="$CC" # Let the user override the test.
3690 else
3691   ac_prog_rejected=no
3692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3693 for as_dir in $PATH
3694 do
3695   IFS=$as_save_IFS
3696   test -z "$as_dir" && as_dir=.
3697     for ac_exec_ext in '' $ac_executable_extensions; do
3698   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3699     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3700        ac_prog_rejected=yes
3701        continue
3702      fi
3703     ac_cv_prog_CC="cc"
3704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3705     break 2
3706   fi
3707 done
3708   done
3709 IFS=$as_save_IFS
3710
3711 if test $ac_prog_rejected = yes; then
3712   # We found a bogon in the path, so make sure we never use it.
3713   set dummy $ac_cv_prog_CC
3714   shift
3715   if test $# != 0; then
3716     # We chose a different compiler from the bogus one.
3717     # However, it has the same basename, so the bogon will be chosen
3718     # first if we set CC to just the basename; use the full file name.
3719     shift
3720     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3721   fi
3722 fi
3723 fi
3724 fi
3725 CC=$ac_cv_prog_CC
3726 if test -n "$CC"; then
3727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3728 $as_echo "$CC" >&6; }
3729 else
3730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3732 fi
3733
3734
3735 fi
3736 if test -z "$CC"; then
3737   if test -n "$ac_tool_prefix"; then
3738   for ac_prog in cl.exe
3739   do
3740     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3741 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743 $as_echo_n "checking for $ac_word... " >&6; }
3744 if ${ac_cv_prog_CC+:} false; then :
3745   $as_echo_n "(cached) " >&6
3746 else
3747   if test -n "$CC"; then
3748   ac_cv_prog_CC="$CC" # Let the user override the test.
3749 else
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3752 do
3753   IFS=$as_save_IFS
3754   test -z "$as_dir" && as_dir=.
3755     for ac_exec_ext in '' $ac_executable_extensions; do
3756   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3759     break 2
3760   fi
3761 done
3762   done
3763 IFS=$as_save_IFS
3764
3765 fi
3766 fi
3767 CC=$ac_cv_prog_CC
3768 if test -n "$CC"; then
3769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3770 $as_echo "$CC" >&6; }
3771 else
3772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3774 fi
3775
3776
3777     test -n "$CC" && break
3778   done
3779 fi
3780 if test -z "$CC"; then
3781   ac_ct_CC=$CC
3782   for ac_prog in cl.exe
3783 do
3784   # Extract the first word of "$ac_prog", so it can be a program name with args.
3785 set dummy $ac_prog; ac_word=$2
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3787 $as_echo_n "checking for $ac_word... " >&6; }
3788 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3789   $as_echo_n "(cached) " >&6
3790 else
3791   if test -n "$ac_ct_CC"; then
3792   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3793 else
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH
3796 do
3797   IFS=$as_save_IFS
3798   test -z "$as_dir" && as_dir=.
3799     for ac_exec_ext in '' $ac_executable_extensions; do
3800   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3801     ac_cv_prog_ac_ct_CC="$ac_prog"
3802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3803     break 2
3804   fi
3805 done
3806   done
3807 IFS=$as_save_IFS
3808
3809 fi
3810 fi
3811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3812 if test -n "$ac_ct_CC"; then
3813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3814 $as_echo "$ac_ct_CC" >&6; }
3815 else
3816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817 $as_echo "no" >&6; }
3818 fi
3819
3820
3821   test -n "$ac_ct_CC" && break
3822 done
3823
3824   if test "x$ac_ct_CC" = x; then
3825     CC=""
3826   else
3827     case $cross_compiling:$ac_tool_warned in
3828 yes:)
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3831 ac_tool_warned=yes ;;
3832 esac
3833     CC=$ac_ct_CC
3834   fi
3835 fi
3836
3837 fi
3838
3839
3840 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3842 as_fn_error $? "no acceptable C compiler found in \$PATH
3843 See \`config.log' for more details" "$LINENO" 5; }
3844
3845 # Provide some information about the compiler.
3846 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3847 set X $ac_compile
3848 ac_compiler=$2
3849 for ac_option in --version -v -V -qversion; do
3850   { { ac_try="$ac_compiler $ac_option >&5"
3851 case "(($ac_try" in
3852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853   *) ac_try_echo=$ac_try;;
3854 esac
3855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3858   ac_status=$?
3859   if test -s conftest.err; then
3860     sed '10a\
3861 ... rest of stderr output deleted ...
3862          10q' conftest.err >conftest.er1
3863     cat conftest.er1 >&5
3864   fi
3865   rm -f conftest.er1 conftest.err
3866   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3867   test $ac_status = 0; }
3868 done
3869
3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h.  */
3872
3873 int
3874 main ()
3875 {
3876
3877   ;
3878   return 0;
3879 }
3880 _ACEOF
3881 ac_clean_files_save=$ac_clean_files
3882 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3883 # Try to create an executable without -o first, disregard a.out.
3884 # It will help us diagnose broken compilers, and finding out an intuition
3885 # of exeext.
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3887 $as_echo_n "checking whether the C compiler works... " >&6; }
3888 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3889
3890 # The possible output files:
3891 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3892
3893 ac_rmfiles=
3894 for ac_file in $ac_files
3895 do
3896   case $ac_file in
3897     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3898     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3899   esac
3900 done
3901 rm -f $ac_rmfiles
3902
3903 if { { ac_try="$ac_link_default"
3904 case "(($ac_try" in
3905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906   *) ac_try_echo=$ac_try;;
3907 esac
3908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3909 $as_echo "$ac_try_echo"; } >&5
3910   (eval "$ac_link_default") 2>&5
3911   ac_status=$?
3912   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3913   test $ac_status = 0; }; then :
3914   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3915 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3916 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3917 # so that the user can short-circuit this test for compilers unknown to
3918 # Autoconf.
3919 for ac_file in $ac_files ''
3920 do
3921   test -f "$ac_file" || continue
3922   case $ac_file in
3923     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3924         ;;
3925     [ab].out )
3926         # We found the default executable, but exeext='' is most
3927         # certainly right.
3928         break;;
3929     *.* )
3930         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3931         then :; else
3932            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3933         fi
3934         # We set ac_cv_exeext here because the later test for it is not
3935         # safe: cross compilers may not add the suffix if given an `-o'
3936         # argument, so we may need to know it at that point already.
3937         # Even if this section looks crufty: it has the advantage of
3938         # actually working.
3939         break;;
3940     * )
3941         break;;
3942   esac
3943 done
3944 test "$ac_cv_exeext" = no && ac_cv_exeext=
3945
3946 else
3947   ac_file=''
3948 fi
3949 if test -z "$ac_file"; then :
3950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951 $as_echo "no" >&6; }
3952 $as_echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3954
3955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3957 as_fn_error 77 "C compiler cannot create executables
3958 See \`config.log' for more details" "$LINENO" 5; }
3959 else
3960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3961 $as_echo "yes" >&6; }
3962 fi
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3964 $as_echo_n "checking for C compiler default output file name... " >&6; }
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3966 $as_echo "$ac_file" >&6; }
3967 ac_exeext=$ac_cv_exeext
3968
3969 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3970 ac_clean_files=$ac_clean_files_save
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3972 $as_echo_n "checking for suffix of executables... " >&6; }
3973 if { { ac_try="$ac_link"
3974 case "(($ac_try" in
3975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976   *) ac_try_echo=$ac_try;;
3977 esac
3978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3979 $as_echo "$ac_try_echo"; } >&5
3980   (eval "$ac_link") 2>&5
3981   ac_status=$?
3982   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3983   test $ac_status = 0; }; then :
3984   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3985 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3986 # work properly (i.e., refer to `conftest.exe'), while it won't with
3987 # `rm'.
3988 for ac_file in conftest.exe conftest conftest.*; do
3989   test -f "$ac_file" || continue
3990   case $ac_file in
3991     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3992     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3993           break;;
3994     * ) break;;
3995   esac
3996 done
3997 else
3998   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4000 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4001 See \`config.log' for more details" "$LINENO" 5; }
4002 fi
4003 rm -f conftest conftest$ac_cv_exeext
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4005 $as_echo "$ac_cv_exeext" >&6; }
4006
4007 rm -f conftest.$ac_ext
4008 EXEEXT=$ac_cv_exeext
4009 ac_exeext=$EXEEXT
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h.  */
4012 #include <stdio.h>
4013 int
4014 main ()
4015 {
4016 FILE *f = fopen ("conftest.out", "w");
4017  return ferror (f) || fclose (f) != 0;
4018
4019   ;
4020   return 0;
4021 }
4022 _ACEOF
4023 ac_clean_files="$ac_clean_files conftest.out"
4024 # Check that the compiler produces executables we can run.  If not, either
4025 # the compiler is broken, or we cross compile.
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4027 $as_echo_n "checking whether we are cross compiling... " >&6; }
4028 if test "$cross_compiling" != yes; then
4029   { { ac_try="$ac_link"
4030 case "(($ac_try" in
4031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032   *) ac_try_echo=$ac_try;;
4033 esac
4034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4035 $as_echo "$ac_try_echo"; } >&5
4036   (eval "$ac_link") 2>&5
4037   ac_status=$?
4038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4039   test $ac_status = 0; }
4040   if { ac_try='./conftest$ac_cv_exeext'
4041   { { case "(($ac_try" in
4042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043   *) ac_try_echo=$ac_try;;
4044 esac
4045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4046 $as_echo "$ac_try_echo"; } >&5
4047   (eval "$ac_try") 2>&5
4048   ac_status=$?
4049   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4050   test $ac_status = 0; }; }; then
4051     cross_compiling=no
4052   else
4053     if test "$cross_compiling" = maybe; then
4054         cross_compiling=yes
4055     else
4056         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4058 as_fn_error $? "cannot run C compiled programs.
4059 If you meant to cross compile, use \`--host'.
4060 See \`config.log' for more details" "$LINENO" 5; }
4061     fi
4062   fi
4063 fi
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4065 $as_echo "$cross_compiling" >&6; }
4066
4067 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4068 ac_clean_files=$ac_clean_files_save
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4070 $as_echo_n "checking for suffix of object files... " >&6; }
4071 if ${ac_cv_objext+:} false; then :
4072   $as_echo_n "(cached) " >&6
4073 else
4074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h.  */
4076
4077 int
4078 main ()
4079 {
4080
4081   ;
4082   return 0;
4083 }
4084 _ACEOF
4085 rm -f conftest.o conftest.obj
4086 if { { ac_try="$ac_compile"
4087 case "(($ac_try" in
4088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089   *) ac_try_echo=$ac_try;;
4090 esac
4091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4092 $as_echo "$ac_try_echo"; } >&5
4093   (eval "$ac_compile") 2>&5
4094   ac_status=$?
4095   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4096   test $ac_status = 0; }; then :
4097   for ac_file in conftest.o conftest.obj conftest.*; do
4098   test -f "$ac_file" || continue;
4099   case $ac_file in
4100     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4101     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4102        break;;
4103   esac
4104 done
4105 else
4106   $as_echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4108
4109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4111 as_fn_error $? "cannot compute suffix of object files: cannot compile
4112 See \`config.log' for more details" "$LINENO" 5; }
4113 fi
4114 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4115 fi
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4117 $as_echo "$ac_cv_objext" >&6; }
4118 OBJEXT=$ac_cv_objext
4119 ac_objext=$OBJEXT
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4121 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4122 if ${ac_cv_c_compiler_gnu+:} false; then :
4123   $as_echo_n "(cached) " >&6
4124 else
4125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h.  */
4127
4128 int
4129 main ()
4130 {
4131 #ifndef __GNUC__
4132        choke me
4133 #endif
4134
4135   ;
4136   return 0;
4137 }
4138 _ACEOF
4139 if ac_fn_c_try_compile "$LINENO"; then :
4140   ac_compiler_gnu=yes
4141 else
4142   ac_compiler_gnu=no
4143 fi
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4146
4147 fi
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4149 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4150 if test $ac_compiler_gnu = yes; then
4151   GCC=yes
4152 else
4153   GCC=
4154 fi
4155 ac_test_CFLAGS=${CFLAGS+set}
4156 ac_save_CFLAGS=$CFLAGS
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4158 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4159 if ${ac_cv_prog_cc_g+:} false; then :
4160   $as_echo_n "(cached) " >&6
4161 else
4162   ac_save_c_werror_flag=$ac_c_werror_flag
4163    ac_c_werror_flag=yes
4164    ac_cv_prog_cc_g=no
4165    CFLAGS="-g"
4166    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h.  */
4168
4169 int
4170 main ()
4171 {
4172
4173   ;
4174   return 0;
4175 }
4176 _ACEOF
4177 if ac_fn_c_try_compile "$LINENO"; then :
4178   ac_cv_prog_cc_g=yes
4179 else
4180   CFLAGS=""
4181       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h.  */
4183
4184 int
4185 main ()
4186 {
4187
4188   ;
4189   return 0;
4190 }
4191 _ACEOF
4192 if ac_fn_c_try_compile "$LINENO"; then :
4193
4194 else
4195   ac_c_werror_flag=$ac_save_c_werror_flag
4196          CFLAGS="-g"
4197          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h.  */
4199
4200 int
4201 main ()
4202 {
4203
4204   ;
4205   return 0;
4206 }
4207 _ACEOF
4208 if ac_fn_c_try_compile "$LINENO"; then :
4209   ac_cv_prog_cc_g=yes
4210 fi
4211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212 fi
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214 fi
4215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216    ac_c_werror_flag=$ac_save_c_werror_flag
4217 fi
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4219 $as_echo "$ac_cv_prog_cc_g" >&6; }
4220 if test "$ac_test_CFLAGS" = set; then
4221   CFLAGS=$ac_save_CFLAGS
4222 elif test $ac_cv_prog_cc_g = yes; then
4223   if test "$GCC" = yes; then
4224     CFLAGS="-g -O2"
4225   else
4226     CFLAGS="-g"
4227   fi
4228 else
4229   if test "$GCC" = yes; then
4230     CFLAGS="-O2"
4231   else
4232     CFLAGS=
4233   fi
4234 fi
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4236 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4237 if ${ac_cv_prog_cc_c89+:} false; then :
4238   $as_echo_n "(cached) " >&6
4239 else
4240   ac_cv_prog_cc_c89=no
4241 ac_save_CC=$CC
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h.  */
4244 #include <stdarg.h>
4245 #include <stdio.h>
4246 struct stat;
4247 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4248 struct buf { int x; };
4249 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4250 static char *e (p, i)
4251      char **p;
4252      int i;
4253 {
4254   return p[i];
4255 }
4256 static char *f (char * (*g) (char **, int), char **p, ...)
4257 {
4258   char *s;
4259   va_list v;
4260   va_start (v,p);
4261   s = g (p, va_arg (v,int));
4262   va_end (v);
4263   return s;
4264 }
4265
4266 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4267    function prototypes and stuff, but not '\xHH' hex character constants.
4268    These don't provoke an error unfortunately, instead are silently treated
4269    as 'x'.  The following induces an error, until -std is added to get
4270    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4271    array size at least.  It's necessary to write '\x00'==0 to get something
4272    that's true only with -std.  */
4273 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4274
4275 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4276    inside strings and character constants.  */
4277 #define FOO(x) 'x'
4278 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4279
4280 int test (int i, double x);
4281 struct s1 {int (*f) (int a);};
4282 struct s2 {int (*f) (double a);};
4283 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4284 int argc;
4285 char **argv;
4286 int
4287 main ()
4288 {
4289 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4290   ;
4291   return 0;
4292 }
4293 _ACEOF
4294 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4295         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4296 do
4297   CC="$ac_save_CC $ac_arg"
4298   if ac_fn_c_try_compile "$LINENO"; then :
4299   ac_cv_prog_cc_c89=$ac_arg
4300 fi
4301 rm -f core conftest.err conftest.$ac_objext
4302   test "x$ac_cv_prog_cc_c89" != "xno" && break
4303 done
4304 rm -f conftest.$ac_ext
4305 CC=$ac_save_CC
4306
4307 fi
4308 # AC_CACHE_VAL
4309 case "x$ac_cv_prog_cc_c89" in
4310   x)
4311     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4312 $as_echo "none needed" >&6; } ;;
4313   xno)
4314     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4315 $as_echo "unsupported" >&6; } ;;
4316   *)
4317     CC="$CC $ac_cv_prog_cc_c89"
4318     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4319 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4320 esac
4321 if test "x$ac_cv_prog_cc_c89" != xno; then :
4322
4323 fi
4324
4325 ac_ext=c
4326 ac_cpp='$CPP $CPPFLAGS'
4327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4330
4331 ac_ext=c
4332 ac_cpp='$CPP $CPPFLAGS'
4333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4337 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4338 if ${am_cv_prog_cc_c_o+:} false; then :
4339   $as_echo_n "(cached) " >&6
4340 else
4341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h.  */
4343
4344 int
4345 main ()
4346 {
4347
4348   ;
4349   return 0;
4350 }
4351 _ACEOF
4352   # Make sure it works both with $CC and with simple cc.
4353   # Following AC_PROG_CC_C_O, we do the test twice because some
4354   # compilers refuse to overwrite an existing .o file with -o,
4355   # though they will create one.
4356   am_cv_prog_cc_c_o=yes
4357   for am_i in 1 2; do
4358     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4359    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4360    ac_status=$?
4361    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362    (exit $ac_status); } \
4363          && test -f conftest2.$ac_objext; then
4364       : OK
4365     else
4366       am_cv_prog_cc_c_o=no
4367       break
4368     fi
4369   done
4370   rm -f core conftest*
4371   unset am_i
4372 fi
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4374 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4375 if test "$am_cv_prog_cc_c_o" != yes; then
4376    # Losing compiler, so override with the script.
4377    # FIXME: It is wrong to rewrite CC.
4378    # But if we don't then we get into trouble of one sort or another.
4379    # A longer-term fix would be to have automake use am__CC in this case,
4380    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4381    CC="$am_aux_dir/compile $CC"
4382 fi
4383 ac_ext=c
4384 ac_cpp='$CPP $CPPFLAGS'
4385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4388
4389 DEPDIR="${am__leading_dot}deps"
4390
4391 ac_config_commands="$ac_config_commands depfiles"
4392
4393
4394 am_make=${MAKE-make}
4395 cat > confinc << 'END'
4396 am__doit:
4397         @echo this is the am__doit target
4398 .PHONY: am__doit
4399 END
4400 # If we don't find an include directive, just comment out the code.
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4402 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4403 am__include="#"
4404 am__quote=
4405 _am_result=none
4406 # First try GNU make style include.
4407 echo "include confinc" > confmf
4408 # Ignore all kinds of additional output from 'make'.
4409 case `$am_make -s -f confmf 2> /dev/null` in #(
4410 *the\ am__doit\ target*)
4411   am__include=include
4412   am__quote=
4413   _am_result=GNU
4414   ;;
4415 esac
4416 # Now try BSD make style include.
4417 if test "$am__include" = "#"; then
4418    echo '.include "confinc"' > confmf
4419    case `$am_make -s -f confmf 2> /dev/null` in #(
4420    *the\ am__doit\ target*)
4421      am__include=.include
4422      am__quote="\""
4423      _am_result=BSD
4424      ;;
4425    esac
4426 fi
4427
4428
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4430 $as_echo "$_am_result" >&6; }
4431 rm -f confinc confmf
4432
4433 # Check whether --enable-dependency-tracking was given.
4434 if test "${enable_dependency_tracking+set}" = set; then :
4435   enableval=$enable_dependency_tracking;
4436 fi
4437
4438 if test "x$enable_dependency_tracking" != xno; then
4439   am_depcomp="$ac_aux_dir/depcomp"
4440   AMDEPBACKSLASH='\'
4441   am__nodep='_no'
4442 fi
4443  if test "x$enable_dependency_tracking" != xno; then
4444   AMDEP_TRUE=
4445   AMDEP_FALSE='#'
4446 else
4447   AMDEP_TRUE='#'
4448   AMDEP_FALSE=
4449 fi
4450
4451
4452
4453 depcc="$CC"   am_compiler_list=
4454
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4456 $as_echo_n "checking dependency style of $depcc... " >&6; }
4457 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4458   $as_echo_n "(cached) " >&6
4459 else
4460   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4461   # We make a subdir and do the tests there.  Otherwise we can end up
4462   # making bogus files that we don't know about and never remove.  For
4463   # instance it was reported that on HP-UX the gcc test will end up
4464   # making a dummy file named 'D' -- because '-MD' means "put the output
4465   # in D".
4466   rm -rf conftest.dir
4467   mkdir conftest.dir
4468   # Copy depcomp to subdir because otherwise we won't find it if we're
4469   # using a relative directory.
4470   cp "$am_depcomp" conftest.dir
4471   cd conftest.dir
4472   # We will build objects and dependencies in a subdirectory because
4473   # it helps to detect inapplicable dependency modes.  For instance
4474   # both Tru64's cc and ICC support -MD to output dependencies as a
4475   # side effect of compilation, but ICC will put the dependencies in
4476   # the current directory while Tru64 will put them in the object
4477   # directory.
4478   mkdir sub
4479
4480   am_cv_CC_dependencies_compiler_type=none
4481   if test "$am_compiler_list" = ""; then
4482      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4483   fi
4484   am__universal=false
4485   case " $depcc " in #(
4486      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4487      esac
4488
4489   for depmode in $am_compiler_list; do
4490     # Setup a source with many dependencies, because some compilers
4491     # like to wrap large dependency lists on column 80 (with \), and
4492     # we should not choose a depcomp mode which is confused by this.
4493     #
4494     # We need to recreate these files for each test, as the compiler may
4495     # overwrite some of them when testing with obscure command lines.
4496     # This happens at least with the AIX C compiler.
4497     : > sub/conftest.c
4498     for i in 1 2 3 4 5 6; do
4499       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4500       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4501       # Solaris 10 /bin/sh.
4502       echo '/* dummy */' > sub/conftst$i.h
4503     done
4504     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4505
4506     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4507     # mode.  It turns out that the SunPro C++ compiler does not properly
4508     # handle '-M -o', and we need to detect this.  Also, some Intel
4509     # versions had trouble with output in subdirs.
4510     am__obj=sub/conftest.${OBJEXT-o}
4511     am__minus_obj="-o $am__obj"
4512     case $depmode in
4513     gcc)
4514       # This depmode causes a compiler race in universal mode.
4515       test "$am__universal" = false || continue
4516       ;;
4517     nosideeffect)
4518       # After this tag, mechanisms are not by side-effect, so they'll
4519       # only be used when explicitly requested.
4520       if test "x$enable_dependency_tracking" = xyes; then
4521         continue
4522       else
4523         break
4524       fi
4525       ;;
4526     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4527       # This compiler won't grok '-c -o', but also, the minuso test has
4528       # not run yet.  These depmodes are late enough in the game, and
4529       # so weak that their functioning should not be impacted.
4530       am__obj=conftest.${OBJEXT-o}
4531       am__minus_obj=
4532       ;;
4533     none) break ;;
4534     esac
4535     if depmode=$depmode \
4536        source=sub/conftest.c object=$am__obj \
4537        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4538        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4539          >/dev/null 2>conftest.err &&
4540        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4541        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4542        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4543        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4544       # icc doesn't choke on unknown options, it will just issue warnings
4545       # or remarks (even with -Werror).  So we grep stderr for any message
4546       # that says an option was ignored or not supported.
4547       # When given -MP, icc 7.0 and 7.1 complain thusly:
4548       #   icc: Command line warning: ignoring option '-M'; no argument required
4549       # The diagnosis changed in icc 8.0:
4550       #   icc: Command line remark: option '-MP' not supported
4551       if (grep 'ignoring option' conftest.err ||
4552           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4553         am_cv_CC_dependencies_compiler_type=$depmode
4554         break
4555       fi
4556     fi
4557   done
4558
4559   cd ..
4560   rm -rf conftest.dir
4561 else
4562   am_cv_CC_dependencies_compiler_type=none
4563 fi
4564
4565 fi
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4567 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4568 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4569
4570  if
4571   test "x$enable_dependency_tracking" != xno \
4572   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4573   am__fastdepCC_TRUE=
4574   am__fastdepCC_FALSE='#'
4575 else
4576   am__fastdepCC_TRUE='#'
4577   am__fastdepCC_FALSE=
4578 fi
4579
4580
4581 ac_ext=c
4582 ac_cpp='$CPP $CPPFLAGS'
4583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4587 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4588 # On Suns, sometimes $CPP names a directory.
4589 if test -n "$CPP" && test -d "$CPP"; then
4590   CPP=
4591 fi
4592 if test -z "$CPP"; then
4593   if ${ac_cv_prog_CPP+:} false; then :
4594   $as_echo_n "(cached) " >&6
4595 else
4596       # Double quotes because CPP needs to be expanded
4597     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4598     do
4599       ac_preproc_ok=false
4600 for ac_c_preproc_warn_flag in '' yes
4601 do
4602   # Use a header file that comes with gcc, so configuring glibc
4603   # with a fresh cross-compiler works.
4604   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4605   # <limits.h> exists even on freestanding compilers.
4606   # On the NeXT, cc -E runs the code through the compiler's parser,
4607   # not just through cpp. "Syntax error" is here to catch this case.
4608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609 /* end confdefs.h.  */
4610 #ifdef __STDC__
4611 # include <limits.h>
4612 #else
4613 # include <assert.h>
4614 #endif
4615                      Syntax error
4616 _ACEOF
4617 if ac_fn_c_try_cpp "$LINENO"; then :
4618
4619 else
4620   # Broken: fails on valid input.
4621 continue
4622 fi
4623 rm -f conftest.err conftest.i conftest.$ac_ext
4624
4625   # OK, works on sane cases.  Now check whether nonexistent headers
4626   # can be detected and how.
4627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h.  */
4629 #include <ac_nonexistent.h>
4630 _ACEOF
4631 if ac_fn_c_try_cpp "$LINENO"; then :
4632   # Broken: success on invalid input.
4633 continue
4634 else
4635   # Passes both tests.
4636 ac_preproc_ok=:
4637 break
4638 fi
4639 rm -f conftest.err conftest.i conftest.$ac_ext
4640
4641 done
4642 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4643 rm -f conftest.i conftest.err conftest.$ac_ext
4644 if $ac_preproc_ok; then :
4645   break
4646 fi
4647
4648     done
4649     ac_cv_prog_CPP=$CPP
4650
4651 fi
4652   CPP=$ac_cv_prog_CPP
4653 else
4654   ac_cv_prog_CPP=$CPP
4655 fi
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4657 $as_echo "$CPP" >&6; }
4658 ac_preproc_ok=false
4659 for ac_c_preproc_warn_flag in '' yes
4660 do
4661   # Use a header file that comes with gcc, so configuring glibc
4662   # with a fresh cross-compiler works.
4663   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4664   # <limits.h> exists even on freestanding compilers.
4665   # On the NeXT, cc -E runs the code through the compiler's parser,
4666   # not just through cpp. "Syntax error" is here to catch this case.
4667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h.  */
4669 #ifdef __STDC__
4670 # include <limits.h>
4671 #else
4672 # include <assert.h>
4673 #endif
4674                      Syntax error
4675 _ACEOF
4676 if ac_fn_c_try_cpp "$LINENO"; then :
4677
4678 else
4679   # Broken: fails on valid input.
4680 continue
4681 fi
4682 rm -f conftest.err conftest.i conftest.$ac_ext
4683
4684   # OK, works on sane cases.  Now check whether nonexistent headers
4685   # can be detected and how.
4686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h.  */
4688 #include <ac_nonexistent.h>
4689 _ACEOF
4690 if ac_fn_c_try_cpp "$LINENO"; then :
4691   # Broken: success on invalid input.
4692 continue
4693 else
4694   # Passes both tests.
4695 ac_preproc_ok=:
4696 break
4697 fi
4698 rm -f conftest.err conftest.i conftest.$ac_ext
4699
4700 done
4701 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4702 rm -f conftest.i conftest.err conftest.$ac_ext
4703 if $ac_preproc_ok; then :
4704
4705 else
4706   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4708 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4709 See \`config.log' for more details" "$LINENO" 5; }
4710 fi
4711
4712 ac_ext=c
4713 ac_cpp='$CPP $CPPFLAGS'
4714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4717
4718
4719 # By default we simply use the C compiler to build assembly code.
4720
4721 test "${CCAS+set}" = set || CCAS=$CC
4722 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4723
4724
4725
4726 depcc="$CCAS"   am_compiler_list=
4727
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4729 $as_echo_n "checking dependency style of $depcc... " >&6; }
4730 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4731   $as_echo_n "(cached) " >&6
4732 else
4733   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4734   # We make a subdir and do the tests there.  Otherwise we can end up
4735   # making bogus files that we don't know about and never remove.  For
4736   # instance it was reported that on HP-UX the gcc test will end up
4737   # making a dummy file named 'D' -- because '-MD' means "put the output
4738   # in D".
4739   rm -rf conftest.dir
4740   mkdir conftest.dir
4741   # Copy depcomp to subdir because otherwise we won't find it if we're
4742   # using a relative directory.
4743   cp "$am_depcomp" conftest.dir
4744   cd conftest.dir
4745   # We will build objects and dependencies in a subdirectory because
4746   # it helps to detect inapplicable dependency modes.  For instance
4747   # both Tru64's cc and ICC support -MD to output dependencies as a
4748   # side effect of compilation, but ICC will put the dependencies in
4749   # the current directory while Tru64 will put them in the object
4750   # directory.
4751   mkdir sub
4752
4753   am_cv_CCAS_dependencies_compiler_type=none
4754   if test "$am_compiler_list" = ""; then
4755      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4756   fi
4757   am__universal=false
4758
4759
4760   for depmode in $am_compiler_list; do
4761     # Setup a source with many dependencies, because some compilers
4762     # like to wrap large dependency lists on column 80 (with \), and
4763     # we should not choose a depcomp mode which is confused by this.
4764     #
4765     # We need to recreate these files for each test, as the compiler may
4766     # overwrite some of them when testing with obscure command lines.
4767     # This happens at least with the AIX C compiler.
4768     : > sub/conftest.c
4769     for i in 1 2 3 4 5 6; do
4770       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4771       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4772       # Solaris 10 /bin/sh.
4773       echo '/* dummy */' > sub/conftst$i.h
4774     done
4775     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4776
4777     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4778     # mode.  It turns out that the SunPro C++ compiler does not properly
4779     # handle '-M -o', and we need to detect this.  Also, some Intel
4780     # versions had trouble with output in subdirs.
4781     am__obj=sub/conftest.${OBJEXT-o}
4782     am__minus_obj="-o $am__obj"
4783     case $depmode in
4784     gcc)
4785       # This depmode causes a compiler race in universal mode.
4786       test "$am__universal" = false || continue
4787       ;;
4788     nosideeffect)
4789       # After this tag, mechanisms are not by side-effect, so they'll
4790       # only be used when explicitly requested.
4791       if test "x$enable_dependency_tracking" = xyes; then
4792         continue
4793       else
4794         break
4795       fi
4796       ;;
4797     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4798       # This compiler won't grok '-c -o', but also, the minuso test has
4799       # not run yet.  These depmodes are late enough in the game, and
4800       # so weak that their functioning should not be impacted.
4801       am__obj=conftest.${OBJEXT-o}
4802       am__minus_obj=
4803       ;;
4804     none) break ;;
4805     esac
4806     if depmode=$depmode \
4807        source=sub/conftest.c object=$am__obj \
4808        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4809        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4810          >/dev/null 2>conftest.err &&
4811        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4812        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4813        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4814        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4815       # icc doesn't choke on unknown options, it will just issue warnings
4816       # or remarks (even with -Werror).  So we grep stderr for any message
4817       # that says an option was ignored or not supported.
4818       # When given -MP, icc 7.0 and 7.1 complain thusly:
4819       #   icc: Command line warning: ignoring option '-M'; no argument required
4820       # The diagnosis changed in icc 8.0:
4821       #   icc: Command line remark: option '-MP' not supported
4822       if (grep 'ignoring option' conftest.err ||
4823           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4824         am_cv_CCAS_dependencies_compiler_type=$depmode
4825         break
4826       fi
4827     fi
4828   done
4829
4830   cd ..
4831   rm -rf conftest.dir
4832 else
4833   am_cv_CCAS_dependencies_compiler_type=none
4834 fi
4835
4836 fi
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4838 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4839 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4840
4841  if
4842   test "x$enable_dependency_tracking" != xno \
4843   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4844   am__fastdepCCAS_TRUE=
4845   am__fastdepCCAS_FALSE='#'
4846 else
4847   am__fastdepCCAS_TRUE='#'
4848   am__fastdepCCAS_FALSE=
4849 fi
4850
4851
4852
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4854 $as_echo_n "checking for library containing strerror... " >&6; }
4855 if ${ac_cv_search_strerror+:} false; then :
4856   $as_echo_n "(cached) " >&6
4857 else
4858   ac_func_search_save_LIBS=$LIBS
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h.  */
4861
4862 /* Override any GCC internal prototype to avoid an error.
4863    Use char because int might match the return type of a GCC
4864    builtin and then its argument prototype would still apply.  */
4865 #ifdef __cplusplus
4866 extern "C"
4867 #endif
4868 char strerror ();
4869 int
4870 main ()
4871 {
4872 return strerror ();
4873   ;
4874   return 0;
4875 }
4876 _ACEOF
4877 for ac_lib in '' cposix; do
4878   if test -z "$ac_lib"; then
4879     ac_res="none required"
4880   else
4881     ac_res=-l$ac_lib
4882     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4883   fi
4884   if ac_fn_c_try_link "$LINENO"; then :
4885   ac_cv_search_strerror=$ac_res
4886 fi
4887 rm -f core conftest.err conftest.$ac_objext \
4888     conftest$ac_exeext
4889   if ${ac_cv_search_strerror+:} false; then :
4890   break
4891 fi
4892 done
4893 if ${ac_cv_search_strerror+:} false; then :
4894
4895 else
4896   ac_cv_search_strerror=no
4897 fi
4898 rm conftest.$ac_ext
4899 LIBS=$ac_func_search_save_LIBS
4900 fi
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4902 $as_echo "$ac_cv_search_strerror" >&6; }
4903 ac_res=$ac_cv_search_strerror
4904 if test "$ac_res" != no; then :
4905   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4906
4907 fi
4908
4909
4910 for ac_prog in gawk mawk nawk awk
4911 do
4912   # Extract the first word of "$ac_prog", so it can be a program name with args.
4913 set dummy $ac_prog; ac_word=$2
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915 $as_echo_n "checking for $ac_word... " >&6; }
4916 if ${ac_cv_prog_AWK+:} false; then :
4917   $as_echo_n "(cached) " >&6
4918 else
4919   if test -n "$AWK"; then
4920   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4921 else
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $PATH
4924 do
4925   IFS=$as_save_IFS
4926   test -z "$as_dir" && as_dir=.
4927     for ac_exec_ext in '' $ac_executable_extensions; do
4928   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929     ac_cv_prog_AWK="$ac_prog"
4930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4931     break 2
4932   fi
4933 done
4934   done
4935 IFS=$as_save_IFS
4936
4937 fi
4938 fi
4939 AWK=$ac_cv_prog_AWK
4940 if test -n "$AWK"; then
4941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4942 $as_echo "$AWK" >&6; }
4943 else
4944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4946 fi
4947
4948
4949   test -n "$AWK" && break
4950 done
4951
4952
4953
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4955 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4956 if ${ac_cv_path_GREP+:} false; then :
4957   $as_echo_n "(cached) " >&6
4958 else
4959   if test -z "$GREP"; then
4960   ac_path_GREP_found=false
4961   # Loop through the user's path and test for each of PROGNAME-LIST
4962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4964 do
4965   IFS=$as_save_IFS
4966   test -z "$as_dir" && as_dir=.
4967     for ac_prog in grep ggrep; do
4968     for ac_exec_ext in '' $ac_executable_extensions; do
4969       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4970       as_fn_executable_p "$ac_path_GREP" || continue
4971 # Check for GNU ac_path_GREP and select it if it is found.
4972   # Check for GNU $ac_path_GREP
4973 case `"$ac_path_GREP" --version 2>&1` in
4974 *GNU*)
4975   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4976 *)
4977   ac_count=0
4978   $as_echo_n 0123456789 >"conftest.in"
4979   while :
4980   do
4981     cat "conftest.in" "conftest.in" >"conftest.tmp"
4982     mv "conftest.tmp" "conftest.in"
4983     cp "conftest.in" "conftest.nl"
4984     $as_echo 'GREP' >> "conftest.nl"
4985     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4986     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4987     as_fn_arith $ac_count + 1 && ac_count=$as_val
4988     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4989       # Best one so far, save it but keep looking for a better one
4990       ac_cv_path_GREP="$ac_path_GREP"
4991       ac_path_GREP_max=$ac_count
4992     fi
4993     # 10*(2^10) chars as input seems more than enough
4994     test $ac_count -gt 10 && break
4995   done
4996   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4997 esac
4998
4999       $ac_path_GREP_found && break 3
5000     done
5001   done
5002   done
5003 IFS=$as_save_IFS
5004   if test -z "$ac_cv_path_GREP"; then
5005     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5006   fi
5007 else
5008   ac_cv_path_GREP=$GREP
5009 fi
5010
5011 fi
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5013 $as_echo "$ac_cv_path_GREP" >&6; }
5014  GREP="$ac_cv_path_GREP"
5015
5016
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5018 $as_echo_n "checking for egrep... " >&6; }
5019 if ${ac_cv_path_EGREP+:} false; then :
5020   $as_echo_n "(cached) " >&6
5021 else
5022   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5023    then ac_cv_path_EGREP="$GREP -E"
5024    else
5025      if test -z "$EGREP"; then
5026   ac_path_EGREP_found=false
5027   # Loop through the user's path and test for each of PROGNAME-LIST
5028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5030 do
5031   IFS=$as_save_IFS
5032   test -z "$as_dir" && as_dir=.
5033     for ac_prog in egrep; do
5034     for ac_exec_ext in '' $ac_executable_extensions; do
5035       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5036       as_fn_executable_p "$ac_path_EGREP" || continue
5037 # Check for GNU ac_path_EGREP and select it if it is found.
5038   # Check for GNU $ac_path_EGREP
5039 case `"$ac_path_EGREP" --version 2>&1` in
5040 *GNU*)
5041   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5042 *)
5043   ac_count=0
5044   $as_echo_n 0123456789 >"conftest.in"
5045   while :
5046   do
5047     cat "conftest.in" "conftest.in" >"conftest.tmp"
5048     mv "conftest.tmp" "conftest.in"
5049     cp "conftest.in" "conftest.nl"
5050     $as_echo 'EGREP' >> "conftest.nl"
5051     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5052     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5053     as_fn_arith $ac_count + 1 && ac_count=$as_val
5054     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5055       # Best one so far, save it but keep looking for a better one
5056       ac_cv_path_EGREP="$ac_path_EGREP"
5057       ac_path_EGREP_max=$ac_count
5058     fi
5059     # 10*(2^10) chars as input seems more than enough
5060     test $ac_count -gt 10 && break
5061   done
5062   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5063 esac
5064
5065       $ac_path_EGREP_found && break 3
5066     done
5067   done
5068   done
5069 IFS=$as_save_IFS
5070   if test -z "$ac_cv_path_EGREP"; then
5071     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5072   fi
5073 else
5074   ac_cv_path_EGREP=$EGREP
5075 fi
5076
5077    fi
5078 fi
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5080 $as_echo "$ac_cv_path_EGREP" >&6; }
5081  EGREP="$ac_cv_path_EGREP"
5082
5083
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5085 $as_echo_n "checking for ANSI C header files... " >&6; }
5086 if ${ac_cv_header_stdc+:} false; then :
5087   $as_echo_n "(cached) " >&6
5088 else
5089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h.  */
5091 #include <stdlib.h>
5092 #include <stdarg.h>
5093 #include <string.h>
5094 #include <float.h>
5095
5096 int
5097 main ()
5098 {
5099
5100   ;
5101   return 0;
5102 }
5103 _ACEOF
5104 if ac_fn_c_try_compile "$LINENO"; then :
5105   ac_cv_header_stdc=yes
5106 else
5107   ac_cv_header_stdc=no
5108 fi
5109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5110
5111 if test $ac_cv_header_stdc = yes; then
5112   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h.  */
5115 #include <string.h>
5116
5117 _ACEOF
5118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5119   $EGREP "memchr" >/dev/null 2>&1; then :
5120
5121 else
5122   ac_cv_header_stdc=no
5123 fi
5124 rm -f conftest*
5125
5126 fi
5127
5128 if test $ac_cv_header_stdc = yes; then
5129   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131 /* end confdefs.h.  */
5132 #include <stdlib.h>
5133
5134 _ACEOF
5135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5136   $EGREP "free" >/dev/null 2>&1; then :
5137
5138 else
5139   ac_cv_header_stdc=no
5140 fi
5141 rm -f conftest*
5142
5143 fi
5144
5145 if test $ac_cv_header_stdc = yes; then
5146   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5147   if test "$cross_compiling" = yes; then :
5148   :
5149 else
5150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151 /* end confdefs.h.  */
5152 #include <ctype.h>
5153 #include <stdlib.h>
5154 #if ((' ' & 0x0FF) == 0x020)
5155 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5156 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5157 #else
5158 # define ISLOWER(c) \
5159                    (('a' <= (c) && (c) <= 'i') \
5160                      || ('j' <= (c) && (c) <= 'r') \
5161                      || ('s' <= (c) && (c) <= 'z'))
5162 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5163 #endif
5164
5165 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5166 int
5167 main ()
5168 {
5169   int i;
5170   for (i = 0; i < 256; i++)
5171     if (XOR (islower (i), ISLOWER (i))
5172         || toupper (i) != TOUPPER (i))
5173       return 2;
5174   return 0;
5175 }
5176 _ACEOF
5177 if ac_fn_c_try_run "$LINENO"; then :
5178
5179 else
5180   ac_cv_header_stdc=no
5181 fi
5182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5183   conftest.$ac_objext conftest.beam conftest.$ac_ext
5184 fi
5185
5186 fi
5187 fi
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5189 $as_echo "$ac_cv_header_stdc" >&6; }
5190 if test $ac_cv_header_stdc = yes; then
5191
5192 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5193
5194 fi
5195
5196 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5197 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5198                   inttypes.h stdint.h unistd.h
5199 do :
5200   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5201 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5202 "
5203 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5204   cat >>confdefs.h <<_ACEOF
5205 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5206 _ACEOF
5207
5208 fi
5209
5210 done
5211
5212
5213
5214   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5215 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5216   MINIX=yes
5217 else
5218   MINIX=
5219 fi
5220
5221
5222   if test "$MINIX" = yes; then
5223
5224 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5225
5226
5227 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5228
5229
5230 $as_echo "#define _MINIX 1" >>confdefs.h
5231
5232   fi
5233
5234
5235   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5236 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5237 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5238   $as_echo_n "(cached) " >&6
5239 else
5240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241 /* end confdefs.h.  */
5242
5243 #         define __EXTENSIONS__ 1
5244           $ac_includes_default
5245 int
5246 main ()
5247 {
5248
5249   ;
5250   return 0;
5251 }
5252 _ACEOF
5253 if ac_fn_c_try_compile "$LINENO"; then :
5254   ac_cv_safe_to_define___extensions__=yes
5255 else
5256   ac_cv_safe_to_define___extensions__=no
5257 fi
5258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5259 fi
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5261 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5262   test $ac_cv_safe_to_define___extensions__ = yes &&
5263     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5264
5265   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5266
5267   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5268
5269   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5270
5271   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5272
5273
5274
5275
5276 # We need to compile and run a program on the build machine.  A
5277 # comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
5278 # the AC archive is broken for autoconf 2.57.  Given that there is no
5279 # newer version of that macro, we assume that it is also broken for
5280 # autoconf 2.61 and thus we use a simple but usually sufficient
5281 # approach.
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
5283 $as_echo_n "checking for cc for build... " >&6; }
5284 if test "$cross_compiling" = "yes"; then
5285   CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
5286 else
5287   CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
5288 fi
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5290 $as_echo "$CC_FOR_BUILD" >&6; }
5291
5292
5293
5294
5295 case `pwd` in
5296   *\ * | *\     *)
5297     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5298 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5299 esac
5300
5301
5302
5303 macro_version='2.4.2'
5304 macro_revision='1.3337'
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318 ltmain="$ac_aux_dir/ltmain.sh"
5319
5320 # Backslashify metacharacters that are still active within
5321 # double-quoted strings.
5322 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5323
5324 # Same as above, but do not quote variable references.
5325 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5326
5327 # Sed substitution to delay expansion of an escaped shell variable in a
5328 # double_quote_subst'ed string.
5329 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5330
5331 # Sed substitution to delay expansion of an escaped single quote.
5332 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5333
5334 # Sed substitution to avoid accidental globbing in evaled expressions
5335 no_glob_subst='s/\*/\\\*/g'
5336
5337 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5338 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5339 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5340
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5342 $as_echo_n "checking how to print strings... " >&6; }
5343 # Test print first, because it will be a builtin if present.
5344 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5345    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5346   ECHO='print -r --'
5347 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5348   ECHO='printf %s\n'
5349 else
5350   # Use this function as a fallback that always works.
5351   func_fallback_echo ()
5352   {
5353     eval 'cat <<_LTECHO_EOF
5354 $1
5355 _LTECHO_EOF'
5356   }
5357   ECHO='func_fallback_echo'
5358 fi
5359
5360 # func_echo_all arg...
5361 # Invoke $ECHO with all args, space-separated.
5362 func_echo_all ()
5363 {
5364     $ECHO ""
5365 }
5366
5367 case "$ECHO" in
5368   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5369 $as_echo "printf" >&6; } ;;
5370   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5371 $as_echo "print -r" >&6; } ;;
5372   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5373 $as_echo "cat" >&6; } ;;
5374 esac
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5390 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5391 if ${ac_cv_path_SED+:} false; then :
5392   $as_echo_n "(cached) " >&6
5393 else
5394             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5395      for ac_i in 1 2 3 4 5 6 7; do
5396        ac_script="$ac_script$as_nl$ac_script"
5397      done
5398      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5399      { ac_script=; unset ac_script;}
5400      if test -z "$SED"; then
5401   ac_path_SED_found=false
5402   # Loop through the user's path and test for each of PROGNAME-LIST
5403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH
5405 do
5406   IFS=$as_save_IFS
5407   test -z "$as_dir" && as_dir=.
5408     for ac_prog in sed gsed; do
5409     for ac_exec_ext in '' $ac_executable_extensions; do
5410       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5411       as_fn_executable_p "$ac_path_SED" || continue
5412 # Check for GNU ac_path_SED and select it if it is found.
5413   # Check for GNU $ac_path_SED
5414 case `"$ac_path_SED" --version 2>&1` in
5415 *GNU*)
5416   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5417 *)
5418   ac_count=0
5419   $as_echo_n 0123456789 >"conftest.in"
5420   while :
5421   do
5422     cat "conftest.in" "conftest.in" >"conftest.tmp"
5423     mv "conftest.tmp" "conftest.in"
5424     cp "conftest.in" "conftest.nl"
5425     $as_echo '' >> "conftest.nl"
5426     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5427     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5428     as_fn_arith $ac_count + 1 && ac_count=$as_val
5429     if test $ac_count -gt ${ac_path_SED_max-0}; then
5430       # Best one so far, save it but keep looking for a better one
5431       ac_cv_path_SED="$ac_path_SED"
5432       ac_path_SED_max=$ac_count
5433     fi
5434     # 10*(2^10) chars as input seems more than enough
5435     test $ac_count -gt 10 && break
5436   done
5437   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5438 esac
5439
5440       $ac_path_SED_found && break 3
5441     done
5442   done
5443   done
5444 IFS=$as_save_IFS
5445   if test -z "$ac_cv_path_SED"; then
5446     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5447   fi
5448 else
5449   ac_cv_path_SED=$SED
5450 fi
5451
5452 fi
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5454 $as_echo "$ac_cv_path_SED" >&6; }
5455  SED="$ac_cv_path_SED"
5456   rm -f conftest.sed
5457
5458 test -z "$SED" && SED=sed
5459 Xsed="$SED -e 1s/^X//"
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5472 $as_echo_n "checking for fgrep... " >&6; }
5473 if ${ac_cv_path_FGREP+:} false; then :
5474   $as_echo_n "(cached) " >&6
5475 else
5476   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5477    then ac_cv_path_FGREP="$GREP -F"
5478    else
5479      if test -z "$FGREP"; then
5480   ac_path_FGREP_found=false
5481   # Loop through the user's path and test for each of PROGNAME-LIST
5482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5484 do
5485   IFS=$as_save_IFS
5486   test -z "$as_dir" && as_dir=.
5487     for ac_prog in fgrep; do
5488     for ac_exec_ext in '' $ac_executable_extensions; do
5489       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5490       as_fn_executable_p "$ac_path_FGREP" || continue
5491 # Check for GNU ac_path_FGREP and select it if it is found.
5492   # Check for GNU $ac_path_FGREP
5493 case `"$ac_path_FGREP" --version 2>&1` in
5494 *GNU*)
5495   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5496 *)
5497   ac_count=0
5498   $as_echo_n 0123456789 >"conftest.in"
5499   while :
5500   do
5501     cat "conftest.in" "conftest.in" >"conftest.tmp"
5502     mv "conftest.tmp" "conftest.in"
5503     cp "conftest.in" "conftest.nl"
5504     $as_echo 'FGREP' >> "conftest.nl"
5505     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5506     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5507     as_fn_arith $ac_count + 1 && ac_count=$as_val
5508     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5509       # Best one so far, save it but keep looking for a better one
5510       ac_cv_path_FGREP="$ac_path_FGREP"
5511       ac_path_FGREP_max=$ac_count
5512     fi
5513     # 10*(2^10) chars as input seems more than enough
5514     test $ac_count -gt 10 && break
5515   done
5516   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5517 esac
5518
5519       $ac_path_FGREP_found && break 3
5520     done
5521   done
5522   done
5523 IFS=$as_save_IFS
5524   if test -z "$ac_cv_path_FGREP"; then
5525     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5526   fi
5527 else
5528   ac_cv_path_FGREP=$FGREP
5529 fi
5530
5531    fi
5532 fi
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5534 $as_echo "$ac_cv_path_FGREP" >&6; }
5535  FGREP="$ac_cv_path_FGREP"
5536
5537
5538 test -z "$GREP" && GREP=grep
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558 # Check whether --with-gnu-ld was given.
5559 if test "${with_gnu_ld+set}" = set; then :
5560   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5561 else
5562   with_gnu_ld=no
5563 fi
5564
5565 ac_prog=ld
5566 if test "$GCC" = yes; then
5567   # Check if gcc -print-prog-name=ld gives a path.
5568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5569 $as_echo_n "checking for ld used by $CC... " >&6; }
5570   case $host in
5571   *-*-mingw*)
5572     # gcc leaves a trailing carriage return which upsets mingw
5573     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5574   *)
5575     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5576   esac
5577   case $ac_prog in
5578     # Accept absolute paths.
5579     [\\/]* | ?:[\\/]*)
5580       re_direlt='/[^/][^/]*/\.\./'
5581       # Canonicalize the pathname of ld
5582       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5583       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5584         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5585       done
5586       test -z "$LD" && LD="$ac_prog"
5587       ;;
5588   "")
5589     # If it fails, then pretend we aren't using GCC.
5590     ac_prog=ld
5591     ;;
5592   *)
5593     # If it is relative, then search for the first ld in PATH.
5594     with_gnu_ld=unknown
5595     ;;
5596   esac
5597 elif test "$with_gnu_ld" = yes; then
5598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5599 $as_echo_n "checking for GNU ld... " >&6; }
5600 else
5601   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5602 $as_echo_n "checking for non-GNU ld... " >&6; }
5603 fi
5604 if ${lt_cv_path_LD+:} false; then :
5605   $as_echo_n "(cached) " >&6
5606 else
5607   if test -z "$LD"; then
5608   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5609   for ac_dir in $PATH; do
5610     IFS="$lt_save_ifs"
5611     test -z "$ac_dir" && ac_dir=.
5612     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5613       lt_cv_path_LD="$ac_dir/$ac_prog"
5614       # Check to see if the program is GNU ld.  I'd rather use --version,
5615       # but apparently some variants of GNU ld only accept -v.
5616       # Break only if it was the GNU/non-GNU ld that we prefer.
5617       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5618       *GNU* | *'with BFD'*)
5619         test "$with_gnu_ld" != no && break
5620         ;;
5621       *)
5622         test "$with_gnu_ld" != yes && break
5623         ;;
5624       esac
5625     fi
5626   done
5627   IFS="$lt_save_ifs"
5628 else
5629   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5630 fi
5631 fi
5632
5633 LD="$lt_cv_path_LD"
5634 if test -n "$LD"; then
5635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5636 $as_echo "$LD" >&6; }
5637 else
5638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5639 $as_echo "no" >&6; }
5640 fi
5641 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5643 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5644 if ${lt_cv_prog_gnu_ld+:} false; then :
5645   $as_echo_n "(cached) " >&6
5646 else
5647   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5648 case `$LD -v 2>&1 </dev/null` in
5649 *GNU* | *'with BFD'*)
5650   lt_cv_prog_gnu_ld=yes
5651   ;;
5652 *)
5653   lt_cv_prog_gnu_ld=no
5654   ;;
5655 esac
5656 fi
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5658 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5659 with_gnu_ld=$lt_cv_prog_gnu_ld
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5670 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5671 if ${lt_cv_path_NM+:} false; then :
5672   $as_echo_n "(cached) " >&6
5673 else
5674   if test -n "$NM"; then
5675   # Let the user override the test.
5676   lt_cv_path_NM="$NM"
5677 else
5678   lt_nm_to_check="${ac_tool_prefix}nm"
5679   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5680     lt_nm_to_check="$lt_nm_to_check nm"
5681   fi
5682   for lt_tmp_nm in $lt_nm_to_check; do
5683     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5684     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5685       IFS="$lt_save_ifs"
5686       test -z "$ac_dir" && ac_dir=.
5687       tmp_nm="$ac_dir/$lt_tmp_nm"
5688       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5689         # Check to see if the nm accepts a BSD-compat flag.
5690         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5691         #   nm: unknown option "B" ignored
5692         # Tru64's nm complains that /dev/null is an invalid object file
5693         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5694         */dev/null* | *'Invalid file or object type'*)
5695           lt_cv_path_NM="$tmp_nm -B"
5696           break
5697           ;;
5698         *)
5699           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5700           */dev/null*)
5701             lt_cv_path_NM="$tmp_nm -p"
5702             break
5703             ;;
5704           *)
5705             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5706             continue # so that we can try to find one that supports BSD flags
5707             ;;
5708           esac
5709           ;;
5710         esac
5711       fi
5712     done
5713     IFS="$lt_save_ifs"
5714   done
5715   : ${lt_cv_path_NM=no}
5716 fi
5717 fi
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5719 $as_echo "$lt_cv_path_NM" >&6; }
5720 if test "$lt_cv_path_NM" != "no"; then
5721   NM="$lt_cv_path_NM"
5722 else
5723   # Didn't find any BSD compatible name lister, look for dumpbin.
5724   if test -n "$DUMPBIN"; then :
5725     # Let the user override the test.
5726   else
5727     if test -n "$ac_tool_prefix"; then
5728   for ac_prog in dumpbin "link -dump"
5729   do
5730     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5731 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if ${ac_cv_prog_DUMPBIN+:} false; then :
5735   $as_echo_n "(cached) " >&6
5736 else
5737   if test -n "$DUMPBIN"; then
5738   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5739 else
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 for as_dir in $PATH
5742 do
5743   IFS=$as_save_IFS
5744   test -z "$as_dir" && as_dir=.
5745     for ac_exec_ext in '' $ac_executable_extensions; do
5746   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5747     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5749     break 2
5750   fi
5751 done
5752   done
5753 IFS=$as_save_IFS
5754
5755 fi
5756 fi
5757 DUMPBIN=$ac_cv_prog_DUMPBIN
5758 if test -n "$DUMPBIN"; then
5759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5760 $as_echo "$DUMPBIN" >&6; }
5761 else
5762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }
5764 fi
5765
5766
5767     test -n "$DUMPBIN" && break
5768   done
5769 fi
5770 if test -z "$DUMPBIN"; then
5771   ac_ct_DUMPBIN=$DUMPBIN
5772   for ac_prog in dumpbin "link -dump"
5773 do
5774   # Extract the first word of "$ac_prog", so it can be a program name with args.
5775 set dummy $ac_prog; ac_word=$2
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5777 $as_echo_n "checking for $ac_word... " >&6; }
5778 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5779   $as_echo_n "(cached) " >&6
5780 else
5781   if test -n "$ac_ct_DUMPBIN"; then
5782   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5783 else
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 for as_dir in $PATH
5786 do
5787   IFS=$as_save_IFS
5788   test -z "$as_dir" && as_dir=.
5789     for ac_exec_ext in '' $ac_executable_extensions; do
5790   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5791     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5793     break 2
5794   fi
5795 done
5796   done
5797 IFS=$as_save_IFS
5798
5799 fi
5800 fi
5801 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5802 if test -n "$ac_ct_DUMPBIN"; then
5803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5804 $as_echo "$ac_ct_DUMPBIN" >&6; }
5805 else
5806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807 $as_echo "no" >&6; }
5808 fi
5809
5810
5811   test -n "$ac_ct_DUMPBIN" && break
5812 done
5813
5814   if test "x$ac_ct_DUMPBIN" = x; then
5815     DUMPBIN=":"
5816   else
5817     case $cross_compiling:$ac_tool_warned in
5818 yes:)
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5821 ac_tool_warned=yes ;;
5822 esac
5823     DUMPBIN=$ac_ct_DUMPBIN
5824   fi
5825 fi
5826
5827     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5828     *COFF*)
5829       DUMPBIN="$DUMPBIN -symbols"
5830       ;;
5831     *)
5832       DUMPBIN=:
5833       ;;
5834     esac
5835   fi
5836
5837   if test "$DUMPBIN" != ":"; then
5838     NM="$DUMPBIN"
5839   fi
5840 fi
5841 test -z "$NM" && NM=nm
5842
5843
5844
5845
5846
5847
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5849 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5850 if ${lt_cv_nm_interface+:} false; then :
5851   $as_echo_n "(cached) " >&6
5852 else
5853   lt_cv_nm_interface="BSD nm"
5854   echo "int some_variable = 0;" > conftest.$ac_ext
5855   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5856   (eval "$ac_compile" 2>conftest.err)
5857   cat conftest.err >&5
5858   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5859   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5860   cat conftest.err >&5
5861   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5862   cat conftest.out >&5
5863   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5864     lt_cv_nm_interface="MS dumpbin"
5865   fi
5866   rm -f conftest*
5867 fi
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5869 $as_echo "$lt_cv_nm_interface" >&6; }
5870
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5872 $as_echo_n "checking whether ln -s works... " >&6; }
5873 LN_S=$as_ln_s
5874 if test "$LN_S" = "ln -s"; then
5875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5876 $as_echo "yes" >&6; }
5877 else
5878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5879 $as_echo "no, using $LN_S" >&6; }
5880 fi
5881
5882 # find the maximum length of command line arguments
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5884 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5885 if ${lt_cv_sys_max_cmd_len+:} false; then :
5886   $as_echo_n "(cached) " >&6
5887 else
5888     i=0
5889   teststring="ABCD"
5890
5891   case $build_os in
5892   msdosdjgpp*)
5893     # On DJGPP, this test can blow up pretty badly due to problems in libc
5894     # (any single argument exceeding 2000 bytes causes a buffer overrun
5895     # during glob expansion).  Even if it were fixed, the result of this
5896     # check would be larger than it should be.
5897     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5898     ;;
5899
5900   gnu*)
5901     # Under GNU Hurd, this test is not required because there is
5902     # no limit to the length of command line arguments.
5903     # Libtool will interpret -1 as no limit whatsoever
5904     lt_cv_sys_max_cmd_len=-1;
5905     ;;
5906
5907   cygwin* | mingw* | cegcc*)
5908     # On Win9x/ME, this test blows up -- it succeeds, but takes
5909     # about 5 minutes as the teststring grows exponentially.
5910     # Worse, since 9x/ME are not pre-emptively multitasking,
5911     # you end up with a "frozen" computer, even though with patience
5912     # the test eventually succeeds (with a max line length of 256k).
5913     # Instead, let's just punt: use the minimum linelength reported by
5914     # all of the supported platforms: 8192 (on NT/2K/XP).
5915     lt_cv_sys_max_cmd_len=8192;
5916     ;;
5917
5918   mint*)
5919     # On MiNT this can take a long time and run out of memory.
5920     lt_cv_sys_max_cmd_len=8192;
5921     ;;
5922
5923   amigaos*)
5924     # On AmigaOS with pdksh, this test takes hours, literally.
5925     # So we just punt and use a minimum line length of 8192.
5926     lt_cv_sys_max_cmd_len=8192;
5927     ;;
5928
5929   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5930     # This has been around since 386BSD, at least.  Likely further.
5931     if test -x /sbin/sysctl; then
5932       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5933     elif test -x /usr/sbin/sysctl; then
5934       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5935     else
5936       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5937     fi
5938     # And add a safety zone
5939     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5940     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5941     ;;
5942
5943   interix*)
5944     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5945     lt_cv_sys_max_cmd_len=196608
5946     ;;
5947
5948   os2*)
5949     # The test takes a long time on OS/2.
5950     lt_cv_sys_max_cmd_len=8192
5951     ;;
5952
5953   osf*)
5954     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5955     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5956     # nice to cause kernel panics so lets avoid the loop below.
5957     # First set a reasonable default.
5958     lt_cv_sys_max_cmd_len=16384
5959     #
5960     if test -x /sbin/sysconfig; then
5961       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5962         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5963       esac
5964     fi
5965     ;;
5966   sco3.2v5*)
5967     lt_cv_sys_max_cmd_len=102400
5968     ;;
5969   sysv5* | sco5v6* | sysv4.2uw2*)
5970     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5971     if test -n "$kargmax"; then
5972       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5973     else
5974       lt_cv_sys_max_cmd_len=32768
5975     fi
5976     ;;
5977   *)
5978     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5979     if test -n "$lt_cv_sys_max_cmd_len"; then
5980       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5981       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5982     else
5983       # Make teststring a little bigger before we do anything with it.
5984       # a 1K string should be a reasonable start.
5985       for i in 1 2 3 4 5 6 7 8 ; do
5986         teststring=$teststring$teststring
5987       done
5988       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5989       # If test is not a shell built-in, we'll probably end up computing a
5990       # maximum length that is only half of the actual maximum length, but
5991       # we can't tell.
5992       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5993                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5994               test $i != 17 # 1/2 MB should be enough
5995       do
5996         i=`expr $i + 1`
5997         teststring=$teststring$teststring
5998       done
5999       # Only check the string length outside the loop.
6000       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6001       teststring=
6002       # Add a significant safety factor because C++ compilers can tack on
6003       # massive amounts of additional arguments before passing them to the
6004       # linker.  It appears as though 1/2 is a usable value.
6005       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6006     fi
6007     ;;
6008   esac
6009
6010 fi
6011
6012 if test -n $lt_cv_sys_max_cmd_len ; then
6013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6014 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6015 else
6016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6017 $as_echo "none" >&6; }
6018 fi
6019 max_cmd_len=$lt_cv_sys_max_cmd_len
6020
6021
6022
6023
6024
6025
6026 : ${CP="cp -f"}
6027 : ${MV="mv -f"}
6028 : ${RM="rm -f"}
6029
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6031 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6032 # Try some XSI features
6033 xsi_shell=no
6034 ( _lt_dummy="a/b/c"
6035   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6036       = c,a/b,b/c, \
6037     && eval 'test $(( 1 + 1 )) -eq 2 \
6038     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6039   && xsi_shell=yes
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6041 $as_echo "$xsi_shell" >&6; }
6042
6043
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6045 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6046 lt_shell_append=no
6047 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6048     >/dev/null 2>&1 \
6049   && lt_shell_append=yes
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6051 $as_echo "$lt_shell_append" >&6; }
6052
6053
6054 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6055   lt_unset=unset
6056 else
6057   lt_unset=false
6058 fi
6059
6060
6061
6062
6063
6064 # test EBCDIC or ASCII
6065 case `echo X|tr X '\101'` in
6066  A) # ASCII based system
6067     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6068   lt_SP2NL='tr \040 \012'
6069   lt_NL2SP='tr \015\012 \040\040'
6070   ;;
6071  *) # EBCDIC based system
6072   lt_SP2NL='tr \100 \n'
6073   lt_NL2SP='tr \r\n \100\100'
6074   ;;
6075 esac
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6086 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6087 if ${lt_cv_to_host_file_cmd+:} false; then :
6088   $as_echo_n "(cached) " >&6
6089 else
6090   case $host in
6091   *-*-mingw* )
6092     case $build in
6093       *-*-mingw* ) # actually msys
6094         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6095         ;;
6096       *-*-cygwin* )
6097         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6098         ;;
6099       * ) # otherwise, assume *nix
6100         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6101         ;;
6102     esac
6103     ;;
6104   *-*-cygwin* )
6105     case $build in
6106       *-*-mingw* ) # actually msys
6107         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6108         ;;
6109       *-*-cygwin* )
6110         lt_cv_to_host_file_cmd=func_convert_file_noop
6111         ;;
6112       * ) # otherwise, assume *nix
6113         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6114         ;;
6115     esac
6116     ;;
6117   * ) # unhandled hosts (and "normal" native builds)
6118     lt_cv_to_host_file_cmd=func_convert_file_noop
6119     ;;
6120 esac
6121
6122 fi
6123
6124 to_host_file_cmd=$lt_cv_to_host_file_cmd
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6126 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6127
6128
6129
6130
6131
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6133 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6134 if ${lt_cv_to_tool_file_cmd+:} false; then :
6135   $as_echo_n "(cached) " >&6
6136 else
6137   #assume ordinary cross tools, or native build.
6138 lt_cv_to_tool_file_cmd=func_convert_file_noop
6139 case $host in
6140   *-*-mingw* )
6141     case $build in
6142       *-*-mingw* ) # actually msys
6143         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6144         ;;
6145     esac
6146     ;;
6147 esac
6148
6149 fi
6150
6151 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6153 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6154
6155
6156
6157
6158
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6160 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6161 if ${lt_cv_ld_reload_flag+:} false; then :
6162   $as_echo_n "(cached) " >&6
6163 else
6164   lt_cv_ld_reload_flag='-r'
6165 fi
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6167 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6168 reload_flag=$lt_cv_ld_reload_flag
6169 case $reload_flag in
6170 "" | " "*) ;;
6171 *) reload_flag=" $reload_flag" ;;
6172 esac
6173 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6174 case $host_os in
6175   cygwin* | mingw* | pw32* | cegcc*)
6176     if test "$GCC" != yes; then
6177       reload_cmds=false
6178     fi
6179     ;;
6180   darwin*)
6181     if test "$GCC" = yes; then
6182       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6183     else
6184       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6185     fi
6186     ;;
6187 esac
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197 if test -n "$ac_tool_prefix"; then
6198   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6199 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201 $as_echo_n "checking for $ac_word... " >&6; }
6202 if ${ac_cv_prog_OBJDUMP+:} false; then :
6203   $as_echo_n "(cached) " >&6
6204 else
6205   if test -n "$OBJDUMP"; then
6206   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6207 else
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 for as_dir in $PATH
6210 do
6211   IFS=$as_save_IFS
6212   test -z "$as_dir" && as_dir=.
6213     for ac_exec_ext in '' $ac_executable_extensions; do
6214   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6215     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6217     break 2
6218   fi
6219 done
6220   done
6221 IFS=$as_save_IFS
6222
6223 fi
6224 fi
6225 OBJDUMP=$ac_cv_prog_OBJDUMP
6226 if test -n "$OBJDUMP"; then
6227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6228 $as_echo "$OBJDUMP" >&6; }
6229 else
6230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6231 $as_echo "no" >&6; }
6232 fi
6233
6234
6235 fi
6236 if test -z "$ac_cv_prog_OBJDUMP"; then
6237   ac_ct_OBJDUMP=$OBJDUMP
6238   # Extract the first word of "objdump", so it can be a program name with args.
6239 set dummy objdump; ac_word=$2
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6241 $as_echo_n "checking for $ac_word... " >&6; }
6242 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6243   $as_echo_n "(cached) " >&6
6244 else
6245   if test -n "$ac_ct_OBJDUMP"; then
6246   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6247 else
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 for as_dir in $PATH
6250 do
6251   IFS=$as_save_IFS
6252   test -z "$as_dir" && as_dir=.
6253     for ac_exec_ext in '' $ac_executable_extensions; do
6254   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6255     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6257     break 2
6258   fi
6259 done
6260   done
6261 IFS=$as_save_IFS
6262
6263 fi
6264 fi
6265 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6266 if test -n "$ac_ct_OBJDUMP"; then
6267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6268 $as_echo "$ac_ct_OBJDUMP" >&6; }
6269 else
6270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6271 $as_echo "no" >&6; }
6272 fi
6273
6274   if test "x$ac_ct_OBJDUMP" = x; then
6275     OBJDUMP="false"
6276   else
6277     case $cross_compiling:$ac_tool_warned in
6278 yes:)
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6281 ac_tool_warned=yes ;;
6282 esac
6283     OBJDUMP=$ac_ct_OBJDUMP
6284   fi
6285 else
6286   OBJDUMP="$ac_cv_prog_OBJDUMP"
6287 fi
6288
6289 test -z "$OBJDUMP" && OBJDUMP=objdump
6290
6291
6292
6293
6294
6295
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6297 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6298 if ${lt_cv_deplibs_check_method+:} false; then :
6299   $as_echo_n "(cached) " >&6
6300 else
6301   lt_cv_file_magic_cmd='$MAGIC_CMD'
6302 lt_cv_file_magic_test_file=
6303 lt_cv_deplibs_check_method='unknown'
6304 # Need to set the preceding variable on all platforms that support
6305 # interlibrary dependencies.
6306 # 'none' -- dependencies not supported.
6307 # `unknown' -- same as none, but documents that we really don't know.
6308 # 'pass_all' -- all dependencies passed with no checks.
6309 # 'test_compile' -- check by making test program.
6310 # 'file_magic [[regex]]' -- check by looking for files in library path
6311 # which responds to the $file_magic_cmd with a given extended regex.
6312 # If you have `file' or equivalent on your system and you're not sure
6313 # whether `pass_all' will *always* work, you probably want this one.
6314
6315 case $host_os in
6316 aix[4-9]*)
6317   lt_cv_deplibs_check_method=pass_all
6318   ;;
6319
6320 beos*)
6321   lt_cv_deplibs_check_method=pass_all
6322   ;;
6323
6324 bsdi[45]*)
6325   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6326   lt_cv_file_magic_cmd='/usr/bin/file -L'
6327   lt_cv_file_magic_test_file=/shlib/libc.so
6328   ;;
6329
6330 cygwin*)
6331   # func_win32_libid is a shell function defined in ltmain.sh
6332   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6333   lt_cv_file_magic_cmd='func_win32_libid'
6334   ;;
6335
6336 mingw* | pw32*)
6337   # Base MSYS/MinGW do not provide the 'file' command needed by
6338   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6339   # unless we find 'file', for example because we are cross-compiling.
6340   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6341   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6342     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6343     lt_cv_file_magic_cmd='func_win32_libid'
6344   else
6345     # Keep this pattern in sync with the one in func_win32_libid.
6346     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6347     lt_cv_file_magic_cmd='$OBJDUMP -f'
6348   fi
6349   ;;
6350
6351 cegcc*)
6352   # use the weaker test based on 'objdump'. See mingw*.
6353   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6354   lt_cv_file_magic_cmd='$OBJDUMP -f'
6355   ;;
6356
6357 darwin* | rhapsody*)
6358   lt_cv_deplibs_check_method=pass_all
6359   ;;
6360
6361 freebsd* | dragonfly*)
6362   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6363     case $host_cpu in
6364     i*86 )
6365       # Not sure whether the presence of OpenBSD here was a mistake.
6366       # Let's accept both of them until this is cleared up.
6367       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6368       lt_cv_file_magic_cmd=/usr/bin/file
6369       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6370       ;;
6371     esac
6372   else
6373     lt_cv_deplibs_check_method=pass_all
6374   fi
6375   ;;
6376
6377 gnu*)
6378   lt_cv_deplibs_check_method=pass_all
6379   ;;
6380
6381 haiku*)
6382   lt_cv_deplibs_check_method=pass_all
6383   ;;
6384
6385 hpux10.20* | hpux11*)
6386   lt_cv_file_magic_cmd=/usr/bin/file
6387   case $host_cpu in
6388   ia64*)
6389     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6390     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6391     ;;
6392   hppa*64*)
6393     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]'
6394     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6395     ;;
6396   *)
6397     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6398     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6399     ;;
6400   esac
6401   ;;
6402
6403 interix[3-9]*)
6404   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6405   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6406   ;;
6407
6408 irix5* | irix6* | nonstopux*)
6409   case $LD in
6410   *-32|*"-32 ") libmagic=32-bit;;
6411   *-n32|*"-n32 ") libmagic=N32;;
6412   *-64|*"-64 ") libmagic=64-bit;;
6413   *) libmagic=never-match;;
6414   esac
6415   lt_cv_deplibs_check_method=pass_all
6416   ;;
6417
6418 # This must be glibc/ELF.
6419 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6420   lt_cv_deplibs_check_method=pass_all
6421   ;;
6422
6423 netbsd* | netbsdelf*-gnu)
6424   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6425     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6426   else
6427     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6428   fi
6429   ;;
6430
6431 newos6*)
6432   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6433   lt_cv_file_magic_cmd=/usr/bin/file
6434   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6435   ;;
6436
6437 *nto* | *qnx*)
6438   lt_cv_deplibs_check_method=pass_all
6439   ;;
6440
6441 openbsd*)
6442   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6443     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6444   else
6445     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6446   fi
6447   ;;
6448
6449 osf3* | osf4* | osf5*)
6450   lt_cv_deplibs_check_method=pass_all
6451   ;;
6452
6453 rdos*)
6454   lt_cv_deplibs_check_method=pass_all
6455   ;;
6456
6457 solaris*)
6458   lt_cv_deplibs_check_method=pass_all
6459   ;;
6460
6461 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6462   lt_cv_deplibs_check_method=pass_all
6463   ;;
6464
6465 sysv4 | sysv4.3*)
6466   case $host_vendor in
6467   motorola)
6468     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]'
6469     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6470     ;;
6471   ncr)
6472     lt_cv_deplibs_check_method=pass_all
6473     ;;
6474   sequent)
6475     lt_cv_file_magic_cmd='/bin/file'
6476     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6477     ;;
6478   sni)
6479     lt_cv_file_magic_cmd='/bin/file'
6480     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6481     lt_cv_file_magic_test_file=/lib/libc.so
6482     ;;
6483   siemens)
6484     lt_cv_deplibs_check_method=pass_all
6485     ;;
6486   pc)
6487     lt_cv_deplibs_check_method=pass_all
6488     ;;
6489   esac
6490   ;;
6491
6492 tpf*)
6493   lt_cv_deplibs_check_method=pass_all
6494   ;;
6495 esac
6496
6497 fi
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6499 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6500
6501 file_magic_glob=
6502 want_nocaseglob=no
6503 if test "$build" = "$host"; then
6504   case $host_os in
6505   mingw* | pw32*)
6506     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6507       want_nocaseglob=yes
6508     else
6509       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6510     fi
6511     ;;
6512   esac
6513 fi
6514
6515 file_magic_cmd=$lt_cv_file_magic_cmd
6516 deplibs_check_method=$lt_cv_deplibs_check_method
6517 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540 if test -n "$ac_tool_prefix"; then
6541   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6542 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544 $as_echo_n "checking for $ac_word... " >&6; }
6545 if ${ac_cv_prog_DLLTOOL+:} false; then :
6546   $as_echo_n "(cached) " >&6
6547 else
6548   if test -n "$DLLTOOL"; then
6549   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6550 else
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 for as_dir in $PATH
6553 do
6554   IFS=$as_save_IFS
6555   test -z "$as_dir" && as_dir=.
6556     for ac_exec_ext in '' $ac_executable_extensions; do
6557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6558     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6560     break 2
6561   fi
6562 done
6563   done
6564 IFS=$as_save_IFS
6565
6566 fi
6567 fi
6568 DLLTOOL=$ac_cv_prog_DLLTOOL
6569 if test -n "$DLLTOOL"; then
6570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6571 $as_echo "$DLLTOOL" >&6; }
6572 else
6573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574 $as_echo "no" >&6; }
6575 fi
6576
6577
6578 fi
6579 if test -z "$ac_cv_prog_DLLTOOL"; then
6580   ac_ct_DLLTOOL=$DLLTOOL
6581   # Extract the first word of "dlltool", so it can be a program name with args.
6582 set dummy dlltool; ac_word=$2
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6584 $as_echo_n "checking for $ac_word... " >&6; }
6585 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6586   $as_echo_n "(cached) " >&6
6587 else
6588   if test -n "$ac_ct_DLLTOOL"; then
6589   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6590 else
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 for as_dir in $PATH
6593 do
6594   IFS=$as_save_IFS
6595   test -z "$as_dir" && as_dir=.
6596     for ac_exec_ext in '' $ac_executable_extensions; do
6597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6598     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6600     break 2
6601   fi
6602 done
6603   done
6604 IFS=$as_save_IFS
6605
6606 fi
6607 fi
6608 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6609 if test -n "$ac_ct_DLLTOOL"; then
6610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6611 $as_echo "$ac_ct_DLLTOOL" >&6; }
6612 else
6613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614 $as_echo "no" >&6; }
6615 fi
6616
6617   if test "x$ac_ct_DLLTOOL" = x; then
6618     DLLTOOL="false"
6619   else
6620     case $cross_compiling:$ac_tool_warned in
6621 yes:)
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6624 ac_tool_warned=yes ;;
6625 esac
6626     DLLTOOL=$ac_ct_DLLTOOL
6627   fi
6628 else
6629   DLLTOOL="$ac_cv_prog_DLLTOOL"
6630 fi
6631
6632 test -z "$DLLTOOL" && DLLTOOL=dlltool
6633
6634
6635
6636
6637
6638
6639
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6641 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6642 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6643   $as_echo_n "(cached) " >&6
6644 else
6645   lt_cv_sharedlib_from_linklib_cmd='unknown'
6646
6647 case $host_os in
6648 cygwin* | mingw* | pw32* | cegcc*)
6649   # two different shell functions defined in ltmain.sh
6650   # decide which to use based on capabilities of $DLLTOOL
6651   case `$DLLTOOL --help 2>&1` in
6652   *--identify-strict*)
6653     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6654     ;;
6655   *)
6656     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6657     ;;
6658   esac
6659   ;;
6660 *)
6661   # fallback: assume linklib IS sharedlib
6662   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6663   ;;
6664 esac
6665
6666 fi
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6668 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6669 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6670 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6671
6672
6673
6674
6675
6676
6677
6678 if test -n "$ac_tool_prefix"; then
6679   for ac_prog in ar
6680   do
6681     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6682 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684 $as_echo_n "checking for $ac_word... " >&6; }
6685 if ${ac_cv_prog_AR+:} false; then :
6686   $as_echo_n "(cached) " >&6
6687 else
6688   if test -n "$AR"; then
6689   ac_cv_prog_AR="$AR" # Let the user override the test.
6690 else
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 for as_dir in $PATH
6693 do
6694   IFS=$as_save_IFS
6695   test -z "$as_dir" && as_dir=.
6696     for ac_exec_ext in '' $ac_executable_extensions; do
6697   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6698     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6700     break 2
6701   fi
6702 done
6703   done
6704 IFS=$as_save_IFS
6705
6706 fi
6707 fi
6708 AR=$ac_cv_prog_AR
6709 if test -n "$AR"; then
6710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6711 $as_echo "$AR" >&6; }
6712 else
6713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6714 $as_echo "no" >&6; }
6715 fi
6716
6717
6718     test -n "$AR" && break
6719   done
6720 fi
6721 if test -z "$AR"; then
6722   ac_ct_AR=$AR
6723   for ac_prog in ar
6724 do
6725   # Extract the first word of "$ac_prog", so it can be a program name with args.
6726 set dummy $ac_prog; ac_word=$2
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728 $as_echo_n "checking for $ac_word... " >&6; }
6729 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6730   $as_echo_n "(cached) " >&6
6731 else
6732   if test -n "$ac_ct_AR"; then
6733   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6734 else
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 for as_dir in $PATH
6737 do
6738   IFS=$as_save_IFS
6739   test -z "$as_dir" && as_dir=.
6740     for ac_exec_ext in '' $ac_executable_extensions; do
6741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6742     ac_cv_prog_ac_ct_AR="$ac_prog"
6743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6744     break 2
6745   fi
6746 done
6747   done
6748 IFS=$as_save_IFS
6749
6750 fi
6751 fi
6752 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6753 if test -n "$ac_ct_AR"; then
6754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6755 $as_echo "$ac_ct_AR" >&6; }
6756 else
6757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 $as_echo "no" >&6; }
6759 fi
6760
6761
6762   test -n "$ac_ct_AR" && break
6763 done
6764
6765   if test "x$ac_ct_AR" = x; then
6766     AR="false"
6767   else
6768     case $cross_compiling:$ac_tool_warned in
6769 yes:)
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6772 ac_tool_warned=yes ;;
6773 esac
6774     AR=$ac_ct_AR
6775   fi
6776 fi
6777
6778 : ${AR=ar}
6779 : ${AR_FLAGS=cru}
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6792 $as_echo_n "checking for archiver @FILE support... " >&6; }
6793 if ${lt_cv_ar_at_file+:} false; then :
6794   $as_echo_n "(cached) " >&6
6795 else
6796   lt_cv_ar_at_file=no
6797    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798 /* end confdefs.h.  */
6799
6800 int
6801 main ()
6802 {
6803
6804   ;
6805   return 0;
6806 }
6807 _ACEOF
6808 if ac_fn_c_try_compile "$LINENO"; then :
6809   echo conftest.$ac_objext > conftest.lst
6810       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6811       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6812   (eval $lt_ar_try) 2>&5
6813   ac_status=$?
6814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6815   test $ac_status = 0; }
6816       if test "$ac_status" -eq 0; then
6817         # Ensure the archiver fails upon bogus file names.
6818         rm -f conftest.$ac_objext libconftest.a
6819         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6820   (eval $lt_ar_try) 2>&5
6821   ac_status=$?
6822   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6823   test $ac_status = 0; }
6824         if test "$ac_status" -ne 0; then
6825           lt_cv_ar_at_file=@
6826         fi
6827       fi
6828       rm -f conftest.* libconftest.a
6829
6830 fi
6831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6832
6833 fi
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6835 $as_echo "$lt_cv_ar_at_file" >&6; }
6836
6837 if test "x$lt_cv_ar_at_file" = xno; then
6838   archiver_list_spec=
6839 else
6840   archiver_list_spec=$lt_cv_ar_at_file
6841 fi
6842
6843
6844
6845
6846
6847
6848
6849 if test -n "$ac_tool_prefix"; then
6850   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6851 set dummy ${ac_tool_prefix}strip; ac_word=$2
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6853 $as_echo_n "checking for $ac_word... " >&6; }
6854 if ${ac_cv_prog_STRIP+:} false; then :
6855   $as_echo_n "(cached) " >&6
6856 else
6857   if test -n "$STRIP"; then
6858   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6859 else
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 for as_dir in $PATH
6862 do
6863   IFS=$as_save_IFS
6864   test -z "$as_dir" && as_dir=.
6865     for ac_exec_ext in '' $ac_executable_extensions; do
6866   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6867     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6869     break 2
6870   fi
6871 done
6872   done
6873 IFS=$as_save_IFS
6874
6875 fi
6876 fi
6877 STRIP=$ac_cv_prog_STRIP
6878 if test -n "$STRIP"; then
6879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6880 $as_echo "$STRIP" >&6; }
6881 else
6882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6883 $as_echo "no" >&6; }
6884 fi
6885
6886
6887 fi
6888 if test -z "$ac_cv_prog_STRIP"; then
6889   ac_ct_STRIP=$STRIP
6890   # Extract the first word of "strip", so it can be a program name with args.
6891 set dummy strip; ac_word=$2
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893 $as_echo_n "checking for $ac_word... " >&6; }
6894 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6895   $as_echo_n "(cached) " >&6
6896 else
6897   if test -n "$ac_ct_STRIP"; then
6898   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6899 else
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 for as_dir in $PATH
6902 do
6903   IFS=$as_save_IFS
6904   test -z "$as_dir" && as_dir=.
6905     for ac_exec_ext in '' $ac_executable_extensions; do
6906   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6907     ac_cv_prog_ac_ct_STRIP="strip"
6908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6909     break 2
6910   fi
6911 done
6912   done
6913 IFS=$as_save_IFS
6914
6915 fi
6916 fi
6917 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6918 if test -n "$ac_ct_STRIP"; then
6919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6920 $as_echo "$ac_ct_STRIP" >&6; }
6921 else
6922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923 $as_echo "no" >&6; }
6924 fi
6925
6926   if test "x$ac_ct_STRIP" = x; then
6927     STRIP=":"
6928   else
6929     case $cross_compiling:$ac_tool_warned in
6930 yes:)
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6933 ac_tool_warned=yes ;;
6934 esac
6935     STRIP=$ac_ct_STRIP
6936   fi
6937 else
6938   STRIP="$ac_cv_prog_STRIP"
6939 fi
6940
6941 test -z "$STRIP" && STRIP=:
6942
6943
6944
6945
6946
6947
6948 if test -n "$ac_tool_prefix"; then
6949   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6950 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if ${ac_cv_prog_RANLIB+:} false; then :
6954   $as_echo_n "(cached) " >&6
6955 else
6956   if test -n "$RANLIB"; then
6957   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6958 else
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 for as_dir in $PATH
6961 do
6962   IFS=$as_save_IFS
6963   test -z "$as_dir" && as_dir=.
6964     for ac_exec_ext in '' $ac_executable_extensions; do
6965   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6966     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6968     break 2
6969   fi
6970 done
6971   done
6972 IFS=$as_save_IFS
6973
6974 fi
6975 fi
6976 RANLIB=$ac_cv_prog_RANLIB
6977 if test -n "$RANLIB"; then
6978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6979 $as_echo "$RANLIB" >&6; }
6980 else
6981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982 $as_echo "no" >&6; }
6983 fi
6984
6985
6986 fi
6987 if test -z "$ac_cv_prog_RANLIB"; then
6988   ac_ct_RANLIB=$RANLIB
6989   # Extract the first word of "ranlib", so it can be a program name with args.
6990 set dummy ranlib; ac_word=$2
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6992 $as_echo_n "checking for $ac_word... " >&6; }
6993 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6994   $as_echo_n "(cached) " >&6
6995 else
6996   if test -n "$ac_ct_RANLIB"; then
6997   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6998 else
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 for as_dir in $PATH
7001 do
7002   IFS=$as_save_IFS
7003   test -z "$as_dir" && as_dir=.
7004     for ac_exec_ext in '' $ac_executable_extensions; do
7005   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7006     ac_cv_prog_ac_ct_RANLIB="ranlib"
7007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7008     break 2
7009   fi
7010 done
7011   done
7012 IFS=$as_save_IFS
7013
7014 fi
7015 fi
7016 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7017 if test -n "$ac_ct_RANLIB"; then
7018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7019 $as_echo "$ac_ct_RANLIB" >&6; }
7020 else
7021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022 $as_echo "no" >&6; }
7023 fi
7024
7025   if test "x$ac_ct_RANLIB" = x; then
7026     RANLIB=":"
7027   else
7028     case $cross_compiling:$ac_tool_warned in
7029 yes:)
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7032 ac_tool_warned=yes ;;
7033 esac
7034     RANLIB=$ac_ct_RANLIB
7035   fi
7036 else
7037   RANLIB="$ac_cv_prog_RANLIB"
7038 fi
7039
7040 test -z "$RANLIB" && RANLIB=:
7041
7042
7043
7044
7045
7046
7047 # Determine commands to create old-style static archives.
7048 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7049 old_postinstall_cmds='chmod 644 $oldlib'
7050 old_postuninstall_cmds=
7051
7052 if test -n "$RANLIB"; then
7053   case $host_os in
7054   openbsd*)
7055     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7056     ;;
7057   *)
7058     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7059     ;;
7060   esac
7061   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7062 fi
7063
7064 case $host_os in
7065   darwin*)
7066     lock_old_archive_extraction=yes ;;
7067   *)
7068     lock_old_archive_extraction=no ;;
7069 esac
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109 # If no C compiler was specified, use CC.
7110 LTCC=${LTCC-"$CC"}
7111
7112 # If no C compiler flags were specified, use CFLAGS.
7113 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7114
7115 # Allow CC to be a program name with arguments.
7116 compiler=$CC
7117
7118
7119 # Check for command to grab the raw symbol name followed by C symbol from nm.
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7121 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7122 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7123   $as_echo_n "(cached) " >&6
7124 else
7125
7126 # These are sane defaults that work on at least a few old systems.
7127 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7128
7129 # Character class describing NM global symbol codes.
7130 symcode='[BCDEGRST]'
7131
7132 # Regexp to match symbols that can be accessed directly from C.
7133 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7134
7135 # Define system-specific variables.
7136 case $host_os in
7137 aix*)
7138   symcode='[BCDT]'
7139   ;;
7140 cygwin* | mingw* | pw32* | cegcc*)
7141   symcode='[ABCDGISTW]'
7142   ;;
7143 hpux*)
7144   if test "$host_cpu" = ia64; then
7145     symcode='[ABCDEGRST]'
7146   fi
7147   ;;
7148 irix* | nonstopux*)
7149   symcode='[BCDEGRST]'
7150   ;;
7151 osf*)
7152   symcode='[BCDEGQRST]'
7153   ;;
7154 solaris*)
7155   symcode='[BDRT]'
7156   ;;
7157 sco3.2v5*)
7158   symcode='[DT]'
7159   ;;
7160 sysv4.2uw2*)
7161   symcode='[DT]'
7162   ;;
7163 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7164   symcode='[ABDT]'
7165   ;;
7166 sysv4)
7167   symcode='[DFNSTU]'
7168   ;;
7169 esac
7170
7171 # If we're using GNU nm, then use its standard symbol codes.
7172 case `$NM -V 2>&1` in
7173 *GNU* | *'with BFD'*)
7174   symcode='[ABCDGIRSTW]' ;;
7175 esac
7176
7177 # Transform an extracted symbol line into a proper C declaration.
7178 # Some systems (esp. on ia64) link data and code symbols differently,
7179 # so use this general approach.
7180 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7181
7182 # Transform an extracted symbol line into symbol name and symbol address
7183 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7184 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'"
7185
7186 # Handle CRLF in mingw tool chain
7187 opt_cr=
7188 case $build_os in
7189 mingw*)
7190   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7191   ;;
7192 esac
7193
7194 # Try without a prefix underscore, then with it.
7195 for ac_symprfx in "" "_"; do
7196
7197   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7198   symxfrm="\\1 $ac_symprfx\\2 \\2"
7199
7200   # Write the raw and C identifiers.
7201   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7202     # Fake it for dumpbin and say T for any non-static function
7203     # and D for any global variable.
7204     # Also find C++ and __fastcall symbols from MSVC++,
7205     # which start with @ or ?.
7206     lt_cv_sys_global_symbol_pipe="$AWK '"\
7207 "     {last_section=section; section=\$ 3};"\
7208 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7209 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7210 "     \$ 0!~/External *\|/{next};"\
7211 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7212 "     {if(hide[section]) next};"\
7213 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7214 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7215 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7216 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7217 "     ' prfx=^$ac_symprfx"
7218   else
7219     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7220   fi
7221   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7222
7223   # Check to see that the pipe works correctly.
7224   pipe_works=no
7225
7226   rm -f conftest*
7227   cat > conftest.$ac_ext <<_LT_EOF
7228 #ifdef __cplusplus
7229 extern "C" {
7230 #endif
7231 char nm_test_var;
7232 void nm_test_func(void);
7233 void nm_test_func(void){}
7234 #ifdef __cplusplus
7235 }
7236 #endif
7237 int main(){nm_test_var='a';nm_test_func();return(0);}
7238 _LT_EOF
7239
7240   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7241   (eval $ac_compile) 2>&5
7242   ac_status=$?
7243   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7244   test $ac_status = 0; }; then
7245     # Now try to grab the symbols.
7246     nlist=conftest.nm
7247     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7248   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7249   ac_status=$?
7250   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7251   test $ac_status = 0; } && test -s "$nlist"; then
7252       # Try sorting and uniquifying the output.
7253       if sort "$nlist" | uniq > "$nlist"T; then
7254         mv -f "$nlist"T "$nlist"
7255       else
7256         rm -f "$nlist"T
7257       fi
7258
7259       # Make sure that we snagged all the symbols we need.
7260       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7261         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7262           cat <<_LT_EOF > conftest.$ac_ext
7263 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7264 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7265 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7266    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7267 # define LT_DLSYM_CONST
7268 #elif defined(__osf__)
7269 /* This system does not cope well with relocations in const data.  */
7270 # define LT_DLSYM_CONST
7271 #else
7272 # define LT_DLSYM_CONST const
7273 #endif
7274
7275 #ifdef __cplusplus
7276 extern "C" {
7277 #endif
7278
7279 _LT_EOF
7280           # Now generate the symbol file.
7281           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7282
7283           cat <<_LT_EOF >> conftest.$ac_ext
7284
7285 /* The mapping between symbol names and symbols.  */
7286 LT_DLSYM_CONST struct {
7287   const char *name;
7288   void       *address;
7289 }
7290 lt__PROGRAM__LTX_preloaded_symbols[] =
7291 {
7292   { "@PROGRAM@", (void *) 0 },
7293 _LT_EOF
7294           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7295           cat <<\_LT_EOF >> conftest.$ac_ext
7296   {0, (void *) 0}
7297 };
7298
7299 /* This works around a problem in FreeBSD linker */
7300 #ifdef FREEBSD_WORKAROUND
7301 static const void *lt_preloaded_setup() {
7302   return lt__PROGRAM__LTX_preloaded_symbols;
7303 }
7304 #endif
7305
7306 #ifdef __cplusplus
7307 }
7308 #endif
7309 _LT_EOF
7310           # Now try linking the two files.
7311           mv conftest.$ac_objext conftstm.$ac_objext
7312           lt_globsym_save_LIBS=$LIBS
7313           lt_globsym_save_CFLAGS=$CFLAGS
7314           LIBS="conftstm.$ac_objext"
7315           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7316           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7317   (eval $ac_link) 2>&5
7318   ac_status=$?
7319   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7320   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7321             pipe_works=yes
7322           fi
7323           LIBS=$lt_globsym_save_LIBS
7324           CFLAGS=$lt_globsym_save_CFLAGS
7325         else
7326           echo "cannot find nm_test_func in $nlist" >&5
7327         fi
7328       else
7329         echo "cannot find nm_test_var in $nlist" >&5
7330       fi
7331     else
7332       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7333     fi
7334   else
7335     echo "$progname: failed program was:" >&5
7336     cat conftest.$ac_ext >&5
7337   fi
7338   rm -rf conftest* conftst*
7339
7340   # Do not use the global_symbol_pipe unless it works.
7341   if test "$pipe_works" = yes; then
7342     break
7343   else
7344     lt_cv_sys_global_symbol_pipe=
7345   fi
7346 done
7347
7348 fi
7349
7350 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7351   lt_cv_sys_global_symbol_to_cdecl=
7352 fi
7353 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7355 $as_echo "failed" >&6; }
7356 else
7357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7358 $as_echo "ok" >&6; }
7359 fi
7360
7361 # Response file support.
7362 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7363   nm_file_list_spec='@'
7364 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7365   nm_file_list_spec='@'
7366 fi
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7395 $as_echo_n "checking for sysroot... " >&6; }
7396
7397 # Check whether --with-sysroot was given.
7398 if test "${with_sysroot+set}" = set; then :
7399   withval=$with_sysroot;
7400 else
7401   with_sysroot=no
7402 fi
7403
7404
7405 lt_sysroot=
7406 case ${with_sysroot} in #(
7407  yes)
7408    if test "$GCC" = yes; then
7409      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7410    fi
7411    ;; #(
7412  /*)
7413    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7414    ;; #(
7415  no|'')
7416    ;; #(
7417  *)
7418    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7419 $as_echo "${with_sysroot}" >&6; }
7420    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7421    ;;
7422 esac
7423
7424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7425 $as_echo "${lt_sysroot:-no}" >&6; }
7426
7427
7428
7429
7430
7431 # Check whether --enable-libtool-lock was given.
7432 if test "${enable_libtool_lock+set}" = set; then :
7433   enableval=$enable_libtool_lock;
7434 fi
7435
7436 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7437
7438 # Some flags need to be propagated to the compiler or linker for good
7439 # libtool support.
7440 case $host in
7441 ia64-*-hpux*)
7442   # Find out which ABI we are using.
7443   echo 'int i;' > conftest.$ac_ext
7444   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7445   (eval $ac_compile) 2>&5
7446   ac_status=$?
7447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7448   test $ac_status = 0; }; then
7449     case `/usr/bin/file conftest.$ac_objext` in
7450       *ELF-32*)
7451         HPUX_IA64_MODE="32"
7452         ;;
7453       *ELF-64*)
7454         HPUX_IA64_MODE="64"
7455         ;;
7456     esac
7457   fi
7458   rm -rf conftest*
7459   ;;
7460 *-*-irix6*)
7461   # Find out which ABI we are using.
7462   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7463   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7464   (eval $ac_compile) 2>&5
7465   ac_status=$?
7466   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7467   test $ac_status = 0; }; then
7468     if test "$lt_cv_prog_gnu_ld" = yes; then
7469       case `/usr/bin/file conftest.$ac_objext` in
7470         *32-bit*)
7471           LD="${LD-ld} -melf32bsmip"
7472           ;;
7473         *N32*)
7474           LD="${LD-ld} -melf32bmipn32"
7475           ;;
7476         *64-bit*)
7477           LD="${LD-ld} -melf64bmip"
7478         ;;
7479       esac
7480     else
7481       case `/usr/bin/file conftest.$ac_objext` in
7482         *32-bit*)
7483           LD="${LD-ld} -32"
7484           ;;
7485         *N32*)
7486           LD="${LD-ld} -n32"
7487           ;;
7488         *64-bit*)
7489           LD="${LD-ld} -64"
7490           ;;
7491       esac
7492     fi
7493   fi
7494   rm -rf conftest*
7495   ;;
7496
7497 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7498 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7499   # Find out which ABI we are using.
7500   echo 'int i;' > conftest.$ac_ext
7501   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7502   (eval $ac_compile) 2>&5
7503   ac_status=$?
7504   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7505   test $ac_status = 0; }; then
7506     case `/usr/bin/file conftest.o` in
7507       *32-bit*)
7508         case $host in
7509           x86_64-*kfreebsd*-gnu)
7510             LD="${LD-ld} -m elf_i386_fbsd"
7511             ;;
7512           x86_64-*linux*)
7513             LD="${LD-ld} -m elf_i386"
7514             ;;
7515          powerpc64le-*)
7516            LD="${LD-ld} -m elf32lppclinux"
7517            ;;
7518          powerpc64-*)
7519             LD="${LD-ld} -m elf32ppclinux"
7520             ;;
7521           s390x-*linux*)
7522             LD="${LD-ld} -m elf_s390"
7523             ;;
7524           sparc64-*linux*)
7525             LD="${LD-ld} -m elf32_sparc"
7526             ;;
7527         esac
7528         ;;
7529       *64-bit*)
7530         case $host in
7531           x86_64-*kfreebsd*-gnu)
7532             LD="${LD-ld} -m elf_x86_64_fbsd"
7533             ;;
7534           x86_64-*linux*)
7535             LD="${LD-ld} -m elf_x86_64"
7536             ;;
7537          powerpcle-*)
7538            LD="${LD-ld} -m elf64lppc"
7539            ;;
7540          powerpc-*)
7541             LD="${LD-ld} -m elf64ppc"
7542             ;;
7543           s390*-*linux*|s390*-*tpf*)
7544             LD="${LD-ld} -m elf64_s390"
7545             ;;
7546           sparc*-*linux*)
7547             LD="${LD-ld} -m elf64_sparc"
7548             ;;
7549         esac
7550         ;;
7551     esac
7552   fi
7553   rm -rf conftest*
7554   ;;
7555
7556 *-*-sco3.2v5*)
7557   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7558   SAVE_CFLAGS="$CFLAGS"
7559   CFLAGS="$CFLAGS -belf"
7560   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7561 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7562 if ${lt_cv_cc_needs_belf+:} false; then :
7563   $as_echo_n "(cached) " >&6
7564 else
7565   ac_ext=c
7566 ac_cpp='$CPP $CPPFLAGS'
7567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7570
7571      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572 /* end confdefs.h.  */
7573
7574 int
7575 main ()
7576 {
7577
7578   ;
7579   return 0;
7580 }
7581 _ACEOF
7582 if ac_fn_c_try_link "$LINENO"; then :
7583   lt_cv_cc_needs_belf=yes
7584 else
7585   lt_cv_cc_needs_belf=no
7586 fi
7587 rm -f core conftest.err conftest.$ac_objext \
7588     conftest$ac_exeext conftest.$ac_ext
7589      ac_ext=c
7590 ac_cpp='$CPP $CPPFLAGS'
7591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7594
7595 fi
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7597 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7598   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7599     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7600     CFLAGS="$SAVE_CFLAGS"
7601   fi
7602   ;;
7603 *-*solaris*)
7604   # Find out which ABI we are using.
7605   echo 'int i;' > conftest.$ac_ext
7606   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7607   (eval $ac_compile) 2>&5
7608   ac_status=$?
7609   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7610   test $ac_status = 0; }; then
7611     case `/usr/bin/file conftest.o` in
7612     *64-bit*)
7613       case $lt_cv_prog_gnu_ld in
7614       yes*)
7615         case $host in
7616         i?86-*-solaris*)
7617           LD="${LD-ld} -m elf_x86_64"
7618           ;;
7619         sparc*-*-solaris*)
7620           LD="${LD-ld} -m elf64_sparc"
7621           ;;
7622         esac
7623         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7624         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7625           LD="${LD-ld}_sol2"
7626         fi
7627         ;;
7628       *)
7629         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7630           LD="${LD-ld} -64"
7631         fi
7632         ;;
7633       esac
7634       ;;
7635     esac
7636   fi
7637   rm -rf conftest*
7638   ;;
7639 esac
7640
7641 need_locks="$enable_libtool_lock"
7642
7643 if test -n "$ac_tool_prefix"; then
7644   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7645 set dummy ${ac_tool_prefix}mt; ac_word=$2
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7647 $as_echo_n "checking for $ac_word... " >&6; }
7648 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7649   $as_echo_n "(cached) " >&6
7650 else
7651   if test -n "$MANIFEST_TOOL"; then
7652   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7653 else
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 for as_dir in $PATH
7656 do
7657   IFS=$as_save_IFS
7658   test -z "$as_dir" && as_dir=.
7659     for ac_exec_ext in '' $ac_executable_extensions; do
7660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7661     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7663     break 2
7664   fi
7665 done
7666   done
7667 IFS=$as_save_IFS
7668
7669 fi
7670 fi
7671 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7672 if test -n "$MANIFEST_TOOL"; then
7673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7674 $as_echo "$MANIFEST_TOOL" >&6; }
7675 else
7676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677 $as_echo "no" >&6; }
7678 fi
7679
7680
7681 fi
7682 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7683   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7684   # Extract the first word of "mt", so it can be a program name with args.
7685 set dummy mt; ac_word=$2
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7687 $as_echo_n "checking for $ac_word... " >&6; }
7688 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7689   $as_echo_n "(cached) " >&6
7690 else
7691   if test -n "$ac_ct_MANIFEST_TOOL"; then
7692   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7693 else
7694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7695 for as_dir in $PATH
7696 do
7697   IFS=$as_save_IFS
7698   test -z "$as_dir" && as_dir=.
7699     for ac_exec_ext in '' $ac_executable_extensions; do
7700   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7701     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7703     break 2
7704   fi
7705 done
7706   done
7707 IFS=$as_save_IFS
7708
7709 fi
7710 fi
7711 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7712 if test -n "$ac_ct_MANIFEST_TOOL"; then
7713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7714 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7715 else
7716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7717 $as_echo "no" >&6; }
7718 fi
7719
7720   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7721     MANIFEST_TOOL=":"
7722   else
7723     case $cross_compiling:$ac_tool_warned in
7724 yes:)
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7727 ac_tool_warned=yes ;;
7728 esac
7729     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7730   fi
7731 else
7732   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7733 fi
7734
7735 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7737 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7738 if ${lt_cv_path_mainfest_tool+:} false; then :
7739   $as_echo_n "(cached) " >&6
7740 else
7741   lt_cv_path_mainfest_tool=no
7742   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7743   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7744   cat conftest.err >&5
7745   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7746     lt_cv_path_mainfest_tool=yes
7747   fi
7748   rm -f conftest*
7749 fi
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7751 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7752 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7753   MANIFEST_TOOL=:
7754 fi
7755
7756
7757
7758
7759
7760
7761   case $host_os in
7762     rhapsody* | darwin*)
7763     if test -n "$ac_tool_prefix"; then
7764   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7765 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767 $as_echo_n "checking for $ac_word... " >&6; }
7768 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7769   $as_echo_n "(cached) " >&6
7770 else
7771   if test -n "$DSYMUTIL"; then
7772   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7773 else
7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 for as_dir in $PATH
7776 do
7777   IFS=$as_save_IFS
7778   test -z "$as_dir" && as_dir=.
7779     for ac_exec_ext in '' $ac_executable_extensions; do
7780   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7781     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7783     break 2
7784   fi
7785 done
7786   done
7787 IFS=$as_save_IFS
7788
7789 fi
7790 fi
7791 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7792 if test -n "$DSYMUTIL"; then
7793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7794 $as_echo "$DSYMUTIL" >&6; }
7795 else
7796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 $as_echo "no" >&6; }
7798 fi
7799
7800
7801 fi
7802 if test -z "$ac_cv_prog_DSYMUTIL"; then
7803   ac_ct_DSYMUTIL=$DSYMUTIL
7804   # Extract the first word of "dsymutil", so it can be a program name with args.
7805 set dummy dsymutil; ac_word=$2
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807 $as_echo_n "checking for $ac_word... " >&6; }
7808 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7809   $as_echo_n "(cached) " >&6
7810 else
7811   if test -n "$ac_ct_DSYMUTIL"; then
7812   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7813 else
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 for as_dir in $PATH
7816 do
7817   IFS=$as_save_IFS
7818   test -z "$as_dir" && as_dir=.
7819     for ac_exec_ext in '' $ac_executable_extensions; do
7820   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7821     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7823     break 2
7824   fi
7825 done
7826   done
7827 IFS=$as_save_IFS
7828
7829 fi
7830 fi
7831 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7832 if test -n "$ac_ct_DSYMUTIL"; then
7833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7834 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7835 else
7836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 $as_echo "no" >&6; }
7838 fi
7839
7840   if test "x$ac_ct_DSYMUTIL" = x; then
7841     DSYMUTIL=":"
7842   else
7843     case $cross_compiling:$ac_tool_warned in
7844 yes:)
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7847 ac_tool_warned=yes ;;
7848 esac
7849     DSYMUTIL=$ac_ct_DSYMUTIL
7850   fi
7851 else
7852   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7853 fi
7854
7855     if test -n "$ac_tool_prefix"; then
7856   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7857 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859 $as_echo_n "checking for $ac_word... " >&6; }
7860 if ${ac_cv_prog_NMEDIT+:} false; then :
7861   $as_echo_n "(cached) " >&6
7862 else
7863   if test -n "$NMEDIT"; then
7864   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7865 else
7866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867 for as_dir in $PATH
7868 do
7869   IFS=$as_save_IFS
7870   test -z "$as_dir" && as_dir=.
7871     for ac_exec_ext in '' $ac_executable_extensions; do
7872   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7873     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7875     break 2
7876   fi
7877 done
7878   done
7879 IFS=$as_save_IFS
7880
7881 fi
7882 fi
7883 NMEDIT=$ac_cv_prog_NMEDIT
7884 if test -n "$NMEDIT"; then
7885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7886 $as_echo "$NMEDIT" >&6; }
7887 else
7888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889 $as_echo "no" >&6; }
7890 fi
7891
7892
7893 fi
7894 if test -z "$ac_cv_prog_NMEDIT"; then
7895   ac_ct_NMEDIT=$NMEDIT
7896   # Extract the first word of "nmedit", so it can be a program name with args.
7897 set dummy nmedit; ac_word=$2
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7899 $as_echo_n "checking for $ac_word... " >&6; }
7900 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7901   $as_echo_n "(cached) " >&6
7902 else
7903   if test -n "$ac_ct_NMEDIT"; then
7904   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7905 else
7906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907 for as_dir in $PATH
7908 do
7909   IFS=$as_save_IFS
7910   test -z "$as_dir" && as_dir=.
7911     for ac_exec_ext in '' $ac_executable_extensions; do
7912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7913     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7915     break 2
7916   fi
7917 done
7918   done
7919 IFS=$as_save_IFS
7920
7921 fi
7922 fi
7923 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7924 if test -n "$ac_ct_NMEDIT"; then
7925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7926 $as_echo "$ac_ct_NMEDIT" >&6; }
7927 else
7928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929 $as_echo "no" >&6; }
7930 fi
7931
7932   if test "x$ac_ct_NMEDIT" = x; then
7933     NMEDIT=":"
7934   else
7935     case $cross_compiling:$ac_tool_warned in
7936 yes:)
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7939 ac_tool_warned=yes ;;
7940 esac
7941     NMEDIT=$ac_ct_NMEDIT
7942   fi
7943 else
7944   NMEDIT="$ac_cv_prog_NMEDIT"
7945 fi
7946
7947     if test -n "$ac_tool_prefix"; then
7948   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7949 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951 $as_echo_n "checking for $ac_word... " >&6; }
7952 if ${ac_cv_prog_LIPO+:} false; then :
7953   $as_echo_n "(cached) " >&6
7954 else
7955   if test -n "$LIPO"; then
7956   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7957 else
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 for as_dir in $PATH
7960 do
7961   IFS=$as_save_IFS
7962   test -z "$as_dir" && as_dir=.
7963     for ac_exec_ext in '' $ac_executable_extensions; do
7964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7965     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7967     break 2
7968   fi
7969 done
7970   done
7971 IFS=$as_save_IFS
7972
7973 fi
7974 fi
7975 LIPO=$ac_cv_prog_LIPO
7976 if test -n "$LIPO"; then
7977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7978 $as_echo "$LIPO" >&6; }
7979 else
7980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981 $as_echo "no" >&6; }
7982 fi
7983
7984
7985 fi
7986 if test -z "$ac_cv_prog_LIPO"; then
7987   ac_ct_LIPO=$LIPO
7988   # Extract the first word of "lipo", so it can be a program name with args.
7989 set dummy lipo; ac_word=$2
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991 $as_echo_n "checking for $ac_word... " >&6; }
7992 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7993   $as_echo_n "(cached) " >&6
7994 else
7995   if test -n "$ac_ct_LIPO"; then
7996   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7997 else
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999 for as_dir in $PATH
8000 do
8001   IFS=$as_save_IFS
8002   test -z "$as_dir" && as_dir=.
8003     for ac_exec_ext in '' $ac_executable_extensions; do
8004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8005     ac_cv_prog_ac_ct_LIPO="lipo"
8006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8007     break 2
8008   fi
8009 done
8010   done
8011 IFS=$as_save_IFS
8012
8013 fi
8014 fi
8015 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8016 if test -n "$ac_ct_LIPO"; then
8017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8018 $as_echo "$ac_ct_LIPO" >&6; }
8019 else
8020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8022 fi
8023
8024   if test "x$ac_ct_LIPO" = x; then
8025     LIPO=":"
8026   else
8027     case $cross_compiling:$ac_tool_warned in
8028 yes:)
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8031 ac_tool_warned=yes ;;
8032 esac
8033     LIPO=$ac_ct_LIPO
8034   fi
8035 else
8036   LIPO="$ac_cv_prog_LIPO"
8037 fi
8038
8039     if test -n "$ac_tool_prefix"; then
8040   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8041 set dummy ${ac_tool_prefix}otool; ac_word=$2
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8043 $as_echo_n "checking for $ac_word... " >&6; }
8044 if ${ac_cv_prog_OTOOL+:} false; then :
8045   $as_echo_n "(cached) " >&6
8046 else
8047   if test -n "$OTOOL"; then
8048   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8049 else
8050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8051 for as_dir in $PATH
8052 do
8053   IFS=$as_save_IFS
8054   test -z "$as_dir" && as_dir=.
8055     for ac_exec_ext in '' $ac_executable_extensions; do
8056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8057     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8059     break 2
8060   fi
8061 done
8062   done
8063 IFS=$as_save_IFS
8064
8065 fi
8066 fi
8067 OTOOL=$ac_cv_prog_OTOOL
8068 if test -n "$OTOOL"; then
8069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8070 $as_echo "$OTOOL" >&6; }
8071 else
8072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073 $as_echo "no" >&6; }
8074 fi
8075
8076
8077 fi
8078 if test -z "$ac_cv_prog_OTOOL"; then
8079   ac_ct_OTOOL=$OTOOL
8080   # Extract the first word of "otool", so it can be a program name with args.
8081 set dummy otool; ac_word=$2
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8083 $as_echo_n "checking for $ac_word... " >&6; }
8084 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8085   $as_echo_n "(cached) " >&6
8086 else
8087   if test -n "$ac_ct_OTOOL"; then
8088   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8089 else
8090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091 for as_dir in $PATH
8092 do
8093   IFS=$as_save_IFS
8094   test -z "$as_dir" && as_dir=.
8095     for ac_exec_ext in '' $ac_executable_extensions; do
8096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8097     ac_cv_prog_ac_ct_OTOOL="otool"
8098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8099     break 2
8100   fi
8101 done
8102   done
8103 IFS=$as_save_IFS
8104
8105 fi
8106 fi
8107 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8108 if test -n "$ac_ct_OTOOL"; then
8109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8110 $as_echo "$ac_ct_OTOOL" >&6; }
8111 else
8112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113 $as_echo "no" >&6; }
8114 fi
8115
8116   if test "x$ac_ct_OTOOL" = x; then
8117     OTOOL=":"
8118   else
8119     case $cross_compiling:$ac_tool_warned in
8120 yes:)
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8123 ac_tool_warned=yes ;;
8124 esac
8125     OTOOL=$ac_ct_OTOOL
8126   fi
8127 else
8128   OTOOL="$ac_cv_prog_OTOOL"
8129 fi
8130
8131     if test -n "$ac_tool_prefix"; then
8132   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8133 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8135 $as_echo_n "checking for $ac_word... " >&6; }
8136 if ${ac_cv_prog_OTOOL64+:} false; then :
8137   $as_echo_n "(cached) " >&6
8138 else
8139   if test -n "$OTOOL64"; then
8140   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8141 else
8142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143 for as_dir in $PATH
8144 do
8145   IFS=$as_save_IFS
8146   test -z "$as_dir" && as_dir=.
8147     for ac_exec_ext in '' $ac_executable_extensions; do
8148   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8149     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8151     break 2
8152   fi
8153 done
8154   done
8155 IFS=$as_save_IFS
8156
8157 fi
8158 fi
8159 OTOOL64=$ac_cv_prog_OTOOL64
8160 if test -n "$OTOOL64"; then
8161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8162 $as_echo "$OTOOL64" >&6; }
8163 else
8164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8165 $as_echo "no" >&6; }
8166 fi
8167
8168
8169 fi
8170 if test -z "$ac_cv_prog_OTOOL64"; then
8171   ac_ct_OTOOL64=$OTOOL64
8172   # Extract the first word of "otool64", so it can be a program name with args.
8173 set dummy otool64; ac_word=$2
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175 $as_echo_n "checking for $ac_word... " >&6; }
8176 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8177   $as_echo_n "(cached) " >&6
8178 else
8179   if test -n "$ac_ct_OTOOL64"; then
8180   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8181 else
8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183 for as_dir in $PATH
8184 do
8185   IFS=$as_save_IFS
8186   test -z "$as_dir" && as_dir=.
8187     for ac_exec_ext in '' $ac_executable_extensions; do
8188   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8189     ac_cv_prog_ac_ct_OTOOL64="otool64"
8190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8191     break 2
8192   fi
8193 done
8194   done
8195 IFS=$as_save_IFS
8196
8197 fi
8198 fi
8199 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8200 if test -n "$ac_ct_OTOOL64"; then
8201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8202 $as_echo "$ac_ct_OTOOL64" >&6; }
8203 else
8204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205 $as_echo "no" >&6; }
8206 fi
8207
8208   if test "x$ac_ct_OTOOL64" = x; then
8209     OTOOL64=":"
8210   else
8211     case $cross_compiling:$ac_tool_warned in
8212 yes:)
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8215 ac_tool_warned=yes ;;
8216 esac
8217     OTOOL64=$ac_ct_OTOOL64
8218   fi
8219 else
8220   OTOOL64="$ac_cv_prog_OTOOL64"
8221 fi
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8250 $as_echo_n "checking for -single_module linker flag... " >&6; }
8251 if ${lt_cv_apple_cc_single_mod+:} false; then :
8252   $as_echo_n "(cached) " >&6
8253 else
8254   lt_cv_apple_cc_single_mod=no
8255       if test -z "${LT_MULTI_MODULE}"; then
8256         # By default we will add the -single_module flag. You can override
8257         # by either setting the environment variable LT_MULTI_MODULE
8258         # non-empty at configure time, or by adding -multi_module to the
8259         # link flags.
8260         rm -rf libconftest.dylib*
8261         echo "int foo(void){return 1;}" > conftest.c
8262         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8263 -dynamiclib -Wl,-single_module conftest.c" >&5
8264         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8265           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8266         _lt_result=$?
8267         # If there is a non-empty error log, and "single_module"
8268         # appears in it, assume the flag caused a linker warning
8269         if test -s conftest.err && $GREP single_module conftest.err; then
8270           cat conftest.err >&5
8271         # Otherwise, if the output was created with a 0 exit code from
8272         # the compiler, it worked.
8273         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8274           lt_cv_apple_cc_single_mod=yes
8275         else
8276           cat conftest.err >&5
8277         fi
8278         rm -rf libconftest.dylib*
8279         rm -f conftest.*
8280       fi
8281 fi
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8283 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8284
8285     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8286 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8287 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8288   $as_echo_n "(cached) " >&6
8289 else
8290   lt_cv_ld_exported_symbols_list=no
8291       save_LDFLAGS=$LDFLAGS
8292       echo "_main" > conftest.sym
8293       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8294       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8295 /* end confdefs.h.  */
8296
8297 int
8298 main ()
8299 {
8300
8301   ;
8302   return 0;
8303 }
8304 _ACEOF
8305 if ac_fn_c_try_link "$LINENO"; then :
8306   lt_cv_ld_exported_symbols_list=yes
8307 else
8308   lt_cv_ld_exported_symbols_list=no
8309 fi
8310 rm -f core conftest.err conftest.$ac_objext \
8311     conftest$ac_exeext conftest.$ac_ext
8312         LDFLAGS="$save_LDFLAGS"
8313
8314 fi
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8316 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8317
8318     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8319 $as_echo_n "checking for -force_load linker flag... " >&6; }
8320 if ${lt_cv_ld_force_load+:} false; then :
8321   $as_echo_n "(cached) " >&6
8322 else
8323   lt_cv_ld_force_load=no
8324       cat > conftest.c << _LT_EOF
8325 int forced_loaded() { return 2;}
8326 _LT_EOF
8327       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8328       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8329       echo "$AR cru libconftest.a conftest.o" >&5
8330       $AR cru libconftest.a conftest.o 2>&5
8331       echo "$RANLIB libconftest.a" >&5
8332       $RANLIB libconftest.a 2>&5
8333       cat > conftest.c << _LT_EOF
8334 int main() { return 0;}
8335 _LT_EOF
8336       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8337       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8338       _lt_result=$?
8339       if test -s conftest.err && $GREP force_load conftest.err; then
8340         cat conftest.err >&5
8341       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8342         lt_cv_ld_force_load=yes
8343       else
8344         cat conftest.err >&5
8345       fi
8346         rm -f conftest.err libconftest.a conftest conftest.c
8347         rm -rf conftest.dSYM
8348
8349 fi
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8351 $as_echo "$lt_cv_ld_force_load" >&6; }
8352     case $host_os in
8353     rhapsody* | darwin1.[012])
8354       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8355     darwin1.*)
8356       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8357     darwin*) # darwin 5.x on
8358       # if running on 10.5 or later, the deployment target defaults
8359       # to the OS version, if on x86, and 10.4, the deployment
8360       # target defaults to 10.4. Don't you love it?
8361       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8362         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8363           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8364         10.[012]*)
8365           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8366         10.*)
8367           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8368       esac
8369     ;;
8370   esac
8371     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8372       _lt_dar_single_mod='$single_module'
8373     fi
8374     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8375       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8376     else
8377       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8378     fi
8379     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8380       _lt_dsymutil='~$DSYMUTIL $lib || :'
8381     else
8382       _lt_dsymutil=
8383     fi
8384     ;;
8385   esac
8386
8387 for ac_header in dlfcn.h
8388 do :
8389   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8390 "
8391 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8392   cat >>confdefs.h <<_ACEOF
8393 #define HAVE_DLFCN_H 1
8394 _ACEOF
8395
8396 fi
8397
8398 done
8399
8400
8401
8402
8403
8404 # Set options
8405 enable_win32_dll=yes
8406
8407 case $host in
8408 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8409   if test -n "$ac_tool_prefix"; then
8410   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8411 set dummy ${ac_tool_prefix}as; ac_word=$2
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8413 $as_echo_n "checking for $ac_word... " >&6; }
8414 if ${ac_cv_prog_AS+:} false; then :
8415   $as_echo_n "(cached) " >&6
8416 else
8417   if test -n "$AS"; then
8418   ac_cv_prog_AS="$AS" # Let the user override the test.
8419 else
8420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421 for as_dir in $PATH
8422 do
8423   IFS=$as_save_IFS
8424   test -z "$as_dir" && as_dir=.
8425     for ac_exec_ext in '' $ac_executable_extensions; do
8426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8427     ac_cv_prog_AS="${ac_tool_prefix}as"
8428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8429     break 2
8430   fi
8431 done
8432   done
8433 IFS=$as_save_IFS
8434
8435 fi
8436 fi
8437 AS=$ac_cv_prog_AS
8438 if test -n "$AS"; then
8439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8440 $as_echo "$AS" >&6; }
8441 else
8442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443 $as_echo "no" >&6; }
8444 fi
8445
8446
8447 fi
8448 if test -z "$ac_cv_prog_AS"; then
8449   ac_ct_AS=$AS
8450   # Extract the first word of "as", so it can be a program name with args.
8451 set dummy as; ac_word=$2
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8453 $as_echo_n "checking for $ac_word... " >&6; }
8454 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8455   $as_echo_n "(cached) " >&6
8456 else
8457   if test -n "$ac_ct_AS"; then
8458   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8459 else
8460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461 for as_dir in $PATH
8462 do
8463   IFS=$as_save_IFS
8464   test -z "$as_dir" && as_dir=.
8465     for ac_exec_ext in '' $ac_executable_extensions; do
8466   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8467     ac_cv_prog_ac_ct_AS="as"
8468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8469     break 2
8470   fi
8471 done
8472   done
8473 IFS=$as_save_IFS
8474
8475 fi
8476 fi
8477 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8478 if test -n "$ac_ct_AS"; then
8479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8480 $as_echo "$ac_ct_AS" >&6; }
8481 else
8482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483 $as_echo "no" >&6; }
8484 fi
8485
8486   if test "x$ac_ct_AS" = x; then
8487     AS="false"
8488   else
8489     case $cross_compiling:$ac_tool_warned in
8490 yes:)
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8493 ac_tool_warned=yes ;;
8494 esac
8495     AS=$ac_ct_AS
8496   fi
8497 else
8498   AS="$ac_cv_prog_AS"
8499 fi
8500
8501   if test -n "$ac_tool_prefix"; then
8502   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8503 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8505 $as_echo_n "checking for $ac_word... " >&6; }
8506 if ${ac_cv_prog_DLLTOOL+:} false; then :
8507   $as_echo_n "(cached) " >&6
8508 else
8509   if test -n "$DLLTOOL"; then
8510   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8511 else
8512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513 for as_dir in $PATH
8514 do
8515   IFS=$as_save_IFS
8516   test -z "$as_dir" && as_dir=.
8517     for ac_exec_ext in '' $ac_executable_extensions; do
8518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8519     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8521     break 2
8522   fi
8523 done
8524   done
8525 IFS=$as_save_IFS
8526
8527 fi
8528 fi
8529 DLLTOOL=$ac_cv_prog_DLLTOOL
8530 if test -n "$DLLTOOL"; then
8531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8532 $as_echo "$DLLTOOL" >&6; }
8533 else
8534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535 $as_echo "no" >&6; }
8536 fi
8537
8538
8539 fi
8540 if test -z "$ac_cv_prog_DLLTOOL"; then
8541   ac_ct_DLLTOOL=$DLLTOOL
8542   # Extract the first word of "dlltool", so it can be a program name with args.
8543 set dummy dlltool; ac_word=$2
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8545 $as_echo_n "checking for $ac_word... " >&6; }
8546 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8547   $as_echo_n "(cached) " >&6
8548 else
8549   if test -n "$ac_ct_DLLTOOL"; then
8550   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8551 else
8552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8553 for as_dir in $PATH
8554 do
8555   IFS=$as_save_IFS
8556   test -z "$as_dir" && as_dir=.
8557     for ac_exec_ext in '' $ac_executable_extensions; do
8558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8559     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8561     break 2
8562   fi
8563 done
8564   done
8565 IFS=$as_save_IFS
8566
8567 fi
8568 fi
8569 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8570 if test -n "$ac_ct_DLLTOOL"; then
8571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8572 $as_echo "$ac_ct_DLLTOOL" >&6; }
8573 else
8574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8575 $as_echo "no" >&6; }
8576 fi
8577
8578   if test "x$ac_ct_DLLTOOL" = x; then
8579     DLLTOOL="false"
8580   else
8581     case $cross_compiling:$ac_tool_warned in
8582 yes:)
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8585 ac_tool_warned=yes ;;
8586 esac
8587     DLLTOOL=$ac_ct_DLLTOOL
8588   fi
8589 else
8590   DLLTOOL="$ac_cv_prog_DLLTOOL"
8591 fi
8592
8593   if test -n "$ac_tool_prefix"; then
8594   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8595 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8597 $as_echo_n "checking for $ac_word... " >&6; }
8598 if ${ac_cv_prog_OBJDUMP+:} false; then :
8599   $as_echo_n "(cached) " >&6
8600 else
8601   if test -n "$OBJDUMP"; then
8602   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8603 else
8604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8605 for as_dir in $PATH
8606 do
8607   IFS=$as_save_IFS
8608   test -z "$as_dir" && as_dir=.
8609     for ac_exec_ext in '' $ac_executable_extensions; do
8610   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8611     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8613     break 2
8614   fi
8615 done
8616   done
8617 IFS=$as_save_IFS
8618
8619 fi
8620 fi
8621 OBJDUMP=$ac_cv_prog_OBJDUMP
8622 if test -n "$OBJDUMP"; then
8623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8624 $as_echo "$OBJDUMP" >&6; }
8625 else
8626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627 $as_echo "no" >&6; }
8628 fi
8629
8630
8631 fi
8632 if test -z "$ac_cv_prog_OBJDUMP"; then
8633   ac_ct_OBJDUMP=$OBJDUMP
8634   # Extract the first word of "objdump", so it can be a program name with args.
8635 set dummy objdump; ac_word=$2
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8637 $as_echo_n "checking for $ac_word... " >&6; }
8638 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8639   $as_echo_n "(cached) " >&6
8640 else
8641   if test -n "$ac_ct_OBJDUMP"; then
8642   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8643 else
8644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8645 for as_dir in $PATH
8646 do
8647   IFS=$as_save_IFS
8648   test -z "$as_dir" && as_dir=.
8649     for ac_exec_ext in '' $ac_executable_extensions; do
8650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8651     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8653     break 2
8654   fi
8655 done
8656   done
8657 IFS=$as_save_IFS
8658
8659 fi
8660 fi
8661 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8662 if test -n "$ac_ct_OBJDUMP"; then
8663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8664 $as_echo "$ac_ct_OBJDUMP" >&6; }
8665 else
8666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667 $as_echo "no" >&6; }
8668 fi
8669
8670   if test "x$ac_ct_OBJDUMP" = x; then
8671     OBJDUMP="false"
8672   else
8673     case $cross_compiling:$ac_tool_warned in
8674 yes:)
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8677 ac_tool_warned=yes ;;
8678 esac
8679     OBJDUMP=$ac_ct_OBJDUMP
8680   fi
8681 else
8682   OBJDUMP="$ac_cv_prog_OBJDUMP"
8683 fi
8684
8685   ;;
8686 esac
8687
8688 test -z "$AS" && AS=as
8689
8690
8691
8692
8693
8694 test -z "$DLLTOOL" && DLLTOOL=dlltool
8695
8696
8697
8698
8699
8700 test -z "$OBJDUMP" && OBJDUMP=objdump
8701
8702
8703
8704
8705 # Check whether --enable-static was given.
8706 if test "${enable_static+set}" = set; then :
8707   enableval=$enable_static; p=${PACKAGE-default}
8708     case $enableval in
8709     yes) enable_static=yes ;;
8710     no) enable_static=no ;;
8711     *)
8712      enable_static=no
8713       # Look at the argument we got.  We use all the common list separators.
8714       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8715       for pkg in $enableval; do
8716         IFS="$lt_save_ifs"
8717         if test "X$pkg" = "X$p"; then
8718           enable_static=yes
8719         fi
8720       done
8721       IFS="$lt_save_ifs"
8722       ;;
8723     esac
8724 else
8725   enable_static=no
8726 fi
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737         enable_dlopen=no
8738
8739
8740
8741             # Check whether --enable-shared was given.
8742 if test "${enable_shared+set}" = set; then :
8743   enableval=$enable_shared; p=${PACKAGE-default}
8744     case $enableval in
8745     yes) enable_shared=yes ;;
8746     no) enable_shared=no ;;
8747     *)
8748       enable_shared=no
8749       # Look at the argument we got.  We use all the common list separators.
8750       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8751       for pkg in $enableval; do
8752         IFS="$lt_save_ifs"
8753         if test "X$pkg" = "X$p"; then
8754           enable_shared=yes
8755         fi
8756       done
8757       IFS="$lt_save_ifs"
8758       ;;
8759     esac
8760 else
8761   enable_shared=yes
8762 fi
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774 # Check whether --with-pic was given.
8775 if test "${with_pic+set}" = set; then :
8776   withval=$with_pic; lt_p=${PACKAGE-default}
8777     case $withval in
8778     yes|no) pic_mode=$withval ;;
8779     *)
8780       pic_mode=default
8781       # Look at the argument we got.  We use all the common list separators.
8782       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8783       for lt_pkg in $withval; do
8784         IFS="$lt_save_ifs"
8785         if test "X$lt_pkg" = "X$lt_p"; then
8786           pic_mode=yes
8787         fi
8788       done
8789       IFS="$lt_save_ifs"
8790       ;;
8791     esac
8792 else
8793   pic_mode=default
8794 fi
8795
8796
8797 test -z "$pic_mode" && pic_mode=default
8798
8799
8800
8801
8802
8803
8804
8805   # Check whether --enable-fast-install was given.
8806 if test "${enable_fast_install+set}" = set; then :
8807   enableval=$enable_fast_install; p=${PACKAGE-default}
8808     case $enableval in
8809     yes) enable_fast_install=yes ;;
8810     no) enable_fast_install=no ;;
8811     *)
8812       enable_fast_install=no
8813       # Look at the argument we got.  We use all the common list separators.
8814       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8815       for pkg in $enableval; do
8816         IFS="$lt_save_ifs"
8817         if test "X$pkg" = "X$p"; then
8818           enable_fast_install=yes
8819         fi
8820       done
8821       IFS="$lt_save_ifs"
8822       ;;
8823     esac
8824 else
8825   enable_fast_install=yes
8826 fi
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838 # This can be used to rebuild libtool when needed
8839 LIBTOOL_DEPS="$ltmain"
8840
8841 # Always use our own libtool.
8842 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873 test -z "$LN_S" && LN_S="ln -s"
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888 if test -n "${ZSH_VERSION+set}" ; then
8889    setopt NO_GLOB_SUBST
8890 fi
8891
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8893 $as_echo_n "checking for objdir... " >&6; }
8894 if ${lt_cv_objdir+:} false; then :
8895   $as_echo_n "(cached) " >&6
8896 else
8897   rm -f .libs 2>/dev/null
8898 mkdir .libs 2>/dev/null
8899 if test -d .libs; then
8900   lt_cv_objdir=.libs
8901 else
8902   # MS-DOS does not allow filenames that begin with a dot.
8903   lt_cv_objdir=_libs
8904 fi
8905 rmdir .libs 2>/dev/null
8906 fi
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8908 $as_echo "$lt_cv_objdir" >&6; }
8909 objdir=$lt_cv_objdir
8910
8911
8912
8913
8914
8915 cat >>confdefs.h <<_ACEOF
8916 #define LT_OBJDIR "$lt_cv_objdir/"
8917 _ACEOF
8918
8919
8920
8921
8922 case $host_os in
8923 aix3*)
8924   # AIX sometimes has problems with the GCC collect2 program.  For some
8925   # reason, if we set the COLLECT_NAMES environment variable, the problems
8926   # vanish in a puff of smoke.
8927   if test "X${COLLECT_NAMES+set}" != Xset; then
8928     COLLECT_NAMES=
8929     export COLLECT_NAMES
8930   fi
8931   ;;
8932 esac
8933
8934 # Global variables:
8935 ofile=libtool
8936 can_build_shared=yes
8937
8938 # All known linkers require a `.a' archive for static linking (except MSVC,
8939 # which needs '.lib').
8940 libext=a
8941
8942 with_gnu_ld="$lt_cv_prog_gnu_ld"
8943
8944 old_CC="$CC"
8945 old_CFLAGS="$CFLAGS"
8946
8947 # Set sane defaults for various variables
8948 test -z "$CC" && CC=cc
8949 test -z "$LTCC" && LTCC=$CC
8950 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8951 test -z "$LD" && LD=ld
8952 test -z "$ac_objext" && ac_objext=o
8953
8954 for cc_temp in $compiler""; do
8955   case $cc_temp in
8956     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8957     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8958     \-*) ;;
8959     *) break;;
8960   esac
8961 done
8962 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8963
8964
8965 # Only perform the check for file, if the check method requires it
8966 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8967 case $deplibs_check_method in
8968 file_magic*)
8969   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8970     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8971 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8972 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8973   $as_echo_n "(cached) " >&6
8974 else
8975   case $MAGIC_CMD in
8976 [\\/*] |  ?:[\\/]*)
8977   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8978   ;;
8979 *)
8980   lt_save_MAGIC_CMD="$MAGIC_CMD"
8981   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8982   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8983   for ac_dir in $ac_dummy; do
8984     IFS="$lt_save_ifs"
8985     test -z "$ac_dir" && ac_dir=.
8986     if test -f $ac_dir/${ac_tool_prefix}file; then
8987       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8988       if test -n "$file_magic_test_file"; then
8989         case $deplibs_check_method in
8990         "file_magic "*)
8991           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8992           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8993           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8994             $EGREP "$file_magic_regex" > /dev/null; then
8995             :
8996           else
8997             cat <<_LT_EOF 1>&2
8998
8999 *** Warning: the command libtool uses to detect shared libraries,
9000 *** $file_magic_cmd, produces output that libtool cannot recognize.
9001 *** The result is that libtool may fail to recognize shared libraries
9002 *** as such.  This will affect the creation of libtool libraries that
9003 *** depend on shared libraries, but programs linked with such libtool
9004 *** libraries will work regardless of this problem.  Nevertheless, you
9005 *** may want to report the problem to your system manager and/or to
9006 *** bug-libtool@gnu.org
9007
9008 _LT_EOF
9009           fi ;;
9010         esac
9011       fi
9012       break
9013     fi
9014   done
9015   IFS="$lt_save_ifs"
9016   MAGIC_CMD="$lt_save_MAGIC_CMD"
9017   ;;
9018 esac
9019 fi
9020
9021 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9022 if test -n "$MAGIC_CMD"; then
9023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9024 $as_echo "$MAGIC_CMD" >&6; }
9025 else
9026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9028 fi
9029
9030
9031
9032
9033
9034 if test -z "$lt_cv_path_MAGIC_CMD"; then
9035   if test -n "$ac_tool_prefix"; then
9036     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9037 $as_echo_n "checking for file... " >&6; }
9038 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9039   $as_echo_n "(cached) " >&6
9040 else
9041   case $MAGIC_CMD in
9042 [\\/*] |  ?:[\\/]*)
9043   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9044   ;;
9045 *)
9046   lt_save_MAGIC_CMD="$MAGIC_CMD"
9047   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9048   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9049   for ac_dir in $ac_dummy; do
9050     IFS="$lt_save_ifs"
9051     test -z "$ac_dir" && ac_dir=.
9052     if test -f $ac_dir/file; then
9053       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9054       if test -n "$file_magic_test_file"; then
9055         case $deplibs_check_method in
9056         "file_magic "*)
9057           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9058           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9059           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9060             $EGREP "$file_magic_regex" > /dev/null; then
9061             :
9062           else
9063             cat <<_LT_EOF 1>&2
9064
9065 *** Warning: the command libtool uses to detect shared libraries,
9066 *** $file_magic_cmd, produces output that libtool cannot recognize.
9067 *** The result is that libtool may fail to recognize shared libraries
9068 *** as such.  This will affect the creation of libtool libraries that
9069 *** depend on shared libraries, but programs linked with such libtool
9070 *** libraries will work regardless of this problem.  Nevertheless, you
9071 *** may want to report the problem to your system manager and/or to
9072 *** bug-libtool@gnu.org
9073
9074 _LT_EOF
9075           fi ;;
9076         esac
9077       fi
9078       break
9079     fi
9080   done
9081   IFS="$lt_save_ifs"
9082   MAGIC_CMD="$lt_save_MAGIC_CMD"
9083   ;;
9084 esac
9085 fi
9086
9087 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9088 if test -n "$MAGIC_CMD"; then
9089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9090 $as_echo "$MAGIC_CMD" >&6; }
9091 else
9092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9093 $as_echo "no" >&6; }
9094 fi
9095
9096
9097   else
9098     MAGIC_CMD=:
9099   fi
9100 fi
9101
9102   fi
9103   ;;
9104 esac
9105
9106 # Use C for the default configuration in the libtool script
9107
9108 lt_save_CC="$CC"
9109 ac_ext=c
9110 ac_cpp='$CPP $CPPFLAGS'
9111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9114
9115
9116 # Source file extension for C test sources.
9117 ac_ext=c
9118
9119 # Object file extension for compiled C test sources.
9120 objext=o
9121 objext=$objext
9122
9123 # Code to be used in simple compile tests
9124 lt_simple_compile_test_code="int some_variable = 0;"
9125
9126 # Code to be used in simple link tests
9127 lt_simple_link_test_code='int main(){return(0);}'
9128
9129
9130
9131
9132
9133
9134
9135 # If no C compiler was specified, use CC.
9136 LTCC=${LTCC-"$CC"}
9137
9138 # If no C compiler flags were specified, use CFLAGS.
9139 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9140
9141 # Allow CC to be a program name with arguments.
9142 compiler=$CC
9143
9144 # Save the default compiler, since it gets overwritten when the other
9145 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9146 compiler_DEFAULT=$CC
9147
9148 # save warnings/boilerplate of simple test code
9149 ac_outfile=conftest.$ac_objext
9150 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9151 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9152 _lt_compiler_boilerplate=`cat conftest.err`
9153 $RM conftest*
9154
9155 ac_outfile=conftest.$ac_objext
9156 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9157 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9158 _lt_linker_boilerplate=`cat conftest.err`
9159 $RM -r conftest*
9160
9161
9162 ## CAVEAT EMPTOR:
9163 ## There is no encapsulation within the following macros, do not change
9164 ## the running order or otherwise move them around unless you know exactly
9165 ## what you are doing...
9166 if test -n "$compiler"; then
9167
9168 lt_prog_compiler_no_builtin_flag=
9169
9170 if test "$GCC" = yes; then
9171   case $cc_basename in
9172   nvcc*)
9173     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9174   *)
9175     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9176   esac
9177
9178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9179 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9180 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9181   $as_echo_n "(cached) " >&6
9182 else
9183   lt_cv_prog_compiler_rtti_exceptions=no
9184    ac_outfile=conftest.$ac_objext
9185    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9186    lt_compiler_flag="-fno-rtti -fno-exceptions"
9187    # Insert the option either (1) after the last *FLAGS variable, or
9188    # (2) before a word containing "conftest.", or (3) at the end.
9189    # Note that $ac_compile itself does not contain backslashes and begins
9190    # with a dollar sign (not a hyphen), so the echo should work correctly.
9191    # The option is referenced via a variable to avoid confusing sed.
9192    lt_compile=`echo "$ac_compile" | $SED \
9193    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9194    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9195    -e 's:$: $lt_compiler_flag:'`
9196    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9197    (eval "$lt_compile" 2>conftest.err)
9198    ac_status=$?
9199    cat conftest.err >&5
9200    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201    if (exit $ac_status) && test -s "$ac_outfile"; then
9202      # The compiler can only warn and ignore the option if not recognized
9203      # So say no if there are warnings other than the usual output.
9204      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9205      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9206      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9207        lt_cv_prog_compiler_rtti_exceptions=yes
9208      fi
9209    fi
9210    $RM conftest*
9211
9212 fi
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9214 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9215
9216 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9217     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9218 else
9219     :
9220 fi
9221
9222 fi
9223
9224
9225
9226
9227
9228
9229   lt_prog_compiler_wl=
9230 lt_prog_compiler_pic=
9231 lt_prog_compiler_static=
9232
9233
9234   if test "$GCC" = yes; then
9235     lt_prog_compiler_wl='-Wl,'
9236     lt_prog_compiler_static='-static'
9237
9238     case $host_os in
9239       aix*)
9240       # All AIX code is PIC.
9241       if test "$host_cpu" = ia64; then
9242         # AIX 5 now supports IA64 processor
9243         lt_prog_compiler_static='-Bstatic'
9244       fi
9245       ;;
9246
9247     amigaos*)
9248       case $host_cpu in
9249       powerpc)
9250             # see comment about AmigaOS4 .so support
9251             lt_prog_compiler_pic='-fPIC'
9252         ;;
9253       m68k)
9254             # FIXME: we need at least 68020 code to build shared libraries, but
9255             # adding the `-m68020' flag to GCC prevents building anything better,
9256             # like `-m68040'.
9257             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9258         ;;
9259       esac
9260       ;;
9261
9262     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9263       # PIC is the default for these OSes.
9264       ;;
9265
9266     mingw* | cygwin* | pw32* | os2* | cegcc*)
9267       # This hack is so that the source file can tell whether it is being
9268       # built for inclusion in a dll (and should export symbols for example).
9269       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9270       # (--disable-auto-import) libraries
9271       lt_prog_compiler_pic='-DDLL_EXPORT'
9272       ;;
9273
9274     darwin* | rhapsody*)
9275       # PIC is the default on this platform
9276       # Common symbols not allowed in MH_DYLIB files
9277       lt_prog_compiler_pic='-fno-common'
9278       ;;
9279
9280     haiku*)
9281       # PIC is the default for Haiku.
9282       # The "-static" flag exists, but is broken.
9283       lt_prog_compiler_static=
9284       ;;
9285
9286     hpux*)
9287       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9288       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9289       # sets the default TLS model and affects inlining.
9290       case $host_cpu in
9291       hppa*64*)
9292         # +Z the default
9293         ;;
9294       *)
9295         lt_prog_compiler_pic='-fPIC'
9296         ;;
9297       esac
9298       ;;
9299
9300     interix[3-9]*)
9301       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9302       # Instead, we relocate shared libraries at runtime.
9303       ;;
9304
9305     msdosdjgpp*)
9306       # Just because we use GCC doesn't mean we suddenly get shared libraries
9307       # on systems that don't support them.
9308       lt_prog_compiler_can_build_shared=no
9309       enable_shared=no
9310       ;;
9311
9312     *nto* | *qnx*)
9313       # QNX uses GNU C++, but need to define -shared option too, otherwise
9314       # it will coredump.
9315       lt_prog_compiler_pic='-fPIC -shared'
9316       ;;
9317
9318     sysv4*MP*)
9319       if test -d /usr/nec; then
9320         lt_prog_compiler_pic=-Kconform_pic
9321       fi
9322       ;;
9323
9324     *)
9325       lt_prog_compiler_pic='-fPIC'
9326       ;;
9327     esac
9328
9329     case $cc_basename in
9330     nvcc*) # Cuda Compiler Driver 2.2
9331       lt_prog_compiler_wl='-Xlinker '
9332       if test -n "$lt_prog_compiler_pic"; then
9333         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9334       fi
9335       ;;
9336     esac
9337   else
9338     # PORTME Check for flag to pass linker flags through the system compiler.
9339     case $host_os in
9340     aix*)
9341       lt_prog_compiler_wl='-Wl,'
9342       if test "$host_cpu" = ia64; then
9343         # AIX 5 now supports IA64 processor
9344         lt_prog_compiler_static='-Bstatic'
9345       else
9346         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9347       fi
9348       ;;
9349
9350     mingw* | cygwin* | pw32* | os2* | cegcc*)
9351       # This hack is so that the source file can tell whether it is being
9352       # built for inclusion in a dll (and should export symbols for example).
9353       lt_prog_compiler_pic='-DDLL_EXPORT'
9354       ;;
9355
9356     hpux9* | hpux10* | hpux11*)
9357       lt_prog_compiler_wl='-Wl,'
9358       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9359       # not for PA HP-UX.
9360       case $host_cpu in
9361       hppa*64*|ia64*)
9362         # +Z the default
9363         ;;
9364       *)
9365         lt_prog_compiler_pic='+Z'
9366         ;;
9367       esac
9368       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9369       lt_prog_compiler_static='${wl}-a ${wl}archive'
9370       ;;
9371
9372     irix5* | irix6* | nonstopux*)
9373       lt_prog_compiler_wl='-Wl,'
9374       # PIC (with -KPIC) is the default.
9375       lt_prog_compiler_static='-non_shared'
9376       ;;
9377
9378     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9379       case $cc_basename in
9380       # old Intel for x86_64 which still supported -KPIC.
9381       ecc*)
9382         lt_prog_compiler_wl='-Wl,'
9383         lt_prog_compiler_pic='-KPIC'
9384         lt_prog_compiler_static='-static'
9385         ;;
9386       # icc used to be incompatible with GCC.
9387       # ICC 10 doesn't accept -KPIC any more.
9388       icc* | ifort*)
9389         lt_prog_compiler_wl='-Wl,'
9390         lt_prog_compiler_pic='-fPIC'
9391         lt_prog_compiler_static='-static'
9392         ;;
9393       # Lahey Fortran 8.1.
9394       lf95*)
9395         lt_prog_compiler_wl='-Wl,'
9396         lt_prog_compiler_pic='--shared'
9397         lt_prog_compiler_static='--static'
9398         ;;
9399       nagfor*)
9400         # NAG Fortran compiler
9401         lt_prog_compiler_wl='-Wl,-Wl,,'
9402         lt_prog_compiler_pic='-PIC'
9403         lt_prog_compiler_static='-Bstatic'
9404         ;;
9405       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9406         # Portland Group compilers (*not* the Pentium gcc compiler,
9407         # which looks to be a dead project)
9408         lt_prog_compiler_wl='-Wl,'
9409         lt_prog_compiler_pic='-fpic'
9410         lt_prog_compiler_static='-Bstatic'
9411         ;;
9412       ccc*)
9413         lt_prog_compiler_wl='-Wl,'
9414         # All Alpha code is PIC.
9415         lt_prog_compiler_static='-non_shared'
9416         ;;
9417       xl* | bgxl* | bgf* | mpixl*)
9418         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9419         lt_prog_compiler_wl='-Wl,'
9420         lt_prog_compiler_pic='-qpic'
9421         lt_prog_compiler_static='-qstaticlink'
9422         ;;
9423       *)
9424         case `$CC -V 2>&1 | sed 5q` in
9425         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9426           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9427           lt_prog_compiler_pic='-KPIC'
9428           lt_prog_compiler_static='-Bstatic'
9429           lt_prog_compiler_wl=''
9430           ;;
9431         *Sun\ F* | *Sun*Fortran*)
9432           lt_prog_compiler_pic='-KPIC'
9433           lt_prog_compiler_static='-Bstatic'
9434           lt_prog_compiler_wl='-Qoption ld '
9435           ;;
9436         *Sun\ C*)
9437           # Sun C 5.9
9438           lt_prog_compiler_pic='-KPIC'
9439           lt_prog_compiler_static='-Bstatic'
9440           lt_prog_compiler_wl='-Wl,'
9441           ;;
9442         *Intel*\ [CF]*Compiler*)
9443           lt_prog_compiler_wl='-Wl,'
9444           lt_prog_compiler_pic='-fPIC'
9445           lt_prog_compiler_static='-static'
9446           ;;
9447         *Portland\ Group*)
9448           lt_prog_compiler_wl='-Wl,'
9449           lt_prog_compiler_pic='-fpic'
9450           lt_prog_compiler_static='-Bstatic'
9451           ;;
9452         esac
9453         ;;
9454       esac
9455       ;;
9456
9457     newsos6)
9458       lt_prog_compiler_pic='-KPIC'
9459       lt_prog_compiler_static='-Bstatic'
9460       ;;
9461
9462     *nto* | *qnx*)
9463       # QNX uses GNU C++, but need to define -shared option too, otherwise
9464       # it will coredump.
9465       lt_prog_compiler_pic='-fPIC -shared'
9466       ;;
9467
9468     osf3* | osf4* | osf5*)
9469       lt_prog_compiler_wl='-Wl,'
9470       # All OSF/1 code is PIC.
9471       lt_prog_compiler_static='-non_shared'
9472       ;;
9473
9474     rdos*)
9475       lt_prog_compiler_static='-non_shared'
9476       ;;
9477
9478     solaris*)
9479       lt_prog_compiler_pic='-KPIC'
9480       lt_prog_compiler_static='-Bstatic'
9481       case $cc_basename in
9482       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9483         lt_prog_compiler_wl='-Qoption ld ';;
9484       *)
9485         lt_prog_compiler_wl='-Wl,';;
9486       esac
9487       ;;
9488
9489     sunos4*)
9490       lt_prog_compiler_wl='-Qoption ld '
9491       lt_prog_compiler_pic='-PIC'
9492       lt_prog_compiler_static='-Bstatic'
9493       ;;
9494
9495     sysv4 | sysv4.2uw2* | sysv4.3*)
9496       lt_prog_compiler_wl='-Wl,'
9497       lt_prog_compiler_pic='-KPIC'
9498       lt_prog_compiler_static='-Bstatic'
9499       ;;
9500
9501     sysv4*MP*)
9502       if test -d /usr/nec ;then
9503         lt_prog_compiler_pic='-Kconform_pic'
9504         lt_prog_compiler_static='-Bstatic'
9505       fi
9506       ;;
9507
9508     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9509       lt_prog_compiler_wl='-Wl,'
9510       lt_prog_compiler_pic='-KPIC'
9511       lt_prog_compiler_static='-Bstatic'
9512       ;;
9513
9514     unicos*)
9515       lt_prog_compiler_wl='-Wl,'
9516       lt_prog_compiler_can_build_shared=no
9517       ;;
9518
9519     uts4*)
9520       lt_prog_compiler_pic='-pic'
9521       lt_prog_compiler_static='-Bstatic'
9522       ;;
9523
9524     *)
9525       lt_prog_compiler_can_build_shared=no
9526       ;;
9527     esac
9528   fi
9529
9530 case $host_os in
9531   # For platforms which do not support PIC, -DPIC is meaningless:
9532   *djgpp*)
9533     lt_prog_compiler_pic=
9534     ;;
9535   *)
9536     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9537     ;;
9538 esac
9539
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9541 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9542 if ${lt_cv_prog_compiler_pic+:} false; then :
9543   $as_echo_n "(cached) " >&6
9544 else
9545   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9546 fi
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9548 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9549 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9550
9551 #
9552 # Check to make sure the PIC flag actually works.
9553 #
9554 if test -n "$lt_prog_compiler_pic"; then
9555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9556 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9557 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9558   $as_echo_n "(cached) " >&6
9559 else
9560   lt_cv_prog_compiler_pic_works=no
9561    ac_outfile=conftest.$ac_objext
9562    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9563    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9564    # Insert the option either (1) after the last *FLAGS variable, or
9565    # (2) before a word containing "conftest.", or (3) at the end.
9566    # Note that $ac_compile itself does not contain backslashes and begins
9567    # with a dollar sign (not a hyphen), so the echo should work correctly.
9568    # The option is referenced via a variable to avoid confusing sed.
9569    lt_compile=`echo "$ac_compile" | $SED \
9570    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9571    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9572    -e 's:$: $lt_compiler_flag:'`
9573    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9574    (eval "$lt_compile" 2>conftest.err)
9575    ac_status=$?
9576    cat conftest.err >&5
9577    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578    if (exit $ac_status) && test -s "$ac_outfile"; then
9579      # The compiler can only warn and ignore the option if not recognized
9580      # So say no if there are warnings other than the usual output.
9581      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9582      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9583      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9584        lt_cv_prog_compiler_pic_works=yes
9585      fi
9586    fi
9587    $RM conftest*
9588
9589 fi
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9591 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9592
9593 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9594     case $lt_prog_compiler_pic in
9595      "" | " "*) ;;
9596      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9597      esac
9598 else
9599     lt_prog_compiler_pic=
9600      lt_prog_compiler_can_build_shared=no
9601 fi
9602
9603 fi
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615 #
9616 # Check to make sure the static flag actually works.
9617 #
9618 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9620 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9621 if ${lt_cv_prog_compiler_static_works+:} false; then :
9622   $as_echo_n "(cached) " >&6
9623 else
9624   lt_cv_prog_compiler_static_works=no
9625    save_LDFLAGS="$LDFLAGS"
9626    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9627    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9628    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9629      # The linker can only warn and ignore the option if not recognized
9630      # So say no if there are warnings
9631      if test -s conftest.err; then
9632        # Append any errors to the config.log.
9633        cat conftest.err 1>&5
9634        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9635        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9636        if diff conftest.exp conftest.er2 >/dev/null; then
9637          lt_cv_prog_compiler_static_works=yes
9638        fi
9639      else
9640        lt_cv_prog_compiler_static_works=yes
9641      fi
9642    fi
9643    $RM -r conftest*
9644    LDFLAGS="$save_LDFLAGS"
9645
9646 fi
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9648 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9649
9650 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9651     :
9652 else
9653     lt_prog_compiler_static=
9654 fi
9655
9656
9657
9658
9659
9660
9661
9662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9663 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9664 if ${lt_cv_prog_compiler_c_o+:} false; then :
9665   $as_echo_n "(cached) " >&6
9666 else
9667   lt_cv_prog_compiler_c_o=no
9668    $RM -r conftest 2>/dev/null
9669    mkdir conftest
9670    cd conftest
9671    mkdir out
9672    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9673
9674    lt_compiler_flag="-o out/conftest2.$ac_objext"
9675    # Insert the option either (1) after the last *FLAGS variable, or
9676    # (2) before a word containing "conftest.", or (3) at the end.
9677    # Note that $ac_compile itself does not contain backslashes and begins
9678    # with a dollar sign (not a hyphen), so the echo should work correctly.
9679    lt_compile=`echo "$ac_compile" | $SED \
9680    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9681    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9682    -e 's:$: $lt_compiler_flag:'`
9683    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9684    (eval "$lt_compile" 2>out/conftest.err)
9685    ac_status=$?
9686    cat out/conftest.err >&5
9687    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9689    then
9690      # The compiler can only warn and ignore the option if not recognized
9691      # So say no if there are warnings
9692      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9693      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9694      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9695        lt_cv_prog_compiler_c_o=yes
9696      fi
9697    fi
9698    chmod u+w . 2>&5
9699    $RM conftest*
9700    # SGI C++ compiler will create directory out/ii_files/ for
9701    # template instantiation
9702    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9703    $RM out/* && rmdir out
9704    cd ..
9705    $RM -r conftest
9706    $RM conftest*
9707
9708 fi
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9710 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9711
9712
9713
9714
9715
9716
9717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9718 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9719 if ${lt_cv_prog_compiler_c_o+:} false; then :
9720   $as_echo_n "(cached) " >&6
9721 else
9722   lt_cv_prog_compiler_c_o=no
9723    $RM -r conftest 2>/dev/null
9724    mkdir conftest
9725    cd conftest
9726    mkdir out
9727    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9728
9729    lt_compiler_flag="-o out/conftest2.$ac_objext"
9730    # Insert the option either (1) after the last *FLAGS variable, or
9731    # (2) before a word containing "conftest.", or (3) at the end.
9732    # Note that $ac_compile itself does not contain backslashes and begins
9733    # with a dollar sign (not a hyphen), so the echo should work correctly.
9734    lt_compile=`echo "$ac_compile" | $SED \
9735    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9736    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9737    -e 's:$: $lt_compiler_flag:'`
9738    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9739    (eval "$lt_compile" 2>out/conftest.err)
9740    ac_status=$?
9741    cat out/conftest.err >&5
9742    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9744    then
9745      # The compiler can only warn and ignore the option if not recognized
9746      # So say no if there are warnings
9747      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9748      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9749      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9750        lt_cv_prog_compiler_c_o=yes
9751      fi
9752    fi
9753    chmod u+w . 2>&5
9754    $RM conftest*
9755    # SGI C++ compiler will create directory out/ii_files/ for
9756    # template instantiation
9757    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9758    $RM out/* && rmdir out
9759    cd ..
9760    $RM -r conftest
9761    $RM conftest*
9762
9763 fi
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9765 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9766
9767
9768
9769
9770 hard_links="nottested"
9771 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9772   # do not overwrite the value of need_locks provided by the user
9773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9774 $as_echo_n "checking if we can lock with hard links... " >&6; }
9775   hard_links=yes
9776   $RM conftest*
9777   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9778   touch conftest.a
9779   ln conftest.a conftest.b 2>&5 || hard_links=no
9780   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9782 $as_echo "$hard_links" >&6; }
9783   if test "$hard_links" = no; then
9784     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9785 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9786     need_locks=warn
9787   fi
9788 else
9789   need_locks=no
9790 fi
9791
9792
9793
9794
9795
9796
9797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9798 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9799
9800   runpath_var=
9801   allow_undefined_flag=
9802   always_export_symbols=no
9803   archive_cmds=
9804   archive_expsym_cmds=
9805   compiler_needs_object=no
9806   enable_shared_with_static_runtimes=no
9807   export_dynamic_flag_spec=
9808   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9809   hardcode_automatic=no
9810   hardcode_direct=no
9811   hardcode_direct_absolute=no
9812   hardcode_libdir_flag_spec=
9813   hardcode_libdir_separator=
9814   hardcode_minus_L=no
9815   hardcode_shlibpath_var=unsupported
9816   inherit_rpath=no
9817   link_all_deplibs=unknown
9818   module_cmds=
9819   module_expsym_cmds=
9820   old_archive_from_new_cmds=
9821   old_archive_from_expsyms_cmds=
9822   thread_safe_flag_spec=
9823   whole_archive_flag_spec=
9824   # include_expsyms should be a list of space-separated symbols to be *always*
9825   # included in the symbol list
9826   include_expsyms=
9827   # exclude_expsyms can be an extended regexp of symbols to exclude
9828   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9829   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9830   # as well as any symbol that contains `d'.
9831   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9832   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9833   # platforms (ab)use it in PIC code, but their linkers get confused if
9834   # the symbol is explicitly referenced.  Since portable code cannot
9835   # rely on this symbol name, it's probably fine to never include it in
9836   # preloaded symbol tables.
9837   # Exclude shared library initialization/finalization symbols.
9838   extract_expsyms_cmds=
9839
9840   case $host_os in
9841   cygwin* | mingw* | pw32* | cegcc*)
9842     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9843     # When not using gcc, we currently assume that we are using
9844     # Microsoft Visual C++.
9845     if test "$GCC" != yes; then
9846       with_gnu_ld=no
9847     fi
9848     ;;
9849   interix*)
9850     # we just hope/assume this is gcc and not c89 (= MSVC++)
9851     with_gnu_ld=yes
9852     ;;
9853   openbsd*)
9854     with_gnu_ld=no
9855     ;;
9856   linux* | k*bsd*-gnu | gnu*)
9857     link_all_deplibs=no
9858     ;;
9859   esac
9860
9861   ld_shlibs=yes
9862
9863   # On some targets, GNU ld is compatible enough with the native linker
9864   # that we're better off using the native interface for both.
9865   lt_use_gnu_ld_interface=no
9866   if test "$with_gnu_ld" = yes; then
9867     case $host_os in
9868       aix*)
9869         # The AIX port of GNU ld has always aspired to compatibility
9870         # with the native linker.  However, as the warning in the GNU ld
9871         # block says, versions before 2.19.5* couldn't really create working
9872         # shared libraries, regardless of the interface used.
9873         case `$LD -v 2>&1` in
9874           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9875           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9876           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9877           *)
9878             lt_use_gnu_ld_interface=yes
9879             ;;
9880         esac
9881         ;;
9882       *)
9883         lt_use_gnu_ld_interface=yes
9884         ;;
9885     esac
9886   fi
9887
9888   if test "$lt_use_gnu_ld_interface" = yes; then
9889     # If archive_cmds runs LD, not CC, wlarc should be empty
9890     wlarc='${wl}'
9891
9892     # Set some defaults for GNU ld with shared library support. These
9893     # are reset later if shared libraries are not supported. Putting them
9894     # here allows them to be overridden if necessary.
9895     runpath_var=LD_RUN_PATH
9896     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9897     export_dynamic_flag_spec='${wl}--export-dynamic'
9898     # ancient GNU ld didn't support --whole-archive et. al.
9899     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9900       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9901     else
9902       whole_archive_flag_spec=
9903     fi
9904     supports_anon_versioning=no
9905     case `$LD -v 2>&1` in
9906       *GNU\ gold*) supports_anon_versioning=yes ;;
9907       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9908       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9909       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9910       *\ 2.11.*) ;; # other 2.11 versions
9911       *) supports_anon_versioning=yes ;;
9912     esac
9913
9914     # See if GNU ld supports shared libraries.
9915     case $host_os in
9916     aix[3-9]*)
9917       # On AIX/PPC, the GNU linker is very broken
9918       if test "$host_cpu" != ia64; then
9919         ld_shlibs=no
9920         cat <<_LT_EOF 1>&2
9921
9922 *** Warning: the GNU linker, at least up to release 2.19, is reported
9923 *** to be unable to reliably create shared libraries on AIX.
9924 *** Therefore, libtool is disabling shared libraries support.  If you
9925 *** really care for shared libraries, you may want to install binutils
9926 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9927 *** You will then need to restart the configuration process.
9928
9929 _LT_EOF
9930       fi
9931       ;;
9932
9933     amigaos*)
9934       case $host_cpu in
9935       powerpc)
9936             # see comment about AmigaOS4 .so support
9937             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9938             archive_expsym_cmds=''
9939         ;;
9940       m68k)
9941             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)'
9942             hardcode_libdir_flag_spec='-L$libdir'
9943             hardcode_minus_L=yes
9944         ;;
9945       esac
9946       ;;
9947
9948     beos*)
9949       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9950         allow_undefined_flag=unsupported
9951         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9952         # support --undefined.  This deserves some investigation.  FIXME
9953         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9954       else
9955         ld_shlibs=no
9956       fi
9957       ;;
9958
9959     cygwin* | mingw* | pw32* | cegcc*)
9960       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9961       # as there is no search path for DLLs.
9962       hardcode_libdir_flag_spec='-L$libdir'
9963       export_dynamic_flag_spec='${wl}--export-all-symbols'
9964       allow_undefined_flag=unsupported
9965       always_export_symbols=no
9966       enable_shared_with_static_runtimes=yes
9967       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'
9968       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9969
9970       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9971         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9972         # If the export-symbols file already is a .def file (1st line
9973         # is EXPORTS), use it as is; otherwise, prepend...
9974         archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
9975           cp $export_symbols $output_objdir/$soname.def;
9976         else
9977           echo EXPORTS > $output_objdir/$soname.def;
9978           cat $export_symbols >> $output_objdir/$soname.def;
9979         fi~
9980         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9981       else
9982         ld_shlibs=no
9983       fi
9984       ;;
9985
9986     haiku*)
9987       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9988       link_all_deplibs=yes
9989       ;;
9990
9991     interix[3-9]*)
9992       hardcode_direct=no
9993       hardcode_shlibpath_var=no
9994       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9995       export_dynamic_flag_spec='${wl}-E'
9996       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9997       # Instead, shared libraries are loaded at an image base (0x10000000 by
9998       # default) and relocated if they conflict, which is a slow very memory
9999       # consuming and fragmenting process.  To avoid this, we pick a random,
10000       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10001       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10002       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10003       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'
10004       ;;
10005
10006     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10007       tmp_diet=no
10008       if test "$host_os" = linux-dietlibc; then
10009         case $cc_basename in
10010           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10011         esac
10012       fi
10013       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10014          && test "$tmp_diet" = no
10015       then
10016         tmp_addflag=' $pic_flag'
10017         tmp_sharedflag='-shared'
10018         case $cc_basename,$host_cpu in
10019         pgcc*)                          # Portland Group C compiler
10020           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'
10021           tmp_addflag=' $pic_flag'
10022           ;;
10023         pgf77* | pgf90* | pgf95* | pgfortran*)
10024                                         # Portland Group f77 and f90 compilers
10025           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'
10026           tmp_addflag=' $pic_flag -Mnomain' ;;
10027         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10028           tmp_addflag=' -i_dynamic' ;;
10029         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10030           tmp_addflag=' -i_dynamic -nofor_main' ;;
10031         ifc* | ifort*)                  # Intel Fortran compiler
10032           tmp_addflag=' -nofor_main' ;;
10033         lf95*)                          # Lahey Fortran 8.1
10034           whole_archive_flag_spec=
10035           tmp_sharedflag='--shared' ;;
10036         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10037           tmp_sharedflag='-qmkshrobj'
10038           tmp_addflag= ;;
10039         nvcc*)  # Cuda Compiler Driver 2.2
10040           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'
10041           compiler_needs_object=yes
10042           ;;
10043         esac
10044         case `$CC -V 2>&1 | sed 5q` in
10045         *Sun\ C*)                       # Sun C 5.9
10046           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'
10047           compiler_needs_object=yes
10048           tmp_sharedflag='-G' ;;
10049         *Sun\ F*)                       # Sun Fortran 8.3
10050           tmp_sharedflag='-G' ;;
10051         esac
10052         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10053
10054         if test "x$supports_anon_versioning" = xyes; then
10055           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10056             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10057             echo "local: *; };" >> $output_objdir/$libname.ver~
10058             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10059         fi
10060
10061         case $cc_basename in
10062         xlf* | bgf* | bgxlf* | mpixlf*)
10063           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10064           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10065           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10066           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10067           if test "x$supports_anon_versioning" = xyes; then
10068             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10069               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10070               echo "local: *; };" >> $output_objdir/$libname.ver~
10071               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10072           fi
10073           ;;
10074         esac
10075       else
10076         ld_shlibs=no
10077       fi
10078       ;;
10079
10080     netbsd* | netbsdelf*-gnu)
10081       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10082         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10083         wlarc=
10084       else
10085         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10086         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10087       fi
10088       ;;
10089
10090     solaris*)
10091       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10092         ld_shlibs=no
10093         cat <<_LT_EOF 1>&2
10094
10095 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10096 *** create shared libraries on Solaris systems.  Therefore, libtool
10097 *** is disabling shared libraries support.  We urge you to upgrade GNU
10098 *** binutils to release 2.9.1 or newer.  Another option is to modify
10099 *** your PATH or compiler configuration so that the native linker is
10100 *** used, and then restart.
10101
10102 _LT_EOF
10103       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10104         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10105         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10106       else
10107         ld_shlibs=no
10108       fi
10109       ;;
10110
10111     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10112       case `$LD -v 2>&1` in
10113         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10114         ld_shlibs=no
10115         cat <<_LT_EOF 1>&2
10116
10117 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10118 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10119 *** is disabling shared libraries support.  We urge you to upgrade GNU
10120 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10121 *** your PATH or compiler configuration so that the native linker is
10122 *** used, and then restart.
10123
10124 _LT_EOF
10125         ;;
10126         *)
10127           # For security reasons, it is highly recommended that you always
10128           # use absolute paths for naming shared libraries, and exclude the
10129           # DT_RUNPATH tag from executables and libraries.  But doing so
10130           # requires that you compile everything twice, which is a pain.
10131           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10132             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10133             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10134             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10135           else
10136             ld_shlibs=no
10137           fi
10138         ;;
10139       esac
10140       ;;
10141
10142     sunos4*)
10143       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10144       wlarc=
10145       hardcode_direct=yes
10146       hardcode_shlibpath_var=no
10147       ;;
10148
10149     *)
10150       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10151         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10152         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10153       else
10154         ld_shlibs=no
10155       fi
10156       ;;
10157     esac
10158
10159     if test "$ld_shlibs" = no; then
10160       runpath_var=
10161       hardcode_libdir_flag_spec=
10162       export_dynamic_flag_spec=
10163       whole_archive_flag_spec=
10164     fi
10165   else
10166     # PORTME fill in a description of your system's linker (not GNU ld)
10167     case $host_os in
10168     aix3*)
10169       allow_undefined_flag=unsupported
10170       always_export_symbols=yes
10171       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'
10172       # Note: this linker hardcodes the directories in LIBPATH if there
10173       # are no directories specified by -L.
10174       hardcode_minus_L=yes
10175       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10176         # Neither direct hardcoding nor static linking is supported with a
10177         # broken collect2.
10178         hardcode_direct=unsupported
10179       fi
10180       ;;
10181
10182     aix[4-9]*)
10183       if test "$host_cpu" = ia64; then
10184         # On IA64, the linker does run time linking by default, so we don't
10185         # have to do anything special.
10186         aix_use_runtimelinking=no
10187         exp_sym_flag='-Bexport'
10188         no_entry_flag=""
10189       else
10190         # If we're using GNU nm, then we don't want the "-C" option.
10191         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10192         # Also, AIX nm treats weak defined symbols like other global
10193         # defined symbols, whereas GNU nm marks them as "W".
10194         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10195           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'
10196         else
10197           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'
10198         fi
10199         aix_use_runtimelinking=no
10200
10201         # Test if we are trying to use run time linking or normal
10202         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10203         # need to do runtime linking.
10204         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10205           for ld_flag in $LDFLAGS; do
10206           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10207             aix_use_runtimelinking=yes
10208             break
10209           fi
10210           done
10211           ;;
10212         esac
10213
10214         exp_sym_flag='-bexport'
10215         no_entry_flag='-bnoentry'
10216       fi
10217
10218       # When large executables or shared objects are built, AIX ld can
10219       # have problems creating the table of contents.  If linking a library
10220       # or program results in "error TOC overflow" add -mminimal-toc to
10221       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10222       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10223
10224       archive_cmds=''
10225       hardcode_direct=yes
10226       hardcode_direct_absolute=yes
10227       hardcode_libdir_separator=':'
10228       link_all_deplibs=yes
10229       file_list_spec='${wl}-f,'
10230
10231       if test "$GCC" = yes; then
10232         case $host_os in aix4.[012]|aix4.[012].*)
10233         # We only want to do this on AIX 4.2 and lower, the check
10234         # below for broken collect2 doesn't work under 4.3+
10235           collect2name=`${CC} -print-prog-name=collect2`
10236           if test -f "$collect2name" &&
10237            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10238           then
10239           # We have reworked collect2
10240           :
10241           else
10242           # We have old collect2
10243           hardcode_direct=unsupported
10244           # It fails to find uninstalled libraries when the uninstalled
10245           # path is not listed in the libpath.  Setting hardcode_minus_L
10246           # to unsupported forces relinking
10247           hardcode_minus_L=yes
10248           hardcode_libdir_flag_spec='-L$libdir'
10249           hardcode_libdir_separator=
10250           fi
10251           ;;
10252         esac
10253         shared_flag='-shared'
10254         if test "$aix_use_runtimelinking" = yes; then
10255           shared_flag="$shared_flag "'${wl}-G'
10256         fi
10257         link_all_deplibs=no
10258       else
10259         # not using gcc
10260         if test "$host_cpu" = ia64; then
10261         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10262         # chokes on -Wl,-G. The following line is correct:
10263           shared_flag='-G'
10264         else
10265           if test "$aix_use_runtimelinking" = yes; then
10266             shared_flag='${wl}-G'
10267           else
10268             shared_flag='${wl}-bM:SRE'
10269           fi
10270         fi
10271       fi
10272
10273       export_dynamic_flag_spec='${wl}-bexpall'
10274       # It seems that -bexpall does not export symbols beginning with
10275       # underscore (_), so it is better to generate a list of symbols to export.
10276       always_export_symbols=yes
10277       if test "$aix_use_runtimelinking" = yes; then
10278         # Warning - without using the other runtime loading flags (-brtl),
10279         # -berok will link without error, but may produce a broken library.
10280         allow_undefined_flag='-berok'
10281         # Determine the default libpath from the value encoded in an
10282         # empty executable.
10283         if test "${lt_cv_aix_libpath+set}" = set; then
10284   aix_libpath=$lt_cv_aix_libpath
10285 else
10286   if ${lt_cv_aix_libpath_+:} false; then :
10287   $as_echo_n "(cached) " >&6
10288 else
10289   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10290 /* end confdefs.h.  */
10291
10292 int
10293 main ()
10294 {
10295
10296   ;
10297   return 0;
10298 }
10299 _ACEOF
10300 if ac_fn_c_try_link "$LINENO"; then :
10301
10302   lt_aix_libpath_sed='
10303       /Import File Strings/,/^$/ {
10304           /^0/ {
10305               s/^0  *\([^ ]*\) *$/\1/
10306               p
10307           }
10308       }'
10309   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10310   # Check for a 64-bit object if we didn't find anything.
10311   if test -z "$lt_cv_aix_libpath_"; then
10312     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10313   fi
10314 fi
10315 rm -f core conftest.err conftest.$ac_objext \
10316     conftest$ac_exeext conftest.$ac_ext
10317   if test -z "$lt_cv_aix_libpath_"; then
10318     lt_cv_aix_libpath_="/usr/lib:/lib"
10319   fi
10320
10321 fi
10322
10323   aix_libpath=$lt_cv_aix_libpath_
10324 fi
10325
10326         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10327         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"
10328       else
10329         if test "$host_cpu" = ia64; then
10330           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10331           allow_undefined_flag="-z nodefs"
10332           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"
10333         else
10334          # Determine the default libpath from the value encoded in an
10335          # empty executable.
10336          if test "${lt_cv_aix_libpath+set}" = set; then
10337   aix_libpath=$lt_cv_aix_libpath
10338 else
10339   if ${lt_cv_aix_libpath_+:} false; then :
10340   $as_echo_n "(cached) " >&6
10341 else
10342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10343 /* end confdefs.h.  */
10344
10345 int
10346 main ()
10347 {
10348
10349   ;
10350   return 0;
10351 }
10352 _ACEOF
10353 if ac_fn_c_try_link "$LINENO"; then :
10354
10355   lt_aix_libpath_sed='
10356       /Import File Strings/,/^$/ {
10357           /^0/ {
10358               s/^0  *\([^ ]*\) *$/\1/
10359               p
10360           }
10361       }'
10362   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10363   # Check for a 64-bit object if we didn't find anything.
10364   if test -z "$lt_cv_aix_libpath_"; then
10365     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10366   fi
10367 fi
10368 rm -f core conftest.err conftest.$ac_objext \
10369     conftest$ac_exeext conftest.$ac_ext
10370   if test -z "$lt_cv_aix_libpath_"; then
10371     lt_cv_aix_libpath_="/usr/lib:/lib"
10372   fi
10373
10374 fi
10375
10376   aix_libpath=$lt_cv_aix_libpath_
10377 fi
10378
10379          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10380           # Warning - without using the other run time loading flags,
10381           # -berok will link without error, but may produce a broken library.
10382           no_undefined_flag=' ${wl}-bernotok'
10383           allow_undefined_flag=' ${wl}-berok'
10384           if test "$with_gnu_ld" = yes; then
10385             # We only use this code for GNU lds that support --whole-archive.
10386             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10387           else
10388             # Exported symbols can be pulled into shared objects from archives
10389             whole_archive_flag_spec='$convenience'
10390           fi
10391           archive_cmds_need_lc=yes
10392           # This is similar to how AIX traditionally builds its shared libraries.
10393           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'
10394         fi
10395       fi
10396       ;;
10397
10398     amigaos*)
10399       case $host_cpu in
10400       powerpc)
10401             # see comment about AmigaOS4 .so support
10402             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10403             archive_expsym_cmds=''
10404         ;;
10405       m68k)
10406             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)'
10407             hardcode_libdir_flag_spec='-L$libdir'
10408             hardcode_minus_L=yes
10409         ;;
10410       esac
10411       ;;
10412
10413     bsdi[45]*)
10414       export_dynamic_flag_spec=-rdynamic
10415       ;;
10416
10417     cygwin* | mingw* | pw32* | cegcc*)
10418       # When not using gcc, we currently assume that we are using
10419       # Microsoft Visual C++.
10420       # hardcode_libdir_flag_spec is actually meaningless, as there is
10421       # no search path for DLLs.
10422       case $cc_basename in
10423       cl*)
10424         # Native MSVC
10425         hardcode_libdir_flag_spec=' '
10426         allow_undefined_flag=unsupported
10427         always_export_symbols=yes
10428         file_list_spec='@'
10429         # Tell ltmain to make .lib files, not .a files.
10430         libext=lib
10431         # Tell ltmain to make .dll files, not .so files.
10432         shrext_cmds=".dll"
10433         # FIXME: Setting linknames here is a bad hack.
10434         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10435         archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
10436             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10437           else
10438             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10439           fi~
10440           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10441           linknames='
10442         # The linker will not automatically build a static lib if we build a DLL.
10443         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10444         enable_shared_with_static_runtimes=yes
10445         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10446         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10447         # Don't use ranlib
10448         old_postinstall_cmds='chmod 644 $oldlib'
10449         postlink_cmds='lt_outputfile="@OUTPUT@"~
10450           lt_tool_outputfile="@TOOL_OUTPUT@"~
10451           case $lt_outputfile in
10452             *.exe|*.EXE) ;;
10453             *)
10454               lt_outputfile="$lt_outputfile.exe"
10455               lt_tool_outputfile="$lt_tool_outputfile.exe"
10456               ;;
10457           esac~
10458           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10459             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10460             $RM "$lt_outputfile.manifest";
10461           fi'
10462         ;;
10463       *)
10464         # Assume MSVC wrapper
10465         hardcode_libdir_flag_spec=' '
10466         allow_undefined_flag=unsupported
10467         # Tell ltmain to make .lib files, not .a files.
10468         libext=lib
10469         # Tell ltmain to make .dll files, not .so files.
10470         shrext_cmds=".dll"
10471         # FIXME: Setting linknames here is a bad hack.
10472         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10473         # The linker will automatically build a .lib file if we build a DLL.
10474         old_archive_from_new_cmds='true'
10475         # FIXME: Should let the user specify the lib program.
10476         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10477         enable_shared_with_static_runtimes=yes
10478         ;;
10479       esac
10480       ;;
10481
10482     darwin* | rhapsody*)
10483
10484
10485   archive_cmds_need_lc=no
10486   hardcode_direct=no
10487   hardcode_automatic=yes
10488   hardcode_shlibpath_var=unsupported
10489   if test "$lt_cv_ld_force_load" = "yes"; then
10490     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\"`'
10491
10492   else
10493     whole_archive_flag_spec=''
10494   fi
10495   link_all_deplibs=yes
10496   allow_undefined_flag="$_lt_dar_allow_undefined"
10497   case $cc_basename in
10498      ifort*) _lt_dar_can_shared=yes ;;
10499      *) _lt_dar_can_shared=$GCC ;;
10500   esac
10501   if test "$_lt_dar_can_shared" = "yes"; then
10502     output_verbose_link_cmd=func_echo_all
10503     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10504     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10505     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}"
10506     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}"
10507
10508   else
10509   ld_shlibs=no
10510   fi
10511
10512       ;;
10513
10514     dgux*)
10515       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10516       hardcode_libdir_flag_spec='-L$libdir'
10517       hardcode_shlibpath_var=no
10518       ;;
10519
10520     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10521     # support.  Future versions do this automatically, but an explicit c++rt0.o
10522     # does not break anything, and helps significantly (at the cost of a little
10523     # extra space).
10524     freebsd2.2*)
10525       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10526       hardcode_libdir_flag_spec='-R$libdir'
10527       hardcode_direct=yes
10528       hardcode_shlibpath_var=no
10529       ;;
10530
10531     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10532     freebsd2.*)
10533       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10534       hardcode_direct=yes
10535       hardcode_minus_L=yes
10536       hardcode_shlibpath_var=no
10537       ;;
10538
10539     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10540     freebsd* | dragonfly*)
10541       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10542       hardcode_libdir_flag_spec='-R$libdir'
10543       hardcode_direct=yes
10544       hardcode_shlibpath_var=no
10545       ;;
10546
10547     hpux9*)
10548       if test "$GCC" = yes; then
10549         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'
10550       else
10551         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'
10552       fi
10553       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10554       hardcode_libdir_separator=:
10555       hardcode_direct=yes
10556
10557       # hardcode_minus_L: Not really in the search PATH,
10558       # but as the default location of the library.
10559       hardcode_minus_L=yes
10560       export_dynamic_flag_spec='${wl}-E'
10561       ;;
10562
10563     hpux10*)
10564       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10565         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10566       else
10567         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10568       fi
10569       if test "$with_gnu_ld" = no; then
10570         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10571         hardcode_libdir_separator=:
10572         hardcode_direct=yes
10573         hardcode_direct_absolute=yes
10574         export_dynamic_flag_spec='${wl}-E'
10575         # hardcode_minus_L: Not really in the search PATH,
10576         # but as the default location of the library.
10577         hardcode_minus_L=yes
10578       fi
10579       ;;
10580
10581     hpux11*)
10582       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10583         case $host_cpu in
10584         hppa*64*)
10585           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10586           ;;
10587         ia64*)
10588           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10589           ;;
10590         *)
10591           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10592           ;;
10593         esac
10594       else
10595         case $host_cpu in
10596         hppa*64*)
10597           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10598           ;;
10599         ia64*)
10600           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10601           ;;
10602         *)
10603
10604           # Older versions of the 11.00 compiler do not understand -b yet
10605           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10606           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10607 $as_echo_n "checking if $CC understands -b... " >&6; }
10608 if ${lt_cv_prog_compiler__b+:} false; then :
10609   $as_echo_n "(cached) " >&6
10610 else
10611   lt_cv_prog_compiler__b=no
10612    save_LDFLAGS="$LDFLAGS"
10613    LDFLAGS="$LDFLAGS -b"
10614    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10615    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10616      # The linker can only warn and ignore the option if not recognized
10617      # So say no if there are warnings
10618      if test -s conftest.err; then
10619        # Append any errors to the config.log.
10620        cat conftest.err 1>&5
10621        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10622        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10623        if diff conftest.exp conftest.er2 >/dev/null; then
10624          lt_cv_prog_compiler__b=yes
10625        fi
10626      else
10627        lt_cv_prog_compiler__b=yes
10628      fi
10629    fi
10630    $RM -r conftest*
10631    LDFLAGS="$save_LDFLAGS"
10632
10633 fi
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10635 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10636
10637 if test x"$lt_cv_prog_compiler__b" = xyes; then
10638     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10639 else
10640     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10641 fi
10642
10643           ;;
10644         esac
10645       fi
10646       if test "$with_gnu_ld" = no; then
10647         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10648         hardcode_libdir_separator=:
10649
10650         case $host_cpu in
10651         hppa*64*|ia64*)
10652           hardcode_direct=no
10653           hardcode_shlibpath_var=no
10654           ;;
10655         *)
10656           hardcode_direct=yes
10657           hardcode_direct_absolute=yes
10658           export_dynamic_flag_spec='${wl}-E'
10659
10660           # hardcode_minus_L: Not really in the search PATH,
10661           # but as the default location of the library.
10662           hardcode_minus_L=yes
10663           ;;
10664         esac
10665       fi
10666       ;;
10667
10668     irix5* | irix6* | nonstopux*)
10669       if test "$GCC" = yes; then
10670         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'
10671         # Try to use the -exported_symbol ld option, if it does not
10672         # work, assume that -exports_file does not work either and
10673         # implicitly export all symbols.
10674         # This should be the same for all languages, so no per-tag cache variable.
10675         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10676 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10677 if ${lt_cv_irix_exported_symbol+:} false; then :
10678   $as_echo_n "(cached) " >&6
10679 else
10680   save_LDFLAGS="$LDFLAGS"
10681            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10682            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10683 /* end confdefs.h.  */
10684 int foo (void) { return 0; }
10685 _ACEOF
10686 if ac_fn_c_try_link "$LINENO"; then :
10687   lt_cv_irix_exported_symbol=yes
10688 else
10689   lt_cv_irix_exported_symbol=no
10690 fi
10691 rm -f core conftest.err conftest.$ac_objext \
10692     conftest$ac_exeext conftest.$ac_ext
10693            LDFLAGS="$save_LDFLAGS"
10694 fi
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10696 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10697         if test "$lt_cv_irix_exported_symbol" = yes; then
10698           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'
10699         fi
10700       else
10701         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'
10702         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'
10703       fi
10704       archive_cmds_need_lc='no'
10705       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10706       hardcode_libdir_separator=:
10707       inherit_rpath=yes
10708       link_all_deplibs=yes
10709       ;;
10710
10711     netbsd* | netbsdelf*-gnu)
10712       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10713         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10714       else
10715         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10716       fi
10717       hardcode_libdir_flag_spec='-R$libdir'
10718       hardcode_direct=yes
10719       hardcode_shlibpath_var=no
10720       ;;
10721
10722     newsos6)
10723       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10724       hardcode_direct=yes
10725       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10726       hardcode_libdir_separator=:
10727       hardcode_shlibpath_var=no
10728       ;;
10729
10730     *nto* | *qnx*)
10731       ;;
10732
10733     openbsd*)
10734       if test -f /usr/libexec/ld.so; then
10735         hardcode_direct=yes
10736         hardcode_shlibpath_var=no
10737         hardcode_direct_absolute=yes
10738         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10739           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10740           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10741           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10742           export_dynamic_flag_spec='${wl}-E'
10743         else
10744           case $host_os in
10745            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10746              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10747              hardcode_libdir_flag_spec='-R$libdir'
10748              ;;
10749            *)
10750              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10751              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10752              ;;
10753           esac
10754         fi
10755       else
10756         ld_shlibs=no
10757       fi
10758       ;;
10759
10760     os2*)
10761       hardcode_libdir_flag_spec='-L$libdir'
10762       hardcode_minus_L=yes
10763       allow_undefined_flag=unsupported
10764       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'
10765       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10766       ;;
10767
10768     osf3*)
10769       if test "$GCC" = yes; then
10770         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10771         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'
10772       else
10773         allow_undefined_flag=' -expect_unresolved \*'
10774         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'
10775       fi
10776       archive_cmds_need_lc='no'
10777       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10778       hardcode_libdir_separator=:
10779       ;;
10780
10781     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10782       if test "$GCC" = yes; then
10783         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10784         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'
10785         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10786       else
10787         allow_undefined_flag=' -expect_unresolved \*'
10788         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'
10789         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~
10790         $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'
10791
10792         # Both c and cxx compiler support -rpath directly
10793         hardcode_libdir_flag_spec='-rpath $libdir'
10794       fi
10795       archive_cmds_need_lc='no'
10796       hardcode_libdir_separator=:
10797       ;;
10798
10799     solaris*)
10800       no_undefined_flag=' -z defs'
10801       if test "$GCC" = yes; then
10802         wlarc='${wl}'
10803         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10804         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10805           $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'
10806       else
10807         case `$CC -V 2>&1` in
10808         *"Compilers 5.0"*)
10809           wlarc=''
10810           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10811           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10812           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10813           ;;
10814         *)
10815           wlarc='${wl}'
10816           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10817           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10818           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10819           ;;
10820         esac
10821       fi
10822       hardcode_libdir_flag_spec='-R$libdir'
10823       hardcode_shlibpath_var=no
10824       case $host_os in
10825       solaris2.[0-5] | solaris2.[0-5].*) ;;
10826       *)
10827         # The compiler driver will combine and reorder linker options,
10828         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10829         # but is careful enough not to reorder.
10830         # Supported since Solaris 2.6 (maybe 2.5.1?)
10831         if test "$GCC" = yes; then
10832           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10833         else
10834           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10835         fi
10836         ;;
10837       esac
10838       link_all_deplibs=yes
10839       ;;
10840
10841     sunos4*)
10842       if test "x$host_vendor" = xsequent; then
10843         # Use $CC to link under sequent, because it throws in some extra .o
10844         # files that make .init and .fini sections work.
10845         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10846       else
10847         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10848       fi
10849       hardcode_libdir_flag_spec='-L$libdir'
10850       hardcode_direct=yes
10851       hardcode_minus_L=yes
10852       hardcode_shlibpath_var=no
10853       ;;
10854
10855     sysv4)
10856       case $host_vendor in
10857         sni)
10858           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10859           hardcode_direct=yes # is this really true???
10860         ;;
10861         siemens)
10862           ## LD is ld it makes a PLAMLIB
10863           ## CC just makes a GrossModule.
10864           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10865           reload_cmds='$CC -r -o $output$reload_objs'
10866           hardcode_direct=no
10867         ;;
10868         motorola)
10869           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10870           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10871         ;;
10872       esac
10873       runpath_var='LD_RUN_PATH'
10874       hardcode_shlibpath_var=no
10875       ;;
10876
10877     sysv4.3*)
10878       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10879       hardcode_shlibpath_var=no
10880       export_dynamic_flag_spec='-Bexport'
10881       ;;
10882
10883     sysv4*MP*)
10884       if test -d /usr/nec; then
10885         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10886         hardcode_shlibpath_var=no
10887         runpath_var=LD_RUN_PATH
10888         hardcode_runpath_var=yes
10889         ld_shlibs=yes
10890       fi
10891       ;;
10892
10893     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10894       no_undefined_flag='${wl}-z,text'
10895       archive_cmds_need_lc=no
10896       hardcode_shlibpath_var=no
10897       runpath_var='LD_RUN_PATH'
10898
10899       if test "$GCC" = yes; then
10900         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10901         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10902       else
10903         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10904         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10905       fi
10906       ;;
10907
10908     sysv5* | sco3.2v5* | sco5v6*)
10909       # Note: We can NOT use -z defs as we might desire, because we do not
10910       # link with -lc, and that would cause any symbols used from libc to
10911       # always be unresolved, which means just about no library would
10912       # ever link correctly.  If we're not using GNU ld we use -z text
10913       # though, which does catch some bad symbols but isn't as heavy-handed
10914       # as -z defs.
10915       no_undefined_flag='${wl}-z,text'
10916       allow_undefined_flag='${wl}-z,nodefs'
10917       archive_cmds_need_lc=no
10918       hardcode_shlibpath_var=no
10919       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10920       hardcode_libdir_separator=':'
10921       link_all_deplibs=yes
10922       export_dynamic_flag_spec='${wl}-Bexport'
10923       runpath_var='LD_RUN_PATH'
10924
10925       if test "$GCC" = yes; then
10926         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10927         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10928       else
10929         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10930         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10931       fi
10932       ;;
10933
10934     uts4*)
10935       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10936       hardcode_libdir_flag_spec='-L$libdir'
10937       hardcode_shlibpath_var=no
10938       ;;
10939
10940     *)
10941       ld_shlibs=no
10942       ;;
10943     esac
10944
10945     if test x$host_vendor = xsni; then
10946       case $host in
10947       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10948         export_dynamic_flag_spec='${wl}-Blargedynsym'
10949         ;;
10950       esac
10951     fi
10952   fi
10953
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10955 $as_echo "$ld_shlibs" >&6; }
10956 test "$ld_shlibs" = no && can_build_shared=no
10957
10958 with_gnu_ld=$with_gnu_ld
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974 #
10975 # Do we need to explicitly link libc?
10976 #
10977 case "x$archive_cmds_need_lc" in
10978 x|xyes)
10979   # Assume -lc should be added
10980   archive_cmds_need_lc=yes
10981
10982   if test "$enable_shared" = yes && test "$GCC" = yes; then
10983     case $archive_cmds in
10984     *'~'*)
10985       # FIXME: we may have to deal with multi-command sequences.
10986       ;;
10987     '$CC '*)
10988       # Test whether the compiler implicitly links with -lc since on some
10989       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10990       # to ld, don't add -lc before -lgcc.
10991       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10992 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10993 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10994   $as_echo_n "(cached) " >&6
10995 else
10996   $RM conftest*
10997         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10998
10999         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11000   (eval $ac_compile) 2>&5
11001   ac_status=$?
11002   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11003   test $ac_status = 0; } 2>conftest.err; then
11004           soname=conftest
11005           lib=conftest
11006           libobjs=conftest.$ac_objext
11007           deplibs=
11008           wl=$lt_prog_compiler_wl
11009           pic_flag=$lt_prog_compiler_pic
11010           compiler_flags=-v
11011           linker_flags=-v
11012           verstring=
11013           output_objdir=.
11014           libname=conftest
11015           lt_save_allow_undefined_flag=$allow_undefined_flag
11016           allow_undefined_flag=
11017           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11018   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11019   ac_status=$?
11020   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11021   test $ac_status = 0; }
11022           then
11023             lt_cv_archive_cmds_need_lc=no
11024           else
11025             lt_cv_archive_cmds_need_lc=yes
11026           fi
11027           allow_undefined_flag=$lt_save_allow_undefined_flag
11028         else
11029           cat conftest.err 1>&5
11030         fi
11031         $RM conftest*
11032
11033 fi
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11035 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11036       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11037       ;;
11038     esac
11039   fi
11040   ;;
11041 esac
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11195 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11196
11197 if test "$GCC" = yes; then
11198   case $host_os in
11199     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11200     *) lt_awk_arg="/^libraries:/" ;;
11201   esac
11202   case $host_os in
11203     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11204     *) lt_sed_strip_eq="s,=/,/,g" ;;
11205   esac
11206   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11207   case $lt_search_path_spec in
11208   *\;*)
11209     # if the path contains ";" then we assume it to be the separator
11210     # otherwise default to the standard path separator (i.e. ":") - it is
11211     # assumed that no part of a normal pathname contains ";" but that should
11212     # okay in the real world where ";" in dirpaths is itself problematic.
11213     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11214     ;;
11215   *)
11216     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11217     ;;
11218   esac
11219   # Ok, now we have the path, separated by spaces, we can step through it
11220   # and add multilib dir if necessary.
11221   lt_tmp_lt_search_path_spec=
11222   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11223   for lt_sys_path in $lt_search_path_spec; do
11224     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11225       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11226     else
11227       test -d "$lt_sys_path" && \
11228         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11229     fi
11230   done
11231   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11232 BEGIN {RS=" "; FS="/|\n";} {
11233   lt_foo="";
11234   lt_count=0;
11235   for (lt_i = NF; lt_i > 0; lt_i--) {
11236     if ($lt_i != "" && $lt_i != ".") {
11237       if ($lt_i == "..") {
11238         lt_count++;
11239       } else {
11240         if (lt_count == 0) {
11241           lt_foo="/" $lt_i lt_foo;
11242         } else {
11243           lt_count--;
11244         }
11245       }
11246     }
11247   }
11248   if (lt_foo != "") { lt_freq[lt_foo]++; }
11249   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11250 }'`
11251   # AWK program above erroneously prepends '/' to C:/dos/paths
11252   # for these hosts.
11253   case $host_os in
11254     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11255       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11256   esac
11257   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11258 else
11259   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11260 fi
11261 library_names_spec=
11262 libname_spec='lib$name'
11263 soname_spec=
11264 shrext_cmds=".so"
11265 postinstall_cmds=
11266 postuninstall_cmds=
11267 finish_cmds=
11268 finish_eval=
11269 shlibpath_var=
11270 shlibpath_overrides_runpath=unknown
11271 version_type=none
11272 dynamic_linker="$host_os ld.so"
11273 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11274 need_lib_prefix=unknown
11275 hardcode_into_libs=no
11276
11277 # when you set need_version to no, make sure it does not cause -set_version
11278 # flags to be left without arguments
11279 need_version=unknown
11280
11281 case $host_os in
11282 aix3*)
11283   version_type=linux # correct to gnu/linux during the next big refactor
11284   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11285   shlibpath_var=LIBPATH
11286
11287   # AIX 3 has no versioning support, so we append a major version to the name.
11288   soname_spec='${libname}${release}${shared_ext}$major'
11289   ;;
11290
11291 aix[4-9]*)
11292   version_type=linux # correct to gnu/linux during the next big refactor
11293   need_lib_prefix=no
11294   need_version=no
11295   hardcode_into_libs=yes
11296   if test "$host_cpu" = ia64; then
11297     # AIX 5 supports IA64
11298     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11299     shlibpath_var=LD_LIBRARY_PATH
11300   else
11301     # With GCC up to 2.95.x, collect2 would create an import file
11302     # for dependence libraries.  The import file would start with
11303     # the line `#! .'.  This would cause the generated library to
11304     # depend on `.', always an invalid library.  This was fixed in
11305     # development snapshots of GCC prior to 3.0.
11306     case $host_os in
11307       aix4 | aix4.[01] | aix4.[01].*)
11308       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11309            echo ' yes '
11310            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11311         :
11312       else
11313         can_build_shared=no
11314       fi
11315       ;;
11316     esac
11317     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11318     # soname into executable. Probably we can add versioning support to
11319     # collect2, so additional links can be useful in future.
11320     if test "$aix_use_runtimelinking" = yes; then
11321       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11322       # instead of lib<name>.a to let people know that these are not
11323       # typical AIX shared libraries.
11324       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11325     else
11326       # We preserve .a as extension for shared libraries through AIX4.2
11327       # and later when we are not doing run time linking.
11328       library_names_spec='${libname}${release}.a $libname.a'
11329       soname_spec='${libname}${release}${shared_ext}$major'
11330     fi
11331     shlibpath_var=LIBPATH
11332   fi
11333   ;;
11334
11335 amigaos*)
11336   case $host_cpu in
11337   powerpc)
11338     # Since July 2007 AmigaOS4 officially supports .so libraries.
11339     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11340     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11341     ;;
11342   m68k)
11343     library_names_spec='$libname.ixlibrary $libname.a'
11344     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11345     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'
11346     ;;
11347   esac
11348   ;;
11349
11350 beos*)
11351   library_names_spec='${libname}${shared_ext}'
11352   dynamic_linker="$host_os ld.so"
11353   shlibpath_var=LIBRARY_PATH
11354   ;;
11355
11356 bsdi[45]*)
11357   version_type=linux # correct to gnu/linux during the next big refactor
11358   need_version=no
11359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11360   soname_spec='${libname}${release}${shared_ext}$major'
11361   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11362   shlibpath_var=LD_LIBRARY_PATH
11363   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11364   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11365   # the default ld.so.conf also contains /usr/contrib/lib and
11366   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11367   # libtool to hard-code these into programs
11368   ;;
11369
11370 cygwin* | mingw* | pw32* | cegcc*)
11371   version_type=windows
11372   shrext_cmds=".dll"
11373   need_version=no
11374   need_lib_prefix=no
11375
11376   case $GCC,$cc_basename in
11377   yes,*)
11378     # gcc
11379     library_names_spec='$libname.dll.a'
11380     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11381     postinstall_cmds='base_file=`basename \${file}`~
11382       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11383       dldir=$destdir/`dirname \$dlpath`~
11384       test -d \$dldir || mkdir -p \$dldir~
11385       $install_prog $dir/$dlname \$dldir/$dlname~
11386       chmod a+x \$dldir/$dlname~
11387       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11388         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11389       fi'
11390     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11391       dlpath=$dir/\$dldll~
11392        $RM \$dlpath'
11393     shlibpath_overrides_runpath=yes
11394
11395     case $host_os in
11396     cygwin*)
11397       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11398       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11399
11400       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11401       ;;
11402     mingw* | cegcc*)
11403       # MinGW DLLs use traditional 'lib' prefix
11404       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11405       ;;
11406     pw32*)
11407       # pw32 DLLs use 'pw' prefix rather than 'lib'
11408       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11409       ;;
11410     esac
11411     dynamic_linker='Win32 ld.exe'
11412     ;;
11413
11414   *,cl*)
11415     # Native MSVC
11416     libname_spec='$name'
11417     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11418     library_names_spec='${libname}.dll.lib'
11419
11420     case $build_os in
11421     mingw*)
11422       sys_lib_search_path_spec=
11423       lt_save_ifs=$IFS
11424       IFS=';'
11425       for lt_path in $LIB
11426       do
11427         IFS=$lt_save_ifs
11428         # Let DOS variable expansion print the short 8.3 style file name.
11429         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11430         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11431       done
11432       IFS=$lt_save_ifs
11433       # Convert to MSYS style.
11434       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11435       ;;
11436     cygwin*)
11437       # Convert to unix form, then to dos form, then back to unix form
11438       # but this time dos style (no spaces!) so that the unix form looks
11439       # like /cygdrive/c/PROGRA~1:/cygdr...
11440       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11441       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11442       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11443       ;;
11444     *)
11445       sys_lib_search_path_spec="$LIB"
11446       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11447         # It is most probably a Windows format PATH.
11448         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11449       else
11450         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11451       fi
11452       # FIXME: find the short name or the path components, as spaces are
11453       # common. (e.g. "Program Files" -> "PROGRA~1")
11454       ;;
11455     esac
11456
11457     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11458     postinstall_cmds='base_file=`basename \${file}`~
11459       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11460       dldir=$destdir/`dirname \$dlpath`~
11461       test -d \$dldir || mkdir -p \$dldir~
11462       $install_prog $dir/$dlname \$dldir/$dlname'
11463     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11464       dlpath=$dir/\$dldll~
11465        $RM \$dlpath'
11466     shlibpath_overrides_runpath=yes
11467     dynamic_linker='Win32 link.exe'
11468     ;;
11469
11470   *)
11471     # Assume MSVC wrapper
11472     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11473     dynamic_linker='Win32 ld.exe'
11474     ;;
11475   esac
11476   # FIXME: first we should search . and the directory the executable is in
11477   shlibpath_var=PATH
11478   ;;
11479
11480 darwin* | rhapsody*)
11481   dynamic_linker="$host_os dyld"
11482   version_type=darwin
11483   need_lib_prefix=no
11484   need_version=no
11485   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11486   soname_spec='${libname}${release}${major}$shared_ext'
11487   shlibpath_overrides_runpath=yes
11488   shlibpath_var=DYLD_LIBRARY_PATH
11489   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11490
11491   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11492   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11493   ;;
11494
11495 dgux*)
11496   version_type=linux # correct to gnu/linux during the next big refactor
11497   need_lib_prefix=no
11498   need_version=no
11499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11500   soname_spec='${libname}${release}${shared_ext}$major'
11501   shlibpath_var=LD_LIBRARY_PATH
11502   ;;
11503
11504 freebsd* | dragonfly*)
11505   # DragonFly does not have aout.  When/if they implement a new
11506   # versioning mechanism, adjust this.
11507   if test -x /usr/bin/objformat; then
11508     objformat=`/usr/bin/objformat`
11509   else
11510     case $host_os in
11511     freebsd[23].*) objformat=aout ;;
11512     *) objformat=elf ;;
11513     esac
11514   fi
11515   version_type=freebsd-$objformat
11516   case $version_type in
11517     freebsd-elf*)
11518       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11519       need_version=no
11520       need_lib_prefix=no
11521       ;;
11522     freebsd-*)
11523       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11524       need_version=yes
11525       ;;
11526   esac
11527   shlibpath_var=LD_LIBRARY_PATH
11528   case $host_os in
11529   freebsd2.*)
11530     shlibpath_overrides_runpath=yes
11531     ;;
11532   freebsd3.[01]* | freebsdelf3.[01]*)
11533     shlibpath_overrides_runpath=yes
11534     hardcode_into_libs=yes
11535     ;;
11536   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11537   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11538     shlibpath_overrides_runpath=no
11539     hardcode_into_libs=yes
11540     ;;
11541   *) # from 4.6 on, and DragonFly
11542     shlibpath_overrides_runpath=yes
11543     hardcode_into_libs=yes
11544     ;;
11545   esac
11546   ;;
11547
11548 gnu*)
11549   version_type=linux # correct to gnu/linux during the next big refactor
11550   need_lib_prefix=no
11551   need_version=no
11552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11553   soname_spec='${libname}${release}${shared_ext}$major'
11554   shlibpath_var=LD_LIBRARY_PATH
11555   shlibpath_overrides_runpath=no
11556   hardcode_into_libs=yes
11557   ;;
11558
11559 haiku*)
11560   version_type=linux # correct to gnu/linux during the next big refactor
11561   need_lib_prefix=no
11562   need_version=no
11563   dynamic_linker="$host_os runtime_loader"
11564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11565   soname_spec='${libname}${release}${shared_ext}$major'
11566   shlibpath_var=LIBRARY_PATH
11567   shlibpath_overrides_runpath=yes
11568   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11569   hardcode_into_libs=yes
11570   ;;
11571
11572 hpux9* | hpux10* | hpux11*)
11573   # Give a soname corresponding to the major version so that dld.sl refuses to
11574   # link against other versions.
11575   version_type=sunos
11576   need_lib_prefix=no
11577   need_version=no
11578   case $host_cpu in
11579   ia64*)
11580     shrext_cmds='.so'
11581     hardcode_into_libs=yes
11582     dynamic_linker="$host_os dld.so"
11583     shlibpath_var=LD_LIBRARY_PATH
11584     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11585     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11586     soname_spec='${libname}${release}${shared_ext}$major'
11587     if test "X$HPUX_IA64_MODE" = X32; then
11588       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11589     else
11590       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11591     fi
11592     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11593     ;;
11594   hppa*64*)
11595     shrext_cmds='.sl'
11596     hardcode_into_libs=yes
11597     dynamic_linker="$host_os dld.sl"
11598     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11599     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11600     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11601     soname_spec='${libname}${release}${shared_ext}$major'
11602     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11603     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11604     ;;
11605   *)
11606     shrext_cmds='.sl'
11607     dynamic_linker="$host_os dld.sl"
11608     shlibpath_var=SHLIB_PATH
11609     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11610     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11611     soname_spec='${libname}${release}${shared_ext}$major'
11612     ;;
11613   esac
11614   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11615   postinstall_cmds='chmod 555 $lib'
11616   # or fails outright, so override atomically:
11617   install_override_mode=555
11618   ;;
11619
11620 interix[3-9]*)
11621   version_type=linux # correct to gnu/linux during the next big refactor
11622   need_lib_prefix=no
11623   need_version=no
11624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11625   soname_spec='${libname}${release}${shared_ext}$major'
11626   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11627   shlibpath_var=LD_LIBRARY_PATH
11628   shlibpath_overrides_runpath=no
11629   hardcode_into_libs=yes
11630   ;;
11631
11632 irix5* | irix6* | nonstopux*)
11633   case $host_os in
11634     nonstopux*) version_type=nonstopux ;;
11635     *)
11636         if test "$lt_cv_prog_gnu_ld" = yes; then
11637                 version_type=linux # correct to gnu/linux during the next big refactor
11638         else
11639                 version_type=irix
11640         fi ;;
11641   esac
11642   need_lib_prefix=no
11643   need_version=no
11644   soname_spec='${libname}${release}${shared_ext}$major'
11645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11646   case $host_os in
11647   irix5* | nonstopux*)
11648     libsuff= shlibsuff=
11649     ;;
11650   *)
11651     case $LD in # libtool.m4 will add one of these switches to LD
11652     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11653       libsuff= shlibsuff= libmagic=32-bit;;
11654     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11655       libsuff=32 shlibsuff=N32 libmagic=N32;;
11656     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11657       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11658     *) libsuff= shlibsuff= libmagic=never-match;;
11659     esac
11660     ;;
11661   esac
11662   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11663   shlibpath_overrides_runpath=no
11664   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11665   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11666   hardcode_into_libs=yes
11667   ;;
11668
11669 # No shared lib support for Linux oldld, aout, or coff.
11670 linux*oldld* | linux*aout* | linux*coff*)
11671   dynamic_linker=no
11672   ;;
11673
11674 linux*android*)
11675   version_type=none # Android doesn't support versioned libraries.
11676   need_lib_prefix=no
11677   need_version=no
11678   library_names_spec='$libname$release$shared_ext'
11679   soname_spec='$libname$release$shared_ext'
11680   finish_cmds=
11681   shlibpath_var=LD_LIBRARY_PATH
11682   shlibpath_overrides_runpath=yes
11683
11684   # This implies no fast_install, which is unacceptable.
11685   # Some rework will be needed to allow for fast_install
11686   # before this can be enabled.
11687   hardcode_into_libs=yes
11688
11689   dynamic_linker='Android linker'
11690   # Don't embed -rpath directories since the linker doesn't support them.
11691   hardcode_libdir_flag_spec='-L$libdir'
11692   ;;
11693
11694 # This must be glibc/ELF.
11695 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11696   version_type=linux # correct to gnu/linux during the next big refactor
11697   need_lib_prefix=no
11698   need_version=no
11699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11700   soname_spec='${libname}${release}${shared_ext}$major'
11701   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11702   shlibpath_var=LD_LIBRARY_PATH
11703   shlibpath_overrides_runpath=no
11704
11705   # Some binutils ld are patched to set DT_RUNPATH
11706   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11707   $as_echo_n "(cached) " >&6
11708 else
11709   lt_cv_shlibpath_overrides_runpath=no
11710     save_LDFLAGS=$LDFLAGS
11711     save_libdir=$libdir
11712     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11713          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11714     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715 /* end confdefs.h.  */
11716
11717 int
11718 main ()
11719 {
11720
11721   ;
11722   return 0;
11723 }
11724 _ACEOF
11725 if ac_fn_c_try_link "$LINENO"; then :
11726   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11727   lt_cv_shlibpath_overrides_runpath=yes
11728 fi
11729 fi
11730 rm -f core conftest.err conftest.$ac_objext \
11731     conftest$ac_exeext conftest.$ac_ext
11732     LDFLAGS=$save_LDFLAGS
11733     libdir=$save_libdir
11734
11735 fi
11736
11737   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11738
11739   # This implies no fast_install, which is unacceptable.
11740   # Some rework will be needed to allow for fast_install
11741   # before this can be enabled.
11742   hardcode_into_libs=yes
11743
11744   # Append ld.so.conf contents to the search path
11745   if test -f /etc/ld.so.conf; then
11746     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' ' '`
11747     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11748   fi
11749
11750   # We used to test for /lib/ld.so.1 and disable shared libraries on
11751   # powerpc, because MkLinux only supported shared libraries with the
11752   # GNU dynamic linker.  Since this was broken with cross compilers,
11753   # most powerpc-linux boxes support dynamic linking these days and
11754   # people can always --disable-shared, the test was removed, and we
11755   # assume the GNU/Linux dynamic linker is in use.
11756   dynamic_linker='GNU/Linux ld.so'
11757   ;;
11758
11759 netbsdelf*-gnu)
11760   version_type=linux
11761   need_lib_prefix=no
11762   need_version=no
11763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11764   soname_spec='${libname}${release}${shared_ext}$major'
11765   shlibpath_var=LD_LIBRARY_PATH
11766   shlibpath_overrides_runpath=no
11767   hardcode_into_libs=yes
11768   dynamic_linker='NetBSD ld.elf_so'
11769   ;;
11770
11771 netbsd*)
11772   version_type=sunos
11773   need_lib_prefix=no
11774   need_version=no
11775   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11776     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11777     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11778     dynamic_linker='NetBSD (a.out) ld.so'
11779   else
11780     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11781     soname_spec='${libname}${release}${shared_ext}$major'
11782     dynamic_linker='NetBSD ld.elf_so'
11783   fi
11784   shlibpath_var=LD_LIBRARY_PATH
11785   shlibpath_overrides_runpath=yes
11786   hardcode_into_libs=yes
11787   ;;
11788
11789 newsos6)
11790   version_type=linux # correct to gnu/linux during the next big refactor
11791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11792   shlibpath_var=LD_LIBRARY_PATH
11793   shlibpath_overrides_runpath=yes
11794   ;;
11795
11796 *nto* | *qnx*)
11797   version_type=qnx
11798   need_lib_prefix=no
11799   need_version=no
11800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11801   soname_spec='${libname}${release}${shared_ext}$major'
11802   shlibpath_var=LD_LIBRARY_PATH
11803   shlibpath_overrides_runpath=no
11804   hardcode_into_libs=yes
11805   dynamic_linker='ldqnx.so'
11806   ;;
11807
11808 openbsd*)
11809   version_type=sunos
11810   sys_lib_dlsearch_path_spec="/usr/lib"
11811   need_lib_prefix=no
11812   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11813   case $host_os in
11814     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11815     *)                          need_version=no  ;;
11816   esac
11817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11818   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11819   shlibpath_var=LD_LIBRARY_PATH
11820   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11821     case $host_os in
11822       openbsd2.[89] | openbsd2.[89].*)
11823         shlibpath_overrides_runpath=no
11824         ;;
11825       *)
11826         shlibpath_overrides_runpath=yes
11827         ;;
11828       esac
11829   else
11830     shlibpath_overrides_runpath=yes
11831   fi
11832   ;;
11833
11834 os2*)
11835   libname_spec='$name'
11836   shrext_cmds=".dll"
11837   need_lib_prefix=no
11838   library_names_spec='$libname${shared_ext} $libname.a'
11839   dynamic_linker='OS/2 ld.exe'
11840   shlibpath_var=LIBPATH
11841   ;;
11842
11843 osf3* | osf4* | osf5*)
11844   version_type=osf
11845   need_lib_prefix=no
11846   need_version=no
11847   soname_spec='${libname}${release}${shared_ext}$major'
11848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11849   shlibpath_var=LD_LIBRARY_PATH
11850   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11851   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11852   ;;
11853
11854 rdos*)
11855   dynamic_linker=no
11856   ;;
11857
11858 solaris*)
11859   version_type=linux # correct to gnu/linux during the next big refactor
11860   need_lib_prefix=no
11861   need_version=no
11862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11863   soname_spec='${libname}${release}${shared_ext}$major'
11864   shlibpath_var=LD_LIBRARY_PATH
11865   shlibpath_overrides_runpath=yes
11866   hardcode_into_libs=yes
11867   # ldd complains unless libraries are executable
11868   postinstall_cmds='chmod +x $lib'
11869   ;;
11870
11871 sunos4*)
11872   version_type=sunos
11873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11874   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11875   shlibpath_var=LD_LIBRARY_PATH
11876   shlibpath_overrides_runpath=yes
11877   if test "$with_gnu_ld" = yes; then
11878     need_lib_prefix=no
11879   fi
11880   need_version=yes
11881   ;;
11882
11883 sysv4 | sysv4.3*)
11884   version_type=linux # correct to gnu/linux during the next big refactor
11885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11886   soname_spec='${libname}${release}${shared_ext}$major'
11887   shlibpath_var=LD_LIBRARY_PATH
11888   case $host_vendor in
11889     sni)
11890       shlibpath_overrides_runpath=no
11891       need_lib_prefix=no
11892       runpath_var=LD_RUN_PATH
11893       ;;
11894     siemens)
11895       need_lib_prefix=no
11896       ;;
11897     motorola)
11898       need_lib_prefix=no
11899       need_version=no
11900       shlibpath_overrides_runpath=no
11901       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11902       ;;
11903   esac
11904   ;;
11905
11906 sysv4*MP*)
11907   if test -d /usr/nec ;then
11908     version_type=linux # correct to gnu/linux during the next big refactor
11909     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11910     soname_spec='$libname${shared_ext}.$major'
11911     shlibpath_var=LD_LIBRARY_PATH
11912   fi
11913   ;;
11914
11915 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11916   version_type=freebsd-elf
11917   need_lib_prefix=no
11918   need_version=no
11919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11920   soname_spec='${libname}${release}${shared_ext}$major'
11921   shlibpath_var=LD_LIBRARY_PATH
11922   shlibpath_overrides_runpath=yes
11923   hardcode_into_libs=yes
11924   if test "$with_gnu_ld" = yes; then
11925     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11926   else
11927     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11928     case $host_os in
11929       sco3.2v5*)
11930         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11931         ;;
11932     esac
11933   fi
11934   sys_lib_dlsearch_path_spec='/usr/lib'
11935   ;;
11936
11937 tpf*)
11938   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11939   version_type=linux # correct to gnu/linux during the next big refactor
11940   need_lib_prefix=no
11941   need_version=no
11942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11943   shlibpath_var=LD_LIBRARY_PATH
11944   shlibpath_overrides_runpath=no
11945   hardcode_into_libs=yes
11946   ;;
11947
11948 uts4*)
11949   version_type=linux # correct to gnu/linux during the next big refactor
11950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11951   soname_spec='${libname}${release}${shared_ext}$major'
11952   shlibpath_var=LD_LIBRARY_PATH
11953   ;;
11954
11955 *)
11956   dynamic_linker=no
11957   ;;
11958 esac
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11960 $as_echo "$dynamic_linker" >&6; }
11961 test "$dynamic_linker" = no && can_build_shared=no
11962
11963 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11964 if test "$GCC" = yes; then
11965   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11966 fi
11967
11968 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11969   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11970 fi
11971 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11972   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11973 fi
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12067 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12068 hardcode_action=
12069 if test -n "$hardcode_libdir_flag_spec" ||
12070    test -n "$runpath_var" ||
12071    test "X$hardcode_automatic" = "Xyes" ; then
12072
12073   # We can hardcode non-existent directories.
12074   if test "$hardcode_direct" != no &&
12075      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12076      # have to relink, otherwise we might link with an installed library
12077      # when we should be linking with a yet-to-be-installed one
12078      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12079      test "$hardcode_minus_L" != no; then
12080     # Linking always hardcodes the temporary library directory.
12081     hardcode_action=relink
12082   else
12083     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12084     hardcode_action=immediate
12085   fi
12086 else
12087   # We cannot hardcode anything, or else we can only hardcode existing
12088   # directories.
12089   hardcode_action=unsupported
12090 fi
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12092 $as_echo "$hardcode_action" >&6; }
12093
12094 if test "$hardcode_action" = relink ||
12095    test "$inherit_rpath" = yes; then
12096   # Fast installation is not supported
12097   enable_fast_install=no
12098 elif test "$shlibpath_overrides_runpath" = yes ||
12099      test "$enable_shared" = no; then
12100   # Fast installation is not necessary
12101   enable_fast_install=needless
12102 fi
12103
12104
12105
12106
12107
12108
12109   if test "x$enable_dlopen" != xyes; then
12110   enable_dlopen=unknown
12111   enable_dlopen_self=unknown
12112   enable_dlopen_self_static=unknown
12113 else
12114   lt_cv_dlopen=no
12115   lt_cv_dlopen_libs=
12116
12117   case $host_os in
12118   beos*)
12119     lt_cv_dlopen="load_add_on"
12120     lt_cv_dlopen_libs=
12121     lt_cv_dlopen_self=yes
12122     ;;
12123
12124   mingw* | pw32* | cegcc*)
12125     lt_cv_dlopen="LoadLibrary"
12126     lt_cv_dlopen_libs=
12127     ;;
12128
12129   cygwin*)
12130     lt_cv_dlopen="dlopen"
12131     lt_cv_dlopen_libs=
12132     ;;
12133
12134   darwin*)
12135   # if libdl is installed we need to link against it
12136     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12137 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12138 if ${ac_cv_lib_dl_dlopen+:} false; then :
12139   $as_echo_n "(cached) " >&6
12140 else
12141   ac_check_lib_save_LIBS=$LIBS
12142 LIBS="-ldl  $LIBS"
12143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h.  */
12145
12146 /* Override any GCC internal prototype to avoid an error.
12147    Use char because int might match the return type of a GCC
12148    builtin and then its argument prototype would still apply.  */
12149 #ifdef __cplusplus
12150 extern "C"
12151 #endif
12152 char dlopen ();
12153 int
12154 main ()
12155 {
12156 return dlopen ();
12157   ;
12158   return 0;
12159 }
12160 _ACEOF
12161 if ac_fn_c_try_link "$LINENO"; then :
12162   ac_cv_lib_dl_dlopen=yes
12163 else
12164   ac_cv_lib_dl_dlopen=no
12165 fi
12166 rm -f core conftest.err conftest.$ac_objext \
12167     conftest$ac_exeext conftest.$ac_ext
12168 LIBS=$ac_check_lib_save_LIBS
12169 fi
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12171 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12172 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12173   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12174 else
12175
12176     lt_cv_dlopen="dyld"
12177     lt_cv_dlopen_libs=
12178     lt_cv_dlopen_self=yes
12179
12180 fi
12181
12182     ;;
12183
12184   *)
12185     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12186 if test "x$ac_cv_func_shl_load" = xyes; then :
12187   lt_cv_dlopen="shl_load"
12188 else
12189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12190 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12191 if ${ac_cv_lib_dld_shl_load+:} false; then :
12192   $as_echo_n "(cached) " >&6
12193 else
12194   ac_check_lib_save_LIBS=$LIBS
12195 LIBS="-ldld  $LIBS"
12196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12197 /* end confdefs.h.  */
12198
12199 /* Override any GCC internal prototype to avoid an error.
12200    Use char because int might match the return type of a GCC
12201    builtin and then its argument prototype would still apply.  */
12202 #ifdef __cplusplus
12203 extern "C"
12204 #endif
12205 char shl_load ();
12206 int
12207 main ()
12208 {
12209 return shl_load ();
12210   ;
12211   return 0;
12212 }
12213 _ACEOF
12214 if ac_fn_c_try_link "$LINENO"; then :
12215   ac_cv_lib_dld_shl_load=yes
12216 else
12217   ac_cv_lib_dld_shl_load=no
12218 fi
12219 rm -f core conftest.err conftest.$ac_objext \
12220     conftest$ac_exeext conftest.$ac_ext
12221 LIBS=$ac_check_lib_save_LIBS
12222 fi
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12224 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12225 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12226   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12227 else
12228   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12229 if test "x$ac_cv_func_dlopen" = xyes; then :
12230   lt_cv_dlopen="dlopen"
12231 else
12232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12233 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12234 if ${ac_cv_lib_dl_dlopen+:} false; then :
12235   $as_echo_n "(cached) " >&6
12236 else
12237   ac_check_lib_save_LIBS=$LIBS
12238 LIBS="-ldl  $LIBS"
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h.  */
12241
12242 /* Override any GCC internal prototype to avoid an error.
12243    Use char because int might match the return type of a GCC
12244    builtin and then its argument prototype would still apply.  */
12245 #ifdef __cplusplus
12246 extern "C"
12247 #endif
12248 char dlopen ();
12249 int
12250 main ()
12251 {
12252 return dlopen ();
12253   ;
12254   return 0;
12255 }
12256 _ACEOF
12257 if ac_fn_c_try_link "$LINENO"; then :
12258   ac_cv_lib_dl_dlopen=yes
12259 else
12260   ac_cv_lib_dl_dlopen=no
12261 fi
12262 rm -f core conftest.err conftest.$ac_objext \
12263     conftest$ac_exeext conftest.$ac_ext
12264 LIBS=$ac_check_lib_save_LIBS
12265 fi
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12267 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12268 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12269   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12270 else
12271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12272 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12273 if ${ac_cv_lib_svld_dlopen+:} false; then :
12274   $as_echo_n "(cached) " >&6
12275 else
12276   ac_check_lib_save_LIBS=$LIBS
12277 LIBS="-lsvld  $LIBS"
12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h.  */
12280
12281 /* Override any GCC internal prototype to avoid an error.
12282    Use char because int might match the return type of a GCC
12283    builtin and then its argument prototype would still apply.  */
12284 #ifdef __cplusplus
12285 extern "C"
12286 #endif
12287 char dlopen ();
12288 int
12289 main ()
12290 {
12291 return dlopen ();
12292   ;
12293   return 0;
12294 }
12295 _ACEOF
12296 if ac_fn_c_try_link "$LINENO"; then :
12297   ac_cv_lib_svld_dlopen=yes
12298 else
12299   ac_cv_lib_svld_dlopen=no
12300 fi
12301 rm -f core conftest.err conftest.$ac_objext \
12302     conftest$ac_exeext conftest.$ac_ext
12303 LIBS=$ac_check_lib_save_LIBS
12304 fi
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12306 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12307 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12308   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12309 else
12310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12311 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12312 if ${ac_cv_lib_dld_dld_link+:} false; then :
12313   $as_echo_n "(cached) " >&6
12314 else
12315   ac_check_lib_save_LIBS=$LIBS
12316 LIBS="-ldld  $LIBS"
12317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12318 /* end confdefs.h.  */
12319
12320 /* Override any GCC internal prototype to avoid an error.
12321    Use char because int might match the return type of a GCC
12322    builtin and then its argument prototype would still apply.  */
12323 #ifdef __cplusplus
12324 extern "C"
12325 #endif
12326 char dld_link ();
12327 int
12328 main ()
12329 {
12330 return dld_link ();
12331   ;
12332   return 0;
12333 }
12334 _ACEOF
12335 if ac_fn_c_try_link "$LINENO"; then :
12336   ac_cv_lib_dld_dld_link=yes
12337 else
12338   ac_cv_lib_dld_dld_link=no
12339 fi
12340 rm -f core conftest.err conftest.$ac_objext \
12341     conftest$ac_exeext conftest.$ac_ext
12342 LIBS=$ac_check_lib_save_LIBS
12343 fi
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12345 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12346 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12347   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12348 fi
12349
12350
12351 fi
12352
12353
12354 fi
12355
12356
12357 fi
12358
12359
12360 fi
12361
12362
12363 fi
12364
12365     ;;
12366   esac
12367
12368   if test "x$lt_cv_dlopen" != xno; then
12369     enable_dlopen=yes
12370   else
12371     enable_dlopen=no
12372   fi
12373
12374   case $lt_cv_dlopen in
12375   dlopen)
12376     save_CPPFLAGS="$CPPFLAGS"
12377     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12378
12379     save_LDFLAGS="$LDFLAGS"
12380     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12381
12382     save_LIBS="$LIBS"
12383     LIBS="$lt_cv_dlopen_libs $LIBS"
12384
12385     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12386 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12387 if ${lt_cv_dlopen_self+:} false; then :
12388   $as_echo_n "(cached) " >&6
12389 else
12390           if test "$cross_compiling" = yes; then :
12391   lt_cv_dlopen_self=cross
12392 else
12393   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12394   lt_status=$lt_dlunknown
12395   cat > conftest.$ac_ext <<_LT_EOF
12396 #line $LINENO "configure"
12397 #include "confdefs.h"
12398
12399 #if HAVE_DLFCN_H
12400 #include <dlfcn.h>
12401 #endif
12402
12403 #include <stdio.h>
12404
12405 #ifdef RTLD_GLOBAL
12406 #  define LT_DLGLOBAL           RTLD_GLOBAL
12407 #else
12408 #  ifdef DL_GLOBAL
12409 #    define LT_DLGLOBAL         DL_GLOBAL
12410 #  else
12411 #    define LT_DLGLOBAL         0
12412 #  endif
12413 #endif
12414
12415 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12416    find out it does not work in some platform. */
12417 #ifndef LT_DLLAZY_OR_NOW
12418 #  ifdef RTLD_LAZY
12419 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12420 #  else
12421 #    ifdef DL_LAZY
12422 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12423 #    else
12424 #      ifdef RTLD_NOW
12425 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12426 #      else
12427 #        ifdef DL_NOW
12428 #          define LT_DLLAZY_OR_NOW      DL_NOW
12429 #        else
12430 #          define LT_DLLAZY_OR_NOW      0
12431 #        endif
12432 #      endif
12433 #    endif
12434 #  endif
12435 #endif
12436
12437 /* When -fvisbility=hidden is used, assume the code has been annotated
12438    correspondingly for the symbols needed.  */
12439 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12440 int fnord () __attribute__((visibility("default")));
12441 #endif
12442
12443 int fnord () { return 42; }
12444 int main ()
12445 {
12446   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12447   int status = $lt_dlunknown;
12448
12449   if (self)
12450     {
12451       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12452       else
12453         {
12454           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12455           else puts (dlerror ());
12456         }
12457       /* dlclose (self); */
12458     }
12459   else
12460     puts (dlerror ());
12461
12462   return status;
12463 }
12464 _LT_EOF
12465   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12466   (eval $ac_link) 2>&5
12467   ac_status=$?
12468   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12469   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12470     (./conftest; exit; ) >&5 2>/dev/null
12471     lt_status=$?
12472     case x$lt_status in
12473       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12474       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12475       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12476     esac
12477   else :
12478     # compilation failed
12479     lt_cv_dlopen_self=no
12480   fi
12481 fi
12482 rm -fr conftest*
12483
12484
12485 fi
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12487 $as_echo "$lt_cv_dlopen_self" >&6; }
12488
12489     if test "x$lt_cv_dlopen_self" = xyes; then
12490       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12491       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12492 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12493 if ${lt_cv_dlopen_self_static+:} false; then :
12494   $as_echo_n "(cached) " >&6
12495 else
12496           if test "$cross_compiling" = yes; then :
12497   lt_cv_dlopen_self_static=cross
12498 else
12499   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12500   lt_status=$lt_dlunknown
12501   cat > conftest.$ac_ext <<_LT_EOF
12502 #line $LINENO "configure"
12503 #include "confdefs.h"
12504
12505 #if HAVE_DLFCN_H
12506 #include <dlfcn.h>
12507 #endif
12508
12509 #include <stdio.h>
12510
12511 #ifdef RTLD_GLOBAL
12512 #  define LT_DLGLOBAL           RTLD_GLOBAL
12513 #else
12514 #  ifdef DL_GLOBAL
12515 #    define LT_DLGLOBAL         DL_GLOBAL
12516 #  else
12517 #    define LT_DLGLOBAL         0
12518 #  endif
12519 #endif
12520
12521 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12522    find out it does not work in some platform. */
12523 #ifndef LT_DLLAZY_OR_NOW
12524 #  ifdef RTLD_LAZY
12525 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12526 #  else
12527 #    ifdef DL_LAZY
12528 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12529 #    else
12530 #      ifdef RTLD_NOW
12531 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12532 #      else
12533 #        ifdef DL_NOW
12534 #          define LT_DLLAZY_OR_NOW      DL_NOW
12535 #        else
12536 #          define LT_DLLAZY_OR_NOW      0
12537 #        endif
12538 #      endif
12539 #    endif
12540 #  endif
12541 #endif
12542
12543 /* When -fvisbility=hidden is used, assume the code has been annotated
12544    correspondingly for the symbols needed.  */
12545 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12546 int fnord () __attribute__((visibility("default")));
12547 #endif
12548
12549 int fnord () { return 42; }
12550 int main ()
12551 {
12552   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12553   int status = $lt_dlunknown;
12554
12555   if (self)
12556     {
12557       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12558       else
12559         {
12560           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12561           else puts (dlerror ());
12562         }
12563       /* dlclose (self); */
12564     }
12565   else
12566     puts (dlerror ());
12567
12568   return status;
12569 }
12570 _LT_EOF
12571   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12572   (eval $ac_link) 2>&5
12573   ac_status=$?
12574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12575   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12576     (./conftest; exit; ) >&5 2>/dev/null
12577     lt_status=$?
12578     case x$lt_status in
12579       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12580       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12581       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12582     esac
12583   else :
12584     # compilation failed
12585     lt_cv_dlopen_self_static=no
12586   fi
12587 fi
12588 rm -fr conftest*
12589
12590
12591 fi
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12593 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12594     fi
12595
12596     CPPFLAGS="$save_CPPFLAGS"
12597     LDFLAGS="$save_LDFLAGS"
12598     LIBS="$save_LIBS"
12599     ;;
12600   esac
12601
12602   case $lt_cv_dlopen_self in
12603   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12604   *) enable_dlopen_self=unknown ;;
12605   esac
12606
12607   case $lt_cv_dlopen_self_static in
12608   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12609   *) enable_dlopen_self_static=unknown ;;
12610   esac
12611 fi
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629 striplib=
12630 old_striplib=
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12632 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12633 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12634   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12635   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12637 $as_echo "yes" >&6; }
12638 else
12639 # FIXME - insert some real tests, host_os isn't really good enough
12640   case $host_os in
12641   darwin*)
12642     if test -n "$STRIP" ; then
12643       striplib="$STRIP -x"
12644       old_striplib="$STRIP -S"
12645       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12646 $as_echo "yes" >&6; }
12647     else
12648       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649 $as_echo "no" >&6; }
12650     fi
12651     ;;
12652   *)
12653     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12654 $as_echo "no" >&6; }
12655     ;;
12656   esac
12657 fi
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670   # Report which library types will actually be built
12671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12672 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12674 $as_echo "$can_build_shared" >&6; }
12675
12676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12677 $as_echo_n "checking whether to build shared libraries... " >&6; }
12678   test "$can_build_shared" = "no" && enable_shared=no
12679
12680   # On AIX, shared libraries and static libraries use the same namespace, and
12681   # are all built from PIC.
12682   case $host_os in
12683   aix3*)
12684     test "$enable_shared" = yes && enable_static=no
12685     if test -n "$RANLIB"; then
12686       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12687       postinstall_cmds='$RANLIB $lib'
12688     fi
12689     ;;
12690
12691   aix[4-9]*)
12692     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12693       test "$enable_shared" = yes && enable_static=no
12694     fi
12695     ;;
12696   esac
12697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12698 $as_echo "$enable_shared" >&6; }
12699
12700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12701 $as_echo_n "checking whether to build static libraries... " >&6; }
12702   # Make sure either enable_shared or enable_static is yes.
12703   test "$enable_shared" = yes || enable_static=yes
12704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12705 $as_echo "$enable_static" >&6; }
12706
12707
12708
12709
12710 fi
12711 ac_ext=c
12712 ac_cpp='$CPP $CPPFLAGS'
12713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12716
12717 CC="$lt_save_CC"
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733         ac_config_commands="$ac_config_commands libtool"
12734
12735
12736
12737
12738 # Only expand once:
12739
12740
12741 if test -n "$ac_tool_prefix"; then
12742   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
12743 set dummy ${ac_tool_prefix}windres; ac_word=$2
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12745 $as_echo_n "checking for $ac_word... " >&6; }
12746 if ${ac_cv_prog_RC+:} false; then :
12747   $as_echo_n "(cached) " >&6
12748 else
12749   if test -n "$RC"; then
12750   ac_cv_prog_RC="$RC" # Let the user override the test.
12751 else
12752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12753 for as_dir in $PATH
12754 do
12755   IFS=$as_save_IFS
12756   test -z "$as_dir" && as_dir=.
12757     for ac_exec_ext in '' $ac_executable_extensions; do
12758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12759     ac_cv_prog_RC="${ac_tool_prefix}windres"
12760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12761     break 2
12762   fi
12763 done
12764   done
12765 IFS=$as_save_IFS
12766
12767 fi
12768 fi
12769 RC=$ac_cv_prog_RC
12770 if test -n "$RC"; then
12771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
12772 $as_echo "$RC" >&6; }
12773 else
12774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12775 $as_echo "no" >&6; }
12776 fi
12777
12778
12779 fi
12780 if test -z "$ac_cv_prog_RC"; then
12781   ac_ct_RC=$RC
12782   # Extract the first word of "windres", so it can be a program name with args.
12783 set dummy windres; ac_word=$2
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12785 $as_echo_n "checking for $ac_word... " >&6; }
12786 if ${ac_cv_prog_ac_ct_RC+:} false; then :
12787   $as_echo_n "(cached) " >&6
12788 else
12789   if test -n "$ac_ct_RC"; then
12790   ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
12791 else
12792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12793 for as_dir in $PATH
12794 do
12795   IFS=$as_save_IFS
12796   test -z "$as_dir" && as_dir=.
12797     for ac_exec_ext in '' $ac_executable_extensions; do
12798   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12799     ac_cv_prog_ac_ct_RC="windres"
12800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12801     break 2
12802   fi
12803 done
12804   done
12805 IFS=$as_save_IFS
12806
12807 fi
12808 fi
12809 ac_ct_RC=$ac_cv_prog_ac_ct_RC
12810 if test -n "$ac_ct_RC"; then
12811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
12812 $as_echo "$ac_ct_RC" >&6; }
12813 else
12814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12815 $as_echo "no" >&6; }
12816 fi
12817
12818   if test "x$ac_ct_RC" = x; then
12819     RC=""
12820   else
12821     case $cross_compiling:$ac_tool_warned in
12822 yes:)
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12825 ac_tool_warned=yes ;;
12826 esac
12827     RC=$ac_ct_RC
12828   fi
12829 else
12830   RC="$ac_cv_prog_RC"
12831 fi
12832
12833
12834
12835
12836 # Source file extension for RC test sources.
12837 ac_ext=rc
12838
12839 # Object file extension for compiled RC test sources.
12840 objext=o
12841 objext_RC=$objext
12842
12843 # Code to be used in simple compile tests
12844 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
12845
12846 # Code to be used in simple link tests
12847 lt_simple_link_test_code="$lt_simple_compile_test_code"
12848
12849 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12850
12851
12852
12853
12854
12855
12856 # If no C compiler was specified, use CC.
12857 LTCC=${LTCC-"$CC"}
12858
12859 # If no C compiler flags were specified, use CFLAGS.
12860 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12861
12862 # Allow CC to be a program name with arguments.
12863 compiler=$CC
12864
12865
12866 # save warnings/boilerplate of simple test code
12867 ac_outfile=conftest.$ac_objext
12868 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12869 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12870 _lt_compiler_boilerplate=`cat conftest.err`
12871 $RM conftest*
12872
12873 ac_outfile=conftest.$ac_objext
12874 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12875 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12876 _lt_linker_boilerplate=`cat conftest.err`
12877 $RM -r conftest*
12878
12879
12880 # Allow CC to be a program name with arguments.
12881 lt_save_CC="$CC"
12882 lt_save_CFLAGS=$CFLAGS
12883 lt_save_GCC=$GCC
12884 GCC=
12885 CC=${RC-"windres"}
12886 CFLAGS=
12887 compiler=$CC
12888 compiler_RC=$CC
12889 for cc_temp in $compiler""; do
12890   case $cc_temp in
12891     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12892     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12893     \-*) ;;
12894     *) break;;
12895   esac
12896 done
12897 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12898
12899 lt_cv_prog_compiler_c_o_RC=yes
12900
12901 if test -n "$compiler"; then
12902   :
12903
12904
12905
12906 fi
12907
12908 GCC=$lt_save_GCC
12909 ac_ext=c
12910 ac_cpp='$CPP $CPPFLAGS'
12911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12914
12915 CC=$lt_save_CC
12916 CFLAGS=$lt_save_CFLAGS
12917
12918
12919
12920 ##########################
12921 ## General definitions. ##
12922 ##########################
12923
12924 # Used by libgcrypt-config
12925 LIBGCRYPT_CONFIG_LIBS="-lgcrypt"
12926 LIBGCRYPT_CONFIG_CFLAGS=""
12927 LIBGCRYPT_CONFIG_HOST="$host"
12928
12929 # Definitions for symmetric ciphers.
12930 available_ciphers="arcfour blowfish cast5 des aes twofish serpent rfc2268 seed"
12931 available_ciphers="$available_ciphers camellia idea salsa20 gost28147 chacha20"
12932 enabled_ciphers=""
12933
12934 # Definitions for public-key ciphers.
12935 available_pubkey_ciphers="dsa elgamal rsa ecc"
12936 enabled_pubkey_ciphers=""
12937
12938 # Definitions for message digests.
12939 available_digests="crc gostr3411-94 md2 md4 md5 rmd160 sha1 sha256 sha512"
12940 available_digests="$available_digests sha3 tiger whirlpool stribog blake2"
12941 enabled_digests=""
12942
12943 # Definitions for kdfs (optional ones)
12944 available_kdfs="s2k pkdf2 scrypt"
12945 enabled_kdfs=""
12946
12947 # Definitions for random modules.
12948 available_random_modules="linux egd unix"
12949 auto_random_modules="$available_random_modules"
12950
12951 # Supported thread backends.
12952 LIBGCRYPT_THREAD_MODULES=""
12953
12954 # Other definitions.
12955 have_w32_system=no
12956 have_w32ce_system=no
12957 have_pthread=no
12958
12959
12960 # Setup some stuff depending on host.
12961 case "${host}" in
12962     *-*-mingw32*)
12963       ac_cv_have_dev_random=no
12964       have_w32_system=yes
12965       case "${host}" in
12966         *-mingw32ce*)
12967             have_w32ce_system=yes
12968             available_random_modules="w32ce"
12969             ;;
12970         *)
12971             available_random_modules="w32"
12972             ;;
12973       esac
12974
12975 $as_echo "#define USE_ONLY_8DOT3 1" >>confdefs.h
12976
12977
12978 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
12979
12980
12981 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
12982
12983       ;;
12984
12985     i?86-emx-os2 | i?86-*-os2*emx)
12986         # OS/2 with the EMX environment
12987         ac_cv_have_dev_random=no
12988         $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
12989
12990         $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
12991
12992         ;;
12993
12994     i?86-*-msdosdjgpp*)
12995         # DOS with the DJGPP environment
12996         ac_cv_have_dev_random=no
12997         $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
12998
12999         $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
13000
13001         ;;
13002
13003     *-*-hpux*)
13004         if test -z "$GCC" ; then
13005             CFLAGS="$CFLAGS -Ae -D_HPUX_SOURCE"
13006         fi
13007         ;;
13008     *-dec-osf4*)
13009         if test -z "$GCC" ; then
13010             # Suppress all warnings
13011             # to get rid of the unsigned/signed char mismatch warnings.
13012             CFLAGS="$CFLAGS -w"
13013         fi
13014         ;;
13015     m68k-atari-mint)
13016         ;;
13017     *-apple-darwin*)
13018
13019 $as_echo "#define _DARWIN_C_SOURCE 900000L" >>confdefs.h
13020
13021         ;;
13022     *)
13023       ;;
13024 esac
13025
13026 if test "$have_w32_system" = yes; then
13027
13028 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
13029
13030    if test "$have_w32ce_system" = yes; then
13031
13032 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
13033
13034    fi
13035 fi
13036  if test "$have_w32_system" = yes; then
13037   HAVE_W32_SYSTEM_TRUE=
13038   HAVE_W32_SYSTEM_FALSE='#'
13039 else
13040   HAVE_W32_SYSTEM_TRUE='#'
13041   HAVE_W32_SYSTEM_FALSE=
13042 fi
13043
13044  if test "$have_w32ce_system" = yes; then
13045   HAVE_W32CE_SYSTEM_TRUE=
13046   HAVE_W32CE_SYSTEM_FALSE='#'
13047 else
13048   HAVE_W32CE_SYSTEM_TRUE='#'
13049   HAVE_W32CE_SYSTEM_FALSE=
13050 fi
13051
13052
13053
13054
13055 # A printable OS Name is sometimes useful.
13056 case "${host}" in
13057     *-*-mingw32ce*)
13058         PRINTABLE_OS_NAME="W32CE"
13059         ;;
13060
13061     *-*-mingw32*)
13062         PRINTABLE_OS_NAME="W32"
13063         ;;
13064
13065     i?86-emx-os2 | i?86-*-os2*emx )
13066         PRINTABLE_OS_NAME="OS/2"
13067         ;;
13068
13069     i?86-*-msdosdjgpp*)
13070         PRINTABLE_OS_NAME="MSDOS/DJGPP"
13071         ;;
13072
13073     *-linux*)
13074         PRINTABLE_OS_NAME="GNU/Linux"
13075         ;;
13076
13077     *)
13078         PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
13079         ;;
13080 esac
13081
13082 NAME_OF_DEV_RANDOM="/dev/random"
13083 NAME_OF_DEV_URANDOM="/dev/urandom"
13084
13085 # Check whether --enable-endian-check was given.
13086 if test "${enable_endian_check+set}" = set; then :
13087   enableval=$enable_endian_check; endiancheck=$enableval
13088 else
13089   endiancheck=yes
13090 fi
13091
13092 if test x"$endiancheck" = xyes ; then
13093    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13094 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13095 if ${ac_cv_c_bigendian+:} false; then :
13096   $as_echo_n "(cached) " >&6
13097 else
13098   ac_cv_c_bigendian=unknown
13099     # See if we're dealing with a universal compiler.
13100     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13101 /* end confdefs.h.  */
13102 #ifndef __APPLE_CC__
13103                not a universal capable compiler
13104              #endif
13105              typedef int dummy;
13106
13107 _ACEOF
13108 if ac_fn_c_try_compile "$LINENO"; then :
13109
13110         # Check for potential -arch flags.  It is not universal unless
13111         # there are at least two -arch flags with different values.
13112         ac_arch=
13113         ac_prev=
13114         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13115          if test -n "$ac_prev"; then
13116            case $ac_word in
13117              i?86 | x86_64 | ppc | ppc64)
13118                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13119                  ac_arch=$ac_word
13120                else
13121                  ac_cv_c_bigendian=universal
13122                  break
13123                fi
13124                ;;
13125            esac
13126            ac_prev=
13127          elif test "x$ac_word" = "x-arch"; then
13128            ac_prev=arch
13129          fi
13130        done
13131 fi
13132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13133     if test $ac_cv_c_bigendian = unknown; then
13134       # See if sys/param.h defines the BYTE_ORDER macro.
13135       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136 /* end confdefs.h.  */
13137 #include <sys/types.h>
13138              #include <sys/param.h>
13139
13140 int
13141 main ()
13142 {
13143 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13144                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13145                      && LITTLE_ENDIAN)
13146               bogus endian macros
13147              #endif
13148
13149   ;
13150   return 0;
13151 }
13152 _ACEOF
13153 if ac_fn_c_try_compile "$LINENO"; then :
13154   # It does; now see whether it defined to BIG_ENDIAN or not.
13155          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156 /* end confdefs.h.  */
13157 #include <sys/types.h>
13158                 #include <sys/param.h>
13159
13160 int
13161 main ()
13162 {
13163 #if BYTE_ORDER != BIG_ENDIAN
13164                  not big endian
13165                 #endif
13166
13167   ;
13168   return 0;
13169 }
13170 _ACEOF
13171 if ac_fn_c_try_compile "$LINENO"; then :
13172   ac_cv_c_bigendian=yes
13173 else
13174   ac_cv_c_bigendian=no
13175 fi
13176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13177 fi
13178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13179     fi
13180     if test $ac_cv_c_bigendian = unknown; then
13181       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13182       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13183 /* end confdefs.h.  */
13184 #include <limits.h>
13185
13186 int
13187 main ()
13188 {
13189 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13190               bogus endian macros
13191              #endif
13192
13193   ;
13194   return 0;
13195 }
13196 _ACEOF
13197 if ac_fn_c_try_compile "$LINENO"; then :
13198   # It does; now see whether it defined to _BIG_ENDIAN or not.
13199          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200 /* end confdefs.h.  */
13201 #include <limits.h>
13202
13203 int
13204 main ()
13205 {
13206 #ifndef _BIG_ENDIAN
13207                  not big endian
13208                 #endif
13209
13210   ;
13211   return 0;
13212 }
13213 _ACEOF
13214 if ac_fn_c_try_compile "$LINENO"; then :
13215   ac_cv_c_bigendian=yes
13216 else
13217   ac_cv_c_bigendian=no
13218 fi
13219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13220 fi
13221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13222     fi
13223     if test $ac_cv_c_bigendian = unknown; then
13224       # Compile a test program.
13225       if test "$cross_compiling" = yes; then :
13226   # Try to guess by grepping values from an object file.
13227          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h.  */
13229 short int ascii_mm[] =
13230                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13231                 short int ascii_ii[] =
13232                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13233                 int use_ascii (int i) {
13234                   return ascii_mm[i] + ascii_ii[i];
13235                 }
13236                 short int ebcdic_ii[] =
13237                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13238                 short int ebcdic_mm[] =
13239                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13240                 int use_ebcdic (int i) {
13241                   return ebcdic_mm[i] + ebcdic_ii[i];
13242                 }
13243                 extern int foo;
13244
13245 int
13246 main ()
13247 {
13248 return use_ascii (foo) == use_ebcdic (foo);
13249   ;
13250   return 0;
13251 }
13252 _ACEOF
13253 if ac_fn_c_try_compile "$LINENO"; then :
13254   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13255               ac_cv_c_bigendian=yes
13256             fi
13257             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13258               if test "$ac_cv_c_bigendian" = unknown; then
13259                 ac_cv_c_bigendian=no
13260               else
13261                 # finding both strings is unlikely to happen, but who knows?
13262                 ac_cv_c_bigendian=unknown
13263               fi
13264             fi
13265 fi
13266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13267 else
13268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13269 /* end confdefs.h.  */
13270 $ac_includes_default
13271 int
13272 main ()
13273 {
13274
13275              /* Are we little or big endian?  From Harbison&Steele.  */
13276              union
13277              {
13278                long int l;
13279                char c[sizeof (long int)];
13280              } u;
13281              u.l = 1;
13282              return u.c[sizeof (long int) - 1] == 1;
13283
13284   ;
13285   return 0;
13286 }
13287 _ACEOF
13288 if ac_fn_c_try_run "$LINENO"; then :
13289   ac_cv_c_bigendian=no
13290 else
13291   ac_cv_c_bigendian=yes
13292 fi
13293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13294   conftest.$ac_objext conftest.beam conftest.$ac_ext
13295 fi
13296
13297     fi
13298 fi
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13300 $as_echo "$ac_cv_c_bigendian" >&6; }
13301  case $ac_cv_c_bigendian in #(
13302    yes)
13303      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13304 ;; #(
13305    no)
13306       ;; #(
13307    universal)
13308
13309 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13310
13311      ;; #(
13312    *)
13313      as_fn_error $? "unknown endianness
13314  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13315  esac
13316
13317 else
13318
13319 $as_echo "#define DISABLED_ENDIAN_CHECK 1" >>confdefs.h
13320
13321 fi
13322
13323 # The cast to long int works around a bug in the HP C Compiler
13324 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13325 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13326 # This bug is HP SR number 8606223364.
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
13328 $as_echo_n "checking size of unsigned short... " >&6; }
13329 if ${ac_cv_sizeof_unsigned_short+:} false; then :
13330   $as_echo_n "(cached) " >&6
13331 else
13332   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
13333
13334 else
13335   if test "$ac_cv_type_unsigned_short" = yes; then
13336      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13338 as_fn_error 77 "cannot compute sizeof (unsigned short)
13339 See \`config.log' for more details" "$LINENO" 5; }
13340    else
13341      ac_cv_sizeof_unsigned_short=0
13342    fi
13343 fi
13344
13345 fi
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
13347 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
13348
13349
13350
13351 cat >>confdefs.h <<_ACEOF
13352 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
13353 _ACEOF
13354
13355
13356 # The cast to long int works around a bug in the HP C Compiler
13357 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13358 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13359 # This bug is HP SR number 8606223364.
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
13361 $as_echo_n "checking size of unsigned int... " >&6; }
13362 if ${ac_cv_sizeof_unsigned_int+:} false; then :
13363   $as_echo_n "(cached) " >&6
13364 else
13365   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
13366
13367 else
13368   if test "$ac_cv_type_unsigned_int" = yes; then
13369      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13371 as_fn_error 77 "cannot compute sizeof (unsigned int)
13372 See \`config.log' for more details" "$LINENO" 5; }
13373    else
13374      ac_cv_sizeof_unsigned_int=0
13375    fi
13376 fi
13377
13378 fi
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
13380 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
13381
13382
13383
13384 cat >>confdefs.h <<_ACEOF
13385 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
13386 _ACEOF
13387
13388
13389 # The cast to long int works around a bug in the HP C Compiler
13390 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13391 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13392 # This bug is HP SR number 8606223364.
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
13394 $as_echo_n "checking size of unsigned long... " >&6; }
13395 if ${ac_cv_sizeof_unsigned_long+:} false; then :
13396   $as_echo_n "(cached) " >&6
13397 else
13398   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
13399
13400 else
13401   if test "$ac_cv_type_unsigned_long" = yes; then
13402      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13404 as_fn_error 77 "cannot compute sizeof (unsigned long)
13405 See \`config.log' for more details" "$LINENO" 5; }
13406    else
13407      ac_cv_sizeof_unsigned_long=0
13408    fi
13409 fi
13410
13411 fi
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
13413 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
13414
13415
13416
13417 cat >>confdefs.h <<_ACEOF
13418 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13419 _ACEOF
13420
13421
13422 # The cast to long int works around a bug in the HP C Compiler
13423 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13424 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13425 # This bug is HP SR number 8606223364.
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
13427 $as_echo_n "checking size of unsigned long long... " >&6; }
13428 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
13429   $as_echo_n "(cached) " >&6
13430 else
13431   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
13432
13433 else
13434   if test "$ac_cv_type_unsigned_long_long" = yes; then
13435      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13437 as_fn_error 77 "cannot compute sizeof (unsigned long long)
13438 See \`config.log' for more details" "$LINENO" 5; }
13439    else
13440      ac_cv_sizeof_unsigned_long_long=0
13441    fi
13442 fi
13443
13444 fi
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
13446 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
13447
13448
13449
13450 cat >>confdefs.h <<_ACEOF
13451 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
13452 _ACEOF
13453
13454
13455 # The cast to long int works around a bug in the HP C Compiler
13456 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13457 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13458 # This bug is HP SR number 8606223364.
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13460 $as_echo_n "checking size of void *... " >&6; }
13461 if ${ac_cv_sizeof_void_p+:} false; then :
13462   $as_echo_n "(cached) " >&6
13463 else
13464   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
13465
13466 else
13467   if test "$ac_cv_type_void_p" = yes; then
13468      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13470 as_fn_error 77 "cannot compute sizeof (void *)
13471 See \`config.log' for more details" "$LINENO" 5; }
13472    else
13473      ac_cv_sizeof_void_p=0
13474    fi
13475 fi
13476
13477 fi
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13479 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13480
13481
13482
13483 cat >>confdefs.h <<_ACEOF
13484 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13485 _ACEOF
13486
13487
13488
13489
13490   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
13491 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13492
13493 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
13494
13495 else
13496   for ac_type in 'unsigned int' 'unsigned long int' \
13497         'unsigned long long int'; do
13498        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13499 /* end confdefs.h.  */
13500 $ac_includes_default
13501 int
13502 main ()
13503 {
13504 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
13505 test_array [0] = 0;
13506 return test_array [0];
13507
13508   ;
13509   return 0;
13510 }
13511 _ACEOF
13512 if ac_fn_c_try_compile "$LINENO"; then :
13513
13514 cat >>confdefs.h <<_ACEOF
13515 #define uintptr_t $ac_type
13516 _ACEOF
13517
13518           ac_type=
13519 fi
13520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13521        test -z "$ac_type" && break
13522      done
13523 fi
13524
13525
13526
13527 if test "$ac_cv_sizeof_unsigned_short" = "0" \
13528    || test "$ac_cv_sizeof_unsigned_int" = "0" \
13529    || test "$ac_cv_sizeof_unsigned_long" = "0"; then
13530     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&5
13531 $as_echo "$as_me: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&2;};
13532 fi
13533
13534 # Ensure that we have UINT64_C before we bother to check for uint64_t
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UINT64_C" >&5
13536 $as_echo_n "checking for UINT64_C... " >&6; }
13537 if ${gnupg_cv_uint64_c_works+:} false; then :
13538   $as_echo_n "(cached) " >&6
13539 else
13540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13541 /* end confdefs.h.  */
13542 #include <inttypes.h>
13543 int
13544 main ()
13545 {
13546 uint64_t foo=UINT64_C(42);
13547   ;
13548   return 0;
13549 }
13550 _ACEOF
13551 if ac_fn_c_try_compile "$LINENO"; then :
13552   gnupg_cv_uint64_c_works=yes
13553 else
13554   gnupg_cv_uint64_c_works=no
13555 fi
13556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13557 fi
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_uint64_c_works" >&5
13559 $as_echo "$gnupg_cv_uint64_c_works" >&6; }
13560 if test "$gnupg_cv_uint64_c_works" = "yes" ; then
13561    # The cast to long int works around a bug in the HP C Compiler
13562 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13563 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13564 # This bug is HP SR number 8606223364.
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint64_t" >&5
13566 $as_echo_n "checking size of uint64_t... " >&6; }
13567 if ${ac_cv_sizeof_uint64_t+:} false; then :
13568   $as_echo_n "(cached) " >&6
13569 else
13570   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint64_t))" "ac_cv_sizeof_uint64_t"        "$ac_includes_default"; then :
13571
13572 else
13573   if test "$ac_cv_type_uint64_t" = yes; then
13574      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13576 as_fn_error 77 "cannot compute sizeof (uint64_t)
13577 See \`config.log' for more details" "$LINENO" 5; }
13578    else
13579      ac_cv_sizeof_uint64_t=0
13580    fi
13581 fi
13582
13583 fi
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint64_t" >&5
13585 $as_echo "$ac_cv_sizeof_uint64_t" >&6; }
13586
13587
13588
13589 cat >>confdefs.h <<_ACEOF
13590 #define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t
13591 _ACEOF
13592
13593
13594 fi
13595
13596 # Do we have any 64-bit data types?
13597 if test "$ac_cv_sizeof_unsigned_int" != "8" \
13598    && test "$ac_cv_sizeof_unsigned_long" != "8" \
13599    && test "$ac_cv_sizeof_unsigned_long_long" != "8" \
13600    && test "$ac_cv_sizeof_uint64_t" != "8"; then
13601     as_fn_error $? "
13602 ***
13603 *** No 64-bit integer type available.
13604 *** It is not possible to build Libgcrypt on this platform.
13605 ***" "$LINENO" 5
13606 fi
13607
13608
13609 # If not specified otherwise, all available algorithms will be
13610 # included.
13611 default_ciphers="$available_ciphers"
13612 default_pubkey_ciphers="$available_pubkey_ciphers"
13613 default_digests="$available_digests"
13614 default_kdfs="$available_kdfs"
13615 # Blacklist MD2 by default
13616 default_digests=`echo $default_digests | sed -e 's/md2//g'`
13617
13618 # Substitutions to set generated files in a Emacs buffer to read-only.
13619 emacs_local_vars_begin='Local Variables:'
13620
13621 emacs_local_vars_read_only='buffer-read-only: t'
13622
13623 emacs_local_vars_end='End:'
13624
13625
13626 ############################
13627 ## Command line switches. ##
13628 ############################
13629
13630 # Implementation of the --enable-ciphers switch.
13631 # Check whether --enable-ciphers was given.
13632 if test "${enable_ciphers+set}" = set; then :
13633   enableval=$enable_ciphers; enabled_ciphers=`echo $enableval | tr ',:' '  ' | tr 'A-Z' 'a-z'`
13634 else
13635   enabled_ciphers=""
13636 fi
13637
13638 if test "x$enabled_ciphers" = "x" \
13639    -o "$enabled_ciphers" = "yes"  \
13640    -o "$enabled_ciphers" = "no"; then
13641    enabled_ciphers=$default_ciphers
13642 fi
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which symmetric ciphers to include" >&5
13644 $as_echo_n "checking which symmetric ciphers to include... " >&6; }
13645 for cipher in $enabled_ciphers; do
13646
13647 name=$cipher
13648 list=$available_ciphers
13649 found=0
13650
13651 for n in $list; do
13652   if test "x$name" = "x$n"; then
13653     found=1
13654   fi
13655 done
13656
13657     if test "$found" = "0"; then
13658        as_fn_error $? "unsupported cipher \"$cipher\" specified" "$LINENO" 5
13659     fi
13660 done
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled_ciphers" >&5
13662 $as_echo "$enabled_ciphers" >&6; }
13663
13664 # Implementation of the --enable-pubkey-ciphers switch.
13665 # Check whether --enable-pubkey-ciphers was given.
13666 if test "${enable_pubkey_ciphers+set}" = set; then :
13667   enableval=$enable_pubkey_ciphers; enabled_pubkey_ciphers=`echo $enableval | tr ',:' '  ' | tr 'A-Z' 'a-z'`
13668 else
13669   enabled_pubkey_ciphers=""
13670 fi
13671
13672 if test "x$enabled_pubkey_ciphers" = "x" \
13673    -o "$enabled_pubkey_ciphers" = "yes"  \
13674    -o "$enabled_pubkey_ciphers" = "no"; then
13675    enabled_pubkey_ciphers=$default_pubkey_ciphers
13676 fi
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which public-key ciphers to include" >&5
13678 $as_echo_n "checking which public-key ciphers to include... " >&6; }
13679 for cipher in $enabled_pubkey_ciphers; do
13680
13681 name=$cipher
13682 list=$available_pubkey_ciphers
13683 found=0
13684
13685 for n in $list; do
13686   if test "x$name" = "x$n"; then
13687     found=1
13688   fi
13689 done
13690
13691     if test "$found" = "0"; then
13692        as_fn_error $? "unsupported public-key cipher specified" "$LINENO" 5
13693     fi
13694 done
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled_pubkey_ciphers" >&5
13696 $as_echo "$enabled_pubkey_ciphers" >&6; }
13697
13698 # Implementation of the --enable-digests switch.
13699 # Check whether --enable-digests was given.
13700 if test "${enable_digests+set}" = set; then :
13701   enableval=$enable_digests; enabled_digests=`echo $enableval | tr ',:' '  ' | tr 'A-Z' 'a-z'`
13702 else
13703   enabled_digests=""
13704 fi
13705
13706 if test "x$enabled_digests" = "x" \
13707    -o "$enabled_digests" = "yes"  \
13708    -o "$enabled_digests" = "no"; then
13709    enabled_digests=$default_digests
13710 fi
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which message digests to include" >&5
13712 $as_echo_n "checking which message digests to include... " >&6; }
13713 for digest in $enabled_digests; do
13714
13715 name=$digest
13716 list=$available_digests
13717 found=0
13718
13719 for n in $list; do
13720   if test "x$name" = "x$n"; then
13721     found=1
13722   fi
13723 done
13724
13725     if test "$found" = "0"; then
13726        as_fn_error $? "unsupported message digest specified" "$LINENO" 5
13727     fi
13728 done
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled_digests" >&5
13730 $as_echo "$enabled_digests" >&6; }
13731
13732 # Implementation of the --enable-kdfs switch.
13733 # Check whether --enable-kdfs was given.
13734 if test "${enable_kdfs+set}" = set; then :
13735   enableval=$enable_kdfs; enabled_kdfs=`echo $enableval | tr ',:' '  ' | tr 'A-Z' 'a-z'`
13736 else
13737   enabled_kdfs=""
13738 fi
13739
13740 if test "x$enabled_kdfs" = "x" \
13741    -o "$enabled_kdfs" = "yes"  \
13742    -o "$enabled_kdfs" = "no"; then
13743    enabled_kdfs=$default_kdfs
13744 fi
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which key derivation functions to include" >&5
13746 $as_echo_n "checking which key derivation functions to include... " >&6; }
13747 for kdf in $enabled_kdfs; do
13748
13749 name=$kdf
13750 list=$available_kdfs
13751 found=0
13752
13753 for n in $list; do
13754   if test "x$name" = "x$n"; then
13755     found=1
13756   fi
13757 done
13758
13759     if test "$found" = "0"; then
13760        as_fn_error $? "unsupported key derivation function specified" "$LINENO" 5
13761     fi
13762 done
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled_kdfs" >&5
13764 $as_echo "$enabled_kdfs" >&6; }
13765
13766 # Implementation of the --enable-random switch.
13767 # Check whether --enable-random was given.
13768 if test "${enable_random+set}" = set; then :
13769   enableval=$enable_random; random=`echo $enableval | tr 'A-Z' 'a-z'`
13770 fi
13771
13772 if test "x$random" = "x" -o "$random" = "yes" -o "$random" = "no"; then
13773     random=default
13774 fi
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random module to use" >&5
13776 $as_echo_n "checking which random module to use... " >&6; }
13777 if test "$random" != "default" -a "$random" != "auto"; then
13778
13779 name=$random
13780 list=$available_random_modules
13781 found=0
13782
13783 for n in $list; do
13784   if test "x$name" = "x$n"; then
13785     found=1
13786   fi
13787 done
13788
13789     if test "$found" = "0"; then
13790        as_fn_error $? "unsupported random module specified" "$LINENO" 5
13791     fi
13792 fi
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $random" >&5
13794 $as_echo "$random" >&6; }
13795
13796 # Implementation of the --disable-dev-random switch.
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use of /dev/random is requested" >&5
13798 $as_echo_n "checking whether use of /dev/random is requested... " >&6; }
13799 # Check whether --enable-dev-random was given.
13800 if test "${enable_dev_random+set}" = set; then :
13801   enableval=$enable_dev_random; try_dev_random=$enableval
13802 else
13803   try_dev_random=yes
13804 fi
13805
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try_dev_random" >&5
13807 $as_echo "$try_dev_random" >&6; }
13808
13809 # Implementation of the --with-egd-socket switch.
13810
13811 # Check whether --with-egd-socket was given.
13812 if test "${with_egd_socket+set}" = set; then :
13813   withval=$with_egd_socket; egd_socket_name="$withval"
13814 else
13815   egd_socket_name=""
13816 fi
13817
13818
13819 cat >>confdefs.h <<_ACEOF
13820 #define EGD_SOCKET_NAME "$egd_socket_name"
13821 _ACEOF
13822
13823
13824 # Implementation of the --enable-random-daemon
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the experimental random daemon is requested" >&5
13826 $as_echo_n "checking whether the experimental random daemon is requested... " >&6; }
13827 # Check whether --enable-random-daemon was given.
13828 if test "${enable_random_daemon+set}" = set; then :
13829   enableval=$enable_random_daemon; use_random_daemon=$enableval
13830 else
13831   use_random_daemon=no
13832 fi
13833
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_random_daemon" >&5
13835 $as_echo "$use_random_daemon" >&6; }
13836 if test x$use_random_daemon = xyes ; then
13837
13838 $as_echo "#define USE_RANDOM_DAEMON 1" >>confdefs.h
13839
13840 fi
13841  if test x$use_random_daemon = xyes; then
13842   USE_RANDOM_DAEMON_TRUE=
13843   USE_RANDOM_DAEMON_FALSE='#'
13844 else
13845   USE_RANDOM_DAEMON_TRUE='#'
13846   USE_RANDOM_DAEMON_FALSE=
13847 fi
13848
13849
13850
13851 # Implementation of --disable-asm.
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MPI assembler modules are requested" >&5
13853 $as_echo_n "checking whether MPI assembler modules are requested... " >&6; }
13854 # Check whether --enable-asm was given.
13855 if test "${enable_asm+set}" = set; then :
13856   enableval=$enable_asm; try_asm_modules=$enableval
13857 else
13858   try_asm_modules=yes
13859 fi
13860
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try_asm_modules" >&5
13862 $as_echo "$try_asm_modules" >&6; }
13863
13864 # Implementation of the --enable-m-guard switch.
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memory guard is requested" >&5
13866 $as_echo_n "checking whether memory guard is requested... " >&6; }
13867 # Check whether --enable-m-guard was given.
13868 if test "${enable_m_guard+set}" = set; then :
13869   enableval=$enable_m_guard; use_m_guard=$enableval
13870 else
13871   use_m_guard=no
13872 fi
13873
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_m_guard" >&5
13875 $as_echo "$use_m_guard" >&6; }
13876 if test "$use_m_guard" = yes ; then
13877
13878 $as_echo "#define M_GUARD 1" >>confdefs.h
13879
13880 fi
13881
13882 # Implementation of the --enable-large-data-tests switch.
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to run large data tests" >&5
13884 $as_echo_n "checking whether to run large data tests... " >&6; }
13885 # Check whether --enable-large-data-tests was given.
13886 if test "${enable_large_data_tests+set}" = set; then :
13887   enableval=$enable_large_data_tests; large_data_tests=$enableval
13888 else
13889   large_data_tests=no
13890 fi
13891
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $large_data_tests" >&5
13893 $as_echo "$large_data_tests" >&6; }
13894 RUN_LARGE_DATA_TESTS=$large_data_tests
13895
13896
13897
13898 # Implementation of the --with-capabilities switch.
13899 # Check whether we want to use Linux capabilities
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use of capabilities is requested" >&5
13901 $as_echo_n "checking whether use of capabilities is requested... " >&6; }
13902
13903 # Check whether --with-capabilities was given.
13904 if test "${with_capabilities+set}" = set; then :
13905   withval=$with_capabilities; use_capabilities="$withval"
13906 else
13907   use_capabilities=no
13908 fi
13909
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_capabilities" >&5
13911 $as_echo "$use_capabilities" >&6; }
13912
13913 # Implementation of the --enable-hmac-binary-check.
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a HMAC binary check is requested" >&5
13915 $as_echo_n "checking whether a HMAC binary check is requested... " >&6; }
13916 # Check whether --enable-hmac-binary-check was given.
13917 if test "${enable_hmac_binary_check+set}" = set; then :
13918   enableval=$enable_hmac_binary_check; use_hmac_binary_check=$enableval
13919 else
13920   use_hmac_binary_check=no
13921 fi
13922
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hmac_binary_check" >&5
13924 $as_echo "$use_hmac_binary_check" >&6; }
13925 if test "$use_hmac_binary_check" = yes ; then
13926
13927 $as_echo "#define ENABLE_HMAC_BINARY_CHECK 1" >>confdefs.h
13928
13929 fi
13930
13931
13932 # Implementation of the --disable-jent-support switch.
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether jitter entropy support is requested" >&5
13934 $as_echo_n "checking whether jitter entropy support is requested... " >&6; }
13935 # Check whether --enable-jent-support was given.
13936 if test "${enable_jent_support+set}" = set; then :
13937   enableval=$enable_jent_support; jentsupport=$enableval
13938 else
13939   jentsupport=yes
13940 fi
13941
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jentsupport" >&5
13943 $as_echo "$jentsupport" >&6; }
13944
13945 # Implementation of the --disable-padlock-support switch.
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether padlock support is requested" >&5
13947 $as_echo_n "checking whether padlock support is requested... " >&6; }
13948 # Check whether --enable-padlock-support was given.
13949 if test "${enable_padlock_support+set}" = set; then :
13950   enableval=$enable_padlock_support; padlocksupport=$enableval
13951 else
13952   padlocksupport=yes
13953 fi
13954
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $padlocksupport" >&5
13956 $as_echo "$padlocksupport" >&6; }
13957
13958 # Implementation of the --disable-aesni-support switch.
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether AESNI support is requested" >&5
13960 $as_echo_n "checking whether AESNI support is requested... " >&6; }
13961 # Check whether --enable-aesni-support was given.
13962 if test "${enable_aesni_support+set}" = set; then :
13963   enableval=$enable_aesni_support; aesnisupport=$enableval
13964 else
13965   aesnisupport=yes
13966 fi
13967
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aesnisupport" >&5
13969 $as_echo "$aesnisupport" >&6; }
13970
13971 # Implementation of the --disable-pclmul-support switch.
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PCLMUL support is requested" >&5
13973 $as_echo_n "checking whether PCLMUL support is requested... " >&6; }
13974 # Check whether --enable-pclmul-support was given.
13975 if test "${enable_pclmul_support+set}" = set; then :
13976   enableval=$enable_pclmul_support; pclmulsupport=$enableval
13977 else
13978   pclmulsupport=yes
13979 fi
13980
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pclmulsupport" >&5
13982 $as_echo "$pclmulsupport" >&6; }
13983
13984 # Implementation of the --disable-sse41-support switch.
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SSE4.1 support is requested" >&5
13986 $as_echo_n "checking whether SSE4.1 support is requested... " >&6; }
13987 # Check whether --enable-sse41-support was given.
13988 if test "${enable_sse41_support+set}" = set; then :
13989   enableval=$enable_sse41_support; sse41support=$enableval
13990 else
13991   sse41support=yes
13992 fi
13993
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sse41support" >&5
13995 $as_echo "$sse41support" >&6; }
13996
13997 # Implementation of the --disable-drng-support switch.
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DRNG support is requested" >&5
13999 $as_echo_n "checking whether DRNG support is requested... " >&6; }
14000 # Check whether --enable-drng-support was given.
14001 if test "${enable_drng_support+set}" = set; then :
14002   enableval=$enable_drng_support; drngsupport=$enableval
14003 else
14004   drngsupport=yes
14005 fi
14006
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $drngsupport" >&5
14008 $as_echo "$drngsupport" >&6; }
14009
14010 # Implementation of the --disable-avx-support switch.
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether AVX support is requested" >&5
14012 $as_echo_n "checking whether AVX support is requested... " >&6; }
14013 # Check whether --enable-avx-support was given.
14014 if test "${enable_avx_support+set}" = set; then :
14015   enableval=$enable_avx_support; avxsupport=$enableval
14016 else
14017   avxsupport=yes
14018 fi
14019
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $avxsupport" >&5
14021 $as_echo "$avxsupport" >&6; }
14022
14023 # Implementation of the --disable-avx2-support switch.
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether AVX2 support is requested" >&5
14025 $as_echo_n "checking whether AVX2 support is requested... " >&6; }
14026 # Check whether --enable-avx2-support was given.
14027 if test "${enable_avx2_support+set}" = set; then :
14028   enableval=$enable_avx2_support; avx2support=$enableval
14029 else
14030   avx2support=yes
14031 fi
14032
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $avx2support" >&5
14034 $as_echo "$avx2support" >&6; }
14035
14036 # Implementation of the --disable-neon-support switch.
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NEON support is requested" >&5
14038 $as_echo_n "checking whether NEON support is requested... " >&6; }
14039 # Check whether --enable-neon-support was given.
14040 if test "${enable_neon_support+set}" = set; then :
14041   enableval=$enable_neon_support; neonsupport=$enableval
14042 else
14043   neonsupport=yes
14044 fi
14045
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $neonsupport" >&5
14047 $as_echo "$neonsupport" >&6; }
14048
14049 # Implementation of the --disable-arm-crypto-support switch.
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ARMv8 Crypto Extension support is requested" >&5
14051 $as_echo_n "checking whether ARMv8 Crypto Extension support is requested... " >&6; }
14052 # Check whether --enable-arm-crypto-support was given.
14053 if test "${enable_arm_crypto_support+set}" = set; then :
14054   enableval=$enable_arm_crypto_support; armcryptosupport=$enableval
14055 else
14056   armcryptosupport=yes
14057 fi
14058
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $armcryptosupport" >&5
14060 $as_echo "$armcryptosupport" >&6; }
14061
14062 # Implementation of the --disable-O-flag-munging switch.
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a -O flag munging is requested" >&5
14064 $as_echo_n "checking whether a -O flag munging is requested... " >&6; }
14065 # Check whether --enable-O-flag-munging was given.
14066 if test "${enable_O_flag_munging+set}" = set; then :
14067   enableval=$enable_O_flag_munging; enable_o_flag_munging=$enableval
14068 else
14069   enable_o_flag_munging=yes
14070 fi
14071
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_o_flag_munging" >&5
14073 $as_echo "$enable_o_flag_munging" >&6; }
14074  if test "$enable_o_flag_munging" = "yes"; then
14075   ENABLE_O_FLAG_MUNGING_TRUE=
14076   ENABLE_O_FLAG_MUNGING_FALSE='#'
14077 else
14078   ENABLE_O_FLAG_MUNGING_TRUE='#'
14079   ENABLE_O_FLAG_MUNGING_FALSE=
14080 fi
14081
14082
14083 # Implementation of the --disable-amd64-as-feature-detection switch.
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable AMD64 as(1) feature detection" >&5
14085 $as_echo_n "checking whether to enable AMD64 as(1) feature detection... " >&6; }
14086 # Check whether --enable-amd64-as-feature-detection was given.
14087 if test "${enable_amd64_as_feature_detection+set}" = set; then :
14088   enableval=$enable_amd64_as_feature_detection; amd64_as_feature_detection=$enableval
14089 else
14090   amd64_as_feature_detection=yes
14091 fi
14092
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amd64_as_feature_detection" >&5
14094 $as_echo "$amd64_as_feature_detection" >&6; }
14095
14096
14097
14098 cat >>confdefs.h <<_ACEOF
14099 #define PRINTABLE_OS_NAME "$PRINTABLE_OS_NAME"
14100 _ACEOF
14101
14102
14103 # For some systems we know that we have ld_version scripts.
14104 # Use it then as default.
14105 have_ld_version_script=no
14106 case "${host}" in
14107     *-*-linux*)
14108         have_ld_version_script=yes
14109         ;;
14110     *-*-gnu*)
14111         have_ld_version_script=yes
14112         ;;
14113 esac
14114 # Check whether --enable-ld-version-script was given.
14115 if test "${enable_ld_version_script+set}" = set; then :
14116   enableval=$enable_ld_version_script; have_ld_version_script=$enableval
14117 else
14118    :
14119 fi
14120
14121  if test "$have_ld_version_script" = "yes"; then
14122   HAVE_LD_VERSION_SCRIPT_TRUE=
14123   HAVE_LD_VERSION_SCRIPT_FALSE='#'
14124 else
14125   HAVE_LD_VERSION_SCRIPT_TRUE='#'
14126   HAVE_LD_VERSION_SCRIPT_FALSE=
14127 fi
14128
14129
14130
14131 cat >>confdefs.h <<_ACEOF
14132 #define NAME_OF_DEV_RANDOM "$NAME_OF_DEV_RANDOM"
14133 _ACEOF
14134
14135
14136 cat >>confdefs.h <<_ACEOF
14137 #define NAME_OF_DEV_URANDOM "$NAME_OF_DEV_URANDOM"
14138 _ACEOF
14139
14140
14141
14142 ###############################
14143 #### Checks for libraries. ####
14144 ###############################
14145
14146 #
14147 # gpg-error is required.
14148 #
14149
14150   gpg_error_config_prefix=""
14151
14152 # Check whether --with-libgpg-error-prefix was given.
14153 if test "${with_libgpg_error_prefix+set}" = set; then :
14154   withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
14155 fi
14156
14157
14158
14159 # Check whether --with-gpg-error-prefix was given.
14160 if test "${with_gpg_error_prefix+set}" = set; then :
14161   withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
14162 fi
14163
14164
14165   if test x"${GPG_ERROR_CONFIG}" = x ; then
14166      if test x"${gpg_error_config_prefix}" != x ; then
14167         GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
14168      else
14169        case "${SYSROOT}" in
14170          /*)
14171            if test -x "${SYSROOT}/bin/gpg-error-config" ; then
14172              GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
14173            fi
14174            ;;
14175          '')
14176            ;;
14177           *)
14178            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
14179 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
14180            ;;
14181        esac
14182      fi
14183   fi
14184
14185   # Extract the first word of "gpg-error-config", so it can be a program name with args.
14186 set dummy gpg-error-config; ac_word=$2
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14188 $as_echo_n "checking for $ac_word... " >&6; }
14189 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
14190   $as_echo_n "(cached) " >&6
14191 else
14192   case $GPG_ERROR_CONFIG in
14193   [\\/]* | ?:[\\/]*)
14194   ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
14195   ;;
14196   *)
14197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14198 for as_dir in $PATH
14199 do
14200   IFS=$as_save_IFS
14201   test -z "$as_dir" && as_dir=.
14202     for ac_exec_ext in '' $ac_executable_extensions; do
14203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14204     ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14206     break 2
14207   fi
14208 done
14209   done
14210 IFS=$as_save_IFS
14211
14212   test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
14213   ;;
14214 esac
14215 fi
14216 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
14217 if test -n "$GPG_ERROR_CONFIG"; then
14218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
14219 $as_echo "$GPG_ERROR_CONFIG" >&6; }
14220 else
14221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14222 $as_echo "no" >&6; }
14223 fi
14224
14225
14226   min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
14227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
14228 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
14229   ok=no
14230   if test "$GPG_ERROR_CONFIG" != "no" \
14231      && test -f "$GPG_ERROR_CONFIG" ; then
14232     req_major=`echo $min_gpg_error_version | \
14233                sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
14234     req_minor=`echo $min_gpg_error_version | \
14235                sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
14236     gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version`
14237     major=`echo $gpg_error_config_version | \
14238                sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
14239     minor=`echo $gpg_error_config_version | \
14240                sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
14241     if test "$major" -gt "$req_major"; then
14242         ok=yes
14243     else
14244         if test "$major" -eq "$req_major"; then
14245             if test "$minor" -ge "$req_minor"; then
14246                ok=yes
14247             fi
14248         fi
14249     fi
14250   fi
14251   if test $ok = yes; then
14252     GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags`
14253     GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs`
14254     GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --cflags 2>/dev/null`
14255     GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --libs 2>/dev/null`
14256     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
14257 $as_echo "yes ($gpg_error_config_version)" >&6; }
14258     :
14259     gpg_error_config_host=`$GPG_ERROR_CONFIG $gpg_error_config_args --host 2>/dev/null || echo none`
14260     if test x"$gpg_error_config_host" != xnone ; then
14261       if test x"$gpg_error_config_host" != x"$host" ; then
14262   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14263 ***
14264 *** The config script $GPG_ERROR_CONFIG was
14265 *** built for $gpg_error_config_host and thus may not match the
14266 *** used host $host.
14267 *** You may want to use the configure option --with-gpg-error-prefix
14268 *** to specify a matching config script or use \$SYSROOT.
14269 ***" >&5
14270 $as_echo "$as_me: WARNING:
14271 ***
14272 *** The config script $GPG_ERROR_CONFIG was
14273 *** built for $gpg_error_config_host and thus may not match the
14274 *** used host $host.
14275 *** You may want to use the configure option --with-gpg-error-prefix
14276 *** to specify a matching config script or use \$SYSROOT.
14277 ***" >&2;}
14278         gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
14279       fi
14280     fi
14281   else
14282     GPG_ERROR_CFLAGS=""
14283     GPG_ERROR_LIBS=""
14284     GPG_ERROR_MT_CFLAGS=""
14285     GPG_ERROR_MT_LIBS=""
14286     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14287 $as_echo "no" >&6; }
14288     :
14289   fi
14290
14291
14292
14293
14294
14295 if test "x$GPG_ERROR_LIBS" = "x"; then
14296   as_fn_error $? "libgpg-error is needed.
14297                 See ftp://ftp.gnupg.org/gcrypt/libgpg-error/ ." "$LINENO" 5
14298 fi
14299
14300
14301 $as_echo "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_GCRYPT" >>confdefs.h
14302
14303
14304 #
14305 # Check whether the GNU Pth library is available.  We require this
14306 # to build the optional gcryptrnd program.
14307 #
14308
14309 # Check whether --with-pth-prefix was given.
14310 if test "${with_pth_prefix+set}" = set; then :
14311   withval=$with_pth_prefix; pth_config_prefix="$withval"
14312 else
14313   pth_config_prefix=""
14314 fi
14315
14316 if test x$pth_config_prefix != x ; then
14317    PTH_CONFIG="$pth_config_prefix/bin/pth-config"
14318 fi
14319 if test "$use_random_daemon" = "yes"; then
14320   # Extract the first word of "pth-config", so it can be a program name with args.
14321 set dummy pth-config; ac_word=$2
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14323 $as_echo_n "checking for $ac_word... " >&6; }
14324 if ${ac_cv_path_PTH_CONFIG+:} false; then :
14325   $as_echo_n "(cached) " >&6
14326 else
14327   case $PTH_CONFIG in
14328   [\\/]* | ?:[\\/]*)
14329   ac_cv_path_PTH_CONFIG="$PTH_CONFIG" # Let the user override the test with a path.
14330   ;;
14331   *)
14332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14333 for as_dir in $PATH
14334 do
14335   IFS=$as_save_IFS
14336   test -z "$as_dir" && as_dir=.
14337     for ac_exec_ext in '' $ac_executable_extensions; do
14338   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14339     ac_cv_path_PTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14341     break 2
14342   fi
14343 done
14344   done
14345 IFS=$as_save_IFS
14346
14347   test -z "$ac_cv_path_PTH_CONFIG" && ac_cv_path_PTH_CONFIG="no"
14348   ;;
14349 esac
14350 fi
14351 PTH_CONFIG=$ac_cv_path_PTH_CONFIG
14352 if test -n "$PTH_CONFIG"; then
14353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTH_CONFIG" >&5
14354 $as_echo "$PTH_CONFIG" >&6; }
14355 else
14356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14357 $as_echo "no" >&6; }
14358 fi
14359
14360
14361   if test "$PTH_CONFIG" = "no"; then
14362     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14363 ***
14364 *** To build the Libgcrypt's random number daemon
14365 *** we need the support of the GNU Portable Threads Library.
14366 *** Download it from ftp://ftp.gnu.org/gnu/pth/
14367 *** On a Debian GNU/Linux system you might want to try
14368 ***   apt-get install libpth-dev
14369 ***" >&5
14370 $as_echo "$as_me: WARNING:
14371 ***
14372 *** To build the Libgcrypt's random number daemon
14373 *** we need the support of the GNU Portable Threads Library.
14374 *** Download it from ftp://ftp.gnu.org/gnu/pth/
14375 *** On a Debian GNU/Linux system you might want to try
14376 ***   apt-get install libpth-dev
14377 ***" >&2;}
14378   else
14379
14380     _pth_version=`$PTH_CONFIG --version | awk 'NR==1 {print $3}'`
14381     _req_version="1.3.7"
14382
14383     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTH - version >= $_req_version" >&5
14384 $as_echo_n "checking for PTH - version >= $_req_version... " >&6; }
14385     for _var in _pth_version _req_version; do
14386         eval "_val=\"\$${_var}\""
14387         _major=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\1/'`
14388         _minor=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\2/'`
14389         _rtype=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\3/'`
14390         _micro=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\4/'`
14391         case $_rtype in
14392             "a" ) _rtype=0 ;;
14393             "b" ) _rtype=1 ;;
14394             "." ) _rtype=2 ;;
14395         esac
14396         _hex=`echo dummy | awk '{ printf("%d%02d%1d%02d", major, minor, rtype, micro); }' \
14397               "major=$_major" "minor=$_minor" "rtype=$_rtype" "micro=$_micro"`
14398         eval "${_var}_hex=\"\$_hex\""
14399     done
14400     have_pth=no
14401     if test ".$_pth_version_hex" != .; then
14402         if test ".$_req_version_hex" != .; then
14403             if test $_pth_version_hex -ge $_req_version_hex; then
14404                 have_pth=yes
14405             fi
14406         fi
14407     fi
14408     if test $have_pth = yes; then
14409        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14410 $as_echo "yes" >&6; }
14411        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PTH installation is sane" >&5
14412 $as_echo_n "checking whether PTH installation is sane... " >&6; }
14413        if ${gnupg_cv_pth_is_sane+:} false; then :
14414   $as_echo_n "(cached) " >&6
14415 else
14416
14417          _gnupg_pth_save_cflags=$CFLAGS
14418          _gnupg_pth_save_ldflags=$LDFLAGS
14419          _gnupg_pth_save_libs=$LIBS
14420          CFLAGS="$CFLAGS `$PTH_CONFIG --cflags`"
14421          LDFLAGS="$LDFLAGS `$PTH_CONFIG --ldflags`"
14422          LIBS="$LIBS `$PTH_CONFIG --libs`"
14423          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14424 /* end confdefs.h.  */
14425 #include <pth.h>
14426
14427 int
14428 main ()
14429 {
14430  pth_init ();
14431   ;
14432   return 0;
14433 }
14434 _ACEOF
14435 if ac_fn_c_try_link "$LINENO"; then :
14436   gnupg_cv_pth_is_sane=yes
14437 else
14438   gnupg_cv_pth_is_sane=no
14439 fi
14440 rm -f core conftest.err conftest.$ac_objext \
14441     conftest$ac_exeext conftest.$ac_ext
14442          CFLAGS=$_gnupg_pth_save_cflags
14443          LDFLAGS=$_gnupg_pth_save_ldflags
14444          LIBS=$_gnupg_pth_save_libs
14445
14446 fi
14447
14448        if test $gnupg_cv_pth_is_sane != yes; then
14449           have_pth=no
14450        fi
14451        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_pth_is_sane" >&5
14452 $as_echo "$gnupg_cv_pth_is_sane" >&6; }
14453     else
14454        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14455 $as_echo "no" >&6; }
14456     fi
14457
14458     if test $have_pth = yes; then
14459        PTH_CFLAGS=`$PTH_CONFIG --cflags`
14460        PTH_LIBS=`$PTH_CONFIG --ldflags`
14461        PTH_LIBS="$PTH_LIBS `$PTH_CONFIG --libs --all`"
14462
14463 $as_echo "#define USE_GNU_PTH 1" >>confdefs.h
14464
14465
14466 $as_echo "#define HAVE_PTH 1" >>confdefs.h
14467
14468     fi
14469   fi
14470 fi
14471
14472
14473
14474 #
14475 # Check whether pthreads is available
14476 #
14477 if test "$have_w32_system" != yes; then
14478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14479 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14480 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
14481   $as_echo_n "(cached) " >&6
14482 else
14483   ac_check_lib_save_LIBS=$LIBS
14484 LIBS="-lpthread  $LIBS"
14485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486 /* end confdefs.h.  */
14487
14488 /* Override any GCC internal prototype to avoid an error.
14489    Use char because int might match the return type of a GCC
14490    builtin and then its argument prototype would still apply.  */
14491 #ifdef __cplusplus
14492 extern "C"
14493 #endif
14494 char pthread_create ();
14495 int
14496 main ()
14497 {
14498 return pthread_create ();
14499   ;
14500   return 0;
14501 }
14502 _ACEOF
14503 if ac_fn_c_try_link "$LINENO"; then :
14504   ac_cv_lib_pthread_pthread_create=yes
14505 else
14506   ac_cv_lib_pthread_pthread_create=no
14507 fi
14508 rm -f core conftest.err conftest.$ac_objext \
14509     conftest$ac_exeext conftest.$ac_ext
14510 LIBS=$ac_check_lib_save_LIBS
14511 fi
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14513 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14514 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
14515   have_pthread=yes
14516 fi
14517
14518   if test "$have_pthread" = yes; then
14519
14520 $as_echo "#define HAVE_PTHREAD 1 " >>confdefs.h
14521
14522   fi
14523 fi
14524
14525
14526 # Solaris needs -lsocket and -lnsl. Unisys system includes
14527 # gethostbyname in libsocket but needs libnsl for socket.
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
14529 $as_echo_n "checking for library containing setsockopt... " >&6; }
14530 if ${ac_cv_search_setsockopt+:} false; then :
14531   $as_echo_n "(cached) " >&6
14532 else
14533   ac_func_search_save_LIBS=$LIBS
14534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14535 /* end confdefs.h.  */
14536
14537 /* Override any GCC internal prototype to avoid an error.
14538    Use char because int might match the return type of a GCC
14539    builtin and then its argument prototype would still apply.  */
14540 #ifdef __cplusplus
14541 extern "C"
14542 #endif
14543 char setsockopt ();
14544 int
14545 main ()
14546 {
14547 return setsockopt ();
14548   ;
14549   return 0;
14550 }
14551 _ACEOF
14552 for ac_lib in '' socket; do
14553   if test -z "$ac_lib"; then
14554     ac_res="none required"
14555   else
14556     ac_res=-l$ac_lib
14557     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14558   fi
14559   if ac_fn_c_try_link "$LINENO"; then :
14560   ac_cv_search_setsockopt=$ac_res
14561 fi
14562 rm -f core conftest.err conftest.$ac_objext \
14563     conftest$ac_exeext
14564   if ${ac_cv_search_setsockopt+:} false; then :
14565   break
14566 fi
14567 done
14568 if ${ac_cv_search_setsockopt+:} false; then :
14569
14570 else
14571   ac_cv_search_setsockopt=no
14572 fi
14573 rm conftest.$ac_ext
14574 LIBS=$ac_func_search_save_LIBS
14575 fi
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
14577 $as_echo "$ac_cv_search_setsockopt" >&6; }
14578 ac_res=$ac_cv_search_setsockopt
14579 if test "$ac_res" != no; then :
14580   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14581
14582 else
14583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
14584 $as_echo_n "checking for library containing setsockopt... " >&6; }
14585 if ${ac_cv_search_setsockopt+:} false; then :
14586   $as_echo_n "(cached) " >&6
14587 else
14588   ac_func_search_save_LIBS=$LIBS
14589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14590 /* end confdefs.h.  */
14591
14592 /* Override any GCC internal prototype to avoid an error.
14593    Use char because int might match the return type of a GCC
14594    builtin and then its argument prototype would still apply.  */
14595 #ifdef __cplusplus
14596 extern "C"
14597 #endif
14598 char setsockopt ();
14599 int
14600 main ()
14601 {
14602 return setsockopt ();
14603   ;
14604   return 0;
14605 }
14606 _ACEOF
14607 for ac_lib in '' socket; do
14608   if test -z "$ac_lib"; then
14609     ac_res="none required"
14610   else
14611     ac_res=-l$ac_lib
14612     LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
14613   fi
14614   if ac_fn_c_try_link "$LINENO"; then :
14615   ac_cv_search_setsockopt=$ac_res
14616 fi
14617 rm -f core conftest.err conftest.$ac_objext \
14618     conftest$ac_exeext
14619   if ${ac_cv_search_setsockopt+:} false; then :
14620   break
14621 fi
14622 done
14623 if ${ac_cv_search_setsockopt+:} false; then :
14624
14625 else
14626   ac_cv_search_setsockopt=no
14627 fi
14628 rm conftest.$ac_ext
14629 LIBS=$ac_func_search_save_LIBS
14630 fi
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
14632 $as_echo "$ac_cv_search_setsockopt" >&6; }
14633 ac_res=$ac_cv_search_setsockopt
14634 if test "$ac_res" != no; then :
14635   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14636
14637 fi
14638
14639 fi
14640
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
14642 $as_echo_n "checking for library containing setsockopt... " >&6; }
14643 if ${ac_cv_search_setsockopt+:} false; then :
14644   $as_echo_n "(cached) " >&6
14645 else
14646   ac_func_search_save_LIBS=$LIBS
14647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14648 /* end confdefs.h.  */
14649
14650 /* Override any GCC internal prototype to avoid an error.
14651    Use char because int might match the return type of a GCC
14652    builtin and then its argument prototype would still apply.  */
14653 #ifdef __cplusplus
14654 extern "C"
14655 #endif
14656 char setsockopt ();
14657 int
14658 main ()
14659 {
14660 return setsockopt ();
14661   ;
14662   return 0;
14663 }
14664 _ACEOF
14665 for ac_lib in '' nsl; do
14666   if test -z "$ac_lib"; then
14667     ac_res="none required"
14668   else
14669     ac_res=-l$ac_lib
14670     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14671   fi
14672   if ac_fn_c_try_link "$LINENO"; then :
14673   ac_cv_search_setsockopt=$ac_res
14674 fi
14675 rm -f core conftest.err conftest.$ac_objext \
14676     conftest$ac_exeext
14677   if ${ac_cv_search_setsockopt+:} false; then :
14678   break
14679 fi
14680 done
14681 if ${ac_cv_search_setsockopt+:} false; then :
14682
14683 else
14684   ac_cv_search_setsockopt=no
14685 fi
14686 rm conftest.$ac_ext
14687 LIBS=$ac_func_search_save_LIBS
14688 fi
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
14690 $as_echo "$ac_cv_search_setsockopt" >&6; }
14691 ac_res=$ac_cv_search_setsockopt
14692 if test "$ac_res" != no; then :
14693   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14694
14695 fi
14696
14697
14698 ##################################
14699 #### Checks for header files. ####
14700 ##################################
14701
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14703 $as_echo_n "checking for ANSI C header files... " >&6; }
14704 if ${ac_cv_header_stdc+:} false; then :
14705   $as_echo_n "(cached) " >&6
14706 else
14707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14708 /* end confdefs.h.  */
14709 #include <stdlib.h>
14710 #include <stdarg.h>
14711 #include <string.h>
14712 #include <float.h>
14713
14714 int
14715 main ()
14716 {
14717
14718   ;
14719   return 0;
14720 }
14721 _ACEOF
14722 if ac_fn_c_try_compile "$LINENO"; then :
14723   ac_cv_header_stdc=yes
14724 else
14725   ac_cv_header_stdc=no
14726 fi
14727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14728
14729 if test $ac_cv_header_stdc = yes; then
14730   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14732 /* end confdefs.h.  */
14733 #include <string.h>
14734
14735 _ACEOF
14736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14737   $EGREP "memchr" >/dev/null 2>&1; then :
14738
14739 else
14740   ac_cv_header_stdc=no
14741 fi
14742 rm -f conftest*
14743
14744 fi
14745
14746 if test $ac_cv_header_stdc = yes; then
14747   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14749 /* end confdefs.h.  */
14750 #include <stdlib.h>
14751
14752 _ACEOF
14753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14754   $EGREP "free" >/dev/null 2>&1; then :
14755
14756 else
14757   ac_cv_header_stdc=no
14758 fi
14759 rm -f conftest*
14760
14761 fi
14762
14763 if test $ac_cv_header_stdc = yes; then
14764   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14765   if test "$cross_compiling" = yes; then :
14766   :
14767 else
14768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14769 /* end confdefs.h.  */
14770 #include <ctype.h>
14771 #include <stdlib.h>
14772 #if ((' ' & 0x0FF) == 0x020)
14773 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14774 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14775 #else
14776 # define ISLOWER(c) \
14777                    (('a' <= (c) && (c) <= 'i') \
14778                      || ('j' <= (c) && (c) <= 'r') \
14779                      || ('s' <= (c) && (c) <= 'z'))
14780 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14781 #endif
14782
14783 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14784 int
14785 main ()
14786 {
14787   int i;
14788   for (i = 0; i < 256; i++)
14789     if (XOR (islower (i), ISLOWER (i))
14790         || toupper (i) != TOUPPER (i))
14791       return 2;
14792   return 0;
14793 }
14794 _ACEOF
14795 if ac_fn_c_try_run "$LINENO"; then :
14796
14797 else
14798   ac_cv_header_stdc=no
14799 fi
14800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14801   conftest.$ac_objext conftest.beam conftest.$ac_ext
14802 fi
14803
14804 fi
14805 fi
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14807 $as_echo "$ac_cv_header_stdc" >&6; }
14808 if test $ac_cv_header_stdc = yes; then
14809
14810 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14811
14812 fi
14813
14814 for ac_header in unistd.h sys/select.h sys/msg.h
14815 do :
14816   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14817 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14818 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14819   cat >>confdefs.h <<_ACEOF
14820 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14821 _ACEOF
14822
14823 fi
14824
14825 done
14826
14827 INSERT_SYS_SELECT_H=
14828 if test x"$ac_cv_header_sys_select_h" = xyes; then
14829   INSERT_SYS_SELECT_H=" include <sys/select.h>"
14830 fi
14831
14832
14833
14834 ##########################################
14835 #### Checks for typedefs, structures, ####
14836 ####  and compiler characteristics.   ####
14837 ##########################################
14838
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14840 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14841 if ${ac_cv_c_const+:} false; then :
14842   $as_echo_n "(cached) " >&6
14843 else
14844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14845 /* end confdefs.h.  */
14846
14847 int
14848 main ()
14849 {
14850
14851 #ifndef __cplusplus
14852   /* Ultrix mips cc rejects this sort of thing.  */
14853   typedef int charset[2];
14854   const charset cs = { 0, 0 };
14855   /* SunOS 4.1.1 cc rejects this.  */
14856   char const *const *pcpcc;
14857   char **ppc;
14858   /* NEC SVR4.0.2 mips cc rejects this.  */
14859   struct point {int x, y;};
14860   static struct point const zero = {0,0};
14861   /* AIX XL C 1.02.0.0 rejects this.
14862      It does not let you subtract one const X* pointer from another in
14863      an arm of an if-expression whose if-part is not a constant
14864      expression */
14865   const char *g = "string";
14866   pcpcc = &g + (g ? g-g : 0);
14867   /* HPUX 7.0 cc rejects these. */
14868   ++pcpcc;
14869   ppc = (char**) pcpcc;
14870   pcpcc = (char const *const *) ppc;
14871   { /* SCO 3.2v4 cc rejects this sort of thing.  */
14872     char tx;
14873     char *t = &tx;
14874     char const *s = 0 ? (char *) 0 : (char const *) 0;
14875
14876     *t++ = 0;
14877     if (s) return 0;
14878   }
14879   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14880     int x[] = {25, 17};
14881     const int *foo = &x[0];
14882     ++foo;
14883   }
14884   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14885     typedef const int *iptr;
14886     iptr p = 0;
14887     ++p;
14888   }
14889   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14890        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14891     struct s { int j; const int *ap[3]; } bx;
14892     struct s *b = &bx; b->j = 5;
14893   }
14894   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14895     const int foo = 10;
14896     if (!foo) return 0;
14897   }
14898   return !cs[0] && !zero.x;
14899 #endif
14900
14901   ;
14902   return 0;
14903 }
14904 _ACEOF
14905 if ac_fn_c_try_compile "$LINENO"; then :
14906   ac_cv_c_const=yes
14907 else
14908   ac_cv_c_const=no
14909 fi
14910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14911 fi
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14913 $as_echo "$ac_cv_c_const" >&6; }
14914 if test $ac_cv_c_const = no; then
14915
14916 $as_echo "#define const /**/" >>confdefs.h
14917
14918 fi
14919
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14921 $as_echo_n "checking for inline... " >&6; }
14922 if ${ac_cv_c_inline+:} false; then :
14923   $as_echo_n "(cached) " >&6
14924 else
14925   ac_cv_c_inline=no
14926 for ac_kw in inline __inline__ __inline; do
14927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14928 /* end confdefs.h.  */
14929 #ifndef __cplusplus
14930 typedef int foo_t;
14931 static $ac_kw foo_t static_foo () {return 0; }
14932 $ac_kw foo_t foo () {return 0; }
14933 #endif
14934
14935 _ACEOF
14936 if ac_fn_c_try_compile "$LINENO"; then :
14937   ac_cv_c_inline=$ac_kw
14938 fi
14939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14940   test "$ac_cv_c_inline" != no && break
14941 done
14942
14943 fi
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14945 $as_echo "$ac_cv_c_inline" >&6; }
14946
14947 case $ac_cv_c_inline in
14948   inline | yes) ;;
14949   *)
14950     case $ac_cv_c_inline in
14951       no) ac_val=;;
14952       *) ac_val=$ac_cv_c_inline;;
14953     esac
14954     cat >>confdefs.h <<_ACEOF
14955 #ifndef __cplusplus
14956 #define inline $ac_val
14957 #endif
14958 _ACEOF
14959     ;;
14960 esac
14961
14962 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14963 if test "x$ac_cv_type_size_t" = xyes; then :
14964
14965 else
14966
14967 cat >>confdefs.h <<_ACEOF
14968 #define size_t unsigned int
14969 _ACEOF
14970
14971 fi
14972
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14974 $as_echo_n "checking return type of signal handlers... " >&6; }
14975 if ${ac_cv_type_signal+:} false; then :
14976   $as_echo_n "(cached) " >&6
14977 else
14978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14979 /* end confdefs.h.  */
14980 #include <sys/types.h>
14981 #include <signal.h>
14982
14983 int
14984 main ()
14985 {
14986 return *(signal (0, 0)) (0) == 1;
14987   ;
14988   return 0;
14989 }
14990 _ACEOF
14991 if ac_fn_c_try_compile "$LINENO"; then :
14992   ac_cv_type_signal=int
14993 else
14994   ac_cv_type_signal=void
14995 fi
14996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14997 fi
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14999 $as_echo "$ac_cv_type_signal" >&6; }
15000
15001 cat >>confdefs.h <<_ACEOF
15002 #define RETSIGTYPE $ac_cv_type_signal
15003 _ACEOF
15004
15005
15006 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
15007 /* NetBSD declares sys_siglist in unistd.h.  */
15008 #ifdef HAVE_UNISTD_H
15009 # include <unistd.h>
15010 #endif
15011
15012 "
15013 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
15014   ac_have_decl=1
15015 else
15016   ac_have_decl=0
15017 fi
15018
15019 cat >>confdefs.h <<_ACEOF
15020 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
15021 _ACEOF
15022
15023
15024 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15025 if test "x$ac_cv_type_pid_t" = xyes; then :
15026
15027 else
15028
15029 cat >>confdefs.h <<_ACEOF
15030 #define pid_t int
15031 _ACEOF
15032
15033 fi
15034
15035
15036  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for byte typedef" >&5
15037 $as_echo_n "checking for byte typedef... " >&6; }
15038     if ${gnupg_cv_typedef_byte+:} false; then :
15039   $as_echo_n "(cached) " >&6
15040 else
15041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15042 /* end confdefs.h.  */
15043 #define _GNU_SOURCE 1
15044     #include <stdlib.h>
15045     #include <sys/types.h>
15046 int
15047 main ()
15048 {
15049
15050     #undef byte
15051     int a = sizeof(byte);
15052
15053   ;
15054   return 0;
15055 }
15056 _ACEOF
15057 if ac_fn_c_try_compile "$LINENO"; then :
15058   gnupg_cv_typedef_byte=yes
15059 else
15060   gnupg_cv_typedef_byte=no
15061 fi
15062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15063 fi
15064
15065     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_byte" >&5
15066 $as_echo "$gnupg_cv_typedef_byte" >&6; }
15067     if test "$gnupg_cv_typedef_byte" = yes; then
15068
15069 $as_echo "#define HAVE_BYTE_TYPEDEF 1" >>confdefs.h
15070
15071     fi
15072
15073  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ushort typedef" >&5
15074 $as_echo_n "checking for ushort typedef... " >&6; }
15075     if ${gnupg_cv_typedef_ushort+:} false; then :
15076   $as_echo_n "(cached) " >&6
15077 else
15078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15079 /* end confdefs.h.  */
15080 #define _GNU_SOURCE 1
15081     #include <stdlib.h>
15082     #include <sys/types.h>
15083 int
15084 main ()
15085 {
15086
15087     #undef ushort
15088     int a = sizeof(ushort);
15089
15090   ;
15091   return 0;
15092 }
15093 _ACEOF
15094 if ac_fn_c_try_compile "$LINENO"; then :
15095   gnupg_cv_typedef_ushort=yes
15096 else
15097   gnupg_cv_typedef_ushort=no
15098 fi
15099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15100 fi
15101
15102     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_ushort" >&5
15103 $as_echo "$gnupg_cv_typedef_ushort" >&6; }
15104     if test "$gnupg_cv_typedef_ushort" = yes; then
15105
15106 $as_echo "#define HAVE_USHORT_TYPEDEF 1" >>confdefs.h
15107
15108     fi
15109
15110  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ulong typedef" >&5
15111 $as_echo_n "checking for ulong typedef... " >&6; }
15112     if ${gnupg_cv_typedef_ulong+:} false; then :
15113   $as_echo_n "(cached) " >&6
15114 else
15115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15116 /* end confdefs.h.  */
15117 #define _GNU_SOURCE 1
15118     #include <stdlib.h>
15119     #include <sys/types.h>
15120 int
15121 main ()
15122 {
15123
15124     #undef ulong
15125     int a = sizeof(ulong);
15126
15127   ;
15128   return 0;
15129 }
15130 _ACEOF
15131 if ac_fn_c_try_compile "$LINENO"; then :
15132   gnupg_cv_typedef_ulong=yes
15133 else
15134   gnupg_cv_typedef_ulong=no
15135 fi
15136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15137 fi
15138
15139     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_ulong" >&5
15140 $as_echo "$gnupg_cv_typedef_ulong" >&6; }
15141     if test "$gnupg_cv_typedef_ulong" = yes; then
15142
15143 $as_echo "#define HAVE_ULONG_TYPEDEF 1" >>confdefs.h
15144
15145     fi
15146
15147  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u16 typedef" >&5
15148 $as_echo_n "checking for u16 typedef... " >&6; }
15149     if ${gnupg_cv_typedef_u16+:} false; then :
15150   $as_echo_n "(cached) " >&6
15151 else
15152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15153 /* end confdefs.h.  */
15154 #define _GNU_SOURCE 1
15155     #include <stdlib.h>
15156     #include <sys/types.h>
15157 int
15158 main ()
15159 {
15160
15161     #undef u16
15162     int a = sizeof(u16);
15163
15164   ;
15165   return 0;
15166 }
15167 _ACEOF
15168 if ac_fn_c_try_compile "$LINENO"; then :
15169   gnupg_cv_typedef_u16=yes
15170 else
15171   gnupg_cv_typedef_u16=no
15172 fi
15173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15174 fi
15175
15176     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_u16" >&5
15177 $as_echo "$gnupg_cv_typedef_u16" >&6; }
15178     if test "$gnupg_cv_typedef_u16" = yes; then
15179
15180 $as_echo "#define HAVE_U16_TYPEDEF 1" >>confdefs.h
15181
15182     fi
15183
15184  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u32 typedef" >&5
15185 $as_echo_n "checking for u32 typedef... " >&6; }
15186     if ${gnupg_cv_typedef_u32+:} false; then :
15187   $as_echo_n "(cached) " >&6
15188 else
15189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15190 /* end confdefs.h.  */
15191 #define _GNU_SOURCE 1
15192     #include <stdlib.h>
15193     #include <sys/types.h>
15194 int
15195 main ()
15196 {
15197
15198     #undef u32
15199     int a = sizeof(u32);
15200
15201   ;
15202   return 0;
15203 }
15204 _ACEOF
15205 if ac_fn_c_try_compile "$LINENO"; then :
15206   gnupg_cv_typedef_u32=yes
15207 else
15208   gnupg_cv_typedef_u32=no
15209 fi
15210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15211 fi
15212
15213     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_u32" >&5
15214 $as_echo "$gnupg_cv_typedef_u32" >&6; }
15215     if test "$gnupg_cv_typedef_u32" = yes; then
15216
15217 $as_echo "#define HAVE_U32_TYPEDEF 1" >>confdefs.h
15218
15219     fi
15220
15221
15222
15223       for ac_header in sys/socket.h
15224 do :
15225   ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
15226 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
15227   cat >>confdefs.h <<_ACEOF
15228 #define HAVE_SYS_SOCKET_H 1
15229 _ACEOF
15230
15231 fi
15232
15233 done
15234
15235
15236
15237
15238   :
15239
15240
15241
15242
15243
15244   if test $ac_cv_header_sys_socket_h = yes; then
15245     SYS_SOCKET_H=''
15246   else
15247                     for ac_header in winsock2.h ws2tcpip.h
15248 do :
15249   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15250 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15251 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15252   cat >>confdefs.h <<_ACEOF
15253 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15254 _ACEOF
15255
15256 fi
15257
15258 done
15259
15260     SYS_SOCKET_H='sys/socket.h'
15261   fi
15262
15263
15264    ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
15265       #if HAVE_SYS_SOCKET_H
15266       # include <sys/socket.h>
15267       #elif HAVE_WS2TCPIP_H
15268       # include <ws2tcpip.h>
15269       #endif
15270 "
15271 if test "x$ac_cv_type_socklen_t" = xyes; then :
15272
15273 else
15274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
15275 $as_echo_n "checking for socklen_t equivalent... " >&6; }
15276       if ${gl_cv_gl_cv_socklen_t_equiv+:} false; then :
15277   $as_echo_n "(cached) " >&6
15278 else
15279   # Systems have either "struct sockaddr *" or
15280          # "void *" as the second argument to getpeername
15281          gl_cv_socklen_t_equiv=
15282          for arg2 in "struct sockaddr" void; do
15283            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
15284              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15285 /* end confdefs.h.  */
15286 #include <sys/types.h>
15287                 #include <sys/socket.h>
15288
15289                 int getpeername (int, $arg2 *, $t *);
15290 int
15291 main ()
15292 {
15293 $t len;
15294                 getpeername (0, 0, &len);
15295   ;
15296   return 0;
15297 }
15298 _ACEOF
15299 if ac_fn_c_try_compile "$LINENO"; then :
15300   gl_cv_socklen_t_equiv="$t"
15301 fi
15302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15303              test "$gl_cv_socklen_t_equiv" != "" && break
15304            done
15305            test "$gl_cv_socklen_t_equiv" != "" && break
15306          done
15307
15308 fi
15309
15310       if test "$gl_cv_socklen_t_equiv" = ""; then
15311         as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
15312       fi
15313       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
15314 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
15315
15316 cat >>confdefs.h <<_ACEOF
15317 #define socklen_t $gl_cv_socklen_t_equiv
15318 _ACEOF
15319
15320 fi
15321
15322 case "${host}" in
15323   *-*-mingw32*)
15324     # socklen_t may or may not be defined depending on what headers
15325     # are included.  To be safe we use int as this is the actual type.
15326     FALLBACK_SOCKLEN_T="typedef int gcry_socklen_t;"
15327     ;;
15328   *)
15329     if test ".$gl_cv_socklen_t_equiv" = "."; then
15330       FALLBACK_SOCKLEN_T="typedef socklen_t gcry_socklen_t;"
15331     else
15332       FALLBACK_SOCKLEN_T="typedef ${gl_cv_socklen_t_equiv} gcry_socklen_t;"
15333     fi
15334 esac
15335
15336
15337
15338 #
15339 # Check for __builtin_bswap32 intrinsic.
15340 #
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
15342 $as_echo_n "checking for __builtin_bswap32... " >&6; }
15343 if ${gcry_cv_have_builtin_bswap32+:} false; then :
15344   $as_echo_n "(cached) " >&6
15345 else
15346   gcry_cv_have_builtin_bswap32=no
15347         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15348 /* end confdefs.h.  */
15349
15350 int
15351 main ()
15352 {
15353 int x = 0; int y = __builtin_bswap32(x); return y;
15354   ;
15355   return 0;
15356 }
15357 _ACEOF
15358 if ac_fn_c_try_link "$LINENO"; then :
15359   gcry_cv_have_builtin_bswap32=yes
15360 fi
15361 rm -f core conftest.err conftest.$ac_objext \
15362     conftest$ac_exeext conftest.$ac_ext
15363 fi
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_builtin_bswap32" >&5
15365 $as_echo "$gcry_cv_have_builtin_bswap32" >&6; }
15366 if test "$gcry_cv_have_builtin_bswap32" = "yes" ; then
15367
15368 $as_echo "#define HAVE_BUILTIN_BSWAP32 1" >>confdefs.h
15369
15370 fi
15371
15372
15373 #
15374 # Check for __builtin_bswap64 intrinsic.
15375 #
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
15377 $as_echo_n "checking for __builtin_bswap64... " >&6; }
15378 if ${gcry_cv_have_builtin_bswap64+:} false; then :
15379   $as_echo_n "(cached) " >&6
15380 else
15381   gcry_cv_have_builtin_bswap64=no
15382         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15383 /* end confdefs.h.  */
15384
15385 int
15386 main ()
15387 {
15388 long long x = 0; long long y = __builtin_bswap64(x); return y;
15389   ;
15390   return 0;
15391 }
15392 _ACEOF
15393 if ac_fn_c_try_link "$LINENO"; then :
15394   gcry_cv_have_builtin_bswap64=yes
15395 fi
15396 rm -f core conftest.err conftest.$ac_objext \
15397     conftest$ac_exeext conftest.$ac_ext
15398 fi
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_builtin_bswap64" >&5
15400 $as_echo "$gcry_cv_have_builtin_bswap64" >&6; }
15401 if test "$gcry_cv_have_builtin_bswap64" = "yes" ; then
15402
15403 $as_echo "#define HAVE_BUILTIN_BSWAP64 1" >>confdefs.h
15404
15405 fi
15406
15407
15408 #
15409 # Check for __builtin_ctz intrinsic.
15410 #
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctz" >&5
15412 $as_echo_n "checking for __builtin_ctz... " >&6; }
15413 if ${gcry_cv_have_builtin_ctz+:} false; then :
15414   $as_echo_n "(cached) " >&6
15415 else
15416   gcry_cv_have_builtin_ctz=no
15417         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15418 /* end confdefs.h.  */
15419
15420 int
15421 main ()
15422 {
15423 unsigned int x = 0; int y = __builtin_ctz(x); return y;
15424   ;
15425   return 0;
15426 }
15427 _ACEOF
15428 if ac_fn_c_try_link "$LINENO"; then :
15429   gcry_cv_have_builtin_ctz=yes
15430 fi
15431 rm -f core conftest.err conftest.$ac_objext \
15432     conftest$ac_exeext conftest.$ac_ext
15433 fi
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_builtin_ctz" >&5
15435 $as_echo "$gcry_cv_have_builtin_ctz" >&6; }
15436 if test "$gcry_cv_have_builtin_ctz" = "yes" ; then
15437
15438 $as_echo "#define HAVE_BUILTIN_CTZ 1" >>confdefs.h
15439
15440 fi
15441
15442
15443 #
15444 # Check for VLA support (variable length arrays).
15445 #
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the variable length arrays are supported" >&5
15447 $as_echo_n "checking whether the variable length arrays are supported... " >&6; }
15448 if ${gcry_cv_have_vla+:} false; then :
15449   $as_echo_n "(cached) " >&6
15450 else
15451   gcry_cv_have_vla=no
15452         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15453 /* end confdefs.h.  */
15454 void f1(char *, int);
15455             char foo(int i) {
15456               char b[(i < 0 ? 0 : i) + 1];
15457               f1(b, sizeof b); return b[0];}
15458 _ACEOF
15459 if ac_fn_c_try_compile "$LINENO"; then :
15460   gcry_cv_have_vla=yes
15461 fi
15462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15463 fi
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_vla" >&5
15465 $as_echo "$gcry_cv_have_vla" >&6; }
15466 if test "$gcry_cv_have_vla" = "yes" ; then
15467
15468 $as_echo "#define HAVE_VLA 1" >>confdefs.h
15469
15470 fi
15471
15472
15473 #
15474 # Check for ELF visibility support.
15475 #
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the visibility attribute is supported" >&5
15477 $as_echo_n "checking whether the visibility attribute is supported... " >&6; }
15478 if ${gcry_cv_visibility_attribute+:} false; then :
15479   $as_echo_n "(cached) " >&6
15480 else
15481   gcry_cv_visibility_attribute=no
15482         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15483 /* end confdefs.h.  */
15484 int foo __attribute__ ((visibility ("hidden"))) = 1;
15485             int bar __attribute__ ((visibility ("protected"))) = 1;
15486
15487 _ACEOF
15488
15489         if ${CC-cc} -Werror -S conftest.c -o conftest.s \
15490                   1>&5 2>&5 ; then
15491             if grep '\.hidden.*foo' conftest.s >/dev/null 2>&1 ; then
15492                 if grep '\.protected.*bar' conftest.s >/dev/null 2>&1; then
15493                     gcry_cv_visibility_attribute=yes
15494                 fi
15495             fi
15496         fi
15497
15498 fi
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_visibility_attribute" >&5
15500 $as_echo "$gcry_cv_visibility_attribute" >&6; }
15501 if test "$gcry_cv_visibility_attribute" = "yes"; then
15502     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken visibility attribute" >&5
15503 $as_echo_n "checking for broken visibility attribute... " >&6; }
15504 if ${gcry_cv_broken_visibility_attribute+:} false; then :
15505   $as_echo_n "(cached) " >&6
15506 else
15507   gcry_cv_broken_visibility_attribute=yes
15508         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15509 /* end confdefs.h.  */
15510 int foo (int x);
15511             int bar (int x) __asm__ ("foo")
15512                             __attribute__ ((visibility ("hidden")));
15513             int bar (int x) { return x; }
15514
15515 _ACEOF
15516
15517         if ${CC-cc} -Werror -S conftest.c -o conftest.s \
15518                   1>&5 2>&5 ; then
15519            if grep '\.hidden[   _]foo' conftest.s >/dev/null 2>&1;
15520             then
15521                gcry_cv_broken_visibility_attribute=no
15522            fi
15523         fi
15524
15525 fi
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_broken_visibility_attribute" >&5
15527 $as_echo "$gcry_cv_broken_visibility_attribute" >&6; }
15528 fi
15529 if test "$gcry_cv_visibility_attribute" = "yes"; then
15530     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken alias attribute" >&5
15531 $as_echo_n "checking for broken alias attribute... " >&6; }
15532 if ${gcry_cv_broken_alias_attribute+:} false; then :
15533   $as_echo_n "(cached) " >&6
15534 else
15535   gcry_cv_broken_alias_attribute=yes
15536         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15537 /* end confdefs.h.  */
15538 extern int foo (int x) __asm ("xyzzy");
15539             int bar (int x) { return x; }
15540             extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
15541             extern int dfoo;
15542             extern __typeof (dfoo) dfoo __asm ("abccb");
15543             int dfoo = 1;
15544
15545 _ACEOF
15546
15547         if ${CC-cc} -Werror -S conftest.c -o conftest.s \
15548                   1>&5 2>&5 ; then
15549            if grep 'xyzzy' conftest.s >/dev/null 2>&1 && \
15550               grep 'abccb' conftest.s >/dev/null 2>&1; then
15551               gcry_cv_broken_alias_attribute=no
15552            fi
15553         fi
15554
15555 fi
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_broken_alias_attribute" >&5
15557 $as_echo "$gcry_cv_broken_alias_attribute" >&6; }
15558 fi
15559 if test "$gcry_cv_visibility_attribute" = "yes"; then
15560     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -fvisibility=hidden" >&5
15561 $as_echo_n "checking if gcc supports -fvisibility=hidden... " >&6; }
15562 if ${gcry_cv_gcc_has_f_visibility+:} false; then :
15563   $as_echo_n "(cached) " >&6
15564 else
15565   gcry_cv_gcc_has_f_visibility=no
15566         _gcc_cflags_save=$CFLAGS
15567         CFLAGS="-fvisibility=hidden"
15568         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15569 /* end confdefs.h.  */
15570
15571 int
15572 main ()
15573 {
15574
15575   ;
15576   return 0;
15577 }
15578 _ACEOF
15579 if ac_fn_c_try_compile "$LINENO"; then :
15580   gcry_cv_gcc_has_f_visibility=yes
15581 fi
15582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15583         CFLAGS=$_gcc_cflags_save;
15584
15585 fi
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_has_f_visibility" >&5
15587 $as_echo "$gcry_cv_gcc_has_f_visibility" >&6; }
15588 fi
15589 if test "$gcry_cv_visibility_attribute" = "yes" \
15590    && test "$gcry_cv_broken_visibility_attribute" != "yes" \
15591    && test "$gcry_cv_broken_alias_attribute" != "yes" \
15592    && test "$gcry_cv_gcc_has_f_visibility" = "yes"
15593  then
15594
15595 $as_echo "#define GCRY_USE_VISIBILITY 1" >>confdefs.h
15596
15597    CFLAGS="$CFLAGS -fvisibility=hidden"
15598 fi
15599
15600
15601 # Following attribute tests depend on warnings to cause compile to fail,
15602 # so set -Werror temporarily.
15603 _gcc_cflags_save=$CFLAGS
15604 CFLAGS="$CFLAGS -Werror"
15605
15606
15607 #
15608 # Check whether the compiler supports the GCC style aligned attribute
15609 #
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GCC style aligned attribute is supported" >&5
15611 $as_echo_n "checking whether the GCC style aligned attribute is supported... " >&6; }
15612 if ${gcry_cv_gcc_attribute_aligned+:} false; then :
15613   $as_echo_n "(cached) " >&6
15614 else
15615   gcry_cv_gcc_attribute_aligned=no
15616         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15617 /* end confdefs.h.  */
15618 struct { int a; } foo __attribute__ ((aligned (16)));
15619 _ACEOF
15620 if ac_fn_c_try_compile "$LINENO"; then :
15621   gcry_cv_gcc_attribute_aligned=yes
15622 fi
15623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15624 fi
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_attribute_aligned" >&5
15626 $as_echo "$gcry_cv_gcc_attribute_aligned" >&6; }
15627 if test "$gcry_cv_gcc_attribute_aligned" = "yes" ; then
15628
15629 $as_echo "#define HAVE_GCC_ATTRIBUTE_ALIGNED 1" >>confdefs.h
15630
15631 fi
15632
15633
15634 #
15635 # Check whether the compiler supports the GCC style packed attribute
15636 #
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GCC style packed attribute is supported" >&5
15638 $as_echo_n "checking whether the GCC style packed attribute is supported... " >&6; }
15639 if ${gcry_cv_gcc_attribute_packed+:} false; then :
15640   $as_echo_n "(cached) " >&6
15641 else
15642   gcry_cv_gcc_attribute_packed=no
15643         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15644 /* end confdefs.h.  */
15645 struct foolong_s { long b; } __attribute__ ((packed));
15646             struct foo_s { char a; struct foolong_s b; }
15647               __attribute__ ((packed));
15648             enum bar {
15649               FOO = 1 / (sizeof(struct foo_s) == (sizeof(char) + sizeof(long))),
15650             };
15651 _ACEOF
15652 if ac_fn_c_try_compile "$LINENO"; then :
15653   gcry_cv_gcc_attribute_packed=yes
15654 fi
15655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15656 fi
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_attribute_packed" >&5
15658 $as_echo "$gcry_cv_gcc_attribute_packed" >&6; }
15659 if test "$gcry_cv_gcc_attribute_packed" = "yes" ; then
15660
15661 $as_echo "#define HAVE_GCC_ATTRIBUTE_PACKED 1" >>confdefs.h
15662
15663 fi
15664
15665
15666 #
15667 # Check whether the compiler supports the GCC style may_alias attribute
15668 #
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GCC style may_alias attribute is supported" >&5
15670 $as_echo_n "checking whether the GCC style may_alias attribute is supported... " >&6; }
15671 if ${gcry_cv_gcc_attribute_may_alias+:} false; then :
15672   $as_echo_n "(cached) " >&6
15673 else
15674   gcry_cv_gcc_attribute_may_alias=no
15675         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15676 /* end confdefs.h.  */
15677 typedef struct foo_s { int a; }
15678             __attribute__ ((may_alias)) foo_t;
15679 _ACEOF
15680 if ac_fn_c_try_compile "$LINENO"; then :
15681   gcry_cv_gcc_attribute_may_alias=yes
15682 fi
15683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15684 fi
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_attribute_may_alias" >&5
15686 $as_echo "$gcry_cv_gcc_attribute_may_alias" >&6; }
15687 if test "$gcry_cv_gcc_attribute_may_alias" = "yes" ; then
15688
15689 $as_echo "#define HAVE_GCC_ATTRIBUTE_MAY_ALIAS 1" >>confdefs.h
15690
15691 fi
15692
15693
15694 # Restore flags.
15695 CFLAGS=$_gcc_cflags_save;
15696
15697
15698 #
15699 # Check whether the compiler supports 'asm' or '__asm__' keyword for
15700 # assembler blocks.
15701 #
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'asm' assembler keyword is supported" >&5
15703 $as_echo_n "checking whether 'asm' assembler keyword is supported... " >&6; }
15704 if ${gcry_cv_have_asm+:} false; then :
15705   $as_echo_n "(cached) " >&6
15706 else
15707   gcry_cv_have_asm=no
15708         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15709 /* end confdefs.h.  */
15710 void a(void) { asm("":::"memory"); }
15711 _ACEOF
15712 if ac_fn_c_try_compile "$LINENO"; then :
15713   gcry_cv_have_asm=yes
15714 fi
15715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15716 fi
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_asm" >&5
15718 $as_echo "$gcry_cv_have_asm" >&6; }
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether '__asm__' assembler keyword is supported" >&5
15720 $as_echo_n "checking whether '__asm__' assembler keyword is supported... " >&6; }
15721 if ${gcry_cv_have___asm__+:} false; then :
15722   $as_echo_n "(cached) " >&6
15723 else
15724   gcry_cv_have___asm__=no
15725         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15726 /* end confdefs.h.  */
15727 void a(void) { __asm__("":::"memory"); }
15728 _ACEOF
15729 if ac_fn_c_try_compile "$LINENO"; then :
15730   gcry_cv_have___asm__=yes
15731 fi
15732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15733 fi
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have___asm__" >&5
15735 $as_echo "$gcry_cv_have___asm__" >&6; }
15736 if test "$gcry_cv_have_asm" = "no" ; then
15737    if test "$gcry_cv_have___asm__" = "yes" ; then
15738
15739 $as_echo "#define asm __asm__" >>confdefs.h
15740
15741    fi
15742 fi
15743
15744
15745 #
15746 # Check whether the compiler supports inline assembly memory barrier.
15747 #
15748 if test "$gcry_cv_have_asm" = "no" ; then
15749    if test "$gcry_cv_have___asm__" = "yes" ; then
15750       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inline assembly memory barrier is supported" >&5
15751 $as_echo_n "checking whether inline assembly memory barrier is supported... " >&6; }
15752 if ${gcry_cv_have_asm_volatile_memory+:} false; then :
15753   $as_echo_n "(cached) " >&6
15754 else
15755   gcry_cv_have_asm_volatile_memory=no
15756            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15757 /* end confdefs.h.  */
15758 void a(void) { __asm__ volatile("":::"memory"); }
15759 _ACEOF
15760 if ac_fn_c_try_compile "$LINENO"; then :
15761   gcry_cv_have_asm_volatile_memory=yes
15762 fi
15763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15764 fi
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_asm_volatile_memory" >&5
15766 $as_echo "$gcry_cv_have_asm_volatile_memory" >&6; }
15767    fi
15768 else
15769    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inline assembly memory barrier is supported" >&5
15770 $as_echo_n "checking whether inline assembly memory barrier is supported... " >&6; }
15771 if ${gcry_cv_have_asm_volatile_memory+:} false; then :
15772   $as_echo_n "(cached) " >&6
15773 else
15774   gcry_cv_have_asm_volatile_memory=no
15775         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15776 /* end confdefs.h.  */
15777 void a(void) { asm volatile("":::"memory"); }
15778 _ACEOF
15779 if ac_fn_c_try_compile "$LINENO"; then :
15780   gcry_cv_have_asm_volatile_memory=yes
15781 fi
15782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15783 fi
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_asm_volatile_memory" >&5
15785 $as_echo "$gcry_cv_have_asm_volatile_memory" >&6; }
15786 fi
15787 if test "$gcry_cv_have_asm_volatile_memory" = "yes" ; then
15788
15789 $as_echo "#define HAVE_GCC_ASM_VOLATILE_MEMORY 1" >>confdefs.h
15790
15791 fi
15792
15793
15794 #
15795 # Check whether GCC assembler supports features needed for our ARM
15796 # implementations.  This needs to be done before setting up the
15797 # assembler stuff.
15798 #
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler is compatible for ARM assembly implementations" >&5
15800 $as_echo_n "checking whether GCC assembler is compatible for ARM assembly implementations... " >&6; }
15801 if ${gcry_cv_gcc_arm_platform_as_ok+:} false; then :
15802   $as_echo_n "(cached) " >&6
15803 else
15804   gcry_cv_gcc_arm_platform_as_ok=no
15805         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15806 /* end confdefs.h.  */
15807 __asm__(
15808                 /* Test if assembler supports UAL syntax.  */
15809                 ".syntax unified\n\t"
15810                 ".arm\n\t" /* our assembly code is in ARM mode  */
15811                 /* Following causes error if assembler ignored '.syntax unified'.  */
15812                 "asmfunc:\n\t"
15813                 "add %r0, %r0, %r4, ror #12;\n\t"
15814
15815                 /* Test if '.type' and '.size' are supported.  */
15816                 ".size asmfunc,.-asmfunc;\n\t"
15817                 ".type asmfunc,%function;\n\t"
15818             );
15819 _ACEOF
15820 if ac_fn_c_try_compile "$LINENO"; then :
15821   gcry_cv_gcc_arm_platform_as_ok=yes
15822 fi
15823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15824 fi
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_arm_platform_as_ok" >&5
15826 $as_echo "$gcry_cv_gcc_arm_platform_as_ok" >&6; }
15827 if test "$gcry_cv_gcc_arm_platform_as_ok" = "yes" ; then
15828
15829 $as_echo "#define HAVE_COMPATIBLE_GCC_ARM_PLATFORM_AS 1" >>confdefs.h
15830
15831 fi
15832
15833
15834 #
15835 # Check whether GCC assembler supports features needed for our ARMv8/Aarch64
15836 # implementations.  This needs to be done before setting up the
15837 # assembler stuff.
15838 #
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler is compatible for ARMv8/Aarch64 assembly implementations" >&5
15840 $as_echo_n "checking whether GCC assembler is compatible for ARMv8/Aarch64 assembly implementations... " >&6; }
15841 if ${gcry_cv_gcc_aarch64_platform_as_ok+:} false; then :
15842   $as_echo_n "(cached) " >&6
15843 else
15844   gcry_cv_gcc_aarch64_platform_as_ok=no
15845         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15846 /* end confdefs.h.  */
15847 __asm__(
15848                 "asmfunc:\n\t"
15849                 "eor x0, x0, x30, ror #12;\n\t"
15850                 "add x0, x0, x30, asr #12;\n\t"
15851                 "eor v0.16b, v0.16b, v31.16b;\n\t"
15852
15853                 /* Test if '.type' and '.size' are supported.  */
15854                 ".size asmfunc,.-asmfunc;\n\t"
15855                 ".type asmfunc,@function;\n\t"
15856             );
15857 _ACEOF
15858 if ac_fn_c_try_compile "$LINENO"; then :
15859   gcry_cv_gcc_aarch64_platform_as_ok=yes
15860 fi
15861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15862 fi
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_aarch64_platform_as_ok" >&5
15864 $as_echo "$gcry_cv_gcc_aarch64_platform_as_ok" >&6; }
15865 if test "$gcry_cv_gcc_aarch64_platform_as_ok" = "yes" ; then
15866
15867 $as_echo "#define HAVE_COMPATIBLE_GCC_AARCH64_PLATFORM_AS 1" >>confdefs.h
15868
15869 fi
15870
15871
15872 #
15873 # Check whether underscores in symbols are required.  This needs to be
15874 # done before setting up the assembler stuff.
15875 #
15876
15877 tmp_do_check="no"
15878 case "${host}" in
15879     i?86-mingw32* | i?86-*-mingw32*)
15880         ac_cv_sys_symbol_underscore=yes
15881         ;;
15882     x86_64-*-mingw32*)
15883         ac_cv_sys_symbol_underscore=no
15884         ;;
15885     i386-emx-os2 | i345686-pc-os2*emx | i386-pc-msdosdjgpp)
15886         ac_cv_sys_symbol_underscore=yes
15887         ;;
15888     *)
15889       if test "$cross_compiling" = yes; then
15890         if test "x$ac_cv_sys_symbol_underscore" = x ; then
15891            ac_cv_sys_symbol_underscore=yes
15892         fi
15893       else
15894          tmp_do_check="yes"
15895       fi
15896        ;;
15897 esac
15898 if test "$tmp_do_check" = "yes"; then
15899
15900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
15901 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
15902   if ${ac_cv_sys_symbol_underscore+:} false; then :
15903   $as_echo_n "(cached) " >&6
15904 else
15905   ac_cv_sys_symbol_underscore=no
15906    cat > conftest.$ac_ext <<EOF
15907       void nm_test_func(){}
15908       int main(){nm_test_func;return 0;}
15909 EOF
15910   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15911   (eval $ac_compile) 2>&5
15912   ac_status=$?
15913   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15914   test $ac_status = 0; }; then
15915     # Now try to grab the symbols.
15916     ac_nlist=conftest.nm
15917     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \| cut -d \' \' -f 2 \> $ac_nlist\""; } >&5
15918   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \| cut -d \' \' -f 2 \> $ac_nlist) 2>&5
15919   ac_status=$?
15920   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15921   test $ac_status = 0; } && test -s "$ac_nlist"; then
15922       # See whether the symbols have a leading underscore.
15923       if egrep '^_nm_test_func' "$ac_nlist" >/dev/null; then
15924         ac_cv_sys_symbol_underscore=yes
15925       else
15926         if egrep '^nm_test_func ' "$ac_nlist" >/dev/null; then
15927           :
15928         else
15929           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
15930         fi
15931       fi
15932     else
15933       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
15934     fi
15935   else
15936     echo "configure: failed program was:" >&5
15937     cat conftest.c >&5
15938   fi
15939   rm -rf conftest*
15940
15941 fi
15942
15943   else
15944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
15945 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
15946   fi
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_symbol_underscore" >&5
15948 $as_echo "$ac_cv_sys_symbol_underscore" >&6; }
15949 if test x$ac_cv_sys_symbol_underscore = xyes; then
15950
15951 $as_echo "#define WITH_SYMBOL_UNDERSCORE 1" >>confdefs.h
15952
15953 fi
15954
15955
15956
15957 #################################
15958 ####                         ####
15959 #### Setup assembler stuff.  ####
15960 #### Define mpi_cpu_arch.    ####
15961 ####                         ####
15962 #################################
15963 # Check whether --enable-mpi-path was given.
15964 if test "${enable_mpi_path+set}" = set; then :
15965   enableval=$enable_mpi_path; mpi_extra_path="$enableval"
15966 else
15967   mpi_extra_path=""
15968 fi
15969
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking architecture and mpi assembler functions" >&5
15971 $as_echo_n "checking architecture and mpi assembler functions... " >&6; }
15972 if test -f $srcdir/mpi/config.links ; then
15973     . $srcdir/mpi/config.links
15974     ac_config_links="$ac_config_links "$mpi_ln_list""
15975
15976     ac_cv_mpi_sflags="$mpi_sflags"
15977     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpi_cpu_arch" >&5
15978 $as_echo "$mpi_cpu_arch" >&6; }
15979 else
15980     { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15981 $as_echo "failed" >&6; }
15982     as_fn_error $? "mpi/config.links missing!" "$LINENO" 5
15983 fi
15984 MPI_SFLAGS="$ac_cv_mpi_sflags"
15985
15986
15987  if test "$mpi_mod_asm_mpih_add1" = yes; then
15988   MPI_MOD_ASM_MPIH_ADD1_TRUE=
15989   MPI_MOD_ASM_MPIH_ADD1_FALSE='#'
15990 else
15991   MPI_MOD_ASM_MPIH_ADD1_TRUE='#'
15992   MPI_MOD_ASM_MPIH_ADD1_FALSE=
15993 fi
15994
15995  if test "$mpi_mod_asm_mpih_sub1" = yes; then
15996   MPI_MOD_ASM_MPIH_SUB1_TRUE=
15997   MPI_MOD_ASM_MPIH_SUB1_FALSE='#'
15998 else
15999   MPI_MOD_ASM_MPIH_SUB1_TRUE='#'
16000   MPI_MOD_ASM_MPIH_SUB1_FALSE=
16001 fi
16002
16003  if test "$mpi_mod_asm_mpih_mul1" = yes; then
16004   MPI_MOD_ASM_MPIH_MUL1_TRUE=
16005   MPI_MOD_ASM_MPIH_MUL1_FALSE='#'
16006 else
16007   MPI_MOD_ASM_MPIH_MUL1_TRUE='#'
16008   MPI_MOD_ASM_MPIH_MUL1_FALSE=
16009 fi
16010
16011  if test "$mpi_mod_asm_mpih_mul2" = yes; then
16012   MPI_MOD_ASM_MPIH_MUL2_TRUE=
16013   MPI_MOD_ASM_MPIH_MUL2_FALSE='#'
16014 else
16015   MPI_MOD_ASM_MPIH_MUL2_TRUE='#'
16016   MPI_MOD_ASM_MPIH_MUL2_FALSE=
16017 fi
16018
16019  if test "$mpi_mod_asm_mpih_mul3" = yes; then
16020   MPI_MOD_ASM_MPIH_MUL3_TRUE=
16021   MPI_MOD_ASM_MPIH_MUL3_FALSE='#'
16022 else
16023   MPI_MOD_ASM_MPIH_MUL3_TRUE='#'
16024   MPI_MOD_ASM_MPIH_MUL3_FALSE=
16025 fi
16026
16027  if test "$mpi_mod_asm_mpih_lshift" = yes; then
16028   MPI_MOD_ASM_MPIH_LSHIFT_TRUE=
16029   MPI_MOD_ASM_MPIH_LSHIFT_FALSE='#'
16030 else
16031   MPI_MOD_ASM_MPIH_LSHIFT_TRUE='#'
16032   MPI_MOD_ASM_MPIH_LSHIFT_FALSE=
16033 fi
16034
16035  if test "$mpi_mod_asm_mpih_rshift" = yes; then
16036   MPI_MOD_ASM_MPIH_RSHIFT_TRUE=
16037   MPI_MOD_ASM_MPIH_RSHIFT_FALSE='#'
16038 else
16039   MPI_MOD_ASM_MPIH_RSHIFT_TRUE='#'
16040   MPI_MOD_ASM_MPIH_RSHIFT_FALSE=
16041 fi
16042
16043  if test "$mpi_mod_asm_udiv" = yes; then
16044   MPI_MOD_ASM_UDIV_TRUE=
16045   MPI_MOD_ASM_UDIV_FALSE='#'
16046 else
16047   MPI_MOD_ASM_UDIV_TRUE='#'
16048   MPI_MOD_ASM_UDIV_FALSE=
16049 fi
16050
16051  if test "$mpi_mod_asm_udiv_qrnnd" = yes; then
16052   MPI_MOD_ASM_UDIV_QRNND_TRUE=
16053   MPI_MOD_ASM_UDIV_QRNND_FALSE='#'
16054 else
16055   MPI_MOD_ASM_UDIV_QRNND_TRUE='#'
16056   MPI_MOD_ASM_UDIV_QRNND_FALSE=
16057 fi
16058
16059  if test "$mpi_mod_c_mpih_add1" = yes; then
16060   MPI_MOD_C_MPIH_ADD1_TRUE=
16061   MPI_MOD_C_MPIH_ADD1_FALSE='#'
16062 else
16063   MPI_MOD_C_MPIH_ADD1_TRUE='#'
16064   MPI_MOD_C_MPIH_ADD1_FALSE=
16065 fi
16066
16067  if test "$mpi_mod_c_mpih_sub1" = yes; then
16068   MPI_MOD_C_MPIH_SUB1_TRUE=
16069   MPI_MOD_C_MPIH_SUB1_FALSE='#'
16070 else
16071   MPI_MOD_C_MPIH_SUB1_TRUE='#'
16072   MPI_MOD_C_MPIH_SUB1_FALSE=
16073 fi
16074
16075  if test "$mpi_mod_c_mpih_mul1" = yes; then
16076   MPI_MOD_C_MPIH_MUL1_TRUE=
16077   MPI_MOD_C_MPIH_MUL1_FALSE='#'
16078 else
16079   MPI_MOD_C_MPIH_MUL1_TRUE='#'
16080   MPI_MOD_C_MPIH_MUL1_FALSE=
16081 fi
16082
16083  if test "$mpi_mod_c_mpih_mul2" = yes; then
16084   MPI_MOD_C_MPIH_MUL2_TRUE=
16085   MPI_MOD_C_MPIH_MUL2_FALSE='#'
16086 else
16087   MPI_MOD_C_MPIH_MUL2_TRUE='#'
16088   MPI_MOD_C_MPIH_MUL2_FALSE=
16089 fi
16090
16091  if test "$mpi_mod_c_mpih_mul3" = yes; then
16092   MPI_MOD_C_MPIH_MUL3_TRUE=
16093   MPI_MOD_C_MPIH_MUL3_FALSE='#'
16094 else
16095   MPI_MOD_C_MPIH_MUL3_TRUE='#'
16096   MPI_MOD_C_MPIH_MUL3_FALSE=
16097 fi
16098
16099  if test "$mpi_mod_c_mpih_lshift" = yes; then
16100   MPI_MOD_C_MPIH_LSHIFT_TRUE=
16101   MPI_MOD_C_MPIH_LSHIFT_FALSE='#'
16102 else
16103   MPI_MOD_C_MPIH_LSHIFT_TRUE='#'
16104   MPI_MOD_C_MPIH_LSHIFT_FALSE=
16105 fi
16106
16107  if test "$mpi_mod_c_mpih_rshift" = yes; then
16108   MPI_MOD_C_MPIH_RSHIFT_TRUE=
16109   MPI_MOD_C_MPIH_RSHIFT_FALSE='#'
16110 else
16111   MPI_MOD_C_MPIH_RSHIFT_TRUE='#'
16112   MPI_MOD_C_MPIH_RSHIFT_FALSE=
16113 fi
16114
16115  if test "$mpi_mod_c_udiv" = yes; then
16116   MPI_MOD_C_UDIV_TRUE=
16117   MPI_MOD_C_UDIV_FALSE='#'
16118 else
16119   MPI_MOD_C_UDIV_TRUE='#'
16120   MPI_MOD_C_UDIV_FALSE=
16121 fi
16122
16123  if test "$mpi_mod_c_udiv_qrnnd" = yes; then
16124   MPI_MOD_C_UDIV_QRNND_TRUE=
16125   MPI_MOD_C_UDIV_QRNND_FALSE='#'
16126 else
16127   MPI_MOD_C_UDIV_QRNND_TRUE='#'
16128   MPI_MOD_C_UDIV_QRNND_FALSE=
16129 fi
16130
16131
16132 # Reset non applicable feature flags.
16133 if test "$mpi_cpu_arch" != "x86" ; then
16134    aesnisupport="n/a"
16135    pclmulsupport="n/a"
16136    sse41support="n/a"
16137    avxsupport="n/a"
16138    avx2support="n/a"
16139    padlocksupport="n/a"
16140    jentsupport="n/a"
16141    drngsupport="n/a"
16142 fi
16143
16144 if test "$mpi_cpu_arch" != "arm" ; then
16145    if test "$mpi_cpu_arch" != "aarch64" ; then
16146      neonsupport="n/a"
16147      armcryptosupport="n/a"
16148    fi
16149 fi
16150
16151
16152 #############################################
16153 ####                                     ####
16154 #### Platform specific compiler checks.  ####
16155 ####                                     ####
16156 #############################################
16157
16158
16159 # Following tests depend on warnings to cause compile to fail, so set -Werror
16160 # temporarily.
16161 _gcc_cflags_save=$CFLAGS
16162 CFLAGS="$CFLAGS -Werror"
16163
16164
16165 #
16166 # Check whether compiler supports 'ms_abi' function attribute.
16167 #
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports 'ms_abi' function attribute" >&5
16169 $as_echo_n "checking whether compiler supports 'ms_abi' function attribute... " >&6; }
16170 if ${gcry_cv_gcc_attribute_ms_abi+:} false; then :
16171   $as_echo_n "(cached) " >&6
16172 else
16173   gcry_cv_gcc_attribute_ms_abi=no
16174         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16175 /* end confdefs.h.  */
16176 int __attribute__ ((ms_abi)) proto(int);
16177 _ACEOF
16178 if ac_fn_c_try_compile "$LINENO"; then :
16179   gcry_cv_gcc_attribute_ms_abi=yes
16180 fi
16181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16182 fi
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_attribute_ms_abi" >&5
16184 $as_echo "$gcry_cv_gcc_attribute_ms_abi" >&6; }
16185 if test "$gcry_cv_gcc_attribute_ms_abi" = "yes" ; then
16186
16187 $as_echo "#define HAVE_GCC_ATTRIBUTE_MS_ABI 1" >>confdefs.h
16188
16189 fi
16190
16191
16192 #
16193 # Check whether compiler supports 'sysv_abi' function attribute.
16194 #
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports 'sysv_abi' function attribute" >&5
16196 $as_echo_n "checking whether compiler supports 'sysv_abi' function attribute... " >&6; }
16197 if ${gcry_cv_gcc_attribute_sysv_abi+:} false; then :
16198   $as_echo_n "(cached) " >&6
16199 else
16200   gcry_cv_gcc_attribute_sysv_abi=no
16201         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16202 /* end confdefs.h.  */
16203 int __attribute__ ((sysv_abi)) proto(int);
16204 _ACEOF
16205 if ac_fn_c_try_compile "$LINENO"; then :
16206   gcry_cv_gcc_attribute_sysv_abi=yes
16207 fi
16208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16209 fi
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_attribute_sysv_abi" >&5
16211 $as_echo "$gcry_cv_gcc_attribute_sysv_abi" >&6; }
16212 if test "$gcry_cv_gcc_attribute_sysv_abi" = "yes" ; then
16213
16214 $as_echo "#define HAVE_GCC_ATTRIBUTE_SYSV_ABI 1" >>confdefs.h
16215
16216 fi
16217
16218
16219 #
16220 # Check whether default calling convention is 'ms_abi'.
16221 #
16222 if test "$gcry_cv_gcc_attribute_ms_abi" = "yes" ; then
16223    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether default calling convention is 'ms_abi'" >&5
16224 $as_echo_n "checking whether default calling convention is 'ms_abi'... " >&6; }
16225 if ${gcry_cv_gcc_default_abi_is_ms_abi+:} false; then :
16226   $as_echo_n "(cached) " >&6
16227 else
16228   gcry_cv_gcc_default_abi_is_ms_abi=no
16229            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16230 /* end confdefs.h.  */
16231 void *test(void) {
16232                  void *(*def_func)(void) = test;
16233                  void *__attribute__((ms_abi))(*msabi_func)(void);
16234                  /* warning on SysV abi targets, passes on Windows based targets */
16235                  msabi_func = def_func;
16236                  return msabi_func;
16237              }
16238 _ACEOF
16239 if ac_fn_c_try_compile "$LINENO"; then :
16240   gcry_cv_gcc_default_abi_is_ms_abi=yes
16241 fi
16242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16243 fi
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_default_abi_is_ms_abi" >&5
16245 $as_echo "$gcry_cv_gcc_default_abi_is_ms_abi" >&6; }
16246    if test "$gcry_cv_gcc_default_abi_is_ms_abi" = "yes" ; then
16247
16248 $as_echo "#define HAVE_GCC_DEFAULT_ABI_IS_MS_ABI 1" >>confdefs.h
16249
16250    fi
16251 fi
16252
16253
16254 #
16255 # Check whether default calling convention is 'sysv_abi'.
16256 #
16257 if test "$gcry_cv_gcc_attribute_sysv_abi" = "yes" ; then
16258    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether default calling convention is 'sysv_abi'" >&5
16259 $as_echo_n "checking whether default calling convention is 'sysv_abi'... " >&6; }
16260 if ${gcry_cv_gcc_default_abi_is_sysv_abi+:} false; then :
16261   $as_echo_n "(cached) " >&6
16262 else
16263   gcry_cv_gcc_default_abi_is_sysv_abi=no
16264            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16265 /* end confdefs.h.  */
16266 void *test(void) {
16267                  void *(*def_func)(void) = test;
16268                  void *__attribute__((sysv_abi))(*sysvabi_func)(void);
16269                  /* warning on MS ABI targets, passes on SysV ABI targets */
16270                  sysvabi_func = def_func;
16271                  return sysvabi_func;
16272              }
16273 _ACEOF
16274 if ac_fn_c_try_compile "$LINENO"; then :
16275   gcry_cv_gcc_default_abi_is_sysv_abi=yes
16276 fi
16277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16278 fi
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_default_abi_is_sysv_abi" >&5
16280 $as_echo "$gcry_cv_gcc_default_abi_is_sysv_abi" >&6; }
16281    if test "$gcry_cv_gcc_default_abi_is_sysv_abi" = "yes" ; then
16282
16283 $as_echo "#define HAVE_GCC_DEFAULT_ABI_IS_SYSV_ABI 1" >>confdefs.h
16284
16285    fi
16286 fi
16287
16288
16289 # Restore flags.
16290 CFLAGS=$_gcc_cflags_save;
16291
16292
16293 #
16294 # Check whether GCC inline assembler supports SSSE3 instructions
16295 # This is required for the AES-NI instructions.
16296 #
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports SSSE3 instructions" >&5
16298 $as_echo_n "checking whether GCC inline assembler supports SSSE3 instructions... " >&6; }
16299 if ${gcry_cv_gcc_inline_asm_ssse3+:} false; then :
16300   $as_echo_n "(cached) " >&6
16301 else
16302   if test "$mpi_cpu_arch" != "x86" ; then
16303           gcry_cv_gcc_inline_asm_ssse3="n/a"
16304         else
16305           gcry_cv_gcc_inline_asm_ssse3=no
16306           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16307 /* end confdefs.h.  */
16308 static unsigned char be_mask[16] __attribute__ ((aligned (16))) =
16309               { 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 };
16310             void a(void) {
16311               __asm__("pshufb %[mask], %%xmm2\n\t"::[mask]"m"(*be_mask):);
16312             }
16313 _ACEOF
16314 if ac_fn_c_try_compile "$LINENO"; then :
16315   gcry_cv_gcc_inline_asm_ssse3=yes
16316 fi
16317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16318         fi
16319 fi
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_ssse3" >&5
16321 $as_echo "$gcry_cv_gcc_inline_asm_ssse3" >&6; }
16322 if test "$gcry_cv_gcc_inline_asm_ssse3" = "yes" ; then
16323
16324 $as_echo "#define HAVE_GCC_INLINE_ASM_SSSE3 1" >>confdefs.h
16325
16326 fi
16327
16328
16329 #
16330 # Check whether GCC inline assembler supports PCLMUL instructions.
16331 #
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports PCLMUL instructions" >&5
16333 $as_echo_n "checking whether GCC inline assembler supports PCLMUL instructions... " >&6; }
16334 if ${gcry_cv_gcc_inline_asm_pclmul+:} false; then :
16335   $as_echo_n "(cached) " >&6
16336 else
16337   if test "$mpi_cpu_arch" != "x86" ; then
16338           gcry_cv_gcc_inline_asm_pclmul="n/a"
16339         else
16340           gcry_cv_gcc_inline_asm_pclmul=no
16341           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16342 /* end confdefs.h.  */
16343 void a(void) {
16344               __asm__("pclmulqdq \$0, %%xmm1, %%xmm3\n\t":::"cc");
16345             }
16346 _ACEOF
16347 if ac_fn_c_try_compile "$LINENO"; then :
16348   gcry_cv_gcc_inline_asm_pclmul=yes
16349 fi
16350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16351         fi
16352 fi
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_pclmul" >&5
16354 $as_echo "$gcry_cv_gcc_inline_asm_pclmul" >&6; }
16355 if test "$gcry_cv_gcc_inline_asm_pclmul" = "yes" ; then
16356
16357 $as_echo "#define HAVE_GCC_INLINE_ASM_PCLMUL 1" >>confdefs.h
16358
16359 fi
16360
16361 #
16362 # Check whether GCC inline assembler supports SSE4.1 instructions.
16363 #
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports SSE4.1 instructions" >&5
16365 $as_echo_n "checking whether GCC inline assembler supports SSE4.1 instructions... " >&6; }
16366 if ${gcry_cv_gcc_inline_asm_sse41+:} false; then :
16367   $as_echo_n "(cached) " >&6
16368 else
16369   if test "$mpi_cpu_arch" != "x86" ; then
16370           gcry_cv_gcc_inline_asm_sse41="n/a"
16371         else
16372           gcry_cv_gcc_inline_asm_sse41=no
16373           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16374 /* end confdefs.h.  */
16375 void a(void) {
16376               int i;
16377               __asm__("pextrd \$2, %%xmm0, %[out]\n\t" : [out] "=m" (i));
16378             }
16379 _ACEOF
16380 if ac_fn_c_try_compile "$LINENO"; then :
16381   gcry_cv_gcc_inline_asm_sse41=yes
16382 fi
16383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16384         fi
16385 fi
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_sse41" >&5
16387 $as_echo "$gcry_cv_gcc_inline_asm_sse41" >&6; }
16388 if test "$gcry_cv_gcc_inline_asm_sse41" = "yes" ; then
16389
16390 $as_echo "#define HAVE_GCC_INLINE_ASM_SSE41 1" >>confdefs.h
16391
16392 fi
16393
16394
16395 #
16396 # Check whether GCC inline assembler supports AVX instructions
16397 #
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports AVX instructions" >&5
16399 $as_echo_n "checking whether GCC inline assembler supports AVX instructions... " >&6; }
16400 if ${gcry_cv_gcc_inline_asm_avx+:} false; then :
16401   $as_echo_n "(cached) " >&6
16402 else
16403   if test "$mpi_cpu_arch" != "x86" ; then
16404           gcry_cv_gcc_inline_asm_avx="n/a"
16405         else
16406           gcry_cv_gcc_inline_asm_avx=no
16407           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16408 /* end confdefs.h.  */
16409 void a(void) {
16410               __asm__("xgetbv; vaesdeclast (%[mem]),%%xmm0,%%xmm7\n\t"::[mem]"r"(0):);
16411             }
16412 _ACEOF
16413 if ac_fn_c_try_compile "$LINENO"; then :
16414   gcry_cv_gcc_inline_asm_avx=yes
16415 fi
16416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16417         fi
16418 fi
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_avx" >&5
16420 $as_echo "$gcry_cv_gcc_inline_asm_avx" >&6; }
16421 if test "$gcry_cv_gcc_inline_asm_avx" = "yes" ; then
16422
16423 $as_echo "#define HAVE_GCC_INLINE_ASM_AVX 1" >>confdefs.h
16424
16425 fi
16426
16427
16428 #
16429 # Check whether GCC inline assembler supports AVX2 instructions
16430 #
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports AVX2 instructions" >&5
16432 $as_echo_n "checking whether GCC inline assembler supports AVX2 instructions... " >&6; }
16433 if ${gcry_cv_gcc_inline_asm_avx2+:} false; then :
16434   $as_echo_n "(cached) " >&6
16435 else
16436   if test "$mpi_cpu_arch" != "x86" ; then
16437           gcry_cv_gcc_inline_asm_avx2="n/a"
16438         else
16439           gcry_cv_gcc_inline_asm_avx2=no
16440           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16441 /* end confdefs.h.  */
16442 void a(void) {
16443               __asm__("xgetbv; vpbroadcastb %%xmm7,%%ymm1\n\t":::"cc");
16444             }
16445 _ACEOF
16446 if ac_fn_c_try_compile "$LINENO"; then :
16447   gcry_cv_gcc_inline_asm_avx2=yes
16448 fi
16449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16450         fi
16451 fi
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_avx2" >&5
16453 $as_echo "$gcry_cv_gcc_inline_asm_avx2" >&6; }
16454 if test "$gcry_cv_gcc_inline_asm_avx2" = "yes" ; then
16455
16456 $as_echo "#define HAVE_GCC_INLINE_ASM_AVX2 1" >>confdefs.h
16457
16458 fi
16459
16460
16461 #
16462 # Check whether GCC inline assembler supports BMI2 instructions
16463 #
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports BMI2 instructions" >&5
16465 $as_echo_n "checking whether GCC inline assembler supports BMI2 instructions... " >&6; }
16466 if ${gcry_cv_gcc_inline_asm_bmi2+:} false; then :
16467   $as_echo_n "(cached) " >&6
16468 else
16469   if test "$mpi_cpu_arch" != "x86" ; then
16470           gcry_cv_gcc_inline_asm_bmi2="n/a"
16471         else
16472           gcry_cv_gcc_inline_asm_bmi2=no
16473           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16474 /* end confdefs.h.  */
16475 unsigned int a(unsigned int x, unsigned int y) {
16476               unsigned int tmp1, tmp2;
16477               asm ("rorxl %2, %1, %0"
16478                    : "=r" (tmp1)
16479                    : "rm0" (x), "J" (32 - ((23) & 31)));
16480               asm ("andnl %2, %1, %0"
16481                    : "=r" (tmp2)
16482                    : "r0" (x), "rm" (y));
16483               return tmp1 + tmp2;
16484             }
16485 _ACEOF
16486 if ac_fn_c_try_compile "$LINENO"; then :
16487   gcry_cv_gcc_inline_asm_bmi2=yes
16488 fi
16489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16490         fi
16491 fi
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_bmi2" >&5
16493 $as_echo "$gcry_cv_gcc_inline_asm_bmi2" >&6; }
16494 if test "$gcry_cv_gcc_inline_asm_bmi2" = "yes" ; then
16495
16496 $as_echo "#define HAVE_GCC_INLINE_ASM_BMI2 1" >>confdefs.h
16497
16498 fi
16499
16500
16501 #
16502 # Check whether GCC assembler needs "-Wa,--divide" to correctly handle
16503 # constant division
16504 #
16505 if test $amd64_as_feature_detection = yes; then
16506   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler handles division correctly" >&5
16507 $as_echo_n "checking whether GCC assembler handles division correctly... " >&6; }
16508 if ${gcry_cv_gcc_as_const_division_ok+:} false; then :
16509   $as_echo_n "(cached) " >&6
16510 else
16511   gcry_cv_gcc_as_const_division_ok=no
16512         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16513 /* end confdefs.h.  */
16514 __asm__("xorl \$(123456789/12345678), %ebp;\n\t");
16515 _ACEOF
16516 if ac_fn_c_try_compile "$LINENO"; then :
16517   gcry_cv_gcc_as_const_division_ok=yes
16518 fi
16519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16520 fi
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_as_const_division_ok" >&5
16522 $as_echo "$gcry_cv_gcc_as_const_division_ok" >&6; }
16523   if test "$gcry_cv_gcc_as_const_division_ok" = "no" ; then
16524     #
16525     # Add '-Wa,--divide' to CPPFLAGS and try check again.
16526     #
16527     _gcc_cppflags_save="$CPPFLAGS"
16528     CPPFLAGS="$CPPFLAGS -Wa,--divide"
16529     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler handles division correctly with \"-Wa,--divide\"" >&5
16530 $as_echo_n "checking whether GCC assembler handles division correctly with \"-Wa,--divide\"... " >&6; }
16531 if ${gcry_cv_gcc_as_const_division_with_wadivide_ok+:} false; then :
16532   $as_echo_n "(cached) " >&6
16533 else
16534   gcry_cv_gcc_as_const_division_with_wadivide_ok=no
16535           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16536 /* end confdefs.h.  */
16537 __asm__("xorl \$(123456789/12345678), %ebp;\n\t");
16538 _ACEOF
16539 if ac_fn_c_try_compile "$LINENO"; then :
16540   gcry_cv_gcc_as_const_division_with_wadivide_ok=yes
16541 fi
16542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16543 fi
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_as_const_division_with_wadivide_ok" >&5
16545 $as_echo "$gcry_cv_gcc_as_const_division_with_wadivide_ok" >&6; }
16546     if test "$gcry_cv_gcc_as_const_division_with_wadivide_ok" = "no" ; then
16547       # '-Wa,--divide' did not work, restore old flags.
16548       CPPFLAGS="$_gcc_cppflags_save"
16549     fi
16550   fi
16551 fi
16552
16553
16554 #
16555 # Check whether GCC assembler supports features needed for our amd64
16556 # implementations
16557 #
16558 if test $amd64_as_feature_detection = yes; then
16559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler is compatible for amd64 assembly implementations" >&5
16560 $as_echo_n "checking whether GCC assembler is compatible for amd64 assembly implementations... " >&6; }
16561 if ${gcry_cv_gcc_amd64_platform_as_ok+:} false; then :
16562   $as_echo_n "(cached) " >&6
16563 else
16564   if test "$mpi_cpu_arch" != "x86" ; then
16565           gcry_cv_gcc_amd64_platform_as_ok="n/a"
16566         else
16567           gcry_cv_gcc_amd64_platform_as_ok=no
16568           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16569 /* end confdefs.h.  */
16570 __asm__(
16571                 /* Test if '.type' and '.size' are supported.  */
16572                 /* These work only on ELF targets. */
16573                 "asmfunc:\n\t"
16574                 ".size asmfunc,.-asmfunc;\n\t"
16575                 ".type asmfunc,@function;\n\t"
16576                 /* Test if assembler allows use of '/' for constant division
16577                  * (Solaris/x86 issue). If previous constant division check
16578                  * and "-Wa,--divide" workaround failed, this causes assembly
16579                  * to be disable on this machine. */
16580                 "xorl \$(123456789/12345678), %ebp;\n\t"
16581             );
16582 _ACEOF
16583 if ac_fn_c_try_compile "$LINENO"; then :
16584   gcry_cv_gcc_amd64_platform_as_ok=yes
16585 fi
16586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16587         fi
16588 fi
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_amd64_platform_as_ok" >&5
16590 $as_echo "$gcry_cv_gcc_amd64_platform_as_ok" >&6; }
16591   if test "$gcry_cv_gcc_amd64_platform_as_ok" = "yes" ; then
16592
16593 $as_echo "#define HAVE_COMPATIBLE_GCC_AMD64_PLATFORM_AS 1" >>confdefs.h
16594
16595   fi
16596   if test "$gcry_cv_gcc_amd64_platform_as_ok" = "no" &&
16597      test "$gcry_cv_gcc_attribute_sysv_abi" = "yes" &&
16598      test "$gcry_cv_gcc_default_abi_is_ms_abi" = "yes"; then
16599     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler is compatible for WIN64 assembly implementations" >&5
16600 $as_echo_n "checking whether GCC assembler is compatible for WIN64 assembly implementations... " >&6; }
16601 if ${gcry_cv_gcc_win64_platform_as_ok+:} false; then :
16602   $as_echo_n "(cached) " >&6
16603 else
16604   gcry_cv_gcc_win64_platform_as_ok=no
16605       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16606 /* end confdefs.h.  */
16607 __asm__(
16608               ".globl asmfunc\n\t"
16609               "asmfunc:\n\t"
16610               "xorq \$(1234), %rbp;\n\t"
16611           );
16612 _ACEOF
16613 if ac_fn_c_try_compile "$LINENO"; then :
16614   gcry_cv_gcc_win64_platform_as_ok=yes
16615 fi
16616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16617 fi
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_win64_platform_as_ok" >&5
16619 $as_echo "$gcry_cv_gcc_win64_platform_as_ok" >&6; }
16620     if test "$gcry_cv_gcc_win64_platform_as_ok" = "yes" ; then
16621
16622 $as_echo "#define HAVE_COMPATIBLE_GCC_WIN64_PLATFORM_AS 1" >>confdefs.h
16623
16624     fi
16625   fi
16626 fi
16627
16628
16629 #
16630 # Check whether GCC assembler supports features needed for assembly
16631 # implementations that use Intel syntax
16632 #
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler is compatible for Intel syntax assembly implementations" >&5
16634 $as_echo_n "checking whether GCC assembler is compatible for Intel syntax assembly implementations... " >&6; }
16635 if ${gcry_cv_gcc_platform_as_ok_for_intel_syntax+:} false; then :
16636   $as_echo_n "(cached) " >&6
16637 else
16638   if test "$mpi_cpu_arch" != "x86" ; then
16639           gcry_cv_gcc_platform_as_ok_for_intel_syntax="n/a"
16640         else
16641           gcry_cv_gcc_platform_as_ok_for_intel_syntax=no
16642           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16643 /* end confdefs.h.  */
16644 __asm__(
16645                 ".intel_syntax noprefix\n\t"
16646                 "pxor xmm1, xmm7;\n\t"
16647                 /* Intel syntax implementation also use GAS macros, so check
16648                  * for them here. */
16649                 "VAL_A = xmm4\n\t"
16650                 "VAL_B = xmm2\n\t"
16651                 ".macro SET_VAL_A p1\n\t"
16652                 "  VAL_A = \\\\p1 \n\t"
16653                 ".endm\n\t"
16654                 ".macro SET_VAL_B p1\n\t"
16655                 "  VAL_B = \\\\p1 \n\t"
16656                 ".endm\n\t"
16657                 "vmovdqa VAL_A, VAL_B;\n\t"
16658                 "SET_VAL_A eax\n\t"
16659                 "SET_VAL_B ebp\n\t"
16660                 "add VAL_A, VAL_B;\n\t"
16661                 "add VAL_B, 0b10101;\n\t"
16662             );
16663 _ACEOF
16664 if ac_fn_c_try_compile "$LINENO"; then :
16665   gcry_cv_gcc_platform_as_ok_for_intel_syntax=yes
16666 fi
16667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16668         fi
16669 fi
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_platform_as_ok_for_intel_syntax" >&5
16671 $as_echo "$gcry_cv_gcc_platform_as_ok_for_intel_syntax" >&6; }
16672 if test "$gcry_cv_gcc_platform_as_ok_for_intel_syntax" = "yes" ; then
16673
16674 $as_echo "#define HAVE_INTEL_SYNTAX_PLATFORM_AS 1" >>confdefs.h
16675
16676 fi
16677
16678
16679 #
16680 # Check whether compiler is configured for ARMv6 or newer architecture
16681 #
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is configured for ARMv6 or newer architecture" >&5
16683 $as_echo_n "checking whether compiler is configured for ARMv6 or newer architecture... " >&6; }
16684 if ${gcry_cv_cc_arm_arch_is_v6+:} false; then :
16685   $as_echo_n "(cached) " >&6
16686 else
16687   if test "$mpi_cpu_arch" != "arm" ; then
16688           gcry_cv_cc_arm_arch_is_v6="n/a"
16689         else
16690           gcry_cv_cc_arm_arch_is_v6=no
16691           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16692 /* end confdefs.h.  */
16693
16694            #if defined(__arm__) && \
16695              ((defined(__ARM_ARCH) && __ARM_ARCH >= 6) \
16696              || defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) \
16697              || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__) \
16698              || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6T2__) \
16699              || defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) \
16700              || defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__) \
16701              || defined(__ARM_ARCH_7EM__))
16702              /* empty */
16703            #else
16704              /* fail compile if not ARMv6. */
16705              not_armv6 not_armv6 = (not_armv6)not_armv6;
16706            #endif
16707
16708 _ACEOF
16709 if ac_fn_c_try_compile "$LINENO"; then :
16710   gcry_cv_cc_arm_arch_is_v6=yes
16711 fi
16712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16713         fi
16714 fi
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_cc_arm_arch_is_v6" >&5
16716 $as_echo "$gcry_cv_cc_arm_arch_is_v6" >&6; }
16717 if test "$gcry_cv_cc_arm_arch_is_v6" = "yes" ; then
16718
16719 $as_echo "#define HAVE_ARM_ARCH_V6 1" >>confdefs.h
16720
16721 fi
16722
16723
16724 #
16725 # Check whether GCC inline assembler supports NEON instructions
16726 #
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports NEON instructions" >&5
16728 $as_echo_n "checking whether GCC inline assembler supports NEON instructions... " >&6; }
16729 if ${gcry_cv_gcc_inline_asm_neon+:} false; then :
16730   $as_echo_n "(cached) " >&6
16731 else
16732   if test "$mpi_cpu_arch" != "arm" ; then
16733           gcry_cv_gcc_inline_asm_neon="n/a"
16734         else
16735           gcry_cv_gcc_inline_asm_neon=no
16736           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16737 /* end confdefs.h.  */
16738 __asm__(
16739                 ".syntax unified\n\t"
16740                 ".arm\n\t"
16741                 ".fpu neon\n\t"
16742                 "vld1.64 {%q0-%q1}, [%r0]!;\n\t"
16743                 "vrev64.8 %q0, %q3;\n\t"
16744                 "vadd.u64 %q0, %q1;\n\t"
16745                 "vadd.s64 %d3, %d2, %d3;\n\t"
16746                 );
16747
16748 _ACEOF
16749 if ac_fn_c_try_compile "$LINENO"; then :
16750   gcry_cv_gcc_inline_asm_neon=yes
16751 fi
16752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16753         fi
16754 fi
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_neon" >&5
16756 $as_echo "$gcry_cv_gcc_inline_asm_neon" >&6; }
16757 if test "$gcry_cv_gcc_inline_asm_neon" = "yes" ; then
16758
16759 $as_echo "#define HAVE_GCC_INLINE_ASM_NEON 1" >>confdefs.h
16760
16761 fi
16762
16763
16764 #
16765 # Check whether GCC inline assembler supports AArch32 Crypto Extension instructions
16766 #
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports AArch32 Crypto Extension instructions" >&5
16768 $as_echo_n "checking whether GCC inline assembler supports AArch32 Crypto Extension instructions... " >&6; }
16769 if ${gcry_cv_gcc_inline_asm_aarch32_crypto+:} false; then :
16770   $as_echo_n "(cached) " >&6
16771 else
16772   if test "$mpi_cpu_arch" != "arm" ; then
16773           gcry_cv_gcc_inline_asm_aarch32_crypto="n/a"
16774         else
16775           gcry_cv_gcc_inline_asm_aarch32_crypto=no
16776           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16777 /* end confdefs.h.  */
16778 __asm__(
16779                 ".syntax unified\n\t"
16780                 ".arch armv8-a\n\t"
16781                 ".arm\n\t"
16782                 ".fpu crypto-neon-fp-armv8\n\t"
16783
16784                 "sha1h.32 q0, q0;\n\t"
16785                 "sha1c.32 q0, q0, q0;\n\t"
16786                 "sha1p.32 q0, q0, q0;\n\t"
16787                 "sha1su0.32 q0, q0, q0;\n\t"
16788                 "sha1su1.32 q0, q0;\n\t"
16789
16790                 "sha256h.32 q0, q0, q0;\n\t"
16791                 "sha256h2.32 q0, q0, q0;\n\t"
16792                 "sha1p.32 q0, q0, q0;\n\t"
16793                 "sha256su0.32 q0, q0;\n\t"
16794                 "sha256su1.32 q0, q0, q15;\n\t"
16795
16796                 "aese.8 q0, q0;\n\t"
16797                 "aesd.8 q0, q0;\n\t"
16798                 "aesmc.8 q0, q0;\n\t"
16799                 "aesimc.8 q0, q0;\n\t"
16800
16801                 "vmull.p64 q0, d0, d0;\n\t"
16802                 );
16803
16804 _ACEOF
16805 if ac_fn_c_try_compile "$LINENO"; then :
16806   gcry_cv_gcc_inline_asm_aarch32_crypto=yes
16807 fi
16808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16809         fi
16810 fi
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_aarch32_crypto" >&5
16812 $as_echo "$gcry_cv_gcc_inline_asm_aarch32_crypto" >&6; }
16813 if test "$gcry_cv_gcc_inline_asm_aarch32_crypto" = "yes" ; then
16814
16815 $as_echo "#define HAVE_GCC_INLINE_ASM_AARCH32_CRYPTO 1" >>confdefs.h
16816
16817 fi
16818
16819
16820 #
16821 # Check whether GCC inline assembler supports AArch64 NEON instructions
16822 #
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports AArch64 NEON instructions" >&5
16824 $as_echo_n "checking whether GCC inline assembler supports AArch64 NEON instructions... " >&6; }
16825 if ${gcry_cv_gcc_inline_asm_aarch64_neon+:} false; then :
16826   $as_echo_n "(cached) " >&6
16827 else
16828   if test "$mpi_cpu_arch" != "aarch64" ; then
16829           gcry_cv_gcc_inline_asm_aarch64_neon="n/a"
16830         else
16831           gcry_cv_gcc_inline_asm_aarch64_neon=no
16832           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16833 /* end confdefs.h.  */
16834 __asm__(
16835                 ".cpu generic+simd\n\t"
16836                 "mov w0, \#42;\n\t"
16837                 "dup v0.8b, w0;\n\t"
16838                 "ld4 {v0.8b,v1.8b,v2.8b,v3.8b},[x0],\#32;\n\t"
16839                 );
16840
16841 _ACEOF
16842 if ac_fn_c_try_compile "$LINENO"; then :
16843   gcry_cv_gcc_inline_asm_aarch64_neon=yes
16844 fi
16845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16846         fi
16847 fi
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_aarch64_neon" >&5
16849 $as_echo "$gcry_cv_gcc_inline_asm_aarch64_neon" >&6; }
16850 if test "$gcry_cv_gcc_inline_asm_aarch64_neon" = "yes" ; then
16851
16852 $as_echo "#define HAVE_GCC_INLINE_ASM_AARCH64_NEON 1" >>confdefs.h
16853
16854 fi
16855
16856
16857 #
16858 # Check whether GCC inline assembler supports AArch64 Crypto Extension instructions
16859 #
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports AArch64 Crypto Extension instructions" >&5
16861 $as_echo_n "checking whether GCC inline assembler supports AArch64 Crypto Extension instructions... " >&6; }
16862 if ${gcry_cv_gcc_inline_asm_aarch64_crypto+:} false; then :
16863   $as_echo_n "(cached) " >&6
16864 else
16865   if test "$mpi_cpu_arch" != "aarch64" ; then
16866           gcry_cv_gcc_inline_asm_aarch64_crypto="n/a"
16867         else
16868           gcry_cv_gcc_inline_asm_aarch64_crypto=no
16869           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16870 /* end confdefs.h.  */
16871 __asm__(
16872                 ".cpu generic+simd+crypto\n\t"
16873
16874                 "mov w0, \#42;\n\t"
16875                 "dup v0.8b, w0;\n\t"
16876                 "ld4 {v0.8b,v1.8b,v2.8b,v3.8b},[x0],\#32;\n\t"
16877
16878                 "sha1h s0, s0;\n\t"
16879                 "sha1c q0, s0, v0.4s;\n\t"
16880                 "sha1p q0, s0, v0.4s;\n\t"
16881                 "sha1su0 v0.4s, v0.4s, v0.4s;\n\t"
16882                 "sha1su1 v0.4s, v0.4s;\n\t"
16883
16884                 "sha256h q0, q0, v0.4s;\n\t"
16885                 "sha256h2 q0, q0, v0.4s;\n\t"
16886                 "sha1p q0, s0, v0.4s;\n\t"
16887                 "sha256su0 v0.4s, v0.4s;\n\t"
16888                 "sha256su1 v0.4s, v0.4s, v31.4s;\n\t"
16889
16890                 "aese v0.16b, v0.16b;\n\t"
16891                 "aesd v0.16b, v0.16b;\n\t"
16892                 "aesmc v0.16b, v0.16b;\n\t"
16893                 "aesimc v0.16b, v0.16b;\n\t"
16894
16895                 "pmull v0.1q, v0.1d, v31.1d;\n\t"
16896                 "pmull2 v0.1q, v0.2d, v31.2d;\n\t"
16897                 );
16898
16899 _ACEOF
16900 if ac_fn_c_try_compile "$LINENO"; then :
16901   gcry_cv_gcc_inline_asm_aarch64_crypto=yes
16902 fi
16903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16904         fi
16905 fi
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_aarch64_crypto" >&5
16907 $as_echo "$gcry_cv_gcc_inline_asm_aarch64_crypto" >&6; }
16908 if test "$gcry_cv_gcc_inline_asm_aarch64_crypto" = "yes" ; then
16909
16910 $as_echo "#define HAVE_GCC_INLINE_ASM_AARCH64_CRYPTO 1" >>confdefs.h
16911
16912 fi
16913
16914
16915 #######################################
16916 #### Checks for library functions. ####
16917 #######################################
16918
16919 for ac_func in vprintf
16920 do :
16921   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
16922 if test "x$ac_cv_func_vprintf" = xyes; then :
16923   cat >>confdefs.h <<_ACEOF
16924 #define HAVE_VPRINTF 1
16925 _ACEOF
16926
16927 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
16928 if test "x$ac_cv_func__doprnt" = xyes; then :
16929
16930 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
16931
16932 fi
16933
16934 fi
16935 done
16936
16937
16938 # We have replacements for these in src/missing-string.c
16939 for ac_func in stpcpy strcasecmp
16940 do :
16941   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16942 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16943 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16944   cat >>confdefs.h <<_ACEOF
16945 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16946 _ACEOF
16947
16948 fi
16949 done
16950
16951 # We have replacements for these in src/g10lib.h
16952 for ac_func in strtoul memmove stricmp atexit raise
16953 do :
16954   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16955 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16956 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16957   cat >>confdefs.h <<_ACEOF
16958 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16959 _ACEOF
16960
16961 fi
16962 done
16963
16964 # Other checks
16965 for ac_func in strerror rand mmap getpagesize sysconf waitpid wait4
16966 do :
16967   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16968 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16969 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16970   cat >>confdefs.h <<_ACEOF
16971 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16972 _ACEOF
16973
16974 fi
16975 done
16976
16977 for ac_func in gettimeofday getrusage gethrtime clock_gettime syslog
16978 do :
16979   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16980 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16981 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16982   cat >>confdefs.h <<_ACEOF
16983 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16984 _ACEOF
16985
16986 fi
16987 done
16988
16989 for ac_func in syscall fcntl ftruncate flockfile
16990 do :
16991   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16992 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16993 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16994   cat >>confdefs.h <<_ACEOF
16995 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16996 _ACEOF
16997
16998 fi
16999 done
17000
17001
17002  for ac_func in mlock
17003 do :
17004   ac_fn_c_check_func "$LINENO" "mlock" "ac_cv_func_mlock"
17005 if test "x$ac_cv_func_mlock" = xyes; then :
17006   cat >>confdefs.h <<_ACEOF
17007 #define HAVE_MLOCK 1
17008 _ACEOF
17009
17010 fi
17011 done
17012
17013     if test "$ac_cv_func_mlock" = "no"; then
17014         for ac_header in sys/mman.h
17015 do :
17016   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
17017 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
17018   cat >>confdefs.h <<_ACEOF
17019 #define HAVE_SYS_MMAN_H 1
17020 _ACEOF
17021
17022 fi
17023
17024 done
17025
17026         if test "$ac_cv_header_sys_mman_h" = "yes"; then
17027             # Add librt to LIBS:
17028             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memlk in -lrt" >&5
17029 $as_echo_n "checking for memlk in -lrt... " >&6; }
17030 if ${ac_cv_lib_rt_memlk+:} false; then :
17031   $as_echo_n "(cached) " >&6
17032 else
17033   ac_check_lib_save_LIBS=$LIBS
17034 LIBS="-lrt  $LIBS"
17035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17036 /* end confdefs.h.  */
17037
17038 /* Override any GCC internal prototype to avoid an error.
17039    Use char because int might match the return type of a GCC
17040    builtin and then its argument prototype would still apply.  */
17041 #ifdef __cplusplus
17042 extern "C"
17043 #endif
17044 char memlk ();
17045 int
17046 main ()
17047 {
17048 return memlk ();
17049   ;
17050   return 0;
17051 }
17052 _ACEOF
17053 if ac_fn_c_try_link "$LINENO"; then :
17054   ac_cv_lib_rt_memlk=yes
17055 else
17056   ac_cv_lib_rt_memlk=no
17057 fi
17058 rm -f core conftest.err conftest.$ac_objext \
17059     conftest$ac_exeext conftest.$ac_ext
17060 LIBS=$ac_check_lib_save_LIBS
17061 fi
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_memlk" >&5
17063 $as_echo "$ac_cv_lib_rt_memlk" >&6; }
17064 if test "x$ac_cv_lib_rt_memlk" = xyes; then :
17065   cat >>confdefs.h <<_ACEOF
17066 #define HAVE_LIBRT 1
17067 _ACEOF
17068
17069   LIBS="-lrt $LIBS"
17070
17071 fi
17072
17073             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mlock is in sys/mman.h" >&5
17074 $as_echo_n "checking whether mlock is in sys/mman.h... " >&6; }
17075 if ${gnupg_cv_mlock_is_in_sys_mman+:} false; then :
17076   $as_echo_n "(cached) " >&6
17077 else
17078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17079 /* end confdefs.h.  */
17080
17081                     #include <assert.h>
17082                     #ifdef HAVE_SYS_MMAN_H
17083                     #include <sys/mman.h>
17084                     #endif
17085
17086 int
17087 main ()
17088 {
17089
17090 int i;
17091
17092 /* glibc defines this for functions which it implements
17093  * to always fail with ENOSYS.  Some functions are actually
17094  * named something starting with __ and the normal name
17095  * is an alias.  */
17096 #if defined (__stub_mlock) || defined (__stub___mlock)
17097 choke me
17098 #else
17099 mlock(&i, 4);
17100 #endif
17101 ; return 0;
17102
17103   ;
17104   return 0;
17105 }
17106 _ACEOF
17107 if ac_fn_c_try_link "$LINENO"; then :
17108   gnupg_cv_mlock_is_in_sys_mman=yes
17109 else
17110   gnupg_cv_mlock_is_in_sys_mman=no
17111 fi
17112 rm -f core conftest.err conftest.$ac_objext \
17113     conftest$ac_exeext conftest.$ac_ext
17114 fi
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_mlock_is_in_sys_mman" >&5
17116 $as_echo "$gnupg_cv_mlock_is_in_sys_mman" >&6; }
17117             if test "$gnupg_cv_mlock_is_in_sys_mman" = "yes"; then
17118
17119 $as_echo "#define HAVE_MLOCK 1" >>confdefs.h
17120
17121             fi
17122         fi
17123     fi
17124     if test "$ac_cv_func_mlock" = "yes"; then
17125         for ac_func in sysconf getpagesize
17126 do :
17127   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17128 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17129 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17130   cat >>confdefs.h <<_ACEOF
17131 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17132 _ACEOF
17133
17134 fi
17135 done
17136
17137         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mlock is broken" >&5
17138 $as_echo_n "checking whether mlock is broken... " >&6; }
17139           if ${gnupg_cv_have_broken_mlock+:} false; then :
17140   $as_echo_n "(cached) " >&6
17141 else
17142   if test "$cross_compiling" = yes; then :
17143   gnupg_cv_have_broken_mlock="assume-no"
17144
17145 else
17146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17147 /* end confdefs.h.  */
17148
17149 #include <stdlib.h>
17150 #include <unistd.h>
17151 #include <errno.h>
17152 #include <sys/mman.h>
17153 #include <sys/types.h>
17154 #include <fcntl.h>
17155
17156 int main()
17157 {
17158     char *pool;
17159     int err;
17160     long int pgsize;
17161
17162 #if defined(HAVE_SYSCONF) && defined(_SC_PAGESIZE)
17163     pgsize = sysconf (_SC_PAGESIZE);
17164 #elif defined (HAVE_GETPAGESIZE)
17165     pgsize = getpagesize();
17166 #else
17167     pgsize = -1;
17168 #endif
17169
17170     if (pgsize == -1)
17171       pgsize = 4096;
17172
17173     pool = malloc( 4096 + pgsize );
17174     if( !pool )
17175         return 2;
17176     pool += (pgsize - ((long int)pool % pgsize));
17177
17178     err = mlock( pool, 4096 );
17179     if( !err || errno == EPERM || errno == EAGAIN)
17180         return 0; /* okay */
17181
17182     return 1;  /* hmmm */
17183 }
17184
17185
17186 _ACEOF
17187 if ac_fn_c_try_run "$LINENO"; then :
17188   gnupg_cv_have_broken_mlock="no"
17189 else
17190   gnupg_cv_have_broken_mlock="yes"
17191 fi
17192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17193   conftest.$ac_objext conftest.beam conftest.$ac_ext
17194 fi
17195
17196
17197 fi
17198
17199          if test "$gnupg_cv_have_broken_mlock" = "yes"; then
17200
17201 $as_echo "#define HAVE_BROKEN_MLOCK 1" >>confdefs.h
17202
17203              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17204 $as_echo "yes" >&6; }
17205          else
17206             if test "$gnupg_cv_have_broken_mlock" = "no"; then
17207                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17208 $as_echo "no" >&6; }
17209             else
17210                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming no" >&5
17211 $as_echo "assuming no" >&6; }
17212             fi
17213          fi
17214     fi
17215
17216
17217 #
17218 # Replacement functions.
17219 #
17220 ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
17221 if test "x$ac_cv_func_getpid" = xyes; then :
17222   $as_echo "#define HAVE_GETPID 1" >>confdefs.h
17223
17224 else
17225   case " $LIBOBJS " in
17226   *" getpid.$ac_objext "* ) ;;
17227   *) LIBOBJS="$LIBOBJS getpid.$ac_objext"
17228  ;;
17229 esac
17230
17231 fi
17232
17233 ac_fn_c_check_func "$LINENO" "clock" "ac_cv_func_clock"
17234 if test "x$ac_cv_func_clock" = xyes; then :
17235   $as_echo "#define HAVE_CLOCK 1" >>confdefs.h
17236
17237 else
17238   case " $LIBOBJS " in
17239   *" clock.$ac_objext "* ) ;;
17240   *) LIBOBJS="$LIBOBJS clock.$ac_objext"
17241  ;;
17242 esac
17243
17244 fi
17245
17246
17247
17248
17249 #
17250 # Check whether it is necessary to link against libdl.
17251 #
17252 DL_LIBS=""
17253 if test "$use_hmac_binary_check" = yes ; then
17254   _gcry_save_libs="$LIBS"
17255   LIBS=""
17256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17257 $as_echo_n "checking for library containing dlopen... " >&6; }
17258 if ${ac_cv_search_dlopen+:} false; then :
17259   $as_echo_n "(cached) " >&6
17260 else
17261   ac_func_search_save_LIBS=$LIBS
17262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17263 /* end confdefs.h.  */
17264
17265 /* Override any GCC internal prototype to avoid an error.
17266    Use char because int might match the return type of a GCC
17267    builtin and then its argument prototype would still apply.  */
17268 #ifdef __cplusplus
17269 extern "C"
17270 #endif
17271 char dlopen ();
17272 int
17273 main ()
17274 {
17275 return dlopen ();
17276   ;
17277   return 0;
17278 }
17279 _ACEOF
17280 for ac_lib in '' c dl; do
17281   if test -z "$ac_lib"; then
17282     ac_res="none required"
17283   else
17284     ac_res=-l$ac_lib
17285     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17286   fi
17287   if ac_fn_c_try_link "$LINENO"; then :
17288   ac_cv_search_dlopen=$ac_res
17289 fi
17290 rm -f core conftest.err conftest.$ac_objext \
17291     conftest$ac_exeext
17292   if ${ac_cv_search_dlopen+:} false; then :
17293   break
17294 fi
17295 done
17296 if ${ac_cv_search_dlopen+:} false; then :
17297
17298 else
17299   ac_cv_search_dlopen=no
17300 fi
17301 rm conftest.$ac_ext
17302 LIBS=$ac_func_search_save_LIBS
17303 fi
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17305 $as_echo "$ac_cv_search_dlopen" >&6; }
17306 ac_res=$ac_cv_search_dlopen
17307 if test "$ac_res" != no; then :
17308   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17309
17310 fi
17311
17312   DL_LIBS=$LIBS
17313   LIBS="$_gcry_save_libs"
17314   LIBGCRYPT_CONFIG_LIBS="${LIBGCRYPT_CONFIG_LIBS} ${DL_LIBS}"
17315 fi
17316
17317
17318
17319 #
17320 # Check whether we can use Linux capabilities as requested.
17321 #
17322 if test "$use_capabilities" = "yes" ; then
17323 use_capabilities=no
17324 for ac_header in sys/capability.h
17325 do :
17326   ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
17327 if test "x$ac_cv_header_sys_capability_h" = xyes; then :
17328   cat >>confdefs.h <<_ACEOF
17329 #define HAVE_SYS_CAPABILITY_H 1
17330 _ACEOF
17331
17332 fi
17333
17334 done
17335
17336 if test "$ac_cv_header_sys_capability_h" = "yes" ; then
17337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
17338 $as_echo_n "checking for cap_init in -lcap... " >&6; }
17339 if ${ac_cv_lib_cap_cap_init+:} false; then :
17340   $as_echo_n "(cached) " >&6
17341 else
17342   ac_check_lib_save_LIBS=$LIBS
17343 LIBS="-lcap  $LIBS"
17344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17345 /* end confdefs.h.  */
17346
17347 /* Override any GCC internal prototype to avoid an error.
17348    Use char because int might match the return type of a GCC
17349    builtin and then its argument prototype would still apply.  */
17350 #ifdef __cplusplus
17351 extern "C"
17352 #endif
17353 char cap_init ();
17354 int
17355 main ()
17356 {
17357 return cap_init ();
17358   ;
17359   return 0;
17360 }
17361 _ACEOF
17362 if ac_fn_c_try_link "$LINENO"; then :
17363   ac_cv_lib_cap_cap_init=yes
17364 else
17365   ac_cv_lib_cap_cap_init=no
17366 fi
17367 rm -f core conftest.err conftest.$ac_objext \
17368     conftest$ac_exeext conftest.$ac_ext
17369 LIBS=$ac_check_lib_save_LIBS
17370 fi
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
17372 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
17373 if test "x$ac_cv_lib_cap_cap_init" = xyes; then :
17374   ac_need_libcap=1
17375 fi
17376
17377   if test "$ac_cv_lib_cap_cap_init" = "yes"; then
17378
17379 $as_echo "#define USE_CAPABILITIES 1" >>confdefs.h
17380
17381      LIBS="$LIBS -lcap"
17382      use_capabilities=yes
17383   fi
17384 fi
17385 if test "$use_capabilities" = "no" ; then
17386     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
17387 ***
17388 *** The use of capabilities on this system is not possible.
17389 *** You need a recent Linux kernel and some patches:
17390 ***   fcaps-2.2.9-990610.patch      (kernel patch for 2.2.9)
17391 ***   fcap-module-990613.tar.gz     (kernel module)
17392 ***   libcap-1.92.tar.gz            (user mode library and utilities)
17393 *** And you have to configure the kernel with CONFIG_VFS_CAP_PLUGIN
17394 *** set (filesystems menu). Be warned: This code is *really* ALPHA.
17395 ***" >&5
17396 $as_echo "$as_me: WARNING:
17397 ***
17398 *** The use of capabilities on this system is not possible.
17399 *** You need a recent Linux kernel and some patches:
17400 ***   fcaps-2.2.9-990610.patch      (kernel patch for 2.2.9)
17401 ***   fcap-module-990613.tar.gz     (kernel module)
17402 ***   libcap-1.92.tar.gz            (user mode library and utilities)
17403 *** And you have to configure the kernel with CONFIG_VFS_CAP_PLUGIN
17404 *** set (filesystems menu). Be warned: This code is *really* ALPHA.
17405 ***" >&2;}
17406 fi
17407 fi
17408
17409 # Check whether a random device is available.
17410 if test "$try_dev_random" = yes ; then
17411     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
17412 $as_echo_n "checking for random device... " >&6; }
17413 if ${ac_cv_have_dev_random+:} false; then :
17414   $as_echo_n "(cached) " >&6
17415 else
17416   if test -r "$NAME_OF_DEV_RANDOM" && test -r "$NAME_OF_DEV_URANDOM" ; then
17417       ac_cv_have_dev_random=yes; else ac_cv_have_dev_random=no; fi
17418 fi
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_dev_random" >&5
17420 $as_echo "$ac_cv_have_dev_random" >&6; }
17421     if test "$ac_cv_have_dev_random" = yes; then
17422
17423 $as_echo "#define HAVE_DEV_RANDOM 1" >>confdefs.h
17424
17425     fi
17426 else
17427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
17428 $as_echo_n "checking for random device... " >&6; }
17429     ac_cv_have_dev_random=no
17430     { $as_echo "$as_me:${as_lineno-$LINENO}: result: has been disabled" >&5
17431 $as_echo "has been disabled" >&6; }
17432 fi
17433
17434 # Figure out the random modules for this configuration.
17435 if test "$random" = "default"; then
17436
17437     # Select default value.
17438     if test "$ac_cv_have_dev_random" = yes; then
17439         # Try Linuxish random device.
17440         random_modules="linux"
17441     else
17442         case "${host}" in
17443         *-*-mingw32ce*)
17444           # WindowsCE random device.
17445           random_modules="w32ce"
17446           ;;
17447         *-*-mingw32*|*-*-cygwin*)
17448           # Windows random device.
17449           random_modules="w32"
17450           ;;
17451         *)
17452           # Build everything, allow to select at runtime.
17453           random_modules="$auto_random_modules"
17454           ;;
17455         esac
17456     fi
17457 else
17458     if test "$random" = "auto"; then
17459         # Build everything, allow to select at runtime.
17460         random_modules="$auto_random_modules"
17461     else
17462         random_modules="$random"
17463     fi
17464 fi
17465
17466
17467 #
17468 # Other defines
17469 #
17470 if test no = "yes"; then
17471
17472 $as_echo "#define IS_DEVELOPMENT_VERSION 1" >>confdefs.h
17473
17474 fi
17475
17476
17477  if test x$cross_compiling = xyes; then
17478   CROSS_COMPILING_TRUE=
17479   CROSS_COMPILING_FALSE='#'
17480 else
17481   CROSS_COMPILING_TRUE='#'
17482   CROSS_COMPILING_FALSE=
17483 fi
17484
17485
17486
17487 # This is handy for debugging so the compiler doesn't rearrange
17488 # things and eliminate variables.
17489 # Check whether --enable-optimization was given.
17490 if test "${enable_optimization+set}" = set; then :
17491   enableval=$enable_optimization; if test $enableval = no ; then
17492                          CFLAGS=`echo $CFLAGS | sed 's/-O[0-9]//'`
17493                        fi
17494 fi
17495
17496
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc features" >&5
17498 $as_echo "$as_me: checking for cc features" >&6;}
17499 # CFLAGS mangling when using gcc.
17500 if test "$GCC" = yes; then
17501     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -fno-delete-null-pointer-checks" >&5
17502 $as_echo_n "checking if gcc supports -fno-delete-null-pointer-checks... " >&6; }
17503     _gcc_cflags_save=$CFLAGS
17504     CFLAGS="-fno-delete-null-pointer-checks"
17505     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17506 /* end confdefs.h.  */
17507
17508 int
17509 main ()
17510 {
17511
17512   ;
17513   return 0;
17514 }
17515 _ACEOF
17516 if ac_fn_c_try_compile "$LINENO"; then :
17517   _gcc_wopt=yes
17518 else
17519   _gcc_wopt=no
17520 fi
17521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17522     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
17523 $as_echo "$_gcc_wopt" >&6; }
17524     CFLAGS=$_gcc_cflags_save;
17525     if test x"$_gcc_wopt" = xyes ; then
17526        CFLAGS="$CFLAGS -fno-delete-null-pointer-checks"
17527     fi
17528
17529     CFLAGS="$CFLAGS -Wall"
17530     if test "$USE_MAINTAINER_MODE" = "yes"; then
17531         CFLAGS="$CFLAGS -Wcast-align -Wshadow -Wstrict-prototypes"
17532         CFLAGS="$CFLAGS -Wformat -Wno-format-y2k -Wformat-security"
17533
17534         # If -Wno-missing-field-initializers is supported we can enable a
17535         # a bunch of really useful warnings.
17536         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
17537 $as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
17538         _gcc_cflags_save=$CFLAGS
17539         CFLAGS="-Wno-missing-field-initializers"
17540         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17541 /* end confdefs.h.  */
17542
17543 int
17544 main ()
17545 {
17546
17547   ;
17548   return 0;
17549 }
17550 _ACEOF
17551 if ac_fn_c_try_compile "$LINENO"; then :
17552   _gcc_wopt=yes
17553 else
17554   _gcc_wopt=no
17555 fi
17556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17557         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
17558 $as_echo "$_gcc_wopt" >&6; }
17559         CFLAGS=$_gcc_cflags_save;
17560         if test x"$_gcc_wopt" = xyes ; then
17561           CFLAGS="$CFLAGS -W -Wextra -Wbad-function-cast"
17562           CFLAGS="$CFLAGS -Wwrite-strings"
17563           CFLAGS="$CFLAGS -Wdeclaration-after-statement"
17564           CFLAGS="$CFLAGS -Wno-missing-field-initializers"
17565           CFLAGS="$CFLAGS -Wno-sign-compare"
17566         fi
17567
17568         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
17569 $as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
17570         _gcc_cflags_save=$CFLAGS
17571         CFLAGS="-Wpointer-arith"
17572         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17573 /* end confdefs.h.  */
17574
17575 int
17576 main ()
17577 {
17578
17579   ;
17580   return 0;
17581 }
17582 _ACEOF
17583 if ac_fn_c_try_compile "$LINENO"; then :
17584   _gcc_wopt=yes
17585 else
17586   _gcc_wopt=no
17587 fi
17588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17589         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
17590 $as_echo "$_gcc_wopt" >&6; }
17591         CFLAGS=$_gcc_cflags_save;
17592         if test x"$_gcc_wopt" = xyes ; then
17593           CFLAGS="$CFLAGS -Wpointer-arith"
17594         fi
17595     fi
17596 fi
17597
17598 # Check whether as(1) supports a noeexecstack feature.  This test
17599 # includes an override option.
17600
17601
17602
17603
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether non excutable stack support is requested" >&5
17605 $as_echo_n "checking whether non excutable stack support is requested... " >&6; }
17606 # Check whether --enable-noexecstack was given.
17607 if test "${enable_noexecstack+set}" = set; then :
17608   enableval=$enable_noexecstack; noexecstack_support=$enableval
17609 else
17610   noexecstack_support=yes
17611 fi
17612
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $noexecstack_support" >&5
17614 $as_echo "$noexecstack_support" >&6; }
17615
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports --noexecstack option" >&5
17617 $as_echo_n "checking whether assembler supports --noexecstack option... " >&6; }
17618 if ${cl_cv_as_noexecstack+:} false; then :
17619   $as_echo_n "(cached) " >&6
17620 else
17621     cat > conftest.c <<EOF
17622 void foo() {}
17623 EOF
17624   if { ac_try='${CC} $CFLAGS $CPPFLAGS
17625                      -S -o conftest.s conftest.c >/dev/null'
17626   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17627   (eval $ac_try) 2>&5
17628   ac_status=$?
17629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17630   test $ac_status = 0; }; } \
17631      && grep .note.GNU-stack conftest.s >/dev/null \
17632      && { ac_try='${CCAS} $CCASFLAGS $CPPFLAGS -Wa,--noexecstack
17633                        -c -o conftest.o conftest.s >/dev/null'
17634   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17635   (eval $ac_try) 2>&5
17636   ac_status=$?
17637   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17638   test $ac_status = 0; }; }
17639   then
17640     cl_cv_as_noexecstack=yes
17641   else
17642     cl_cv_as_noexecstack=no
17643   fi
17644   rm -f conftest*
17645 fi
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_as_noexecstack" >&5
17647 $as_echo "$cl_cv_as_noexecstack" >&6; }
17648   if test "$noexecstack_support" = yes -a "$cl_cv_as_noexecstack" = yes; then
17649         NOEXECSTACK_FLAGS="-Wa,--noexecstack"
17650   else
17651         NOEXECSTACK_FLAGS=
17652   fi
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663 ac_config_commands="$ac_config_commands gcrypt-conf"
17664
17665
17666 #####################
17667 #### Conclusion. ####
17668 #####################
17669
17670 # Check that requested feature can actually be used and define
17671 # ENABLE_foo_SUPPORT macros.
17672
17673 if test x"$aesnisupport" = xyes ; then
17674   if test "$gcry_cv_gcc_inline_asm_ssse3" != "yes" ; then
17675     aesnisupport="no (unsupported by compiler)"
17676   fi
17677 fi
17678 if test x"$pclmulsupport" = xyes ; then
17679   if test "$gcry_cv_gcc_inline_asm_pclmul" != "yes" ; then
17680     pclmulsupport="no (unsupported by compiler)"
17681   fi
17682 fi
17683 if test x"$sse41support" = xyes ; then
17684   if test "$gcry_cv_gcc_inline_asm_sse41" != "yes" ; then
17685     sse41support="no (unsupported by compiler)"
17686   fi
17687 fi
17688 if test x"$avxsupport" = xyes ; then
17689   if test "$gcry_cv_gcc_inline_asm_avx" != "yes" ; then
17690     avxsupport="no (unsupported by compiler)"
17691   fi
17692 fi
17693 if test x"$avx2support" = xyes ; then
17694   if test "$gcry_cv_gcc_inline_asm_avx2" != "yes" ; then
17695     avx2support="no (unsupported by compiler)"
17696   fi
17697 fi
17698 if test x"$neonsupport" = xyes ; then
17699   if test "$gcry_cv_gcc_inline_asm_neon" != "yes" ; then
17700     if test "$gcry_cv_gcc_inline_asm_aarch64_neon" != "yes" ; then
17701       neonsupport="no (unsupported by compiler)"
17702     fi
17703   fi
17704 fi
17705 if test x"$armcryptosupport" = xyes ; then
17706   if test "$gcry_cv_gcc_inline_asm_aarch32_crypto" != "yes" ; then
17707     if test "$gcry_cv_gcc_inline_asm_aarch64_crypto" != "yes" ; then
17708       neonsupport="no (unsupported by compiler)"
17709     fi
17710   fi
17711 fi
17712
17713 if test x"$aesnisupport" = xyes ; then
17714
17715 $as_echo "#define ENABLE_AESNI_SUPPORT 1" >>confdefs.h
17716
17717 fi
17718 if test x"$pclmulsupport" = xyes ; then
17719
17720 $as_echo "#define ENABLE_PCLMUL_SUPPORT 1" >>confdefs.h
17721
17722 fi
17723 if test x"$sse41support" = xyes ; then
17724
17725 $as_echo "#define ENABLE_SSE41_SUPPORT 1" >>confdefs.h
17726
17727 fi
17728 if test x"$avxsupport" = xyes ; then
17729
17730 $as_echo "#define ENABLE_AVX_SUPPORT 1" >>confdefs.h
17731
17732 fi
17733 if test x"$avx2support" = xyes ; then
17734
17735 $as_echo "#define ENABLE_AVX2_SUPPORT 1" >>confdefs.h
17736
17737 fi
17738 if test x"$neonsupport" = xyes ; then
17739
17740 $as_echo "#define ENABLE_NEON_SUPPORT 1" >>confdefs.h
17741
17742 fi
17743 if test x"$armcryptosupport" = xyes ; then
17744
17745 $as_echo "#define ENABLE_ARM_CRYPTO_SUPPORT 1" >>confdefs.h
17746
17747 fi
17748 if test x"$jentsupport" = xyes ; then
17749
17750 $as_echo "#define ENABLE_JENT_SUPPORT 1" >>confdefs.h
17751
17752 fi
17753 if test x"$padlocksupport" = xyes ; then
17754
17755 $as_echo "#define ENABLE_PADLOCK_SUPPORT 1" >>confdefs.h
17756
17757 fi
17758 if test x"$drngsupport" = xyes ; then
17759
17760 $as_echo "#define ENABLE_DRNG_SUPPORT 1" >>confdefs.h
17761
17762 fi
17763
17764
17765 # Define conditional sources and config.h symbols depending on the
17766 # selected ciphers, pubkey-ciphers, digests, kdfs, and random modules.
17767
17768
17769 name=arcfour
17770 list=$enabled_ciphers
17771 found=0
17772
17773 for n in $list; do
17774   if test "x$name" = "x$n"; then
17775     found=1
17776   fi
17777 done
17778
17779 if test "$found" = "1"; then
17780    GCRYPT_CIPHERS="$GCRYPT_CIPHERS arcfour.lo"
17781
17782 $as_echo "#define USE_ARCFOUR 1" >>confdefs.h
17783
17784
17785    case "${host}" in
17786       x86_64-*-*)
17787          # Build with the assembly implementation
17788          GCRYPT_CIPHERS="$GCRYPT_CIPHERS arcfour-amd64.lo"
17789       ;;
17790    esac
17791 fi
17792
17793
17794 name=blowfish
17795 list=$enabled_ciphers
17796 found=0
17797
17798 for n in $list; do
17799   if test "x$name" = "x$n"; then
17800     found=1
17801   fi
17802 done
17803
17804 if test "$found" = "1" ; then
17805    GCRYPT_CIPHERS="$GCRYPT_CIPHERS blowfish.lo"
17806
17807 $as_echo "#define USE_BLOWFISH 1" >>confdefs.h
17808
17809
17810    case "${host}" in
17811       x86_64-*-*)
17812          # Build with the assembly implementation
17813          GCRYPT_CIPHERS="$GCRYPT_CIPHERS blowfish-amd64.lo"
17814       ;;
17815       arm*-*-*)
17816          # Build with the assembly implementation
17817          GCRYPT_CIPHERS="$GCRYPT_CIPHERS blowfish-arm.lo"
17818       ;;
17819    esac
17820 fi
17821
17822
17823 name=cast5
17824 list=$enabled_ciphers
17825 found=0
17826
17827 for n in $list; do
17828   if test "x$name" = "x$n"; then
17829     found=1
17830   fi
17831 done
17832
17833 if test "$found" = "1" ; then
17834    GCRYPT_CIPHERS="$GCRYPT_CIPHERS cast5.lo"
17835
17836 $as_echo "#define USE_CAST5 1" >>confdefs.h
17837
17838
17839    case "${host}" in
17840       x86_64-*-*)
17841          # Build with the assembly implementation
17842          GCRYPT_CIPHERS="$GCRYPT_CIPHERS cast5-amd64.lo"
17843       ;;
17844       arm*-*-*)
17845          # Build with the assembly implementation
17846          GCRYPT_CIPHERS="$GCRYPT_CIPHERS cast5-arm.lo"
17847       ;;
17848    esac
17849 fi
17850
17851
17852 name=des
17853 list=$enabled_ciphers
17854 found=0
17855
17856 for n in $list; do
17857   if test "x$name" = "x$n"; then
17858     found=1
17859   fi
17860 done
17861
17862 if test "$found" = "1" ; then
17863    GCRYPT_CIPHERS="$GCRYPT_CIPHERS des.lo"
17864
17865 $as_echo "#define USE_DES 1" >>confdefs.h
17866
17867
17868    case "${host}" in
17869       x86_64-*-*)
17870          # Build with the assembly implementation
17871          GCRYPT_CIPHERS="$GCRYPT_CIPHERS des-amd64.lo"
17872       ;;
17873    esac
17874 fi
17875
17876
17877 name=aes
17878 list=$enabled_ciphers
17879 found=0
17880
17881 for n in $list; do
17882   if test "x$name" = "x$n"; then
17883     found=1
17884   fi
17885 done
17886
17887 if test "$found" = "1" ; then
17888    GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael.lo"
17889
17890 $as_echo "#define USE_AES 1" >>confdefs.h
17891
17892
17893    case "${host}" in
17894       x86_64-*-*)
17895          # Build with the assembly implementation
17896          GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael-amd64.lo"
17897
17898          # Build with the SSSE3 implementation
17899          GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael-ssse3-amd64.lo"
17900          GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael-ssse3-amd64-asm.lo"
17901       ;;
17902       arm*-*-*)
17903          # Build with the assembly implementation
17904          GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael-arm.lo"
17905
17906          # Build with the ARMv8/AArch32 CE implementation
17907          GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael-armv8-ce.lo"
17908          GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael-armv8-aarch32-ce.lo"
17909       ;;
17910       aarch64-*-*)
17911          # Build with the assembly implementation
17912          GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael-aarch64.lo"
17913
17914          # Build with the ARMv8/AArch64 CE implementation
17915          GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael-armv8-ce.lo"
17916          GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael-armv8-aarch64-ce.lo"
17917       ;;
17918    esac
17919
17920    case "$mpi_cpu_arch" in
17921      x86)
17922          # Build with the AES-NI implementation
17923          GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael-aesni.lo"
17924
17925          # Build with the Padlock implementation
17926          GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael-padlock.lo"
17927       ;;
17928    esac
17929 fi
17930
17931
17932 name=twofish
17933 list=$enabled_ciphers
17934 found=0
17935
17936 for n in $list; do
17937   if test "x$name" = "x$n"; then
17938     found=1
17939   fi
17940 done
17941
17942 if test "$found" = "1" ; then
17943    GCRYPT_CIPHERS="$GCRYPT_CIPHERS twofish.lo"
17944
17945 $as_echo "#define USE_TWOFISH 1" >>confdefs.h
17946
17947
17948    case "${host}" in
17949       x86_64-*-*)
17950          # Build with the assembly implementation
17951          GCRYPT_CIPHERS="$GCRYPT_CIPHERS twofish-amd64.lo"
17952
17953          if test x"$avx2support" = xyes ; then
17954             # Build with the AVX2 implementation
17955             GCRYPT_CIPHERS="$GCRYPT_CIPHERS twofish-avx2-amd64.lo"
17956          fi
17957       ;;
17958       arm*-*-*)
17959          # Build with the assembly implementation
17960          GCRYPT_CIPHERS="$GCRYPT_CIPHERS twofish-arm.lo"
17961       ;;
17962       aarch64-*-*)
17963          # Build with the assembly implementation
17964          GCRYPT_CIPHERS="$GCRYPT_CIPHERS twofish-aarch64.lo"
17965       ;;
17966    esac
17967 fi
17968
17969
17970 name=serpent
17971 list=$enabled_ciphers
17972 found=0
17973
17974 for n in $list; do
17975   if test "x$name" = "x$n"; then
17976     found=1
17977   fi
17978 done
17979
17980 if test "$found" = "1" ; then
17981    GCRYPT_CIPHERS="$GCRYPT_CIPHERS serpent.lo"
17982
17983 $as_echo "#define USE_SERPENT 1" >>confdefs.h
17984
17985
17986    case "${host}" in
17987       x86_64-*-*)
17988          # Build with the SSE2 implementation
17989          GCRYPT_CIPHERS="$GCRYPT_CIPHERS serpent-sse2-amd64.lo"
17990       ;;
17991    esac
17992
17993    if test x"$avx2support" = xyes ; then
17994       # Build with the AVX2 implementation
17995       GCRYPT_CIPHERS="$GCRYPT_CIPHERS serpent-avx2-amd64.lo"
17996    fi
17997
17998    if test x"$neonsupport" = xyes ; then
17999       # Build with the NEON implementation
18000       GCRYPT_CIPHERS="$GCRYPT_CIPHERS serpent-armv7-neon.lo"
18001    fi
18002 fi
18003
18004
18005 name=rfc2268
18006 list=$enabled_ciphers
18007 found=0
18008
18009 for n in $list; do
18010   if test "x$name" = "x$n"; then
18011     found=1
18012   fi
18013 done
18014
18015 if test "$found" = "1" ; then
18016    GCRYPT_CIPHERS="$GCRYPT_CIPHERS rfc2268.lo"
18017
18018 $as_echo "#define USE_RFC2268 1" >>confdefs.h
18019
18020 fi
18021
18022
18023 name=seed
18024 list=$enabled_ciphers
18025 found=0
18026
18027 for n in $list; do
18028   if test "x$name" = "x$n"; then
18029     found=1
18030   fi
18031 done
18032
18033 if test "$found" = "1" ; then
18034    GCRYPT_CIPHERS="$GCRYPT_CIPHERS seed.lo"
18035
18036 $as_echo "#define USE_SEED 1" >>confdefs.h
18037
18038 fi
18039
18040
18041 name=camellia
18042 list=$enabled_ciphers
18043 found=0
18044
18045 for n in $list; do
18046   if test "x$name" = "x$n"; then
18047     found=1
18048   fi
18049 done
18050
18051 if test "$found" = "1" ; then
18052    GCRYPT_CIPHERS="$GCRYPT_CIPHERS camellia.lo camellia-glue.lo"
18053
18054 $as_echo "#define USE_CAMELLIA 1" >>confdefs.h
18055
18056
18057    case "${host}" in
18058       arm*-*-*)
18059          # Build with the assembly implementation
18060          GCRYPT_CIPHERS="$GCRYPT_CIPHERS camellia-arm.lo"
18061       ;;
18062       aarch64-*-*)
18063          # Build with the assembly implementation
18064          GCRYPT_CIPHERS="$GCRYPT_CIPHERS camellia-aarch64.lo"
18065       ;;
18066    esac
18067
18068    if test x"$avxsupport" = xyes ; then
18069       if test x"$aesnisupport" = xyes ; then
18070         # Build with the AES-NI/AVX implementation
18071         GCRYPT_CIPHERS="$GCRYPT_CIPHERS camellia-aesni-avx-amd64.lo"
18072       fi
18073    fi
18074
18075    if test x"$avx2support" = xyes ; then
18076       if test x"$aesnisupport" = xyes ; then
18077         # Build with the AES-NI/AVX2 implementation
18078         GCRYPT_CIPHERS="$GCRYPT_CIPHERS camellia-aesni-avx2-amd64.lo"
18079       fi
18080    fi
18081 fi
18082
18083
18084 name=idea
18085 list=$enabled_ciphers
18086 found=0
18087
18088 for n in $list; do
18089   if test "x$name" = "x$n"; then
18090     found=1
18091   fi
18092 done
18093
18094 if test "$found" = "1" ; then
18095    GCRYPT_CIPHERS="$GCRYPT_CIPHERS idea.lo"
18096
18097 $as_echo "#define USE_IDEA 1" >>confdefs.h
18098
18099 fi
18100
18101
18102 name=salsa20
18103 list=$enabled_ciphers
18104 found=0
18105
18106 for n in $list; do
18107   if test "x$name" = "x$n"; then
18108     found=1
18109   fi
18110 done
18111
18112 if test "$found" = "1" ; then
18113    GCRYPT_CIPHERS="$GCRYPT_CIPHERS salsa20.lo"
18114
18115 $as_echo "#define USE_SALSA20 1" >>confdefs.h
18116
18117
18118    case "${host}" in
18119       x86_64-*-*)
18120          # Build with the assembly implementation
18121          GCRYPT_CIPHERS="$GCRYPT_CIPHERS salsa20-amd64.lo"
18122       ;;
18123    esac
18124
18125    if test x"$neonsupport" = xyes ; then
18126      # Build with the NEON implementation
18127      GCRYPT_CIPHERS="$GCRYPT_CIPHERS salsa20-armv7-neon.lo"
18128    fi
18129 fi
18130
18131
18132 name=gost28147
18133 list=$enabled_ciphers
18134 found=0
18135
18136 for n in $list; do
18137   if test "x$name" = "x$n"; then
18138     found=1
18139   fi
18140 done
18141
18142 if test "$found" = "1" ; then
18143    GCRYPT_CIPHERS="$GCRYPT_CIPHERS gost28147.lo"
18144
18145 $as_echo "#define USE_GOST28147 1" >>confdefs.h
18146
18147 fi
18148
18149
18150 name=chacha20
18151 list=$enabled_ciphers
18152 found=0
18153
18154 for n in $list; do
18155   if test "x$name" = "x$n"; then
18156     found=1
18157   fi
18158 done
18159
18160 if test "$found" = "1" ; then
18161    GCRYPT_CIPHERS="$GCRYPT_CIPHERS chacha20.lo"
18162
18163 $as_echo "#define USE_CHACHA20 1" >>confdefs.h
18164
18165
18166    case "${host}" in
18167       x86_64-*-*)
18168          # Build with the assembly implementation
18169          GCRYPT_CIPHERS="$GCRYPT_CIPHERS chacha20-sse2-amd64.lo"
18170          GCRYPT_CIPHERS="$GCRYPT_CIPHERS chacha20-ssse3-amd64.lo"
18171          GCRYPT_CIPHERS="$GCRYPT_CIPHERS chacha20-avx2-amd64.lo"
18172       ;;
18173    esac
18174
18175    if test x"$neonsupport" = xyes ; then
18176      # Build with the NEON implementation
18177      GCRYPT_CIPHERS="$GCRYPT_CIPHERS chacha20-armv7-neon.lo"
18178    fi
18179 fi
18180
18181 case "${host}" in
18182    x86_64-*-*)
18183       # Build with the assembly implementation
18184       GCRYPT_CIPHERS="$GCRYPT_CIPHERS poly1305-sse2-amd64.lo"
18185       GCRYPT_CIPHERS="$GCRYPT_CIPHERS poly1305-avx2-amd64.lo"
18186    ;;
18187 esac
18188
18189 if test x"$neonsupport" = xyes ; then
18190    # Build with the NEON implementation
18191    GCRYPT_CIPHERS="$GCRYPT_CIPHERS poly1305-armv7-neon.lo"
18192 fi
18193
18194
18195 name=dsa
18196 list=$enabled_pubkey_ciphers
18197 found=0
18198
18199 for n in $list; do
18200   if test "x$name" = "x$n"; then
18201     found=1
18202   fi
18203 done
18204
18205 if test "$found" = "1" ; then
18206    GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS dsa.lo"
18207
18208 $as_echo "#define USE_DSA 1" >>confdefs.h
18209
18210 fi
18211
18212
18213 name=rsa
18214 list=$enabled_pubkey_ciphers
18215 found=0
18216
18217 for n in $list; do
18218   if test "x$name" = "x$n"; then
18219     found=1
18220   fi
18221 done
18222
18223 if test "$found" = "1" ; then
18224    GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS rsa.lo"
18225
18226 $as_echo "#define USE_RSA 1" >>confdefs.h
18227
18228 fi
18229
18230
18231 name=elgamal
18232 list=$enabled_pubkey_ciphers
18233 found=0
18234
18235 for n in $list; do
18236   if test "x$name" = "x$n"; then
18237     found=1
18238   fi
18239 done
18240
18241 if test "$found" = "1" ; then
18242    GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS elgamal.lo"
18243
18244 $as_echo "#define USE_ELGAMAL 1" >>confdefs.h
18245
18246 fi
18247
18248
18249 name=ecc
18250 list=$enabled_pubkey_ciphers
18251 found=0
18252
18253 for n in $list; do
18254   if test "x$name" = "x$n"; then
18255     found=1
18256   fi
18257 done
18258
18259 if test "$found" = "1" ; then
18260    GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS \
18261                           ecc.lo ecc-curves.lo ecc-misc.lo \
18262                           ecc-ecdsa.lo ecc-eddsa.lo ecc-gost.lo"
18263
18264 $as_echo "#define USE_ECC 1" >>confdefs.h
18265
18266 fi
18267
18268
18269 name=crc
18270 list=$enabled_digests
18271 found=0
18272
18273 for n in $list; do
18274   if test "x$name" = "x$n"; then
18275     found=1
18276   fi
18277 done
18278
18279 if test "$found" = "1" ; then
18280    GCRYPT_DIGESTS="$GCRYPT_DIGESTS crc.lo"
18281
18282 $as_echo "#define USE_CRC 1" >>confdefs.h
18283
18284
18285    case "${host}" in
18286       i?86-*-* | x86_64-*-*)
18287          # Build with the assembly implementation
18288          GCRYPT_DIGESTS="$GCRYPT_DIGESTS crc-intel-pclmul.lo"
18289       ;;
18290    esac
18291 fi
18292
18293
18294 name=gostr3411-94
18295 list=$enabled_digests
18296 found=0
18297
18298 for n in $list; do
18299   if test "x$name" = "x$n"; then
18300     found=1
18301   fi
18302 done
18303
18304 if test "$found" = "1" ; then
18305    # GOST R 34.11-94 internally uses GOST 28147-89
18306
18307 name=gost28147
18308 list=$enabled_ciphers
18309 found=0
18310
18311 for n in $list; do
18312   if test "x$name" = "x$n"; then
18313     found=1
18314   fi
18315 done
18316
18317    if test "$found" = "1" ; then
18318       GCRYPT_DIGESTS="$GCRYPT_DIGESTS gostr3411-94.lo"
18319
18320 $as_echo "#define USE_GOST_R_3411_94 1" >>confdefs.h
18321
18322    fi
18323 fi
18324
18325
18326 name=stribog
18327 list=$enabled_digests
18328 found=0
18329
18330 for n in $list; do
18331   if test "x$name" = "x$n"; then
18332     found=1
18333   fi
18334 done
18335
18336 if test "$found" = "1" ; then
18337    GCRYPT_DIGESTS="$GCRYPT_DIGESTS stribog.lo"
18338
18339 $as_echo "#define USE_GOST_R_3411_12 1" >>confdefs.h
18340
18341 fi
18342
18343
18344 name=md2
18345 list=$enabled_digests
18346 found=0
18347
18348 for n in $list; do
18349   if test "x$name" = "x$n"; then
18350     found=1
18351   fi
18352 done
18353
18354 if test "$found" = "1" ; then
18355    GCRYPT_DIGESTS="$GCRYPT_DIGESTS md2.lo"
18356
18357 $as_echo "#define USE_MD2 1" >>confdefs.h
18358
18359 fi
18360
18361
18362 name=md4
18363 list=$enabled_digests
18364 found=0
18365
18366 for n in $list; do
18367   if test "x$name" = "x$n"; then
18368     found=1
18369   fi
18370 done
18371
18372 if test "$found" = "1" ; then
18373    GCRYPT_DIGESTS="$GCRYPT_DIGESTS md4.lo"
18374
18375 $as_echo "#define USE_MD4 1" >>confdefs.h
18376
18377 fi
18378
18379
18380 name=md5
18381 list=$enabled_digests
18382 found=0
18383
18384 for n in $list; do
18385   if test "x$name" = "x$n"; then
18386     found=1
18387   fi
18388 done
18389
18390 if test "$found" = "1" ; then
18391    GCRYPT_DIGESTS="$GCRYPT_DIGESTS md5.lo"
18392
18393 $as_echo "#define USE_MD5 1" >>confdefs.h
18394
18395 fi
18396
18397
18398 name=rmd160
18399 list=$enabled_digests
18400 found=0
18401
18402 for n in $list; do
18403   if test "x$name" = "x$n"; then
18404     found=1
18405   fi
18406 done
18407
18408 if test "$found" = "1" ; then
18409    GCRYPT_DIGESTS="$GCRYPT_DIGESTS rmd160.lo"
18410
18411 $as_echo "#define USE_RMD160 1" >>confdefs.h
18412
18413 fi
18414
18415
18416 name=sha256
18417 list=$enabled_digests
18418 found=0
18419
18420 for n in $list; do
18421   if test "x$name" = "x$n"; then
18422     found=1
18423   fi
18424 done
18425
18426 if test "$found" = "1" ; then
18427    GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha256.lo"
18428
18429 $as_echo "#define USE_SHA256 1" >>confdefs.h
18430
18431
18432    case "${host}" in
18433       x86_64-*-*)
18434          # Build with the assembly implementation
18435          GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha256-ssse3-amd64.lo"
18436          GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha256-avx-amd64.lo"
18437          GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha256-avx2-bmi2-amd64.lo"
18438       ;;
18439       arm*-*-*)
18440          # Build with the assembly implementation
18441          GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha256-armv8-aarch32-ce.lo"
18442       ;;
18443       aarch64-*-*)
18444          # Build with the assembly implementation
18445          GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha256-armv8-aarch64-ce.lo"
18446       ;;
18447    esac
18448 fi
18449
18450
18451 name=sha512
18452 list=$enabled_digests
18453 found=0
18454
18455 for n in $list; do
18456   if test "x$name" = "x$n"; then
18457     found=1
18458   fi
18459 done
18460
18461 if test "$found" = "1" ; then
18462    GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha512.lo"
18463
18464 $as_echo "#define USE_SHA512 1" >>confdefs.h
18465
18466
18467    case "${host}" in
18468       x86_64-*-*)
18469          # Build with the assembly implementation
18470          GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha512-ssse3-amd64.lo"
18471          GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha512-avx-amd64.lo"
18472          GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha512-avx2-bmi2-amd64.lo"
18473       ;;
18474       arm*-*-*)
18475          # Build with the assembly implementation
18476          GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha512-arm.lo"
18477       ;;
18478    esac
18479
18480    if test x"$neonsupport" = xyes ; then
18481      # Build with the NEON implementation
18482      GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha512-armv7-neon.lo"
18483    fi
18484 fi
18485
18486
18487 name=sha3
18488 list=$enabled_digests
18489 found=0
18490
18491 for n in $list; do
18492   if test "x$name" = "x$n"; then
18493     found=1
18494   fi
18495 done
18496
18497 if test "$found" = "1" ; then
18498    GCRYPT_DIGESTS="$GCRYPT_DIGESTS keccak.lo"
18499
18500 $as_echo "#define USE_SHA3 1" >>confdefs.h
18501
18502
18503    case "${host}" in
18504       x86_64-*-*)
18505          # Build with the assembly implementation
18506          :
18507       ;;
18508    esac
18509
18510    if test x"$neonsupport" = xyes ; then
18511      # Build with the NEON implementation
18512      GCRYPT_DIGESTS="$GCRYPT_DIGESTS keccak-armv7-neon.lo"
18513    fi
18514 fi
18515
18516
18517 name=tiger
18518 list=$enabled_digests
18519 found=0
18520
18521 for n in $list; do
18522   if test "x$name" = "x$n"; then
18523     found=1
18524   fi
18525 done
18526
18527 if test "$found" = "1" ; then
18528    GCRYPT_DIGESTS="$GCRYPT_DIGESTS tiger.lo"
18529
18530 $as_echo "#define USE_TIGER 1" >>confdefs.h
18531
18532 fi
18533
18534
18535 name=whirlpool
18536 list=$enabled_digests
18537 found=0
18538
18539 for n in $list; do
18540   if test "x$name" = "x$n"; then
18541     found=1
18542   fi
18543 done
18544
18545 if test "$found" = "1" ; then
18546    GCRYPT_DIGESTS="$GCRYPT_DIGESTS whirlpool.lo"
18547
18548 $as_echo "#define USE_WHIRLPOOL 1" >>confdefs.h
18549
18550
18551    case "${host}" in
18552       x86_64-*-*)
18553          # Build with the assembly implementation
18554          GCRYPT_DIGESTS="$GCRYPT_DIGESTS whirlpool-sse2-amd64.lo"
18555       ;;
18556    esac
18557 fi
18558
18559
18560 name=blake2
18561 list=$enabled_digests
18562 found=0
18563
18564 for n in $list; do
18565   if test "x$name" = "x$n"; then
18566     found=1
18567   fi
18568 done
18569
18570 if test "$found" = "1" ; then
18571    GCRYPT_DIGESTS="$GCRYPT_DIGESTS blake2.lo"
18572
18573 $as_echo "#define USE_BLAKE2 1" >>confdefs.h
18574
18575 fi
18576
18577 # SHA-1 needs to be included always for example because it is used by
18578 # random-csprng.c.
18579 GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha1.lo"
18580
18581 $as_echo "#define USE_SHA1 1" >>confdefs.h
18582
18583
18584 case "${host}" in
18585   x86_64-*-*)
18586     # Build with the assembly implementation
18587     GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha1-ssse3-amd64.lo"
18588     GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha1-avx-amd64.lo"
18589     GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha1-avx-bmi2-amd64.lo"
18590   ;;
18591   arm*-*-*)
18592     # Build with the assembly implementation
18593     GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha1-armv7-neon.lo"
18594     GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha1-armv8-aarch32-ce.lo"
18595   ;;
18596   aarch64-*-*)
18597     # Build with the assembly implementation
18598     GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha1-armv8-aarch64-ce.lo"
18599   ;;
18600 esac
18601
18602
18603 name=scrypt
18604 list=$enabled_kdfs
18605 found=0
18606
18607 for n in $list; do
18608   if test "x$name" = "x$n"; then
18609     found=1
18610   fi
18611 done
18612
18613 if test "$found" = "1" ; then
18614    GCRYPT_KDFS="$GCRYPT_KDFS scrypt.lo"
18615
18616 $as_echo "#define USE_SCRYPT 1" >>confdefs.h
18617
18618 fi
18619
18620
18621 name=linux
18622 list=$random_modules
18623 found=0
18624
18625 for n in $list; do
18626   if test "x$name" = "x$n"; then
18627     found=1
18628   fi
18629 done
18630
18631 if test "$found" = "1" ; then
18632    GCRYPT_RANDOM="$GCRYPT_RANDOM rndlinux.lo"
18633
18634 $as_echo "#define USE_RNDLINUX 1" >>confdefs.h
18635
18636 fi
18637
18638
18639 name=unix
18640 list=$random_modules
18641 found=0
18642
18643 for n in $list; do
18644   if test "x$name" = "x$n"; then
18645     found=1
18646   fi
18647 done
18648
18649 if test "$found" = "1" ; then
18650    GCRYPT_RANDOM="$GCRYPT_RANDOM rndunix.lo"
18651
18652 $as_echo "#define USE_RNDUNIX 1" >>confdefs.h
18653
18654 fi
18655
18656
18657 name=egd
18658 list=$random_modules
18659 found=0
18660
18661 for n in $list; do
18662   if test "x$name" = "x$n"; then
18663     found=1
18664   fi
18665 done
18666
18667 if test "$found" = "1" ; then
18668    GCRYPT_RANDOM="$GCRYPT_RANDOM rndegd.lo"
18669
18670 $as_echo "#define USE_RNDEGD 1" >>confdefs.h
18671
18672 fi
18673
18674
18675 name=w32
18676 list=$random_modules
18677 found=0
18678
18679 for n in $list; do
18680   if test "x$name" = "x$n"; then
18681     found=1
18682   fi
18683 done
18684
18685 if test "$found" = "1" ; then
18686    GCRYPT_RANDOM="$GCRYPT_RANDOM rndw32.lo"
18687
18688 $as_echo "#define USE_RNDW32 1" >>confdefs.h
18689
18690 fi
18691
18692
18693 name=w32ce
18694 list=$random_modules
18695 found=0
18696
18697 for n in $list; do
18698   if test "x$name" = "x$n"; then
18699     found=1
18700   fi
18701 done
18702
18703 if test "$found" = "1" ; then
18704    GCRYPT_RANDOM="$GCRYPT_RANDOM rndw32ce.lo"
18705
18706 $as_echo "#define USE_RNDW32CE 1" >>confdefs.h
18707
18708 fi
18709
18710
18711
18712
18713
18714
18715
18716 LIBGCRYPT_CIPHERS=$enabled_ciphers
18717
18718 LIBGCRYPT_PUBKEY_CIPHERS=$enabled_pubkey_ciphers
18719
18720 LIBGCRYPT_DIGESTS=$enabled_digests
18721
18722
18723 # For printing the configuration we need a colon separated list of
18724 # algorithm names.
18725 tmp=`echo "$enabled_ciphers" | tr ' ' : `
18726
18727 cat >>confdefs.h <<_ACEOF
18728 #define LIBGCRYPT_CIPHERS "$tmp"
18729 _ACEOF
18730
18731 tmp=`echo "$enabled_pubkey_ciphers" | tr ' ' : `
18732
18733 cat >>confdefs.h <<_ACEOF
18734 #define LIBGCRYPT_PUBKEY_CIPHERS "$tmp"
18735 _ACEOF
18736
18737 tmp=`echo "$enabled_digests" | tr ' ' : `
18738
18739 cat >>confdefs.h <<_ACEOF
18740 #define LIBGCRYPT_DIGESTS "$tmp"
18741 _ACEOF
18742
18743 tmp=`echo "$enabled_kdfs" | tr ' ' : `
18744
18745 cat >>confdefs.h <<_ACEOF
18746 #define LIBGCRYPT_KDFS "$tmp"
18747 _ACEOF
18748
18749
18750
18751 #
18752 # Define conditional sources depending on the used hardware platform.
18753 # Note that all possible modules must also be listed in
18754 # src/Makefile.am (EXTRA_libgcrypt_la_SOURCES).
18755 #
18756 GCRYPT_HWF_MODULES=
18757 case "$mpi_cpu_arch" in
18758      x86)
18759
18760 $as_echo "#define HAVE_CPU_ARCH_X86 1" >>confdefs.h
18761
18762         GCRYPT_HWF_MODULES="hwf-x86.lo"
18763         ;;
18764      alpha)
18765
18766 $as_echo "#define HAVE_CPU_ARCH_ALPHA 1" >>confdefs.h
18767
18768         ;;
18769      sparc)
18770
18771 $as_echo "#define HAVE_CPU_ARCH_SPARC 1" >>confdefs.h
18772
18773         ;;
18774      mips)
18775
18776 $as_echo "#define HAVE_CPU_ARCH_MIPS 1" >>confdefs.h
18777
18778         ;;
18779      m68k)
18780
18781 $as_echo "#define HAVE_CPU_ARCH_M68K 1" >>confdefs.h
18782
18783         ;;
18784      ppc)
18785
18786 $as_echo "#define HAVE_CPU_ARCH_PPC 1" >>confdefs.h
18787
18788         ;;
18789      arm)
18790
18791 $as_echo "#define HAVE_CPU_ARCH_ARM 1" >>confdefs.h
18792
18793         GCRYPT_HWF_MODULES="hwf-arm.lo"
18794         ;;
18795      aarch64)
18796
18797 $as_echo "#define HAVE_CPU_ARCH_ARM 1" >>confdefs.h
18798
18799         GCRYPT_HWF_MODULES="hwf-arm.lo"
18800         ;;
18801 esac
18802
18803
18804
18805 #
18806 # Option to disable building of doc file
18807 #
18808 build_doc=yes
18809 # Check whether --enable-doc was given.
18810 if test "${enable_doc+set}" = set; then :
18811   enableval=$enable_doc; build_doc=$enableval
18812 else
18813   build_doc=yes
18814 fi
18815
18816  if test "x$build_doc" != xno; then
18817   BUILD_DOC_TRUE=
18818   BUILD_DOC_FALSE='#'
18819 else
18820   BUILD_DOC_TRUE='#'
18821   BUILD_DOC_FALSE=
18822 fi
18823
18824
18825
18826 #
18827 # Provide information about the build.
18828 #
18829 BUILD_REVISION="5600d2d"
18830
18831
18832 cat >>confdefs.h <<_ACEOF
18833 #define BUILD_REVISION "$BUILD_REVISION"
18834 _ACEOF
18835
18836
18837 BUILD_FILEVERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
18838 BUILD_FILEVERSION="${BUILD_FILEVERSION}22016"
18839
18840
18841 # Check whether --enable-build-timestamp was given.
18842 if test "${enable_build_timestamp+set}" = set; then :
18843   enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
18844         BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
18845       else
18846         BUILD_TIMESTAMP="$enableval"
18847       fi
18848 else
18849   BUILD_TIMESTAMP="<none>"
18850 fi
18851
18852
18853
18854 cat >>confdefs.h <<_ACEOF
18855 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
18856 _ACEOF
18857
18858
18859
18860 # And create the files.
18861 ac_config_files="$ac_config_files Makefile m4/Makefile compat/Makefile mpi/Makefile cipher/Makefile random/Makefile doc/Makefile src/Makefile src/gcrypt.h src/libgcrypt-config src/versioninfo.rc tests/Makefile"
18862
18863 ac_config_files="$ac_config_files tests/hashtest-256g"
18864
18865 ac_config_files="$ac_config_files tests/basic-disable-all-hwf"
18866
18867 cat >confcache <<\_ACEOF
18868 # This file is a shell script that caches the results of configure
18869 # tests run on this system so they can be shared between configure
18870 # scripts and configure runs, see configure's option --config-cache.
18871 # It is not useful on other systems.  If it contains results you don't
18872 # want to keep, you may remove or edit it.
18873 #
18874 # config.status only pays attention to the cache file if you give it
18875 # the --recheck option to rerun configure.
18876 #
18877 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18878 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18879 # following values.
18880
18881 _ACEOF
18882
18883 # The following way of writing the cache mishandles newlines in values,
18884 # but we know of no workaround that is simple, portable, and efficient.
18885 # So, we kill variables containing newlines.
18886 # Ultrix sh set writes to stderr and can't be redirected directly,
18887 # and sets the high bit in the cache file unless we assign to the vars.
18888 (
18889   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18890     eval ac_val=\$$ac_var
18891     case $ac_val in #(
18892     *${as_nl}*)
18893       case $ac_var in #(
18894       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18895 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18896       esac
18897       case $ac_var in #(
18898       _ | IFS | as_nl) ;; #(
18899       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18900       *) { eval $ac_var=; unset $ac_var;} ;;
18901       esac ;;
18902     esac
18903   done
18904
18905   (set) 2>&1 |
18906     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18907     *${as_nl}ac_space=\ *)
18908       # `set' does not quote correctly, so add quotes: double-quote
18909       # substitution turns \\\\ into \\, and sed turns \\ into \.
18910       sed -n \
18911         "s/'/'\\\\''/g;
18912           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18913       ;; #(
18914     *)
18915       # `set' quotes correctly as required by POSIX, so do not add quotes.
18916       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18917       ;;
18918     esac |
18919     sort
18920 ) |
18921   sed '
18922      /^ac_cv_env_/b end
18923      t clear
18924      :clear
18925      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18926      t end
18927      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18928      :end' >>confcache
18929 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18930   if test -w "$cache_file"; then
18931     if test "x$cache_file" != "x/dev/null"; then
18932       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18933 $as_echo "$as_me: updating cache $cache_file" >&6;}
18934       if test ! -f "$cache_file" || test -h "$cache_file"; then
18935         cat confcache >"$cache_file"
18936       else
18937         case $cache_file in #(
18938         */* | ?:*)
18939           mv -f confcache "$cache_file"$$ &&
18940           mv -f "$cache_file"$$ "$cache_file" ;; #(
18941         *)
18942           mv -f confcache "$cache_file" ;;
18943         esac
18944       fi
18945     fi
18946   else
18947     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18948 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18949   fi
18950 fi
18951 rm -f confcache
18952
18953 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18954 # Let make expand exec_prefix.
18955 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18956
18957 DEFS=-DHAVE_CONFIG_H
18958
18959 ac_libobjs=
18960 ac_ltlibobjs=
18961 U=
18962 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18963   # 1. Remove the extension, and $U if already installed.
18964   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18965   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18966   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18967   #    will be set to the directory where LIBOBJS objects are built.
18968   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18969   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18970 done
18971 LIBOBJS=$ac_libobjs
18972
18973 LTLIBOBJS=$ac_ltlibobjs
18974
18975
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18977 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18978    if test -n "$am_sleep_pid"; then
18979      # Hide warnings about reused PIDs.
18980      wait $am_sleep_pid 2>/dev/null
18981    fi
18982    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18983 $as_echo "done" >&6; }
18984  if test -n "$EXEEXT"; then
18985   am__EXEEXT_TRUE=
18986   am__EXEEXT_FALSE='#'
18987 else
18988   am__EXEEXT_TRUE='#'
18989   am__EXEEXT_FALSE=
18990 fi
18991
18992 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18993   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18995 fi
18996 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18997   as_fn_error $? "conditional \"AMDEP\" was never defined.
18998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18999 fi
19000 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19001   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19003 fi
19004 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
19005   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
19006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19007 fi
19008 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
19009   as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
19010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19011 fi
19012 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
19013   as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
19014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19015 fi
19016
19017 if test -z "${USE_RANDOM_DAEMON_TRUE}" && test -z "${USE_RANDOM_DAEMON_FALSE}"; then
19018   as_fn_error $? "conditional \"USE_RANDOM_DAEMON\" was never defined.
19019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19020 fi
19021 if test -z "${ENABLE_O_FLAG_MUNGING_TRUE}" && test -z "${ENABLE_O_FLAG_MUNGING_FALSE}"; then
19022   as_fn_error $? "conditional \"ENABLE_O_FLAG_MUNGING\" was never defined.
19023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19024 fi
19025 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
19026   as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
19027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19028 fi
19029 if test -z "${MPI_MOD_ASM_MPIH_ADD1_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_ADD1_FALSE}"; then
19030   as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_ADD1\" was never defined.
19031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19032 fi
19033 if test -z "${MPI_MOD_ASM_MPIH_SUB1_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_SUB1_FALSE}"; then
19034   as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_SUB1\" was never defined.
19035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19036 fi
19037 if test -z "${MPI_MOD_ASM_MPIH_MUL1_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_MUL1_FALSE}"; then
19038   as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_MUL1\" was never defined.
19039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19040 fi
19041 if test -z "${MPI_MOD_ASM_MPIH_MUL2_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_MUL2_FALSE}"; then
19042   as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_MUL2\" was never defined.
19043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19044 fi
19045 if test -z "${MPI_MOD_ASM_MPIH_MUL3_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_MUL3_FALSE}"; then
19046   as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_MUL3\" was never defined.
19047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19048 fi
19049 if test -z "${MPI_MOD_ASM_MPIH_LSHIFT_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_LSHIFT_FALSE}"; then
19050   as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_LSHIFT\" was never defined.
19051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19052 fi
19053 if test -z "${MPI_MOD_ASM_MPIH_RSHIFT_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_RSHIFT_FALSE}"; then
19054   as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_RSHIFT\" was never defined.
19055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19056 fi
19057 if test -z "${MPI_MOD_ASM_UDIV_TRUE}" && test -z "${MPI_MOD_ASM_UDIV_FALSE}"; then
19058   as_fn_error $? "conditional \"MPI_MOD_ASM_UDIV\" was never defined.
19059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19060 fi
19061 if test -z "${MPI_MOD_ASM_UDIV_QRNND_TRUE}" && test -z "${MPI_MOD_ASM_UDIV_QRNND_FALSE}"; then
19062   as_fn_error $? "conditional \"MPI_MOD_ASM_UDIV_QRNND\" was never defined.
19063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19064 fi
19065 if test -z "${MPI_MOD_C_MPIH_ADD1_TRUE}" && test -z "${MPI_MOD_C_MPIH_ADD1_FALSE}"; then
19066   as_fn_error $? "conditional \"MPI_MOD_C_MPIH_ADD1\" was never defined.
19067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19068 fi
19069 if test -z "${MPI_MOD_C_MPIH_SUB1_TRUE}" && test -z "${MPI_MOD_C_MPIH_SUB1_FALSE}"; then
19070   as_fn_error $? "conditional \"MPI_MOD_C_MPIH_SUB1\" was never defined.
19071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19072 fi
19073 if test -z "${MPI_MOD_C_MPIH_MUL1_TRUE}" && test -z "${MPI_MOD_C_MPIH_MUL1_FALSE}"; then
19074   as_fn_error $? "conditional \"MPI_MOD_C_MPIH_MUL1\" was never defined.
19075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19076 fi
19077 if test -z "${MPI_MOD_C_MPIH_MUL2_TRUE}" && test -z "${MPI_MOD_C_MPIH_MUL2_FALSE}"; then
19078   as_fn_error $? "conditional \"MPI_MOD_C_MPIH_MUL2\" was never defined.
19079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19080 fi
19081 if test -z "${MPI_MOD_C_MPIH_MUL3_TRUE}" && test -z "${MPI_MOD_C_MPIH_MUL3_FALSE}"; then
19082   as_fn_error $? "conditional \"MPI_MOD_C_MPIH_MUL3\" was never defined.
19083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19084 fi
19085 if test -z "${MPI_MOD_C_MPIH_LSHIFT_TRUE}" && test -z "${MPI_MOD_C_MPIH_LSHIFT_FALSE}"; then
19086   as_fn_error $? "conditional \"MPI_MOD_C_MPIH_LSHIFT\" was never defined.
19087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19088 fi
19089 if test -z "${MPI_MOD_C_MPIH_RSHIFT_TRUE}" && test -z "${MPI_MOD_C_MPIH_RSHIFT_FALSE}"; then
19090   as_fn_error $? "conditional \"MPI_MOD_C_MPIH_RSHIFT\" was never defined.
19091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19092 fi
19093 if test -z "${MPI_MOD_C_UDIV_TRUE}" && test -z "${MPI_MOD_C_UDIV_FALSE}"; then
19094   as_fn_error $? "conditional \"MPI_MOD_C_UDIV\" was never defined.
19095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19096 fi
19097 if test -z "${MPI_MOD_C_UDIV_QRNND_TRUE}" && test -z "${MPI_MOD_C_UDIV_QRNND_FALSE}"; then
19098   as_fn_error $? "conditional \"MPI_MOD_C_UDIV_QRNND\" was never defined.
19099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19100 fi
19101 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
19102   as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
19103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19104 fi
19105 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
19106   as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
19107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19108 fi
19109
19110 : "${CONFIG_STATUS=./config.status}"
19111 ac_write_fail=0
19112 ac_clean_files_save=$ac_clean_files
19113 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19114 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19115 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19116 as_write_fail=0
19117 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19118 #! $SHELL
19119 # Generated by $as_me.
19120 # Run this file to recreate the current configuration.
19121 # Compiler output produced by configure, useful for debugging
19122 # configure, is in config.log if it exists.
19123
19124 debug=false
19125 ac_cs_recheck=false
19126 ac_cs_silent=false
19127
19128 SHELL=\${CONFIG_SHELL-$SHELL}
19129 export SHELL
19130 _ASEOF
19131 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19132 ## -------------------- ##
19133 ## M4sh Initialization. ##
19134 ## -------------------- ##
19135
19136 # Be more Bourne compatible
19137 DUALCASE=1; export DUALCASE # for MKS sh
19138 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19139   emulate sh
19140   NULLCMD=:
19141   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19142   # is contrary to our usage.  Disable this feature.
19143   alias -g '${1+"$@"}'='"$@"'
19144   setopt NO_GLOB_SUBST
19145 else
19146   case `(set -o) 2>/dev/null` in #(
19147   *posix*) :
19148     set -o posix ;; #(
19149   *) :
19150      ;;
19151 esac
19152 fi
19153
19154
19155 as_nl='
19156 '
19157 export as_nl
19158 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19159 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19160 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19161 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19162 # Prefer a ksh shell builtin over an external printf program on Solaris,
19163 # but without wasting forks for bash or zsh.
19164 if test -z "$BASH_VERSION$ZSH_VERSION" \
19165     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19166   as_echo='print -r --'
19167   as_echo_n='print -rn --'
19168 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19169   as_echo='printf %s\n'
19170   as_echo_n='printf %s'
19171 else
19172   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19173     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19174     as_echo_n='/usr/ucb/echo -n'
19175   else
19176     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19177     as_echo_n_body='eval
19178       arg=$1;
19179       case $arg in #(
19180       *"$as_nl"*)
19181         expr "X$arg" : "X\\(.*\\)$as_nl";
19182         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19183       esac;
19184       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19185     '
19186     export as_echo_n_body
19187     as_echo_n='sh -c $as_echo_n_body as_echo'
19188   fi
19189   export as_echo_body
19190   as_echo='sh -c $as_echo_body as_echo'
19191 fi
19192
19193 # The user is always right.
19194 if test "${PATH_SEPARATOR+set}" != set; then
19195   PATH_SEPARATOR=:
19196   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19197     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19198       PATH_SEPARATOR=';'
19199   }
19200 fi
19201
19202
19203 # IFS
19204 # We need space, tab and new line, in precisely that order.  Quoting is
19205 # there to prevent editors from complaining about space-tab.
19206 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19207 # splitting by setting IFS to empty value.)
19208 IFS=" ""        $as_nl"
19209
19210 # Find who we are.  Look in the path if we contain no directory separator.
19211 as_myself=
19212 case $0 in #((
19213   *[\\/]* ) as_myself=$0 ;;
19214   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19215 for as_dir in $PATH
19216 do
19217   IFS=$as_save_IFS
19218   test -z "$as_dir" && as_dir=.
19219     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19220   done
19221 IFS=$as_save_IFS
19222
19223      ;;
19224 esac
19225 # We did not find ourselves, most probably we were run as `sh COMMAND'
19226 # in which case we are not to be found in the path.
19227 if test "x$as_myself" = x; then
19228   as_myself=$0
19229 fi
19230 if test ! -f "$as_myself"; then
19231   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19232   exit 1
19233 fi
19234
19235 # Unset variables that we do not need and which cause bugs (e.g. in
19236 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19237 # suppresses any "Segmentation fault" message there.  '((' could
19238 # trigger a bug in pdksh 5.2.14.
19239 for as_var in BASH_ENV ENV MAIL MAILPATH
19240 do eval test x\${$as_var+set} = xset \
19241   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19242 done
19243 PS1='$ '
19244 PS2='> '
19245 PS4='+ '
19246
19247 # NLS nuisances.
19248 LC_ALL=C
19249 export LC_ALL
19250 LANGUAGE=C
19251 export LANGUAGE
19252
19253 # CDPATH.
19254 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19255
19256
19257 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19258 # ----------------------------------------
19259 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19260 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19261 # script with STATUS, using 1 if that was 0.
19262 as_fn_error ()
19263 {
19264   as_status=$1; test $as_status -eq 0 && as_status=1
19265   if test "$4"; then
19266     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19267     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19268   fi
19269   $as_echo "$as_me: error: $2" >&2
19270   as_fn_exit $as_status
19271 } # as_fn_error
19272
19273
19274 # as_fn_set_status STATUS
19275 # -----------------------
19276 # Set $? to STATUS, without forking.
19277 as_fn_set_status ()
19278 {
19279   return $1
19280 } # as_fn_set_status
19281
19282 # as_fn_exit STATUS
19283 # -----------------
19284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19285 as_fn_exit ()
19286 {
19287   set +e
19288   as_fn_set_status $1
19289   exit $1
19290 } # as_fn_exit
19291
19292 # as_fn_unset VAR
19293 # ---------------
19294 # Portably unset VAR.
19295 as_fn_unset ()
19296 {
19297   { eval $1=; unset $1;}
19298 }
19299 as_unset=as_fn_unset
19300 # as_fn_append VAR VALUE
19301 # ----------------------
19302 # Append the text in VALUE to the end of the definition contained in VAR. Take
19303 # advantage of any shell optimizations that allow amortized linear growth over
19304 # repeated appends, instead of the typical quadratic growth present in naive
19305 # implementations.
19306 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19307   eval 'as_fn_append ()
19308   {
19309     eval $1+=\$2
19310   }'
19311 else
19312   as_fn_append ()
19313   {
19314     eval $1=\$$1\$2
19315   }
19316 fi # as_fn_append
19317
19318 # as_fn_arith ARG...
19319 # ------------------
19320 # Perform arithmetic evaluation on the ARGs, and store the result in the
19321 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19322 # must be portable across $(()) and expr.
19323 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19324   eval 'as_fn_arith ()
19325   {
19326     as_val=$(( $* ))
19327   }'
19328 else
19329   as_fn_arith ()
19330   {
19331     as_val=`expr "$@" || test $? -eq 1`
19332   }
19333 fi # as_fn_arith
19334
19335
19336 if expr a : '\(a\)' >/dev/null 2>&1 &&
19337    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19338   as_expr=expr
19339 else
19340   as_expr=false
19341 fi
19342
19343 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19344   as_basename=basename
19345 else
19346   as_basename=false
19347 fi
19348
19349 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19350   as_dirname=dirname
19351 else
19352   as_dirname=false
19353 fi
19354
19355 as_me=`$as_basename -- "$0" ||
19356 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19357          X"$0" : 'X\(//\)$' \| \
19358          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19359 $as_echo X/"$0" |
19360     sed '/^.*\/\([^/][^/]*\)\/*$/{
19361             s//\1/
19362             q
19363           }
19364           /^X\/\(\/\/\)$/{
19365             s//\1/
19366             q
19367           }
19368           /^X\/\(\/\).*/{
19369             s//\1/
19370             q
19371           }
19372           s/.*/./; q'`
19373
19374 # Avoid depending upon Character Ranges.
19375 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19376 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19377 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19378 as_cr_digits='0123456789'
19379 as_cr_alnum=$as_cr_Letters$as_cr_digits
19380
19381 ECHO_C= ECHO_N= ECHO_T=
19382 case `echo -n x` in #(((((
19383 -n*)
19384   case `echo 'xy\c'` in
19385   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19386   xy)  ECHO_C='\c';;
19387   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19388        ECHO_T=' ';;
19389   esac;;
19390 *)
19391   ECHO_N='-n';;
19392 esac
19393
19394 rm -f conf$$ conf$$.exe conf$$.file
19395 if test -d conf$$.dir; then
19396   rm -f conf$$.dir/conf$$.file
19397 else
19398   rm -f conf$$.dir
19399   mkdir conf$$.dir 2>/dev/null
19400 fi
19401 if (echo >conf$$.file) 2>/dev/null; then
19402   if ln -s conf$$.file conf$$ 2>/dev/null; then
19403     as_ln_s='ln -s'
19404     # ... but there are two gotchas:
19405     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19406     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19407     # In both cases, we have to default to `cp -pR'.
19408     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19409       as_ln_s='cp -pR'
19410   elif ln conf$$.file conf$$ 2>/dev/null; then
19411     as_ln_s=ln
19412   else
19413     as_ln_s='cp -pR'
19414   fi
19415 else
19416   as_ln_s='cp -pR'
19417 fi
19418 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19419 rmdir conf$$.dir 2>/dev/null
19420
19421
19422 # as_fn_mkdir_p
19423 # -------------
19424 # Create "$as_dir" as a directory, including parents if necessary.
19425 as_fn_mkdir_p ()
19426 {
19427
19428   case $as_dir in #(
19429   -*) as_dir=./$as_dir;;
19430   esac
19431   test -d "$as_dir" || eval $as_mkdir_p || {
19432     as_dirs=
19433     while :; do
19434       case $as_dir in #(
19435       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19436       *) as_qdir=$as_dir;;
19437       esac
19438       as_dirs="'$as_qdir' $as_dirs"
19439       as_dir=`$as_dirname -- "$as_dir" ||
19440 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19441          X"$as_dir" : 'X\(//\)[^/]' \| \
19442          X"$as_dir" : 'X\(//\)$' \| \
19443          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19444 $as_echo X"$as_dir" |
19445     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19446             s//\1/
19447             q
19448           }
19449           /^X\(\/\/\)[^/].*/{
19450             s//\1/
19451             q
19452           }
19453           /^X\(\/\/\)$/{
19454             s//\1/
19455             q
19456           }
19457           /^X\(\/\).*/{
19458             s//\1/
19459             q
19460           }
19461           s/.*/./; q'`
19462       test -d "$as_dir" && break
19463     done
19464     test -z "$as_dirs" || eval "mkdir $as_dirs"
19465   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19466
19467
19468 } # as_fn_mkdir_p
19469 if mkdir -p . 2>/dev/null; then
19470   as_mkdir_p='mkdir -p "$as_dir"'
19471 else
19472   test -d ./-p && rmdir ./-p
19473   as_mkdir_p=false
19474 fi
19475
19476
19477 # as_fn_executable_p FILE
19478 # -----------------------
19479 # Test if FILE is an executable regular file.
19480 as_fn_executable_p ()
19481 {
19482   test -f "$1" && test -x "$1"
19483 } # as_fn_executable_p
19484 as_test_x='test -x'
19485 as_executable_p=as_fn_executable_p
19486
19487 # Sed expression to map a string onto a valid CPP name.
19488 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19489
19490 # Sed expression to map a string onto a valid variable name.
19491 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19492
19493
19494 exec 6>&1
19495 ## ----------------------------------- ##
19496 ## Main body of $CONFIG_STATUS script. ##
19497 ## ----------------------------------- ##
19498 _ASEOF
19499 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19500
19501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19502 # Save the log message, to keep $0 and so on meaningful, and to
19503 # report actual input values of CONFIG_FILES etc. instead of their
19504 # values after options handling.
19505 ac_log="
19506 This file was extended by libgcrypt $as_me 1.8.3, which was
19507 generated by GNU Autoconf 2.69.  Invocation command line was
19508
19509   CONFIG_FILES    = $CONFIG_FILES
19510   CONFIG_HEADERS  = $CONFIG_HEADERS
19511   CONFIG_LINKS    = $CONFIG_LINKS
19512   CONFIG_COMMANDS = $CONFIG_COMMANDS
19513   $ $0 $@
19514
19515 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19516 "
19517
19518 _ACEOF
19519
19520 case $ac_config_files in *"
19521 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19522 esac
19523
19524 case $ac_config_headers in *"
19525 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19526 esac
19527
19528
19529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19530 # Files that config.status was made for.
19531 config_files="$ac_config_files"
19532 config_headers="$ac_config_headers"
19533 config_links="$ac_config_links"
19534 config_commands="$ac_config_commands"
19535
19536 _ACEOF
19537
19538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19539 ac_cs_usage="\
19540 \`$as_me' instantiates files and other configuration actions
19541 from templates according to the current configuration.  Unless the files
19542 and actions are specified as TAGs, all are instantiated by default.
19543
19544 Usage: $0 [OPTION]... [TAG]...
19545
19546   -h, --help       print this help, then exit
19547   -V, --version    print version number and configuration settings, then exit
19548       --config     print configuration, then exit
19549   -q, --quiet, --silent
19550                    do not print progress messages
19551   -d, --debug      don't remove temporary files
19552       --recheck    update $as_me by reconfiguring in the same conditions
19553       --file=FILE[:TEMPLATE]
19554                    instantiate the configuration file FILE
19555       --header=FILE[:TEMPLATE]
19556                    instantiate the configuration header FILE
19557
19558 Configuration files:
19559 $config_files
19560
19561 Configuration headers:
19562 $config_headers
19563
19564 Configuration links:
19565 $config_links
19566
19567 Configuration commands:
19568 $config_commands
19569
19570 Report bugs to <http://bugs.gnupg.org>."
19571
19572 _ACEOF
19573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19574 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19575 ac_cs_version="\\
19576 libgcrypt config.status 1.8.3
19577 configured by $0, generated by GNU Autoconf 2.69,
19578   with options \\"\$ac_cs_config\\"
19579
19580 Copyright (C) 2012 Free Software Foundation, Inc.
19581 This config.status script is free software; the Free Software Foundation
19582 gives unlimited permission to copy, distribute and modify it."
19583
19584 ac_pwd='$ac_pwd'
19585 srcdir='$srcdir'
19586 INSTALL='$INSTALL'
19587 MKDIR_P='$MKDIR_P'
19588 AWK='$AWK'
19589 test -n "\$AWK" || AWK=awk
19590 _ACEOF
19591
19592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19593 # The default lists apply if the user does not specify any file.
19594 ac_need_defaults=:
19595 while test $# != 0
19596 do
19597   case $1 in
19598   --*=?*)
19599     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19600     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19601     ac_shift=:
19602     ;;
19603   --*=)
19604     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19605     ac_optarg=
19606     ac_shift=:
19607     ;;
19608   *)
19609     ac_option=$1
19610     ac_optarg=$2
19611     ac_shift=shift
19612     ;;
19613   esac
19614
19615   case $ac_option in
19616   # Handling of the options.
19617   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19618     ac_cs_recheck=: ;;
19619   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19620     $as_echo "$ac_cs_version"; exit ;;
19621   --config | --confi | --conf | --con | --co | --c )
19622     $as_echo "$ac_cs_config"; exit ;;
19623   --debug | --debu | --deb | --de | --d | -d )
19624     debug=: ;;
19625   --file | --fil | --fi | --f )
19626     $ac_shift
19627     case $ac_optarg in
19628     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19629     '') as_fn_error $? "missing file argument" ;;
19630     esac
19631     as_fn_append CONFIG_FILES " '$ac_optarg'"
19632     ac_need_defaults=false;;
19633   --header | --heade | --head | --hea )
19634     $ac_shift
19635     case $ac_optarg in
19636     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19637     esac
19638     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19639     ac_need_defaults=false;;
19640   --he | --h)
19641     # Conflict between --help and --header
19642     as_fn_error $? "ambiguous option: \`$1'
19643 Try \`$0 --help' for more information.";;
19644   --help | --hel | -h )
19645     $as_echo "$ac_cs_usage"; exit ;;
19646   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19647   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19648     ac_cs_silent=: ;;
19649
19650   # This is an error.
19651   -*) as_fn_error $? "unrecognized option: \`$1'
19652 Try \`$0 --help' for more information." ;;
19653
19654   *) as_fn_append ac_config_targets " $1"
19655      ac_need_defaults=false ;;
19656
19657   esac
19658   shift
19659 done
19660
19661 ac_configure_extra_args=
19662
19663 if $ac_cs_silent; then
19664   exec 6>/dev/null
19665   ac_configure_extra_args="$ac_configure_extra_args --silent"
19666 fi
19667
19668 _ACEOF
19669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19670 if \$ac_cs_recheck; then
19671   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19672   shift
19673   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19674   CONFIG_SHELL='$SHELL'
19675   export CONFIG_SHELL
19676   exec "\$@"
19677 fi
19678
19679 _ACEOF
19680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19681 exec 5>>config.log
19682 {
19683   echo
19684   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19685 ## Running $as_me. ##
19686 _ASBOX
19687   $as_echo "$ac_log"
19688 } >&5
19689
19690 _ACEOF
19691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19692 #
19693 # INIT-COMMANDS
19694 #
19695 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19696
19697
19698 # The HP-UX ksh and POSIX shell print the target directory to stdout
19699 # if CDPATH is set.
19700 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19701
19702 sed_quote_subst='$sed_quote_subst'
19703 double_quote_subst='$double_quote_subst'
19704 delay_variable_subst='$delay_variable_subst'
19705 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19706 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19707 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19708 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19709 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19710 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19711 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19712 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19713 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19714 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19715 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19716 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19717 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19718 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19719 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19720 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19721 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19722 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19723 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19724 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19725 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19726 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19727 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19728 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19729 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19730 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19731 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19732 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19733 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19734 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19735 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19736 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19737 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19738 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19739 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19740 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19741 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19742 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19743 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19744 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19745 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19746 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19747 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19748 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19749 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19750 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19751 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19752 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19753 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19754 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19755 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19756 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19757 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19758 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19759 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19760 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19761 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19762 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"`'
19763 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19764 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19765 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19766 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19767 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19768 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19769 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19770 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19771 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19772 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19773 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19774 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19775 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19776 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19777 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19778 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19779 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19780 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19781 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19782 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19783 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19784 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19785 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19786 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19787 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19788 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19789 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19790 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19791 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19792 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19793 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19794 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19795 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19796 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19797 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19798 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19799 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19800 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19801 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19802 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19803 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19804 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19805 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19806 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19807 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19808 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19809 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19810 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19811 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19812 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19813 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19814 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19815 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19816 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19817 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19818 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19819 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19820 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19821 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19822 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19823 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19824 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19825 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19826 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19827 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19828 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19829 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19830 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19831 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19832 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19833 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19834 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19835 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19836 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
19837 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
19838 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
19839 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
19840 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
19841 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
19842 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
19843 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
19844 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
19845 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
19846 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
19847 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
19848 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
19849 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
19850 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
19851 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
19852 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
19853 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
19854 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
19855 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
19856 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
19857 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
19858 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
19859 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
19860 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
19861 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
19862 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
19863 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
19864 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
19865 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
19866 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
19867 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
19868 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
19869 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
19870 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
19871 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
19872 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
19873 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
19874 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
19875 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
19876 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
19877 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
19878
19879 LTCC='$LTCC'
19880 LTCFLAGS='$LTCFLAGS'
19881 compiler='$compiler_DEFAULT'
19882
19883 # A function that is used when there is no print builtin or printf.
19884 func_fallback_echo ()
19885 {
19886   eval 'cat <<_LTECHO_EOF
19887 \$1
19888 _LTECHO_EOF'
19889 }
19890
19891 # Quote evaled strings.
19892 for var in AS \
19893 DLLTOOL \
19894 OBJDUMP \
19895 SHELL \
19896 ECHO \
19897 PATH_SEPARATOR \
19898 SED \
19899 GREP \
19900 EGREP \
19901 FGREP \
19902 LD \
19903 NM \
19904 LN_S \
19905 lt_SP2NL \
19906 lt_NL2SP \
19907 reload_flag \
19908 deplibs_check_method \
19909 file_magic_cmd \
19910 file_magic_glob \
19911 want_nocaseglob \
19912 sharedlib_from_linklib_cmd \
19913 AR \
19914 AR_FLAGS \
19915 archiver_list_spec \
19916 STRIP \
19917 RANLIB \
19918 CC \
19919 CFLAGS \
19920 compiler \
19921 lt_cv_sys_global_symbol_pipe \
19922 lt_cv_sys_global_symbol_to_cdecl \
19923 lt_cv_sys_global_symbol_to_c_name_address \
19924 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19925 nm_file_list_spec \
19926 lt_prog_compiler_no_builtin_flag \
19927 lt_prog_compiler_pic \
19928 lt_prog_compiler_wl \
19929 lt_prog_compiler_static \
19930 lt_cv_prog_compiler_c_o \
19931 need_locks \
19932 MANIFEST_TOOL \
19933 DSYMUTIL \
19934 NMEDIT \
19935 LIPO \
19936 OTOOL \
19937 OTOOL64 \
19938 shrext_cmds \
19939 export_dynamic_flag_spec \
19940 whole_archive_flag_spec \
19941 compiler_needs_object \
19942 with_gnu_ld \
19943 allow_undefined_flag \
19944 no_undefined_flag \
19945 hardcode_libdir_flag_spec \
19946 hardcode_libdir_separator \
19947 exclude_expsyms \
19948 include_expsyms \
19949 file_list_spec \
19950 variables_saved_for_relink \
19951 libname_spec \
19952 library_names_spec \
19953 soname_spec \
19954 install_override_mode \
19955 finish_eval \
19956 old_striplib \
19957 striplib \
19958 LD_RC \
19959 reload_flag_RC \
19960 compiler_RC \
19961 lt_prog_compiler_no_builtin_flag_RC \
19962 lt_prog_compiler_pic_RC \
19963 lt_prog_compiler_wl_RC \
19964 lt_prog_compiler_static_RC \
19965 lt_cv_prog_compiler_c_o_RC \
19966 export_dynamic_flag_spec_RC \
19967 whole_archive_flag_spec_RC \
19968 compiler_needs_object_RC \
19969 with_gnu_ld_RC \
19970 allow_undefined_flag_RC \
19971 no_undefined_flag_RC \
19972 hardcode_libdir_flag_spec_RC \
19973 hardcode_libdir_separator_RC \
19974 exclude_expsyms_RC \
19975 include_expsyms_RC \
19976 file_list_spec_RC; do
19977     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19978     *[\\\\\\\`\\"\\\$]*)
19979       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19980       ;;
19981     *)
19982       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19983       ;;
19984     esac
19985 done
19986
19987 # Double-quote double-evaled strings.
19988 for var in reload_cmds \
19989 old_postinstall_cmds \
19990 old_postuninstall_cmds \
19991 old_archive_cmds \
19992 extract_expsyms_cmds \
19993 old_archive_from_new_cmds \
19994 old_archive_from_expsyms_cmds \
19995 archive_cmds \
19996 archive_expsym_cmds \
19997 module_cmds \
19998 module_expsym_cmds \
19999 export_symbols_cmds \
20000 prelink_cmds \
20001 postlink_cmds \
20002 postinstall_cmds \
20003 postuninstall_cmds \
20004 finish_cmds \
20005 sys_lib_search_path_spec \
20006 sys_lib_dlsearch_path_spec \
20007 reload_cmds_RC \
20008 old_archive_cmds_RC \
20009 old_archive_from_new_cmds_RC \
20010 old_archive_from_expsyms_cmds_RC \
20011 archive_cmds_RC \
20012 archive_expsym_cmds_RC \
20013 module_cmds_RC \
20014 module_expsym_cmds_RC \
20015 export_symbols_cmds_RC \
20016 prelink_cmds_RC \
20017 postlink_cmds_RC; do
20018     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20019     *[\\\\\\\`\\"\\\$]*)
20020       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20021       ;;
20022     *)
20023       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20024       ;;
20025     esac
20026 done
20027
20028 ac_aux_dir='$ac_aux_dir'
20029 xsi_shell='$xsi_shell'
20030 lt_shell_append='$lt_shell_append'
20031
20032 # See if we are running on zsh, and set the options which allow our
20033 # commands through without removal of \ escapes INIT.
20034 if test -n "\${ZSH_VERSION+set}" ; then
20035    setopt NO_GLOB_SUBST
20036 fi
20037
20038
20039     PACKAGE='$PACKAGE'
20040     VERSION='$VERSION'
20041     TIMESTAMP='$TIMESTAMP'
20042     RM='$RM'
20043     ofile='$ofile'
20044
20045
20046
20047
20048
20049
20050 prefix=$prefix
20051 exec_prefix=$exec_prefix
20052 libdir=$libdir
20053 datadir=$datadir
20054 DATADIRNAME=$DATADIRNAME
20055
20056
20057 _ACEOF
20058
20059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20060
20061 # Handling of arguments.
20062 for ac_config_target in $ac_config_targets
20063 do
20064   case $ac_config_target in
20065     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20066     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20067     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20068     ""$mpi_ln_list"") CONFIG_LINKS="$CONFIG_LINKS "$mpi_ln_list"" ;;
20069     "gcrypt-conf") CONFIG_COMMANDS="$CONFIG_COMMANDS gcrypt-conf" ;;
20070     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20071     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
20072     "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
20073     "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;;
20074     "cipher/Makefile") CONFIG_FILES="$CONFIG_FILES cipher/Makefile" ;;
20075     "random/Makefile") CONFIG_FILES="$CONFIG_FILES random/Makefile" ;;
20076     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20077     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20078     "src/gcrypt.h") CONFIG_FILES="$CONFIG_FILES src/gcrypt.h" ;;
20079     "src/libgcrypt-config") CONFIG_FILES="$CONFIG_FILES src/libgcrypt-config" ;;
20080     "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
20081     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
20082     "tests/hashtest-256g") CONFIG_FILES="$CONFIG_FILES tests/hashtest-256g" ;;
20083     "tests/basic-disable-all-hwf") CONFIG_FILES="$CONFIG_FILES tests/basic-disable-all-hwf" ;;
20084
20085   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20086   esac
20087 done
20088
20089
20090 # If the user did not use the arguments to specify the items to instantiate,
20091 # then the envvar interface is used.  Set only those that are not.
20092 # We use the long form for the default assignment because of an extremely
20093 # bizarre bug on SunOS 4.1.3.
20094 if $ac_need_defaults; then
20095   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20096   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20097   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
20098   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20099 fi
20100
20101 # Have a temporary directory for convenience.  Make it in the build tree
20102 # simply because there is no reason against having it here, and in addition,
20103 # creating and moving files from /tmp can sometimes cause problems.
20104 # Hook for its removal unless debugging.
20105 # Note that there is a small window in which the directory will not be cleaned:
20106 # after its creation but before its name has been assigned to `$tmp'.
20107 $debug ||
20108 {
20109   tmp= ac_tmp=
20110   trap 'exit_status=$?
20111   : "${ac_tmp:=$tmp}"
20112   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20113 ' 0
20114   trap 'as_fn_exit 1' 1 2 13 15
20115 }
20116 # Create a (secure) tmp directory for tmp files.
20117
20118 {
20119   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20120   test -d "$tmp"
20121 }  ||
20122 {
20123   tmp=./conf$$-$RANDOM
20124   (umask 077 && mkdir "$tmp")
20125 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20126 ac_tmp=$tmp
20127
20128 # Set up the scripts for CONFIG_FILES section.
20129 # No need to generate them if there are no CONFIG_FILES.
20130 # This happens for instance with `./config.status config.h'.
20131 if test -n "$CONFIG_FILES"; then
20132
20133
20134 ac_cr=`echo X | tr X '\015'`
20135 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20136 # But we know of no other shell where ac_cr would be empty at this
20137 # point, so we can use a bashism as a fallback.
20138 if test "x$ac_cr" = x; then
20139   eval ac_cr=\$\'\\r\'
20140 fi
20141 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20142 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20143   ac_cs_awk_cr='\\r'
20144 else
20145   ac_cs_awk_cr=$ac_cr
20146 fi
20147
20148 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20149 _ACEOF
20150
20151
20152 {
20153   echo "cat >conf$$subs.awk <<_ACEOF" &&
20154   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20155   echo "_ACEOF"
20156 } >conf$$subs.sh ||
20157   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20158 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20159 ac_delim='%!_!# '
20160 for ac_last_try in false false false false false :; do
20161   . ./conf$$subs.sh ||
20162     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20163
20164   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20165   if test $ac_delim_n = $ac_delim_num; then
20166     break
20167   elif $ac_last_try; then
20168     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20169   else
20170     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20171   fi
20172 done
20173 rm -f conf$$subs.sh
20174
20175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20176 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20177 _ACEOF
20178 sed -n '
20179 h
20180 s/^/S["/; s/!.*/"]=/
20181 p
20182 g
20183 s/^[^!]*!//
20184 :repl
20185 t repl
20186 s/'"$ac_delim"'$//
20187 t delim
20188 :nl
20189 h
20190 s/\(.\{148\}\)..*/\1/
20191 t more1
20192 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20193 p
20194 n
20195 b repl
20196 :more1
20197 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20198 p
20199 g
20200 s/.\{148\}//
20201 t nl
20202 :delim
20203 h
20204 s/\(.\{148\}\)..*/\1/
20205 t more2
20206 s/["\\]/\\&/g; s/^/"/; s/$/"/
20207 p
20208 b
20209 :more2
20210 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20211 p
20212 g
20213 s/.\{148\}//
20214 t delim
20215 ' <conf$$subs.awk | sed '
20216 /^[^""]/{
20217   N
20218   s/\n//
20219 }
20220 ' >>$CONFIG_STATUS || ac_write_fail=1
20221 rm -f conf$$subs.awk
20222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20223 _ACAWK
20224 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20225   for (key in S) S_is_set[key] = 1
20226   FS = "\a"
20227
20228 }
20229 {
20230   line = $ 0
20231   nfields = split(line, field, "@")
20232   substed = 0
20233   len = length(field[1])
20234   for (i = 2; i < nfields; i++) {
20235     key = field[i]
20236     keylen = length(key)
20237     if (S_is_set[key]) {
20238       value = S[key]
20239       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20240       len += length(value) + length(field[++i])
20241       substed = 1
20242     } else
20243       len += 1 + keylen
20244   }
20245
20246   print line
20247 }
20248
20249 _ACAWK
20250 _ACEOF
20251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20252 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20253   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20254 else
20255   cat
20256 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20257   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20258 _ACEOF
20259
20260 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20261 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20262 # trailing colons and then remove the whole line if VPATH becomes empty
20263 # (actually we leave an empty line to preserve line numbers).
20264 if test "x$srcdir" = x.; then
20265   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
20266 h
20267 s///
20268 s/^/:/
20269 s/[      ]*$/:/
20270 s/:\$(srcdir):/:/g
20271 s/:\${srcdir}:/:/g
20272 s/:@srcdir@:/:/g
20273 s/^:*//
20274 s/:*$//
20275 x
20276 s/\(=[   ]*\).*/\1/
20277 G
20278 s/\n//
20279 s/^[^=]*=[       ]*$//
20280 }'
20281 fi
20282
20283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20284 fi # test -n "$CONFIG_FILES"
20285
20286 # Set up the scripts for CONFIG_HEADERS section.
20287 # No need to generate them if there are no CONFIG_HEADERS.
20288 # This happens for instance with `./config.status Makefile'.
20289 if test -n "$CONFIG_HEADERS"; then
20290 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20291 BEGIN {
20292 _ACEOF
20293
20294 # Transform confdefs.h into an awk script `defines.awk', embedded as
20295 # here-document in config.status, that substitutes the proper values into
20296 # config.h.in to produce config.h.
20297
20298 # Create a delimiter string that does not exist in confdefs.h, to ease
20299 # handling of long lines.
20300 ac_delim='%!_!# '
20301 for ac_last_try in false false :; do
20302   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20303   if test -z "$ac_tt"; then
20304     break
20305   elif $ac_last_try; then
20306     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20307   else
20308     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20309   fi
20310 done
20311
20312 # For the awk script, D is an array of macro values keyed by name,
20313 # likewise P contains macro parameters if any.  Preserve backslash
20314 # newline sequences.
20315
20316 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20317 sed -n '
20318 s/.\{148\}/&'"$ac_delim"'/g
20319 t rset
20320 :rset
20321 s/^[     ]*#[    ]*define[       ][      ]*/ /
20322 t def
20323 d
20324 :def
20325 s/\\$//
20326 t bsnl
20327 s/["\\]/\\&/g
20328 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20329 D["\1"]=" \3"/p
20330 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20331 d
20332 :bsnl
20333 s/["\\]/\\&/g
20334 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20335 D["\1"]=" \3\\\\\\n"\\/p
20336 t cont
20337 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20338 t cont
20339 d
20340 :cont
20341 n
20342 s/.\{148\}/&'"$ac_delim"'/g
20343 t clear
20344 :clear
20345 s/\\$//
20346 t bsnlc
20347 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20348 d
20349 :bsnlc
20350 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20351 b cont
20352 ' <confdefs.h | sed '
20353 s/'"$ac_delim"'/"\\\
20354 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20355
20356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20357   for (key in D) D_is_set[key] = 1
20358   FS = "\a"
20359 }
20360 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20361   line = \$ 0
20362   split(line, arg, " ")
20363   if (arg[1] == "#") {
20364     defundef = arg[2]
20365     mac1 = arg[3]
20366   } else {
20367     defundef = substr(arg[1], 2)
20368     mac1 = arg[2]
20369   }
20370   split(mac1, mac2, "(") #)
20371   macro = mac2[1]
20372   prefix = substr(line, 1, index(line, defundef) - 1)
20373   if (D_is_set[macro]) {
20374     # Preserve the white space surrounding the "#".
20375     print prefix "define", macro P[macro] D[macro]
20376     next
20377   } else {
20378     # Replace #undef with comments.  This is necessary, for example,
20379     # in the case of _POSIX_SOURCE, which is predefined and required
20380     # on some systems where configure will not decide to define it.
20381     if (defundef == "undef") {
20382       print "/*", prefix defundef, macro, "*/"
20383       next
20384     }
20385   }
20386 }
20387 { print }
20388 _ACAWK
20389 _ACEOF
20390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20391   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20392 fi # test -n "$CONFIG_HEADERS"
20393
20394
20395 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
20396 shift
20397 for ac_tag
20398 do
20399   case $ac_tag in
20400   :[FHLC]) ac_mode=$ac_tag; continue;;
20401   esac
20402   case $ac_mode$ac_tag in
20403   :[FHL]*:*);;
20404   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20405   :[FH]-) ac_tag=-:-;;
20406   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20407   esac
20408   ac_save_IFS=$IFS
20409   IFS=:
20410   set x $ac_tag
20411   IFS=$ac_save_IFS
20412   shift
20413   ac_file=$1
20414   shift
20415
20416   case $ac_mode in
20417   :L) ac_source=$1;;
20418   :[FH])
20419     ac_file_inputs=
20420     for ac_f
20421     do
20422       case $ac_f in
20423       -) ac_f="$ac_tmp/stdin";;
20424       *) # Look for the file first in the build tree, then in the source tree
20425          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20426          # because $ac_f cannot contain `:'.
20427          test -f "$ac_f" ||
20428            case $ac_f in
20429            [\\/$]*) false;;
20430            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20431            esac ||
20432            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20433       esac
20434       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20435       as_fn_append ac_file_inputs " '$ac_f'"
20436     done
20437
20438     # Let's still pretend it is `configure' which instantiates (i.e., don't
20439     # use $as_me), people would be surprised to read:
20440     #    /* config.h.  Generated by config.status.  */
20441     configure_input='Generated from '`
20442           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20443         `' by configure.'
20444     if test x"$ac_file" != x-; then
20445       configure_input="$ac_file.  $configure_input"
20446       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20447 $as_echo "$as_me: creating $ac_file" >&6;}
20448     fi
20449     # Neutralize special characters interpreted by sed in replacement strings.
20450     case $configure_input in #(
20451     *\&* | *\|* | *\\* )
20452        ac_sed_conf_input=`$as_echo "$configure_input" |
20453        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20454     *) ac_sed_conf_input=$configure_input;;
20455     esac
20456
20457     case $ac_tag in
20458     *:-:* | *:-) cat >"$ac_tmp/stdin" \
20459       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20460     esac
20461     ;;
20462   esac
20463
20464   ac_dir=`$as_dirname -- "$ac_file" ||
20465 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20466          X"$ac_file" : 'X\(//\)[^/]' \| \
20467          X"$ac_file" : 'X\(//\)$' \| \
20468          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20469 $as_echo X"$ac_file" |
20470     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20471             s//\1/
20472             q
20473           }
20474           /^X\(\/\/\)[^/].*/{
20475             s//\1/
20476             q
20477           }
20478           /^X\(\/\/\)$/{
20479             s//\1/
20480             q
20481           }
20482           /^X\(\/\).*/{
20483             s//\1/
20484             q
20485           }
20486           s/.*/./; q'`
20487   as_dir="$ac_dir"; as_fn_mkdir_p
20488   ac_builddir=.
20489
20490 case "$ac_dir" in
20491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20492 *)
20493   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20494   # A ".." for each directory in $ac_dir_suffix.
20495   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20496   case $ac_top_builddir_sub in
20497   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20498   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20499   esac ;;
20500 esac
20501 ac_abs_top_builddir=$ac_pwd
20502 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20503 # for backward compatibility:
20504 ac_top_builddir=$ac_top_build_prefix
20505
20506 case $srcdir in
20507   .)  # We are building in place.
20508     ac_srcdir=.
20509     ac_top_srcdir=$ac_top_builddir_sub
20510     ac_abs_top_srcdir=$ac_pwd ;;
20511   [\\/]* | ?:[\\/]* )  # Absolute name.
20512     ac_srcdir=$srcdir$ac_dir_suffix;
20513     ac_top_srcdir=$srcdir
20514     ac_abs_top_srcdir=$srcdir ;;
20515   *) # Relative name.
20516     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20517     ac_top_srcdir=$ac_top_build_prefix$srcdir
20518     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20519 esac
20520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20521
20522
20523   case $ac_mode in
20524   :F)
20525   #
20526   # CONFIG_FILE
20527   #
20528
20529   case $INSTALL in
20530   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20531   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20532   esac
20533   ac_MKDIR_P=$MKDIR_P
20534   case $MKDIR_P in
20535   [\\/$]* | ?:[\\/]* ) ;;
20536   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20537   esac
20538 _ACEOF
20539
20540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20541 # If the template does not know about datarootdir, expand it.
20542 # FIXME: This hack should be removed a few years after 2.60.
20543 ac_datarootdir_hack=; ac_datarootdir_seen=
20544 ac_sed_dataroot='
20545 /datarootdir/ {
20546   p
20547   q
20548 }
20549 /@datadir@/p
20550 /@docdir@/p
20551 /@infodir@/p
20552 /@localedir@/p
20553 /@mandir@/p'
20554 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20555 *datarootdir*) ac_datarootdir_seen=yes;;
20556 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20557   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20558 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20559 _ACEOF
20560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20561   ac_datarootdir_hack='
20562   s&@datadir@&$datadir&g
20563   s&@docdir@&$docdir&g
20564   s&@infodir@&$infodir&g
20565   s&@localedir@&$localedir&g
20566   s&@mandir@&$mandir&g
20567   s&\\\${datarootdir}&$datarootdir&g' ;;
20568 esac
20569 _ACEOF
20570
20571 # Neutralize VPATH when `$srcdir' = `.'.
20572 # Shell code in configure.ac might set extrasub.
20573 # FIXME: do we really want to maintain this feature?
20574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20575 ac_sed_extra="$ac_vpsub
20576 $extrasub
20577 _ACEOF
20578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20579 :t
20580 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20581 s|@configure_input@|$ac_sed_conf_input|;t t
20582 s&@top_builddir@&$ac_top_builddir_sub&;t t
20583 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20584 s&@srcdir@&$ac_srcdir&;t t
20585 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20586 s&@top_srcdir@&$ac_top_srcdir&;t t
20587 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20588 s&@builddir@&$ac_builddir&;t t
20589 s&@abs_builddir@&$ac_abs_builddir&;t t
20590 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20591 s&@INSTALL@&$ac_INSTALL&;t t
20592 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20593 $ac_datarootdir_hack
20594 "
20595 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20596   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20597
20598 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20599   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20600   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20601       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20602   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20603 which seems to be undefined.  Please make sure it is defined" >&5
20604 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20605 which seems to be undefined.  Please make sure it is defined" >&2;}
20606
20607   rm -f "$ac_tmp/stdin"
20608   case $ac_file in
20609   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20610   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20611   esac \
20612   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20613  ;;
20614   :H)
20615   #
20616   # CONFIG_HEADER
20617   #
20618   if test x"$ac_file" != x-; then
20619     {
20620       $as_echo "/* $configure_input  */" \
20621       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20622     } >"$ac_tmp/config.h" \
20623       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20624     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20625       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20626 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20627     else
20628       rm -f "$ac_file"
20629       mv "$ac_tmp/config.h" "$ac_file" \
20630         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20631     fi
20632   else
20633     $as_echo "/* $configure_input  */" \
20634       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20635       || as_fn_error $? "could not create -" "$LINENO" 5
20636   fi
20637 # Compute "$ac_file"'s index in $config_headers.
20638 _am_arg="$ac_file"
20639 _am_stamp_count=1
20640 for _am_header in $config_headers :; do
20641   case $_am_header in
20642     $_am_arg | $_am_arg:* )
20643       break ;;
20644     * )
20645       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20646   esac
20647 done
20648 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20649 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20650          X"$_am_arg" : 'X\(//\)[^/]' \| \
20651          X"$_am_arg" : 'X\(//\)$' \| \
20652          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20653 $as_echo X"$_am_arg" |
20654     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20655             s//\1/
20656             q
20657           }
20658           /^X\(\/\/\)[^/].*/{
20659             s//\1/
20660             q
20661           }
20662           /^X\(\/\/\)$/{
20663             s//\1/
20664             q
20665           }
20666           /^X\(\/\).*/{
20667             s//\1/
20668             q
20669           }
20670           s/.*/./; q'`/stamp-h$_am_stamp_count
20671  ;;
20672   :L)
20673   #
20674   # CONFIG_LINK
20675   #
20676
20677   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
20678     :
20679   else
20680     # Prefer the file from the source tree if names are identical.
20681     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
20682       ac_source=$srcdir/$ac_source
20683     fi
20684
20685     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
20686 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
20687
20688     if test ! -r "$ac_source"; then
20689       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
20690     fi
20691     rm -f "$ac_file"
20692
20693     # Try a relative symlink, then a hard link, then a copy.
20694     case $ac_source in
20695     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
20696         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
20697     esac
20698     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
20699       ln "$ac_source" "$ac_file" 2>/dev/null ||
20700       cp -p "$ac_source" "$ac_file" ||
20701       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
20702   fi
20703  ;;
20704   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20705 $as_echo "$as_me: executing $ac_file commands" >&6;}
20706  ;;
20707   esac
20708
20709
20710   case $ac_file$ac_mode in
20711     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20712   # Older Autoconf quotes --file arguments for eval, but not when files
20713   # are listed without --file.  Let's play safe and only enable the eval
20714   # if we detect the quoting.
20715   case $CONFIG_FILES in
20716   *\'*) eval set x "$CONFIG_FILES" ;;
20717   *)   set x $CONFIG_FILES ;;
20718   esac
20719   shift
20720   for mf
20721   do
20722     # Strip MF so we end up with the name of the file.
20723     mf=`echo "$mf" | sed -e 's/:.*$//'`
20724     # Check whether this is an Automake generated Makefile or not.
20725     # We used to match only the files named 'Makefile.in', but
20726     # some people rename them; so instead we look at the file content.
20727     # Grep'ing the first line is not enough: some people post-process
20728     # each Makefile.in and add a new line on top of each file to say so.
20729     # Grep'ing the whole file is not good either: AIX grep has a line
20730     # limit of 2048, but all sed's we know have understand at least 4000.
20731     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20732       dirpart=`$as_dirname -- "$mf" ||
20733 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20734          X"$mf" : 'X\(//\)[^/]' \| \
20735          X"$mf" : 'X\(//\)$' \| \
20736          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20737 $as_echo X"$mf" |
20738     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20739             s//\1/
20740             q
20741           }
20742           /^X\(\/\/\)[^/].*/{
20743             s//\1/
20744             q
20745           }
20746           /^X\(\/\/\)$/{
20747             s//\1/
20748             q
20749           }
20750           /^X\(\/\).*/{
20751             s//\1/
20752             q
20753           }
20754           s/.*/./; q'`
20755     else
20756       continue
20757     fi
20758     # Extract the definition of DEPDIR, am__include, and am__quote
20759     # from the Makefile without running 'make'.
20760     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20761     test -z "$DEPDIR" && continue
20762     am__include=`sed -n 's/^am__include = //p' < "$mf"`
20763     test -z "$am__include" && continue
20764     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20765     # Find all dependency output files, they are included files with
20766     # $(DEPDIR) in their names.  We invoke sed twice because it is the
20767     # simplest approach to changing $(DEPDIR) to its actual value in the
20768     # expansion.
20769     for file in `sed -n "
20770       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20771          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20772       # Make sure the directory exists.
20773       test -f "$dirpart/$file" && continue
20774       fdir=`$as_dirname -- "$file" ||
20775 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20776          X"$file" : 'X\(//\)[^/]' \| \
20777          X"$file" : 'X\(//\)$' \| \
20778          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20779 $as_echo X"$file" |
20780     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20781             s//\1/
20782             q
20783           }
20784           /^X\(\/\/\)[^/].*/{
20785             s//\1/
20786             q
20787           }
20788           /^X\(\/\/\)$/{
20789             s//\1/
20790             q
20791           }
20792           /^X\(\/\).*/{
20793             s//\1/
20794             q
20795           }
20796           s/.*/./; q'`
20797       as_dir=$dirpart/$fdir; as_fn_mkdir_p
20798       # echo "creating $dirpart/$file"
20799       echo '# dummy' > "$dirpart/$file"
20800     done
20801   done
20802 }
20803  ;;
20804     "libtool":C)
20805
20806     # See if we are running on zsh, and set the options which allow our
20807     # commands through without removal of \ escapes.
20808     if test -n "${ZSH_VERSION+set}" ; then
20809       setopt NO_GLOB_SUBST
20810     fi
20811
20812     cfgfile="${ofile}T"
20813     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20814     $RM "$cfgfile"
20815
20816     cat <<_LT_EOF >> "$cfgfile"
20817 #! $SHELL
20818
20819 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20820 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20821 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20822 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20823 #
20824 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20825 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20826 #                 Foundation, Inc.
20827 #   Written by Gordon Matzigkeit, 1996
20828 #
20829 #   This file is part of GNU Libtool.
20830 #
20831 # GNU Libtool is free software; you can redistribute it and/or
20832 # modify it under the terms of the GNU General Public License as
20833 # published by the Free Software Foundation; either version 2 of
20834 # the License, or (at your option) any later version.
20835 #
20836 # As a special exception to the GNU General Public License,
20837 # if you distribute this file as part of a program or library that
20838 # is built using GNU Libtool, you may include this file under the
20839 # same distribution terms that you use for the rest of that program.
20840 #
20841 # GNU Libtool is distributed in the hope that it will be useful,
20842 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20843 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20844 # GNU General Public License for more details.
20845 #
20846 # You should have received a copy of the GNU General Public License
20847 # along with GNU Libtool; see the file COPYING.  If not, a copy
20848 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20849 # obtained by writing to the Free Software Foundation, Inc.,
20850 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20851
20852
20853 # The names of the tagged configurations supported by this script.
20854 available_tags="RC "
20855
20856 # ### BEGIN LIBTOOL CONFIG
20857
20858 # Which release of libtool.m4 was used?
20859 macro_version=$macro_version
20860 macro_revision=$macro_revision
20861
20862 # Assembler program.
20863 AS=$lt_AS
20864
20865 # DLL creation program.
20866 DLLTOOL=$lt_DLLTOOL
20867
20868 # Object dumper program.
20869 OBJDUMP=$lt_OBJDUMP
20870
20871 # Whether or not to build static libraries.
20872 build_old_libs=$enable_static
20873
20874 # Whether or not to build shared libraries.
20875 build_libtool_libs=$enable_shared
20876
20877 # What type of objects to build.
20878 pic_mode=$pic_mode
20879
20880 # Whether or not to optimize for fast installation.
20881 fast_install=$enable_fast_install
20882
20883 # Shell to use when invoking shell scripts.
20884 SHELL=$lt_SHELL
20885
20886 # An echo program that protects backslashes.
20887 ECHO=$lt_ECHO
20888
20889 # The PATH separator for the build system.
20890 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20891
20892 # The host system.
20893 host_alias=$host_alias
20894 host=$host
20895 host_os=$host_os
20896
20897 # The build system.
20898 build_alias=$build_alias
20899 build=$build
20900 build_os=$build_os
20901
20902 # A sed program that does not truncate output.
20903 SED=$lt_SED
20904
20905 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20906 Xsed="\$SED -e 1s/^X//"
20907
20908 # A grep program that handles long lines.
20909 GREP=$lt_GREP
20910
20911 # An ERE matcher.
20912 EGREP=$lt_EGREP
20913
20914 # A literal string matcher.
20915 FGREP=$lt_FGREP
20916
20917 # A BSD- or MS-compatible name lister.
20918 NM=$lt_NM
20919
20920 # Whether we need soft or hard links.
20921 LN_S=$lt_LN_S
20922
20923 # What is the maximum length of a command?
20924 max_cmd_len=$max_cmd_len
20925
20926 # Object file suffix (normally "o").
20927 objext=$ac_objext
20928
20929 # Executable file suffix (normally "").
20930 exeext=$exeext
20931
20932 # whether the shell understands "unset".
20933 lt_unset=$lt_unset
20934
20935 # turn spaces into newlines.
20936 SP2NL=$lt_lt_SP2NL
20937
20938 # turn newlines into spaces.
20939 NL2SP=$lt_lt_NL2SP
20940
20941 # convert \$build file names to \$host format.
20942 to_host_file_cmd=$lt_cv_to_host_file_cmd
20943
20944 # convert \$build files to toolchain format.
20945 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20946
20947 # Method to check whether dependent libraries are shared objects.
20948 deplibs_check_method=$lt_deplibs_check_method
20949
20950 # Command to use when deplibs_check_method = "file_magic".
20951 file_magic_cmd=$lt_file_magic_cmd
20952
20953 # How to find potential files when deplibs_check_method = "file_magic".
20954 file_magic_glob=$lt_file_magic_glob
20955
20956 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20957 want_nocaseglob=$lt_want_nocaseglob
20958
20959 # Command to associate shared and link libraries.
20960 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20961
20962 # The archiver.
20963 AR=$lt_AR
20964
20965 # Flags to create an archive.
20966 AR_FLAGS=$lt_AR_FLAGS
20967
20968 # How to feed a file listing to the archiver.
20969 archiver_list_spec=$lt_archiver_list_spec
20970
20971 # A symbol stripping program.
20972 STRIP=$lt_STRIP
20973
20974 # Commands used to install an old-style archive.
20975 RANLIB=$lt_RANLIB
20976 old_postinstall_cmds=$lt_old_postinstall_cmds
20977 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20978
20979 # Whether to use a lock for old archive extraction.
20980 lock_old_archive_extraction=$lock_old_archive_extraction
20981
20982 # A C compiler.
20983 LTCC=$lt_CC
20984
20985 # LTCC compiler flags.
20986 LTCFLAGS=$lt_CFLAGS
20987
20988 # Take the output of nm and produce a listing of raw symbols and C names.
20989 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20990
20991 # Transform the output of nm in a proper C declaration.
20992 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20993
20994 # Transform the output of nm in a C name address pair.
20995 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20996
20997 # Transform the output of nm in a C name address pair when lib prefix is needed.
20998 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20999
21000 # Specify filename containing input files for \$NM.
21001 nm_file_list_spec=$lt_nm_file_list_spec
21002
21003 # The root where to search for dependent libraries,and in which our libraries should be installed.
21004 lt_sysroot=$lt_sysroot
21005
21006 # The name of the directory that contains temporary libtool files.
21007 objdir=$objdir
21008
21009 # Used to examine libraries when file_magic_cmd begins with "file".
21010 MAGIC_CMD=$MAGIC_CMD
21011
21012 # Must we lock files when doing compilation?
21013 need_locks=$lt_need_locks
21014
21015 # Manifest tool.
21016 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21017
21018 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21019 DSYMUTIL=$lt_DSYMUTIL
21020
21021 # Tool to change global to local symbols on Mac OS X.
21022 NMEDIT=$lt_NMEDIT
21023
21024 # Tool to manipulate fat objects and archives on Mac OS X.
21025 LIPO=$lt_LIPO
21026
21027 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21028 OTOOL=$lt_OTOOL
21029
21030 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21031 OTOOL64=$lt_OTOOL64
21032
21033 # Old archive suffix (normally "a").
21034 libext=$libext
21035
21036 # Shared library suffix (normally ".so").
21037 shrext_cmds=$lt_shrext_cmds
21038
21039 # The commands to extract the exported symbol list from a shared archive.
21040 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21041
21042 # Variables whose values should be saved in libtool wrapper scripts and
21043 # restored at link time.
21044 variables_saved_for_relink=$lt_variables_saved_for_relink
21045
21046 # Do we need the "lib" prefix for modules?
21047 need_lib_prefix=$need_lib_prefix
21048
21049 # Do we need a version for libraries?
21050 need_version=$need_version
21051
21052 # Library versioning type.
21053 version_type=$version_type
21054
21055 # Shared library runtime path variable.
21056 runpath_var=$runpath_var
21057
21058 # Shared library path variable.
21059 shlibpath_var=$shlibpath_var
21060
21061 # Is shlibpath searched before the hard-coded library search path?
21062 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21063
21064 # Format of library name prefix.
21065 libname_spec=$lt_libname_spec
21066
21067 # List of archive names.  First name is the real one, the rest are links.
21068 # The last name is the one that the linker finds with -lNAME
21069 library_names_spec=$lt_library_names_spec
21070
21071 # The coded name of the library, if different from the real name.
21072 soname_spec=$lt_soname_spec
21073
21074 # Permission mode override for installation of shared libraries.
21075 install_override_mode=$lt_install_override_mode
21076
21077 # Command to use after installation of a shared archive.
21078 postinstall_cmds=$lt_postinstall_cmds
21079
21080 # Command to use after uninstallation of a shared archive.
21081 postuninstall_cmds=$lt_postuninstall_cmds
21082
21083 # Commands used to finish a libtool library installation in a directory.
21084 finish_cmds=$lt_finish_cmds
21085
21086 # As "finish_cmds", except a single script fragment to be evaled but
21087 # not shown.
21088 finish_eval=$lt_finish_eval
21089
21090 # Whether we should hardcode library paths into libraries.
21091 hardcode_into_libs=$hardcode_into_libs
21092
21093 # Compile-time system search path for libraries.
21094 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21095
21096 # Run-time system search path for libraries.
21097 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21098
21099 # Whether dlopen is supported.
21100 dlopen_support=$enable_dlopen
21101
21102 # Whether dlopen of programs is supported.
21103 dlopen_self=$enable_dlopen_self
21104
21105 # Whether dlopen of statically linked programs is supported.
21106 dlopen_self_static=$enable_dlopen_self_static
21107
21108 # Commands to strip libraries.
21109 old_striplib=$lt_old_striplib
21110 striplib=$lt_striplib
21111
21112
21113 # The linker used to build libraries.
21114 LD=$lt_LD
21115
21116 # How to create reloadable object files.
21117 reload_flag=$lt_reload_flag
21118 reload_cmds=$lt_reload_cmds
21119
21120 # Commands used to build an old-style archive.
21121 old_archive_cmds=$lt_old_archive_cmds
21122
21123 # A language specific compiler.
21124 CC=$lt_compiler
21125
21126 # Is the compiler the GNU compiler?
21127 with_gcc=$GCC
21128
21129 # Compiler flag to turn off builtin functions.
21130 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21131
21132 # Additional compiler flags for building library objects.
21133 pic_flag=$lt_lt_prog_compiler_pic
21134
21135 # How to pass a linker flag through the compiler.
21136 wl=$lt_lt_prog_compiler_wl
21137
21138 # Compiler flag to prevent dynamic linking.
21139 link_static_flag=$lt_lt_prog_compiler_static
21140
21141 # Does compiler simultaneously support -c and -o options?
21142 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21143
21144 # Whether or not to add -lc for building shared libraries.
21145 build_libtool_need_lc=$archive_cmds_need_lc
21146
21147 # Whether or not to disallow shared libs when runtime libs are static.
21148 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21149
21150 # Compiler flag to allow reflexive dlopens.
21151 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21152
21153 # Compiler flag to generate shared objects directly from archives.
21154 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21155
21156 # Whether the compiler copes with passing no objects directly.
21157 compiler_needs_object=$lt_compiler_needs_object
21158
21159 # Create an old-style archive from a shared archive.
21160 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21161
21162 # Create a temporary old-style archive to link instead of a shared archive.
21163 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21164
21165 # Commands used to build a shared archive.
21166 archive_cmds=$lt_archive_cmds
21167 archive_expsym_cmds=$lt_archive_expsym_cmds
21168
21169 # Commands used to build a loadable module if different from building
21170 # a shared archive.
21171 module_cmds=$lt_module_cmds
21172 module_expsym_cmds=$lt_module_expsym_cmds
21173
21174 # Whether we are building with GNU ld or not.
21175 with_gnu_ld=$lt_with_gnu_ld
21176
21177 # Flag that allows shared libraries with undefined symbols to be built.
21178 allow_undefined_flag=$lt_allow_undefined_flag
21179
21180 # Flag that enforces no undefined symbols.
21181 no_undefined_flag=$lt_no_undefined_flag
21182
21183 # Flag to hardcode \$libdir into a binary during linking.
21184 # This must work even if \$libdir does not exist
21185 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21186
21187 # Whether we need a single "-rpath" flag with a separated argument.
21188 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21189
21190 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21191 # DIR into the resulting binary.
21192 hardcode_direct=$hardcode_direct
21193
21194 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21195 # DIR into the resulting binary and the resulting library dependency is
21196 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21197 # library is relocated.
21198 hardcode_direct_absolute=$hardcode_direct_absolute
21199
21200 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21201 # into the resulting binary.
21202 hardcode_minus_L=$hardcode_minus_L
21203
21204 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21205 # into the resulting binary.
21206 hardcode_shlibpath_var=$hardcode_shlibpath_var
21207
21208 # Set to "yes" if building a shared library automatically hardcodes DIR
21209 # into the library and all subsequent libraries and executables linked
21210 # against it.
21211 hardcode_automatic=$hardcode_automatic
21212
21213 # Set to yes if linker adds runtime paths of dependent libraries
21214 # to runtime path list.
21215 inherit_rpath=$inherit_rpath
21216
21217 # Whether libtool must link a program against all its dependency libraries.
21218 link_all_deplibs=$link_all_deplibs
21219
21220 # Set to "yes" if exported symbols are required.
21221 always_export_symbols=$always_export_symbols
21222
21223 # The commands to list exported symbols.
21224 export_symbols_cmds=$lt_export_symbols_cmds
21225
21226 # Symbols that should not be listed in the preloaded symbols.
21227 exclude_expsyms=$lt_exclude_expsyms
21228
21229 # Symbols that must always be exported.
21230 include_expsyms=$lt_include_expsyms
21231
21232 # Commands necessary for linking programs (against libraries) with templates.
21233 prelink_cmds=$lt_prelink_cmds
21234
21235 # Commands necessary for finishing linking programs.
21236 postlink_cmds=$lt_postlink_cmds
21237
21238 # Specify filename containing input files.
21239 file_list_spec=$lt_file_list_spec
21240
21241 # How to hardcode a shared library path into an executable.
21242 hardcode_action=$hardcode_action
21243
21244 # ### END LIBTOOL CONFIG
21245
21246 _LT_EOF
21247
21248   case $host_os in
21249   aix3*)
21250     cat <<\_LT_EOF >> "$cfgfile"
21251 # AIX sometimes has problems with the GCC collect2 program.  For some
21252 # reason, if we set the COLLECT_NAMES environment variable, the problems
21253 # vanish in a puff of smoke.
21254 if test "X${COLLECT_NAMES+set}" != Xset; then
21255   COLLECT_NAMES=
21256   export COLLECT_NAMES
21257 fi
21258 _LT_EOF
21259     ;;
21260   esac
21261
21262
21263 ltmain="$ac_aux_dir/ltmain.sh"
21264
21265
21266   # We use sed instead of cat because bash on DJGPP gets confused if
21267   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21268   # text mode, it properly converts lines to CR/LF.  This bash problem
21269   # is reportedly fixed, but why not run on old versions too?
21270   sed '$q' "$ltmain" >> "$cfgfile" \
21271      || (rm -f "$cfgfile"; exit 1)
21272
21273   if test x"$xsi_shell" = xyes; then
21274   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21275 func_dirname ()\
21276 {\
21277 \    case ${1} in\
21278 \      */*) func_dirname_result="${1%/*}${2}" ;;\
21279 \      *  ) func_dirname_result="${3}" ;;\
21280 \    esac\
21281 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21282   && mv -f "$cfgfile.tmp" "$cfgfile" \
21283     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21284 test 0 -eq $? || _lt_function_replace_fail=:
21285
21286
21287   sed -e '/^func_basename ()$/,/^} # func_basename /c\
21288 func_basename ()\
21289 {\
21290 \    func_basename_result="${1##*/}"\
21291 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21292   && mv -f "$cfgfile.tmp" "$cfgfile" \
21293     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21294 test 0 -eq $? || _lt_function_replace_fail=:
21295
21296
21297   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21298 func_dirname_and_basename ()\
21299 {\
21300 \    case ${1} in\
21301 \      */*) func_dirname_result="${1%/*}${2}" ;;\
21302 \      *  ) func_dirname_result="${3}" ;;\
21303 \    esac\
21304 \    func_basename_result="${1##*/}"\
21305 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21306   && mv -f "$cfgfile.tmp" "$cfgfile" \
21307     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21308 test 0 -eq $? || _lt_function_replace_fail=:
21309
21310
21311   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21312 func_stripname ()\
21313 {\
21314 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21315 \    # positional parameters, so assign one to ordinary parameter first.\
21316 \    func_stripname_result=${3}\
21317 \    func_stripname_result=${func_stripname_result#"${1}"}\
21318 \    func_stripname_result=${func_stripname_result%"${2}"}\
21319 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21320   && mv -f "$cfgfile.tmp" "$cfgfile" \
21321     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21322 test 0 -eq $? || _lt_function_replace_fail=:
21323
21324
21325   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21326 func_split_long_opt ()\
21327 {\
21328 \    func_split_long_opt_name=${1%%=*}\
21329 \    func_split_long_opt_arg=${1#*=}\
21330 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21331   && mv -f "$cfgfile.tmp" "$cfgfile" \
21332     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21333 test 0 -eq $? || _lt_function_replace_fail=:
21334
21335
21336   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21337 func_split_short_opt ()\
21338 {\
21339 \    func_split_short_opt_arg=${1#??}\
21340 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21341 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21342   && mv -f "$cfgfile.tmp" "$cfgfile" \
21343     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21344 test 0 -eq $? || _lt_function_replace_fail=:
21345
21346
21347   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21348 func_lo2o ()\
21349 {\
21350 \    case ${1} in\
21351 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21352 \      *)    func_lo2o_result=${1} ;;\
21353 \    esac\
21354 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21355   && mv -f "$cfgfile.tmp" "$cfgfile" \
21356     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21357 test 0 -eq $? || _lt_function_replace_fail=:
21358
21359
21360   sed -e '/^func_xform ()$/,/^} # func_xform /c\
21361 func_xform ()\
21362 {\
21363     func_xform_result=${1%.*}.lo\
21364 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21365   && mv -f "$cfgfile.tmp" "$cfgfile" \
21366     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21367 test 0 -eq $? || _lt_function_replace_fail=:
21368
21369
21370   sed -e '/^func_arith ()$/,/^} # func_arith /c\
21371 func_arith ()\
21372 {\
21373     func_arith_result=$(( $* ))\
21374 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21375   && mv -f "$cfgfile.tmp" "$cfgfile" \
21376     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21377 test 0 -eq $? || _lt_function_replace_fail=:
21378
21379
21380   sed -e '/^func_len ()$/,/^} # func_len /c\
21381 func_len ()\
21382 {\
21383     func_len_result=${#1}\
21384 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21385   && mv -f "$cfgfile.tmp" "$cfgfile" \
21386     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21387 test 0 -eq $? || _lt_function_replace_fail=:
21388
21389 fi
21390
21391 if test x"$lt_shell_append" = xyes; then
21392   sed -e '/^func_append ()$/,/^} # func_append /c\
21393 func_append ()\
21394 {\
21395     eval "${1}+=\\${2}"\
21396 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21397   && mv -f "$cfgfile.tmp" "$cfgfile" \
21398     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21399 test 0 -eq $? || _lt_function_replace_fail=:
21400
21401
21402   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21403 func_append_quoted ()\
21404 {\
21405 \    func_quote_for_eval "${2}"\
21406 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21407 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21408   && mv -f "$cfgfile.tmp" "$cfgfile" \
21409     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21410 test 0 -eq $? || _lt_function_replace_fail=:
21411
21412
21413   # Save a `func_append' function call where possible by direct use of '+='
21414   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21415     && mv -f "$cfgfile.tmp" "$cfgfile" \
21416       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21417   test 0 -eq $? || _lt_function_replace_fail=:
21418 else
21419   # Save a `func_append' function call even when '+=' is not available
21420   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21421     && mv -f "$cfgfile.tmp" "$cfgfile" \
21422       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21423   test 0 -eq $? || _lt_function_replace_fail=:
21424 fi
21425
21426 if test x"$_lt_function_replace_fail" = x":"; then
21427   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21428 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21429 fi
21430
21431
21432    mv -f "$cfgfile" "$ofile" ||
21433     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21434   chmod +x "$ofile"
21435
21436
21437     cat <<_LT_EOF >> "$ofile"
21438
21439 # ### BEGIN LIBTOOL TAG CONFIG: RC
21440
21441 # The linker used to build libraries.
21442 LD=$lt_LD_RC
21443
21444 # How to create reloadable object files.
21445 reload_flag=$lt_reload_flag_RC
21446 reload_cmds=$lt_reload_cmds_RC
21447
21448 # Commands used to build an old-style archive.
21449 old_archive_cmds=$lt_old_archive_cmds_RC
21450
21451 # A language specific compiler.
21452 CC=$lt_compiler_RC
21453
21454 # Is the compiler the GNU compiler?
21455 with_gcc=$GCC_RC
21456
21457 # Compiler flag to turn off builtin functions.
21458 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21459
21460 # Additional compiler flags for building library objects.
21461 pic_flag=$lt_lt_prog_compiler_pic_RC
21462
21463 # How to pass a linker flag through the compiler.
21464 wl=$lt_lt_prog_compiler_wl_RC
21465
21466 # Compiler flag to prevent dynamic linking.
21467 link_static_flag=$lt_lt_prog_compiler_static_RC
21468
21469 # Does compiler simultaneously support -c and -o options?
21470 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21471
21472 # Whether or not to add -lc for building shared libraries.
21473 build_libtool_need_lc=$archive_cmds_need_lc_RC
21474
21475 # Whether or not to disallow shared libs when runtime libs are static.
21476 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21477
21478 # Compiler flag to allow reflexive dlopens.
21479 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21480
21481 # Compiler flag to generate shared objects directly from archives.
21482 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21483
21484 # Whether the compiler copes with passing no objects directly.
21485 compiler_needs_object=$lt_compiler_needs_object_RC
21486
21487 # Create an old-style archive from a shared archive.
21488 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21489
21490 # Create a temporary old-style archive to link instead of a shared archive.
21491 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21492
21493 # Commands used to build a shared archive.
21494 archive_cmds=$lt_archive_cmds_RC
21495 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21496
21497 # Commands used to build a loadable module if different from building
21498 # a shared archive.
21499 module_cmds=$lt_module_cmds_RC
21500 module_expsym_cmds=$lt_module_expsym_cmds_RC
21501
21502 # Whether we are building with GNU ld or not.
21503 with_gnu_ld=$lt_with_gnu_ld_RC
21504
21505 # Flag that allows shared libraries with undefined symbols to be built.
21506 allow_undefined_flag=$lt_allow_undefined_flag_RC
21507
21508 # Flag that enforces no undefined symbols.
21509 no_undefined_flag=$lt_no_undefined_flag_RC
21510
21511 # Flag to hardcode \$libdir into a binary during linking.
21512 # This must work even if \$libdir does not exist
21513 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21514
21515 # Whether we need a single "-rpath" flag with a separated argument.
21516 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21517
21518 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21519 # DIR into the resulting binary.
21520 hardcode_direct=$hardcode_direct_RC
21521
21522 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21523 # DIR into the resulting binary and the resulting library dependency is
21524 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21525 # library is relocated.
21526 hardcode_direct_absolute=$hardcode_direct_absolute_RC
21527
21528 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21529 # into the resulting binary.
21530 hardcode_minus_L=$hardcode_minus_L_RC
21531
21532 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21533 # into the resulting binary.
21534 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21535
21536 # Set to "yes" if building a shared library automatically hardcodes DIR
21537 # into the library and all subsequent libraries and executables linked
21538 # against it.
21539 hardcode_automatic=$hardcode_automatic_RC
21540
21541 # Set to yes if linker adds runtime paths of dependent libraries
21542 # to runtime path list.
21543 inherit_rpath=$inherit_rpath_RC
21544
21545 # Whether libtool must link a program against all its dependency libraries.
21546 link_all_deplibs=$link_all_deplibs_RC
21547
21548 # Set to "yes" if exported symbols are required.
21549 always_export_symbols=$always_export_symbols_RC
21550
21551 # The commands to list exported symbols.
21552 export_symbols_cmds=$lt_export_symbols_cmds_RC
21553
21554 # Symbols that should not be listed in the preloaded symbols.
21555 exclude_expsyms=$lt_exclude_expsyms_RC
21556
21557 # Symbols that must always be exported.
21558 include_expsyms=$lt_include_expsyms_RC
21559
21560 # Commands necessary for linking programs (against libraries) with templates.
21561 prelink_cmds=$lt_prelink_cmds_RC
21562
21563 # Commands necessary for finishing linking programs.
21564 postlink_cmds=$lt_postlink_cmds_RC
21565
21566 # Specify filename containing input files.
21567 file_list_spec=$lt_file_list_spec_RC
21568
21569 # How to hardcode a shared library path into an executable.
21570 hardcode_action=$hardcode_action_RC
21571
21572 # ### END LIBTOOL TAG CONFIG: RC
21573 _LT_EOF
21574
21575  ;;
21576     "gcrypt-conf":C)
21577 chmod +x src/libgcrypt-config
21578  ;;
21579     "tests/hashtest-256g":F) chmod +x tests/hashtest-256g ;;
21580     "tests/basic-disable-all-hwf":F) chmod +x tests/basic-disable-all-hwf ;;
21581
21582   esac
21583 done # for ac_tag
21584
21585
21586 as_fn_exit 0
21587 _ACEOF
21588 ac_clean_files=$ac_clean_files_save
21589
21590 test $ac_write_fail = 0 ||
21591   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21592
21593
21594 # configure is writing to config.log, and then calls config.status.
21595 # config.status does its own redirection, appending to config.log.
21596 # Unfortunately, on DOS this fails, as config.log is still kept open
21597 # by configure, so config.status won't be able to write to it; its
21598 # output is simply discarded.  So we exec the FD to /dev/null,
21599 # effectively closing config.log, so it can be properly (re)opened and
21600 # appended to by config.status.  When coming back to configure, we
21601 # need to make the FD available again.
21602 if test "$no_create" != yes; then
21603   ac_cs_success=:
21604   ac_config_status_args=
21605   test "$silent" = yes &&
21606     ac_config_status_args="$ac_config_status_args --quiet"
21607   exec 5>/dev/null
21608   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21609   exec 5>>config.log
21610   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21611   # would make configure fail if this is the last instruction.
21612   $ac_cs_success || as_fn_exit 1
21613 fi
21614 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21615   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21616 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21617 fi
21618
21619
21620
21621 detection_module="${GCRYPT_HWF_MODULES%.lo}"
21622 test -n "$detection_module" || detection_module="none"
21623
21624 # Give some feedback
21625
21626      echo "         " 1>&6
21627
21628
21629      echo "        Libgcrypt v${VERSION} has been configured as follows:" 1>&6
21630
21631
21632      echo "         " 1>&6
21633
21634
21635      echo "        Platform:                  $PRINTABLE_OS_NAME ($host)" 1>&6
21636
21637
21638      echo "        Hardware detection module: $detection_module" 1>&6
21639
21640
21641     tmp="        Enabled cipher algorithms:"
21642     tmpi="abc"
21643     if test "${#tmpi}" -ne 3 >/dev/null 2>&1 ; then
21644             echo "$tmp $enabled_ciphers" 1>&6
21645     else
21646       tmpi=`echo "$tmp"| sed 's/./ /g'`
21647       echo $enabled_ciphers EOF | tr ' ' '\n' | \
21648         while read word; do
21649           if test "${#tmp}" -gt 70 ; then
21650             echo "$tmp" 1>&6
21651             tmp="$tmpi"
21652           fi
21653           if test "$word" = "EOF" ; then
21654             echo "$tmp" 1>&6
21655           else
21656             tmp="$tmp $word"
21657           fi
21658         done
21659     fi
21660
21661
21662     tmp="        Enabled digest algorithms:"
21663     tmpi="abc"
21664     if test "${#tmpi}" -ne 3 >/dev/null 2>&1 ; then
21665             echo "$tmp $enabled_digests" 1>&6
21666     else
21667       tmpi=`echo "$tmp"| sed 's/./ /g'`
21668       echo $enabled_digests EOF | tr ' ' '\n' | \
21669         while read word; do
21670           if test "${#tmp}" -gt 70 ; then
21671             echo "$tmp" 1>&6
21672             tmp="$tmpi"
21673           fi
21674           if test "$word" = "EOF" ; then
21675             echo "$tmp" 1>&6
21676           else
21677             tmp="$tmp $word"
21678           fi
21679         done
21680     fi
21681
21682
21683     tmp="        Enabled kdf algorithms:   "
21684     tmpi="abc"
21685     if test "${#tmpi}" -ne 3 >/dev/null 2>&1 ; then
21686             echo "$tmp $enabled_kdfs" 1>&6
21687     else
21688       tmpi=`echo "$tmp"| sed 's/./ /g'`
21689       echo $enabled_kdfs EOF | tr ' ' '\n' | \
21690         while read word; do
21691           if test "${#tmp}" -gt 70 ; then
21692             echo "$tmp" 1>&6
21693             tmp="$tmpi"
21694           fi
21695           if test "$word" = "EOF" ; then
21696             echo "$tmp" 1>&6
21697           else
21698             tmp="$tmp $word"
21699           fi
21700         done
21701     fi
21702
21703
21704     tmp="        Enabled pubkey algorithms:"
21705     tmpi="abc"
21706     if test "${#tmpi}" -ne 3 >/dev/null 2>&1 ; then
21707             echo "$tmp $enabled_pubkey_ciphers" 1>&6
21708     else
21709       tmpi=`echo "$tmp"| sed 's/./ /g'`
21710       echo $enabled_pubkey_ciphers EOF | tr ' ' '\n' | \
21711         while read word; do
21712           if test "${#tmp}" -gt 70 ; then
21713             echo "$tmp" 1>&6
21714             tmp="$tmpi"
21715           fi
21716           if test "$word" = "EOF" ; then
21717             echo "$tmp" 1>&6
21718           else
21719             tmp="$tmp $word"
21720           fi
21721         done
21722     fi
21723
21724
21725      echo "        Random number generator:   $random" 1>&6
21726
21727
21728      echo "        Try using jitter entropy:  $jentsupport" 1>&6
21729
21730
21731      echo "        Using linux capabilities:  $use_capabilities" 1>&6
21732
21733
21734      echo "        Try using Padlock crypto:  $padlocksupport" 1>&6
21735
21736
21737      echo "        Try using AES-NI crypto:   $aesnisupport" 1>&6
21738
21739
21740      echo "        Try using Intel PCLMUL:    $pclmulsupport" 1>&6
21741
21742
21743      echo "        Try using Intel SSE4.1:    $sse41support" 1>&6
21744
21745
21746      echo "        Try using DRNG (RDRAND):   $drngsupport" 1>&6
21747
21748
21749      echo "        Try using Intel AVX:       $avxsupport" 1>&6
21750
21751
21752      echo "        Try using Intel AVX2:      $avx2support" 1>&6
21753
21754
21755      echo "        Try using ARM NEON:        $neonsupport" 1>&6
21756
21757
21758      echo "        Try using ARMv8 crypto:    $armcryptosupport" 1>&6
21759
21760
21761      echo "         " 1>&6
21762
21763
21764 if test "x${gpg_config_script_warn}" != x; then
21765 cat <<G10EOF
21766         Mismatches between the target platform and the to
21767         be used libraries have been been detected for:
21768          ${gpg_config_script_warn}
21769         Please check above for warning messages.
21770
21771 G10EOF
21772 fi
21773
21774 if test "$gcry_cv_gcc_attribute_aligned" != "yes" ; then
21775 cat <<G10EOF
21776    Please not that your compiler does not support the GCC style
21777    aligned attribute. Using this software may evoke bus errors.
21778
21779 G10EOF
21780 fi
21781
21782 if test -n "$gpl"; then
21783   echo "Please note that you are building a version of Libgcrypt with"
21784   echo "  $gpl"
21785   echo "included.  These parts are licensed under the GPL and thus the"
21786   echo "use of this library has to comply with the conditions of the GPL."
21787   echo ""
21788 fi