Debian Codegraph @

grub-core/lib/libgcrypt/configure

raw
1 #! /bin/sh
2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.71 for libgcrypt 1.11.0.
5 #
6 # Report bugs to <https://bugs.gnupg.org>.
7 #
8 #
9 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 as_nop=:
22 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23 then :
24 emulate sh
25 NULLCMD=:
26 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27 # is contrary to our usage. Disable this feature.
28 alias -g '${1+"$@"}'='"$@"'
29 setopt NO_GLOB_SUBST
30 else $as_nop
31 case `(set -o) 2>/dev/null` in #(
32 *posix*) :
33 set -o posix ;; #(
34 *) :
35 ;;
36 esac
37 fi
38
39
40
41 # Reset variables that may have inherited troublesome values from
42 # the environment.
43
44 # IFS needs to be set, to space, tab, and newline, in precisely that order.
45 # (If _AS_PATH_WALK were called with IFS unset, it would have the
46 # side effect of setting IFS to empty, thus disabling word splitting.)
47 # Quoting is to prevent editors from complaining about space-tab.
48 as_nl='
49 '
50 export as_nl
51 IFS=" "" $as_nl"
52
53 PS1='$ '
54 PS2='> '
55 PS4='+ '
56
57 # Ensure predictable behavior from utilities with locale-dependent output.
58 LC_ALL=C
59 export LC_ALL
60 LANGUAGE=C
61 export LANGUAGE
62
63 # We cannot yet rely on "unset" to work, but we need these variables
64 # to be unset--not just set to an empty or harmless value--now, to
65 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
66 # also avoids known problems related to "unset" and subshell syntax
67 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
68 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
69 do eval test \${$as_var+y} \
70 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
71 done
72
73 # Ensure that fds 0, 1, and 2 are open.
74 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
75 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
76 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
77
78 # The user is always right.
79 if ${PATH_SEPARATOR+false} :; then
80 PATH_SEPARATOR=:
81 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
82 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 PATH_SEPARATOR=';'
84 }
85 fi
86
87
88 # Find who we are. Look in the path if we contain no directory separator.
89 as_myself=
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 case $as_dir in #(((
97 '') as_dir=./ ;;
98 */) ;;
99 *) as_dir=$as_dir/ ;;
100 esac
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117
118 # Use a proper internal environment variable to ensure we don't fall
119 # into an infinite loop, continuously re-executing ourselves.
120 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
121 _as_can_reexec=no; export _as_can_reexec;
122 # We cannot yet assume a decent shell, so we have to provide a
123 # neutralization value for shells without unset; and this also
124 # works around shells that cannot unset nonexistent variables.
125 # Preserve -v and -x to the replacement shell.
126 BASH_ENV=/dev/null
127 ENV=/dev/null
128 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
129 case $- in # ((((
130 *v*x* | *x*v* ) as_opts=-vx ;;
131 *v* ) as_opts=-v ;;
132 *x* ) as_opts=-x ;;
133 * ) as_opts= ;;
134 esac
135 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
136 # Admittedly, this is quite paranoid, since all the known shells bail
137 # out after a failed `exec'.
138 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
139 exit 255
140 fi
141 # We don't want this to propagate to other subprocesses.
142 { _as_can_reexec=; unset _as_can_reexec;}
143 if test "x$CONFIG_SHELL" = x; then
144 as_bourne_compatible="as_nop=:
145 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
146 then :
147 emulate sh
148 NULLCMD=:
149 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
150 # is contrary to our usage. Disable this feature.
151 alias -g '\${1+\"\$@\"}'='\"\$@\"'
152 setopt NO_GLOB_SUBST
153 else \$as_nop
154 case \`(set -o) 2>/dev/null\` in #(
155 *posix*) :
156 set -o posix ;; #(
157 *) :
158 ;;
159 esac
160 fi
161 "
162 as_required="as_fn_return () { (exit \$1); }
163 as_fn_success () { as_fn_return 0; }
164 as_fn_failure () { as_fn_return 1; }
165 as_fn_ret_success () { return 0; }
166 as_fn_ret_failure () { return 1; }
167
168 exitcode=0
169 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
170 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
171 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
172 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
173 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
174 then :
175
176 else \$as_nop
177 exitcode=1; echo positional parameters were not saved.
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1
188
189 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
190 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
193 PATH=/empty FPATH=/empty; export PATH FPATH
194 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
195 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else $as_nop
200 as_have_required=no
201 fi
202 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
203 then :
204
205 else $as_nop
206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
207 as_found=false
208 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
209 do
210 IFS=$as_save_IFS
211 case $as_dir in #(((
212 '') as_dir=./ ;;
213 */) ;;
214 *) as_dir=$as_dir/ ;;
215 esac
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
224 then :
225 CONFIG_SHELL=$as_shell as_have_required=yes
226 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
227 then :
228 break 2
229 fi
230 fi
231 done;;
232 esac
233 as_found=false
234 done
235 IFS=$as_save_IFS
236 if $as_found
237 then :
238
239 else $as_nop
240 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
241 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
242 then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi
245 fi
246
247
248 if test "x$CONFIG_SHELL" != x
249 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno
272 then :
273 printf "%s\n" "$0: This script requires a shell more modern than all"
274 printf "%s\n" "$0: the shells that I found on your system."
275 if test ${ZSH_VERSION+y} ; then
276 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 printf "%s\n" "$0: Please tell [email protected] and
280 $0: https://bugs.gnupg.org about your system, including any
281 $0: error possibly output before this message. Then install
282 $0: a modern shell, or manually run the script under such a
283 $0: shell if you do have one."
284 fi
285 exit 1
286 fi
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325 # as_fn_nop
326 # ---------
327 # Do nothing but, unlike ":", preserve the value of $?.
328 as_fn_nop ()
329 {
330 return $?
331 }
332 as_nop=as_fn_nop
333
334 # as_fn_mkdir_p
335 # -------------
336 # Create "$as_dir" as a directory, including parents if necessary.
337 as_fn_mkdir_p ()
338 {
339
340 case $as_dir in #(
341 -*) as_dir=./$as_dir;;
342 esac
343 test -d "$as_dir" || eval $as_mkdir_p || {
344 as_dirs=
345 while :; do
346 case $as_dir in #(
347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348 *) as_qdir=$as_dir;;
349 esac
350 as_dirs="'$as_qdir' $as_dirs"
351 as_dir=`$as_dirname -- "$as_dir" ||
352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353 X"$as_dir" : 'X\(//\)[^/]' \| \
354 X"$as_dir" : 'X\(//\)$' \| \
355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356 printf "%s\n" X"$as_dir" |
357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)[^/].*/{
362 s//\1/
363 q
364 }
365 /^X\(\/\/\)$/{
366 s//\1/
367 q
368 }
369 /^X\(\/\).*/{
370 s//\1/
371 q
372 }
373 s/.*/./; q'`
374 test -d "$as_dir" && break
375 done
376 test -z "$as_dirs" || eval "mkdir $as_dirs"
377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380 } # as_fn_mkdir_p
381
382 # as_fn_executable_p FILE
383 # -----------------------
384 # Test if FILE is an executable regular file.
385 as_fn_executable_p ()
386 {
387 test -f "$1" && test -x "$1"
388 } # as_fn_executable_p
389 # as_fn_append VAR VALUE
390 # ----------------------
391 # Append the text in VALUE to the end of the definition contained in VAR. Take
392 # advantage of any shell optimizations that allow amortized linear growth over
393 # repeated appends, instead of the typical quadratic growth present in naive
394 # implementations.
395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396 then :
397 eval 'as_fn_append ()
398 {
399 eval $1+=\$2
400 }'
401 else $as_nop
402 as_fn_append ()
403 {
404 eval $1=\$$1\$2
405 }
406 fi # as_fn_append
407
408 # as_fn_arith ARG...
409 # ------------------
410 # Perform arithmetic evaluation on the ARGs, and store the result in the
411 # global $as_val. Take advantage of shells that can avoid forks. The arguments
412 # must be portable across $(()) and expr.
413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414 then :
415 eval 'as_fn_arith ()
416 {
417 as_val=$(( $* ))
418 }'
419 else $as_nop
420 as_fn_arith ()
421 {
422 as_val=`expr "$@" || test $? -eq 1`
423 }
424 fi # as_fn_arith
425
426 # as_fn_nop
427 # ---------
428 # Do nothing but, unlike ":", preserve the value of $?.
429 as_fn_nop ()
430 {
431 return $?
432 }
433 as_nop=as_fn_nop
434
435 # as_fn_error STATUS ERROR [LINENO LOG_FD]
436 # ----------------------------------------
437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439 # script with STATUS, using 1 if that was 0.
440 as_fn_error ()
441 {
442 as_status=$1; test $as_status -eq 0 && as_status=1
443 if test "$4"; then
444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446 fi
447 printf "%s\n" "$as_me: error: $2" >&2
448 as_fn_exit $as_status
449 } # as_fn_error
450
451 if expr a : '\(a\)' >/dev/null 2>&1 &&
452 test "X`expr 00001 : '.*\(...\)'`" = X001; then
453 as_expr=expr
454 else
455 as_expr=false
456 fi
457
458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459 as_basename=basename
460 else
461 as_basename=false
462 fi
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466 else
467 as_dirname=false
468 fi
469
470 as_me=`$as_basename -- "$0" ||
471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472 X"$0" : 'X\(//\)$' \| \
473 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474 printf "%s\n" X/"$0" |
475 sed '/^.*\/\([^/][^/]*\)\/*$/{
476 s//\1/
477 q
478 }
479 /^X\/\(\/\/\)$/{
480 s//\1/
481 q
482 }
483 /^X\/\(\/\).*/{
484 s//\1/
485 q
486 }
487 s/.*/./; q'`
488
489 # Avoid depending upon Character Ranges.
490 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493 as_cr_digits='0123456789'
494 as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497 as_lineno_1=$LINENO as_lineno_1a=$LINENO
498 as_lineno_2=$LINENO as_lineno_2a=$LINENO
499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
502 sed -n '
503 p
504 /[$]LINENO/=
505 ' <$as_myself |
506 sed '
507 s/[$]LINENO.*/&-/
508 t lineno
509 b
510 :lineno
511 N
512 :loop
513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514 t loop
515 s/-\n.*//
516 ' >$as_me.lineno &&
517 chmod +x "$as_me.lineno" ||
518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521 # already done that, so ensure we don't try to do so again and fall
522 # in an infinite loop. This has already happened in practice.
523 _as_can_reexec=no; export _as_can_reexec
524 # Don't try to exec as it changes $[0], causing all sort of problems
525 # (the dirname of $[0] is not the place where we might find the
526 # original and so on. Autoconf is especially sensitive to this).
527 . "./$as_me.lineno"
528 # Exit status is that of the last command.
529 exit
530 }
531
532
533 # Determine whether it's possible to make 'echo' print without a newline.
534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535 # for compatibility with existing Makefiles.
536 ECHO_C= ECHO_N= ECHO_T=
537 case `echo -n x` in #(((((
538 -n*)
539 case `echo 'xy\c'` in
540 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
541 xy) ECHO_C='\c';;
542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
543 ECHO_T=' ';;
544 esac;;
545 *)
546 ECHO_N='-n';;
547 esac
548
549 # For backward compatibility with old third-party macros, we provide
550 # the shell variables $as_echo and $as_echo_n. New code should use
551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552 as_echo='printf %s\n'
553 as_echo_n='printf %s'
554
555
556 rm -f conf$$ conf$$.exe conf$$.file
557 if test -d conf$$.dir; then
558 rm -f conf$$.dir/conf$$.file
559 else
560 rm -f conf$$.dir
561 mkdir conf$$.dir 2>/dev/null
562 fi
563 if (echo >conf$$.file) 2>/dev/null; then
564 if ln -s conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s='ln -s'
566 # ... but there are two gotchas:
567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569 # In both cases, we have to default to `cp -pR'.
570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571 as_ln_s='cp -pR'
572 elif ln conf$$.file conf$$ 2>/dev/null; then
573 as_ln_s=ln
574 else
575 as_ln_s='cp -pR'
576 fi
577 else
578 as_ln_s='cp -pR'
579 fi
580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581 rmdir conf$$.dir 2>/dev/null
582
583 if mkdir -p . 2>/dev/null; then
584 as_mkdir_p='mkdir -p "$as_dir"'
585 else
586 test -d ./-p && rmdir ./-p
587 as_mkdir_p=false
588 fi
589
590 as_test_x='test -x'
591 as_executable_p=as_fn_executable_p
592
593 # Sed expression to map a string onto a valid CPP name.
594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596 # Sed expression to map a string onto a valid variable name.
597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599 SHELL=${CONFIG_SHELL-/bin/sh}
600
601
602 test -n "$DJDIR" || exec 7<&0 </dev/null
603 exec 6>&1
604
605 # Name of the host.
606 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607 # so uname gets run too.
608 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610 #
611 # Initializations.
612 #
613 ac_default_prefix=/usr/local
614 ac_clean_files=
615 ac_config_libobj_dir=.
616 LIBOBJS=
617 cross_compiling=no
618 subdirs=
619 MFLAGS=
620 MAKEFLAGS=
621
622 # Identity of this package.
623 PACKAGE_NAME='libgcrypt'
624 PACKAGE_TARNAME='libgcrypt'
625 PACKAGE_VERSION='1.11.0'
626 PACKAGE_STRING='libgcrypt 1.11.0'
627 PACKAGE_BUGREPORT='https://bugs.gnupg.org'
628 PACKAGE_URL=''
629
630 ac_unique_file="src/libgcrypt.vers"
631 ac_config_libobj_dir=compat
632 # Factoring default headers for most tests.
633 ac_includes_default="\
634 #include <stddef.h>
635 #ifdef HAVE_STDIO_H
636 # include <stdio.h>
637 #endif
638 #ifdef HAVE_STDLIB_H
639 # include <stdlib.h>
640 #endif
641 #ifdef HAVE_STRING_H
642 # include <string.h>
643 #endif
644 #ifdef HAVE_INTTYPES_H
645 # include <inttypes.h>
646 #endif
647 #ifdef HAVE_STDINT_H
648 # include <stdint.h>
649 #endif
650 #ifdef HAVE_STRINGS_H
651 # include <strings.h>
652 #endif
653 #ifdef HAVE_SYS_TYPES_H
654 # include <sys/types.h>
655 #endif
656 #ifdef HAVE_SYS_STAT_H
657 # include <sys/stat.h>
658 #endif
659 #ifdef HAVE_UNISTD_H
660 # include <unistd.h>
661 #endif"
662
663 ac_header_c_list=
664 ac_func_c_list=
665 ac_subst_vars='am__EXEEXT_FALSE
666 am__EXEEXT_TRUE
667 LTLIBOBJS
668 BUILD_TIMESTAMP
669 BUILD_FILEVERSION
670 BUILD_VERSION
671 BUILD_REVISION
672 BUILD_DOC_FALSE
673 BUILD_DOC_TRUE
674 GCRYPT_HWF_MODULES
675 LIBGCRYPT_DIGESTS
676 LIBGCRYPT_PUBKEY_CIPHERS
677 LIBGCRYPT_CIPHERS
678 GCRYPT_RANDOM
679 GCRYPT_KDFS
680 GCRYPT_DIGESTS
681 GCRYPT_PUBKEY_CIPHERS
682 GCRYPT_CIPHERS
683 USE_ECC_FALSE
684 USE_ECC_TRUE
685 USE_ELGAMAL_FALSE
686 USE_ELGAMAL_TRUE
687 USE_RSA_FALSE
688 USE_RSA_TRUE
689 USE_DSA_FALSE
690 USE_DSA_TRUE
691 LIBGCRYPT_THREAD_MODULES
692 LIBGCRYPT_CONFIG_HOST
693 LIBGCRYPT_CONFIG_CFLAGS
694 LIBGCRYPT_CONFIG_LIBS
695 LIBGCRYPT_CONFIG_API_VERSION
696 NOEXECSTACK_FLAGS
697 CROSS_COMPILING_FALSE
698 CROSS_COMPILING_TRUE
699 DL_LIBS
700 LIBOBJS
701 ENABLE_PPC_VCRYPTO_EXTRA_CFLAGS_FALSE
702 ENABLE_PPC_VCRYPTO_EXTRA_CFLAGS_TRUE
703 ENABLE_AARCH64_NEON_INTRINSICS_EXTRA_CFLAGS_FALSE
704 ENABLE_AARCH64_NEON_INTRINSICS_EXTRA_CFLAGS_TRUE
705 ENABLE_X86_AVX512_INTRINSICS_EXTRA_CFLAGS_FALSE
706 ENABLE_X86_AVX512_INTRINSICS_EXTRA_CFLAGS_TRUE
707 MPI_MOD_C_UDIV_QRNND_FALSE
708 MPI_MOD_C_UDIV_QRNND_TRUE
709 MPI_MOD_C_UDIV_FALSE
710 MPI_MOD_C_UDIV_TRUE
711 MPI_MOD_C_MPIH_RSHIFT_FALSE
712 MPI_MOD_C_MPIH_RSHIFT_TRUE
713 MPI_MOD_C_MPIH_LSHIFT_FALSE
714 MPI_MOD_C_MPIH_LSHIFT_TRUE
715 MPI_MOD_C_MPIH_MUL3_FALSE
716 MPI_MOD_C_MPIH_MUL3_TRUE
717 MPI_MOD_C_MPIH_MUL2_FALSE
718 MPI_MOD_C_MPIH_MUL2_TRUE
719 MPI_MOD_C_MPIH_MUL1_FALSE
720 MPI_MOD_C_MPIH_MUL1_TRUE
721 MPI_MOD_C_MPIH_SUB1_FALSE
722 MPI_MOD_C_MPIH_SUB1_TRUE
723 MPI_MOD_C_MPIH_ADD1_FALSE
724 MPI_MOD_C_MPIH_ADD1_TRUE
725 MPI_MOD_ASM_UDIV_QRNND_FALSE
726 MPI_MOD_ASM_UDIV_QRNND_TRUE
727 MPI_MOD_ASM_UDIV_FALSE
728 MPI_MOD_ASM_UDIV_TRUE
729 MPI_MOD_ASM_MPIH_RSHIFT_FALSE
730 MPI_MOD_ASM_MPIH_RSHIFT_TRUE
731 MPI_MOD_ASM_MPIH_LSHIFT_FALSE
732 MPI_MOD_ASM_MPIH_LSHIFT_TRUE
733 MPI_MOD_ASM_MPIH_MUL3_FALSE
734 MPI_MOD_ASM_MPIH_MUL3_TRUE
735 MPI_MOD_ASM_MPIH_MUL2_FALSE
736 MPI_MOD_ASM_MPIH_MUL2_TRUE
737 MPI_MOD_ASM_MPIH_MUL1_FALSE
738 MPI_MOD_ASM_MPIH_MUL1_TRUE
739 MPI_MOD_ASM_MPIH_SUB1_FALSE
740 MPI_MOD_ASM_MPIH_SUB1_TRUE
741 MPI_MOD_ASM_MPIH_ADD1_FALSE
742 MPI_MOD_ASM_MPIH_ADD1_TRUE
743 MPI_SFLAGS
744 USE_GPGRT_CONFIG_FALSE
745 USE_GPGRT_CONFIG_TRUE
746 GPG_ERROR_MT_LIBS
747 GPG_ERROR_MT_CFLAGS
748 GPG_ERROR_LIBS
749 GPG_ERROR_CFLAGS
750 GPGRT_CONFIG
751 GPG_ERROR_CONFIG
752 HAVE_LD_VERSION_SCRIPT_FALSE
753 HAVE_LD_VERSION_SCRIPT_TRUE
754 ENABLE_INSTRUMENTATION_MUNGING_FALSE
755 ENABLE_INSTRUMENTATION_MUNGING_TRUE
756 ENABLE_O_FLAG_MUNGING_FALSE
757 ENABLE_O_FLAG_MUNGING_TRUE
758 DEF_HMAC_BINARY_CHECK
759 USE_HMAC_BINARY_CHECK_FALSE
760 USE_HMAC_BINARY_CHECK_TRUE
761 READELF
762 OBJCOPY
763 RUN_LARGE_DATA_TESTS
764 emacs_local_vars_end
765 emacs_local_vars_read_only
766 emacs_local_vars_begin
767 HAVE_W32CE_SYSTEM_FALSE
768 HAVE_W32CE_SYSTEM_TRUE
769 HAVE_W32_SYSTEM_FALSE
770 HAVE_W32_SYSTEM_TRUE
771 RC
772 OTOOL64
773 OTOOL
774 LIPO
775 NMEDIT
776 DSYMUTIL
777 MANIFEST_TOOL
778 RANLIB
779 ac_ct_AR
780 AR
781 LN_S
782 NM
783 ac_ct_DUMPBIN
784 DUMPBIN
785 LD
786 EGREP
787 SED
788 LIBTOOL
789 OBJDUMP
790 DLLTOOL
791 AS
792 EXEEXT_FOR_BUILD
793 CC_FOR_BUILD
794 VERSION_NUMBER
795 LDADD_FOR_TESTS_KLUDGE
796 FGREP
797 GREP
798 am__fastdepCCAS_FALSE
799 am__fastdepCCAS_TRUE
800 CCASDEPMODE
801 CCASFLAGS
802 CCAS
803 CPP
804 SYSROOT
805 am__fastdepCC_FALSE
806 am__fastdepCC_TRUE
807 CCDEPMODE
808 am__nodep
809 AMDEPBACKSLASH
810 AMDEP_FALSE
811 AMDEP_TRUE
812 am__include
813 DEPDIR
814 OBJEXT
815 EXEEXT
816 ac_ct_CC
817 CPPFLAGS
818 LDFLAGS
819 CFLAGS
820 CC
821 MAINT
822 MAINTAINER_MODE_FALSE
823 MAINTAINER_MODE_TRUE
824 host_os
825 host_vendor
826 host_cpu
827 host
828 build_os
829 build_vendor
830 build_cpu
831 build
832 AM_BACKSLASH
833 AM_DEFAULT_VERBOSITY
834 AM_DEFAULT_V
835 AM_V
836 CSCOPE
837 ETAGS
838 CTAGS
839 am__untar
840 am__tar
841 AMTAR
842 am__leading_dot
843 SET_MAKE
844 AWK
845 mkdir_p
846 MKDIR_P
847 INSTALL_STRIP_PROGRAM
848 STRIP
849 install_sh
850 MAKEINFO
851 AUTOHEADER
852 AUTOMAKE
853 AUTOCONF
854 ACLOCAL
855 VERSION
856 PACKAGE
857 CYGPATH_W
858 am__isrc
859 INSTALL_DATA
860 INSTALL_SCRIPT
861 INSTALL_PROGRAM
862 LIBGCRYPT_LT_REVISION
863 LIBGCRYPT_LT_AGE
864 LIBGCRYPT_LT_CURRENT
865 target_alias
866 host_alias
867 build_alias
868 LIBS
869 ECHO_T
870 ECHO_N
871 ECHO_C
872 DEFS
873 mandir
874 localedir
875 libdir
876 psdir
877 pdfdir
878 dvidir
879 htmldir
880 infodir
881 docdir
882 oldincludedir
883 includedir
884 runstatedir
885 localstatedir
886 sharedstatedir
887 sysconfdir
888 datadir
889 datarootdir
890 libexecdir
891 sbindir
892 bindir
893 program_transform_name
894 prefix
895 exec_prefix
896 PACKAGE_URL
897 PACKAGE_BUGREPORT
898 PACKAGE_STRING
899 PACKAGE_VERSION
900 PACKAGE_TARNAME
901 PACKAGE_NAME
902 PATH_SEPARATOR
903 SHELL
904 am__quote'
905 ac_subst_files=''
906 ac_user_opts='
907 enable_option_checking
908 enable_silent_rules
909 enable_maintainer_mode
910 enable_dependency_tracking
911 enable_static
912 enable_shared
913 with_pic
914 enable_fast_install
915 with_gnu_ld
916 with_sysroot
917 enable_libtool_lock
918 enable_endian_check
919 enable_ciphers
920 enable_pubkey_ciphers
921 enable_digests
922 enable_kdfs
923 enable_random
924 enable_dev_random
925 with_egd_socket
926 enable_asm
927 enable_large_data_tests
928 enable_force_soft_hwfeatures
929 with_capabilities
930 enable_hmac_binary_check
931 with_fips_module_version
932 enable_jent_support
933 enable_padlock_support
934 enable_aesni_support
935 enable_shaext_support
936 enable_pclmul_support
937 enable_sse41_support
938 enable_drng_support
939 enable_avx_support
940 enable_avx2_support
941 enable_avx512_support
942 enable_gfni_support
943 enable_neon_support
944 enable_arm_crypto_support
945 enable_sve_support
946 enable_sve2_support
947 enable_ppc_crypto_support
948 enable_O_flag_munging
949 enable_instrumentation_munging
950 enable_amd64_as_feature_detection
951 enable_ld_version_script
952 with_libtool_modification
953 with_libgpg_error_prefix
954 with_gpg_error_prefix
955 enable_mpi_path
956 enable_optimization
957 enable_noexecstack
958 enable_doc
959 enable_build_timestamp
960 '
961 ac_precious_vars='build_alias
962 host_alias
963 target_alias
964 CC
965 CFLAGS
966 LDFLAGS
967 LIBS
968 CPPFLAGS
969 SYSROOT
970 CPP
971 CCAS
972 CCASFLAGS'
973
974
975 # Initialize some variables set by options.
976 ac_init_help=
977 ac_init_version=false
978 ac_unrecognized_opts=
979 ac_unrecognized_sep=
980 # The variables have the same names as the options, with
981 # dashes changed to underlines.
982 cache_file=/dev/null
983 exec_prefix=NONE
984 no_create=
985 no_recursion=
986 prefix=NONE
987 program_prefix=NONE
988 program_suffix=NONE
989 program_transform_name=s,x,x,
990 silent=
991 site=
992 srcdir=
993 verbose=
994 x_includes=NONE
995 x_libraries=NONE
996
997 # Installation directory options.
998 # These are left unexpanded so users can "make install exec_prefix=/foo"
999 # and all the variables that are supposed to be based on exec_prefix
1000 # by default will actually change.
1001 # Use braces instead of parens because sh, perl, etc. also accept them.
1002 # (The list follows the same order as the GNU Coding Standards.)
1003 bindir='${exec_prefix}/bin'
1004 sbindir='${exec_prefix}/sbin'
1005 libexecdir='${exec_prefix}/libexec'
1006 datarootdir='${prefix}/share'
1007 datadir='${datarootdir}'
1008 sysconfdir='${prefix}/etc'
1009 sharedstatedir='${prefix}/com'
1010 localstatedir='${prefix}/var'
1011 runstatedir='${localstatedir}/run'
1012 includedir='${prefix}/include'
1013 oldincludedir='/usr/include'
1014 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1015 infodir='${datarootdir}/info'
1016 htmldir='${docdir}'
1017 dvidir='${docdir}'
1018 pdfdir='${docdir}'
1019 psdir='${docdir}'
1020 libdir='${exec_prefix}/lib'
1021 localedir='${datarootdir}/locale'
1022 mandir='${datarootdir}/man'
1023
1024 ac_prev=
1025 ac_dashdash=
1026 for ac_option
1027 do
1028 # If the previous option needs an argument, assign it.
1029 if test -n "$ac_prev"; then
1030 eval $ac_prev=\$ac_option
1031 ac_prev=
1032 continue
1033 fi
1034
1035 case $ac_option in
1036 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1037 *=) ac_optarg= ;;
1038 *) ac_optarg=yes ;;
1039 esac
1040
1041 case $ac_dashdash$ac_option in
1042 --)
1043 ac_dashdash=yes ;;
1044
1045 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1046 ac_prev=bindir ;;
1047 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1048 bindir=$ac_optarg ;;
1049
1050 -build | --build | --buil | --bui | --bu)
1051 ac_prev=build_alias ;;
1052 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1053 build_alias=$ac_optarg ;;
1054
1055 -cache-file | --cache-file | --cache-fil | --cache-fi \
1056 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1057 ac_prev=cache_file ;;
1058 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1059 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1060 cache_file=$ac_optarg ;;
1061
1062 --config-cache | -C)
1063 cache_file=config.cache ;;
1064
1065 -datadir | --datadir | --datadi | --datad)
1066 ac_prev=datadir ;;
1067 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1068 datadir=$ac_optarg ;;
1069
1070 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1071 | --dataroo | --dataro | --datar)
1072 ac_prev=datarootdir ;;
1073 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1074 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1075 datarootdir=$ac_optarg ;;
1076
1077 -disable-* | --disable-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1085 *"
1086 "enable_$ac_useropt"
1087 "*) ;;
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1090 esac
1091 eval enable_$ac_useropt=no ;;
1092
1093 -docdir | --docdir | --docdi | --doc | --do)
1094 ac_prev=docdir ;;
1095 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1096 docdir=$ac_optarg ;;
1097
1098 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1099 ac_prev=dvidir ;;
1100 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1101 dvidir=$ac_optarg ;;
1102
1103 -enable-* | --enable-*)
1104 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1108 ac_useropt_orig=$ac_useropt
1109 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1111 *"
1112 "enable_$ac_useropt"
1113 "*) ;;
1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1115 ac_unrecognized_sep=', ';;
1116 esac
1117 eval enable_$ac_useropt=\$ac_optarg ;;
1118
1119 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1120 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1121 | --exec | --exe | --ex)
1122 ac_prev=exec_prefix ;;
1123 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1124 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1125 | --exec=* | --exe=* | --ex=*)
1126 exec_prefix=$ac_optarg ;;
1127
1128 -gas | --gas | --ga | --g)
1129 # Obsolete; use --with-gas.
1130 with_gas=yes ;;
1131
1132 -help | --help | --hel | --he | -h)
1133 ac_init_help=long ;;
1134 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1135 ac_init_help=recursive ;;
1136 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1137 ac_init_help=short ;;
1138
1139 -host | --host | --hos | --ho)
1140 ac_prev=host_alias ;;
1141 -host=* | --host=* | --hos=* | --ho=*)
1142 host_alias=$ac_optarg ;;
1143
1144 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1145 ac_prev=htmldir ;;
1146 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1147 | --ht=*)
1148 htmldir=$ac_optarg ;;
1149
1150 -includedir | --includedir | --includedi | --included | --include \
1151 | --includ | --inclu | --incl | --inc)
1152 ac_prev=includedir ;;
1153 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1154 | --includ=* | --inclu=* | --incl=* | --inc=*)
1155 includedir=$ac_optarg ;;
1156
1157 -infodir | --infodir | --infodi | --infod | --info | --inf)
1158 ac_prev=infodir ;;
1159 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1160 infodir=$ac_optarg ;;
1161
1162 -libdir | --libdir | --libdi | --libd)
1163 ac_prev=libdir ;;
1164 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1165 libdir=$ac_optarg ;;
1166
1167 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1168 | --libexe | --libex | --libe)
1169 ac_prev=libexecdir ;;
1170 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1171 | --libexe=* | --libex=* | --libe=*)
1172 libexecdir=$ac_optarg ;;
1173
1174 -localedir | --localedir | --localedi | --localed | --locale)
1175 ac_prev=localedir ;;
1176 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1177 localedir=$ac_optarg ;;
1178
1179 -localstatedir | --localstatedir | --localstatedi | --localstated \
1180 | --localstate | --localstat | --localsta | --localst | --locals)
1181 ac_prev=localstatedir ;;
1182 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1183 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1184 localstatedir=$ac_optarg ;;
1185
1186 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1187 ac_prev=mandir ;;
1188 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1189 mandir=$ac_optarg ;;
1190
1191 -nfp | --nfp | --nf)
1192 # Obsolete; use --without-fp.
1193 with_fp=no ;;
1194
1195 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1196 | --no-cr | --no-c | -n)
1197 no_create=yes ;;
1198
1199 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1200 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1201 no_recursion=yes ;;
1202
1203 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1204 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1205 | --oldin | --oldi | --old | --ol | --o)
1206 ac_prev=oldincludedir ;;
1207 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1208 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1209 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1210 oldincludedir=$ac_optarg ;;
1211
1212 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1213 ac_prev=prefix ;;
1214 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1215 prefix=$ac_optarg ;;
1216
1217 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1218 | --program-pre | --program-pr | --program-p)
1219 ac_prev=program_prefix ;;
1220 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1221 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1222 program_prefix=$ac_optarg ;;
1223
1224 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1225 | --program-suf | --program-su | --program-s)
1226 ac_prev=program_suffix ;;
1227 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1228 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1229 program_suffix=$ac_optarg ;;
1230
1231 -program-transform-name | --program-transform-name \
1232 | --program-transform-nam | --program-transform-na \
1233 | --program-transform-n | --program-transform- \
1234 | --program-transform | --program-transfor \
1235 | --program-transfo | --program-transf \
1236 | --program-trans | --program-tran \
1237 | --progr-tra | --program-tr | --program-t)
1238 ac_prev=program_transform_name ;;
1239 -program-transform-name=* | --program-transform-name=* \
1240 | --program-transform-nam=* | --program-transform-na=* \
1241 | --program-transform-n=* | --program-transform-=* \
1242 | --program-transform=* | --program-transfor=* \
1243 | --program-transfo=* | --program-transf=* \
1244 | --program-trans=* | --program-tran=* \
1245 | --progr-tra=* | --program-tr=* | --program-t=*)
1246 program_transform_name=$ac_optarg ;;
1247
1248 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1249 ac_prev=pdfdir ;;
1250 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1251 pdfdir=$ac_optarg ;;
1252
1253 -psdir | --psdir | --psdi | --psd | --ps)
1254 ac_prev=psdir ;;
1255 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1256 psdir=$ac_optarg ;;
1257
1258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1259 | -silent | --silent | --silen | --sile | --sil)
1260 silent=yes ;;
1261
1262 -runstatedir | --runstatedir | --runstatedi | --runstated \
1263 | --runstate | --runstat | --runsta | --runst | --runs \
1264 | --run | --ru | --r)
1265 ac_prev=runstatedir ;;
1266 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1267 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1268 | --run=* | --ru=* | --r=*)
1269 runstatedir=$ac_optarg ;;
1270
1271 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1272 ac_prev=sbindir ;;
1273 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1274 | --sbi=* | --sb=*)
1275 sbindir=$ac_optarg ;;
1276
1277 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1278 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1279 | --sharedst | --shareds | --shared | --share | --shar \
1280 | --sha | --sh)
1281 ac_prev=sharedstatedir ;;
1282 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1283 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1284 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1285 | --sha=* | --sh=*)
1286 sharedstatedir=$ac_optarg ;;
1287
1288 -site | --site | --sit)
1289 ac_prev=site ;;
1290 -site=* | --site=* | --sit=*)
1291 site=$ac_optarg ;;
1292
1293 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1294 ac_prev=srcdir ;;
1295 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1296 srcdir=$ac_optarg ;;
1297
1298 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1299 | --syscon | --sysco | --sysc | --sys | --sy)
1300 ac_prev=sysconfdir ;;
1301 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1302 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1303 sysconfdir=$ac_optarg ;;
1304
1305 -target | --target | --targe | --targ | --tar | --ta | --t)
1306 ac_prev=target_alias ;;
1307 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1308 target_alias=$ac_optarg ;;
1309
1310 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1311 verbose=yes ;;
1312
1313 -version | --version | --versio | --versi | --vers | -V)
1314 ac_init_version=: ;;
1315
1316 -with-* | --with-*)
1317 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1318 # Reject names that are not valid shell variable names.
1319 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1320 as_fn_error $? "invalid package name: \`$ac_useropt'"
1321 ac_useropt_orig=$ac_useropt
1322 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1323 case $ac_user_opts in
1324 *"
1325 "with_$ac_useropt"
1326 "*) ;;
1327 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1328 ac_unrecognized_sep=', ';;
1329 esac
1330 eval with_$ac_useropt=\$ac_optarg ;;
1331
1332 -without-* | --without-*)
1333 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1334 # Reject names that are not valid shell variable names.
1335 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1336 as_fn_error $? "invalid package name: \`$ac_useropt'"
1337 ac_useropt_orig=$ac_useropt
1338 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1339 case $ac_user_opts in
1340 *"
1341 "with_$ac_useropt"
1342 "*) ;;
1343 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1344 ac_unrecognized_sep=', ';;
1345 esac
1346 eval with_$ac_useropt=no ;;
1347
1348 --x)
1349 # Obsolete; use --with-x.
1350 with_x=yes ;;
1351
1352 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1353 | --x-incl | --x-inc | --x-in | --x-i)
1354 ac_prev=x_includes ;;
1355 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1356 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1357 x_includes=$ac_optarg ;;
1358
1359 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1360 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1361 ac_prev=x_libraries ;;
1362 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1363 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1364 x_libraries=$ac_optarg ;;
1365
1366 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1367 Try \`$0 --help' for more information"
1368 ;;
1369
1370 *=*)
1371 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1372 # Reject names that are not valid shell variable names.
1373 case $ac_envvar in #(
1374 '' | [0-9]* | *[!_$as_cr_alnum]* )
1375 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1376 esac
1377 eval $ac_envvar=\$ac_optarg
1378 export $ac_envvar ;;
1379
1380 *)
1381 # FIXME: should be removed in autoconf 3.0.
1382 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1383 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1384 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1385 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1386 ;;
1387
1388 esac
1389 done
1390
1391 if test -n "$ac_prev"; then
1392 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1393 as_fn_error $? "missing argument to $ac_option"
1394 fi
1395
1396 if test -n "$ac_unrecognized_opts"; then
1397 case $enable_option_checking in
1398 no) ;;
1399 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1400 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1401 esac
1402 fi
1403
1404 # Check all directory arguments for consistency.
1405 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1406 datadir sysconfdir sharedstatedir localstatedir includedir \
1407 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1408 libdir localedir mandir runstatedir
1409 do
1410 eval ac_val=\$$ac_var
1411 # Remove trailing slashes.
1412 case $ac_val in
1413 */ )
1414 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1415 eval $ac_var=\$ac_val;;
1416 esac
1417 # Be sure to have absolute directory names.
1418 case $ac_val in
1419 [\\/$]* | ?:[\\/]* ) continue;;
1420 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1421 esac
1422 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1423 done
1424
1425 # There might be people who depend on the old broken behavior: `$host'
1426 # used to hold the argument of --host etc.
1427 # FIXME: To remove some day.
1428 build=$build_alias
1429 host=$host_alias
1430 target=$target_alias
1431
1432 # FIXME: To remove some day.
1433 if test "x$host_alias" != x; then
1434 if test "x$build_alias" = x; then
1435 cross_compiling=maybe
1436 elif test "x$build_alias" != "x$host_alias"; then
1437 cross_compiling=yes
1438 fi
1439 fi
1440
1441 ac_tool_prefix=
1442 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1443
1444 test "$silent" = yes && exec 6>/dev/null
1445
1446
1447 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1448 ac_ls_di=`ls -di .` &&
1449 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1450 as_fn_error $? "working directory cannot be determined"
1451 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1452 as_fn_error $? "pwd does not report name of working directory"
1453
1454
1455 # Find the source files, if location was not specified.
1456 if test -z "$srcdir"; then
1457 ac_srcdir_defaulted=yes
1458 # Try the directory containing this script, then the parent directory.
1459 ac_confdir=`$as_dirname -- "$as_myself" ||
1460 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1461 X"$as_myself" : 'X\(//\)[^/]' \| \
1462 X"$as_myself" : 'X\(//\)$' \| \
1463 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1464 printf "%s\n" X"$as_myself" |
1465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1466 s//\1/
1467 q
1468 }
1469 /^X\(\/\/\)[^/].*/{
1470 s//\1/
1471 q
1472 }
1473 /^X\(\/\/\)$/{
1474 s//\1/
1475 q
1476 }
1477 /^X\(\/\).*/{
1478 s//\1/
1479 q
1480 }
1481 s/.*/./; q'`
1482 srcdir=$ac_confdir
1483 if test ! -r "$srcdir/$ac_unique_file"; then
1484 srcdir=..
1485 fi
1486 else
1487 ac_srcdir_defaulted=no
1488 fi
1489 if test ! -r "$srcdir/$ac_unique_file"; then
1490 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1491 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1492 fi
1493 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1494 ac_abs_confdir=`(
1495 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1496 pwd)`
1497 # When building in place, set srcdir=.
1498 if test "$ac_abs_confdir" = "$ac_pwd"; then
1499 srcdir=.
1500 fi
1501 # Remove unnecessary trailing slashes from srcdir.
1502 # Double slashes in file names in object file debugging info
1503 # mess up M-x gdb in Emacs.
1504 case $srcdir in
1505 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1506 esac
1507 for ac_var in $ac_precious_vars; do
1508 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1509 eval ac_env_${ac_var}_value=\$${ac_var}
1510 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1511 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1512 done
1513
1514 #
1515 # Report the --help message.
1516 #
1517 if test "$ac_init_help" = "long"; then
1518 # Omit some internal or obsolete options to make the list less imposing.
1519 # This message is too long to be a string in the A/UX 3.1 sh.
1520 cat <<_ACEOF
1521 \`configure' configures libgcrypt 1.11.0 to adapt to many kinds of systems.
1522
1523 Usage: $0 [OPTION]... [VAR=VALUE]...
1524
1525 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1526 VAR=VALUE. See below for descriptions of some of the useful variables.
1527
1528 Defaults for the options are specified in brackets.
1529
1530 Configuration:
1531 -h, --help display this help and exit
1532 --help=short display options specific to this package
1533 --help=recursive display the short help of all the included packages
1534 -V, --version display version information and exit
1535 -q, --quiet, --silent do not print \`checking ...' messages
1536 --cache-file=FILE cache test results in FILE [disabled]
1537 -C, --config-cache alias for \`--cache-file=config.cache'
1538 -n, --no-create do not create output files
1539 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1540
1541 Installation directories:
1542 --prefix=PREFIX install architecture-independent files in PREFIX
1543 [$ac_default_prefix]
1544 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1545 [PREFIX]
1546
1547 By default, \`make install' will install all the files in
1548 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1549 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1550 for instance \`--prefix=\$HOME'.
1551
1552 For better control, use the options below.
1553
1554 Fine tuning of the installation directories:
1555 --bindir=DIR user executables [EPREFIX/bin]
1556 --sbindir=DIR system admin executables [EPREFIX/sbin]
1557 --libexecdir=DIR program executables [EPREFIX/libexec]
1558 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1559 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1560 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1561 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1562 --libdir=DIR object code libraries [EPREFIX/lib]
1563 --includedir=DIR C header files [PREFIX/include]
1564 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1565 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1566 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1567 --infodir=DIR info documentation [DATAROOTDIR/info]
1568 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1569 --mandir=DIR man documentation [DATAROOTDIR/man]
1570 --docdir=DIR documentation root [DATAROOTDIR/doc/libgcrypt]
1571 --htmldir=DIR html documentation [DOCDIR]
1572 --dvidir=DIR dvi documentation [DOCDIR]
1573 --pdfdir=DIR pdf documentation [DOCDIR]
1574 --psdir=DIR ps documentation [DOCDIR]
1575 _ACEOF
1576
1577 cat <<\_ACEOF
1578
1579 Program names:
1580 --program-prefix=PREFIX prepend PREFIX to installed program names
1581 --program-suffix=SUFFIX append SUFFIX to installed program names
1582 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1583
1584 System types:
1585 --build=BUILD configure for building on BUILD [guessed]
1586 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1587 _ACEOF
1588 fi
1589
1590 if test -n "$ac_init_help"; then
1591 case $ac_init_help in
1592 short | recursive ) echo "Configuration of libgcrypt 1.11.0:";;
1593 esac
1594 cat <<\_ACEOF
1595
1596 Optional Features:
1597 --disable-option-checking ignore unrecognized --enable/--with options
1598 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1599 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1600 --enable-silent-rules less verbose build output (undo: "make V=1")
1601 --disable-silent-rules verbose build output (undo: "make V=0")
1602 --enable-maintainer-mode
1603 enable make rules and dependencies not useful (and
1604 sometimes confusing) to the casual installer
1605 --enable-dependency-tracking
1606 do not reject slow dependency extractors
1607 --disable-dependency-tracking
1608 speeds up one-time build
1609 --enable-static[=PKGS] build static libraries [default=no]
1610 --enable-shared[=PKGS] build shared libraries [default=yes]
1611 --enable-fast-install[=PKGS]
1612 optimize for fast installation [default=yes]
1613 --disable-libtool-lock avoid locking (might break parallel builds)
1614 --disable-endian-check disable the endian check and trust the OS provided
1615 macros
1616 --enable-ciphers=ciphers
1617 select the symmetric ciphers to include
1618 --enable-pubkey-ciphers=ciphers
1619 select the public-key ciphers to include
1620 --enable-digests=digests
1621 select the message digests to include
1622 --enable-kfds=kdfs select the KDFs to include
1623 --enable-random=name select which random number generator to use
1624 --disable-dev-random disable the use of dev random
1625 --disable-asm Disable MPI and cipher assembler modules
1626 --enable-large-data-tests
1627 Enable the real long ruinning large data tests
1628 --enable-force-soft-hwfeatures
1629 Enable forcing 'soft' HW feature bits on
1630 --enable-hmac-binary-check
1631 Enable library integrity check
1632 --disable-jent-support Disable support for the Jitter entropy collector
1633 --disable-padlock-support
1634 Disable support for the PadLock Engine of VIA
1635 processors
1636 --disable-aesni-support Disable support for the Intel AES-NI instructions
1637 --disable-shaext-support
1638 Disable support for the Intel SHAEXT instructions
1639 --disable-pclmul-support
1640 Disable support for the Intel PCLMUL instructions
1641 --disable-sse41-support Disable support for the Intel SSE4.1 instructions
1642 --disable-drng-support Disable support for the Intel DRNG (RDRAND
1643 instruction)
1644 --disable-avx-support Disable support for the Intel AVX instructions
1645 --disable-avx2-support Disable support for the Intel AVX2 instructions
1646 --disable-avx512-support
1647 Disable support for the Intel AVX512 instructions
1648 --disable-gfni-support Disable support for the Intel GFNI instructions
1649 --disable-neon-support Disable support for the ARM NEON instructions
1650 --disable-arm-crypto-support
1651 Disable support for the ARMv8 Crypto Extension
1652 instructions
1653 --disable-sve-support Disable support for the ARMv8 SVE instructions
1654 --disable-sve2-support Disable support for the ARMv9 SVE2 instructions
1655 --disable-ppc-crypto-support
1656 Disable support for the PPC crypto instructions
1657 introduced in POWER 8 (PowerISA 2.07)
1658 --disable-O-flag-munging
1659 Disable modification of the cc -O flag
1660 --disable-instrumentation-munging
1661 Disable modification of the cc instrumentation
1662 options
1663 --disable-amd64-as-feature-detection
1664 Disable the auto-detection of AMD64 as(1) features
1665 --enable-ld-version-script
1666 enable/disable use of linker version script.
1667 (default is system dependent)
1668 --enable-mpi-path=EXTRA_PATH
1669 prepend EXTRA_PATH to list of CPU specific
1670 optimizations
1671 --disable-optimization disable compiler optimization
1672 --disable-noexecstack disable non executable stack support
1673 --disable-doc do not build the documentation
1674 --enable-build-timestamp
1675 set an explicit build timestamp for reproducibility.
1676 (default is the current time in ISO-8601 format)
1677
1678 Optional Packages:
1679 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1680 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1681 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1682 both]
1683 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1684 --with-sysroot=DIR Search for dependent libraries within DIR
1685 (or the compiler's sysroot if not specified).
1686 --with-egd-socket=NAME Use NAME for the EGD socket)
1687 --with-capabilities Use linux capabilities [default=no]
1688 --with-fips-module-version=VERSION
1689 Specify the FIPS module version for the build
1690 --with-libtool-modification=apply|never|try
1691 how to handle libtool modification (default=never)
1692 --with-libgpg-error-prefix=PFX
1693 prefix where GPG Error is installed (optional)
1694
1695
1696 Some influential environment variables:
1697 CC C compiler command
1698 CFLAGS C compiler flags
1699 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1700 nonstandard directory <lib dir>
1701 LIBS libraries to pass to the linker, e.g. -l<library>
1702 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1703 you have headers in a nonstandard directory <include dir>
1704 SYSROOT locate config scripts also below that directory
1705 CPP C preprocessor
1706 CCAS assembler compiler command (defaults to CC)
1707 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1708
1709 Use these variables to override the choices made by `configure' or to help
1710 it to find libraries and programs with nonstandard names/locations.
1711
1712 Report bugs to <https://bugs.gnupg.org>.
1713 _ACEOF
1714 ac_status=$?
1715 fi
1716
1717 if test "$ac_init_help" = "recursive"; then
1718 # If there are subdirs, report their specific --help.
1719 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1720 test -d "$ac_dir" ||
1721 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1722 continue
1723 ac_builddir=.
1724
1725 case "$ac_dir" in
1726 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1727 *)
1728 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1729 # A ".." for each directory in $ac_dir_suffix.
1730 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1731 case $ac_top_builddir_sub in
1732 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1733 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1734 esac ;;
1735 esac
1736 ac_abs_top_builddir=$ac_pwd
1737 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1738 # for backward compatibility:
1739 ac_top_builddir=$ac_top_build_prefix
1740
1741 case $srcdir in
1742 .) # We are building in place.
1743 ac_srcdir=.
1744 ac_top_srcdir=$ac_top_builddir_sub
1745 ac_abs_top_srcdir=$ac_pwd ;;
1746 [\\/]* | ?:[\\/]* ) # Absolute name.
1747 ac_srcdir=$srcdir$ac_dir_suffix;
1748 ac_top_srcdir=$srcdir
1749 ac_abs_top_srcdir=$srcdir ;;
1750 *) # Relative name.
1751 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1752 ac_top_srcdir=$ac_top_build_prefix$srcdir
1753 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1754 esac
1755 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1756
1757 cd "$ac_dir" || { ac_status=$?; continue; }
1758 # Check for configure.gnu first; this name is used for a wrapper for
1759 # Metaconfig's "Configure" on case-insensitive file systems.
1760 if test -f "$ac_srcdir/configure.gnu"; then
1761 echo &&
1762 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1763 elif test -f "$ac_srcdir/configure"; then
1764 echo &&
1765 $SHELL "$ac_srcdir/configure" --help=recursive
1766 else
1767 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1768 fi || ac_status=$?
1769 cd "$ac_pwd" || { ac_status=$?; break; }
1770 done
1771 fi
1772
1773 test -n "$ac_init_help" && exit $ac_status
1774 if $ac_init_version; then
1775 cat <<\_ACEOF
1776 libgcrypt configure 1.11.0
1777 generated by GNU Autoconf 2.71
1778
1779 Copyright (C) 2021 Free Software Foundation, Inc.
1780 This configure script is free software; the Free Software Foundation
1781 gives unlimited permission to copy, distribute and modify it.
1782 _ACEOF
1783 exit
1784 fi
1785
1786 ## ------------------------ ##
1787 ## Autoconf initialization. ##
1788 ## ------------------------ ##
1789
1790 # ac_fn_c_try_compile LINENO
1791 # --------------------------
1792 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1793 ac_fn_c_try_compile ()
1794 {
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 rm -f conftest.$ac_objext conftest.beam
1797 if { { ac_try="$ac_compile"
1798 case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 printf "%s\n" "$ac_try_echo"; } >&5
1804 (eval "$ac_compile") 2>conftest.err
1805 ac_status=$?
1806 if test -s conftest.err; then
1807 grep -v '^ *+' conftest.err >conftest.er1
1808 cat conftest.er1 >&5
1809 mv -f conftest.er1 conftest.err
1810 fi
1811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } && {
1813 test -z "$ac_c_werror_flag" ||
1814 test ! -s conftest.err
1815 } && test -s conftest.$ac_objext
1816 then :
1817 ac_retval=0
1818 else $as_nop
1819 printf "%s\n" "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1821
1822 ac_retval=1
1823 fi
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1826
1827 } # ac_fn_c_try_compile
1828
1829 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1830 # -------------------------------------------------------
1831 # Tests whether HEADER exists and can be compiled using the include files in
1832 # INCLUDES, setting the cache variable VAR accordingly.
1833 ac_fn_c_check_header_compile ()
1834 {
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 printf %s "checking for $2... " >&6; }
1838 if eval test \${$3+y}
1839 then :
1840 printf %s "(cached) " >&6
1841 else $as_nop
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1844 $4
1845 #include <$2>
1846 _ACEOF
1847 if ac_fn_c_try_compile "$LINENO"
1848 then :
1849 eval "$3=yes"
1850 else $as_nop
1851 eval "$3=no"
1852 fi
1853 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1854 fi
1855 eval ac_res=\$$3
1856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 printf "%s\n" "$ac_res" >&6; }
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859
1860 } # ac_fn_c_check_header_compile
1861
1862 # ac_fn_c_try_cpp LINENO
1863 # ----------------------
1864 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1865 ac_fn_c_try_cpp ()
1866 {
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 if { { ac_try="$ac_cpp conftest.$ac_ext"
1869 case "(($ac_try" in
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 printf "%s\n" "$ac_try_echo"; } >&5
1875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1876 ac_status=$?
1877 if test -s conftest.err; then
1878 grep -v '^ *+' conftest.err >conftest.er1
1879 cat conftest.er1 >&5
1880 mv -f conftest.er1 conftest.err
1881 fi
1882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; } > conftest.i && {
1884 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1885 test ! -s conftest.err
1886 }
1887 then :
1888 ac_retval=0
1889 else $as_nop
1890 printf "%s\n" "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1892
1893 ac_retval=1
1894 fi
1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896 as_fn_set_status $ac_retval
1897
1898 } # ac_fn_c_try_cpp
1899
1900 # ac_fn_c_try_link LINENO
1901 # -----------------------
1902 # Try to link conftest.$ac_ext, and return whether this succeeded.
1903 ac_fn_c_try_link ()
1904 {
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1907 if { { ac_try="$ac_link"
1908 case "(($ac_try" in
1909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1910 *) ac_try_echo=$ac_try;;
1911 esac
1912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1913 printf "%s\n" "$ac_try_echo"; } >&5
1914 (eval "$ac_link") 2>conftest.err
1915 ac_status=$?
1916 if test -s conftest.err; then
1917 grep -v '^ *+' conftest.err >conftest.er1
1918 cat conftest.er1 >&5
1919 mv -f conftest.er1 conftest.err
1920 fi
1921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922 test $ac_status = 0; } && {
1923 test -z "$ac_c_werror_flag" ||
1924 test ! -s conftest.err
1925 } && test -s conftest$ac_exeext && {
1926 test "$cross_compiling" = yes ||
1927 test -x conftest$ac_exeext
1928 }
1929 then :
1930 ac_retval=0
1931 else $as_nop
1932 printf "%s\n" "$as_me: failed program was:" >&5
1933 sed 's/^/| /' conftest.$ac_ext >&5
1934
1935 ac_retval=1
1936 fi
1937 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1938 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1939 # interfere with the next link command; also delete a directory that is
1940 # left behind by Apple's compiler. We do this before executing the actions.
1941 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943 as_fn_set_status $ac_retval
1944
1945 } # ac_fn_c_try_link
1946
1947 # ac_fn_c_check_func LINENO FUNC VAR
1948 # ----------------------------------
1949 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1950 ac_fn_c_check_func ()
1951 {
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 printf %s "checking for $2... " >&6; }
1955 if eval test \${$3+y}
1956 then :
1957 printf %s "(cached) " >&6
1958 else $as_nop
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1961 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1963 #define $2 innocuous_$2
1964
1965 /* System header to define __stub macros and hopefully few prototypes,
1966 which can conflict with char $2 (); below. */
1967
1968 #include <limits.h>
1969 #undef $2
1970
1971 /* Override any GCC internal prototype to avoid an error.
1972 Use char because int might match the return type of a GCC
1973 builtin and then its argument prototype would still apply. */
1974 #ifdef __cplusplus
1975 extern "C"
1976 #endif
1977 char $2 ();
1978 /* The GNU C library defines this for functions which it implements
1979 to always fail with ENOSYS. Some functions are actually named
1980 something starting with __ and the normal name is an alias. */
1981 #if defined __stub_$2 || defined __stub___$2
1982 choke me
1983 #endif
1984
1985 int
1986 main (void)
1987 {
1988 return $2 ();
1989 ;
1990 return 0;
1991 }
1992 _ACEOF
1993 if ac_fn_c_try_link "$LINENO"
1994 then :
1995 eval "$3=yes"
1996 else $as_nop
1997 eval "$3=no"
1998 fi
1999 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2000 conftest$ac_exeext conftest.$ac_ext
2001 fi
2002 eval ac_res=\$$3
2003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2004 printf "%s\n" "$ac_res" >&6; }
2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006
2007 } # ac_fn_c_check_func
2008
2009 # ac_fn_c_try_run LINENO
2010 # ----------------------
2011 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2012 # executables *can* be run.
2013 ac_fn_c_try_run ()
2014 {
2015 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016 if { { ac_try="$ac_link"
2017 case "(($ac_try" in
2018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2019 *) ac_try_echo=$ac_try;;
2020 esac
2021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2022 printf "%s\n" "$ac_try_echo"; } >&5
2023 (eval "$ac_link") 2>&5
2024 ac_status=$?
2025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2026 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2027 { { case "(($ac_try" in
2028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2029 *) ac_try_echo=$ac_try;;
2030 esac
2031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2032 printf "%s\n" "$ac_try_echo"; } >&5
2033 (eval "$ac_try") 2>&5
2034 ac_status=$?
2035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2036 test $ac_status = 0; }; }
2037 then :
2038 ac_retval=0
2039 else $as_nop
2040 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2041 printf "%s\n" "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2043
2044 ac_retval=$ac_status
2045 fi
2046 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048 as_fn_set_status $ac_retval
2049
2050 } # ac_fn_c_try_run
2051
2052 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2053 # --------------------------------------------
2054 # Tries to find the compile-time value of EXPR in a program that includes
2055 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2056 # computed
2057 ac_fn_c_compute_int ()
2058 {
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 if test "$cross_compiling" = yes; then
2061 # Depending upon the size, compute the lo and hi bounds.
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2064 $4
2065 int
2066 main (void)
2067 {
2068 static int test_array [1 - 2 * !(($2) >= 0)];
2069 test_array [0] = 0;
2070 return test_array [0];
2071
2072 ;
2073 return 0;
2074 }
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"
2077 then :
2078 ac_lo=0 ac_mid=0
2079 while :; do
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2082 $4
2083 int
2084 main (void)
2085 {
2086 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2087 test_array [0] = 0;
2088 return test_array [0];
2089
2090 ;
2091 return 0;
2092 }
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"
2095 then :
2096 ac_hi=$ac_mid; break
2097 else $as_nop
2098 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2099 if test $ac_lo -le $ac_mid; then
2100 ac_lo= ac_hi=
2101 break
2102 fi
2103 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2104 fi
2105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2106 done
2107 else $as_nop
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2110 $4
2111 int
2112 main (void)
2113 {
2114 static int test_array [1 - 2 * !(($2) < 0)];
2115 test_array [0] = 0;
2116 return test_array [0];
2117
2118 ;
2119 return 0;
2120 }
2121 _ACEOF
2122 if ac_fn_c_try_compile "$LINENO"
2123 then :
2124 ac_hi=-1 ac_mid=-1
2125 while :; do
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2128 $4
2129 int
2130 main (void)
2131 {
2132 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2133 test_array [0] = 0;
2134 return test_array [0];
2135
2136 ;
2137 return 0;
2138 }
2139 _ACEOF
2140 if ac_fn_c_try_compile "$LINENO"
2141 then :
2142 ac_lo=$ac_mid; break
2143 else $as_nop
2144 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2145 if test $ac_mid -le $ac_hi; then
2146 ac_lo= ac_hi=
2147 break
2148 fi
2149 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2150 fi
2151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2152 done
2153 else $as_nop
2154 ac_lo= ac_hi=
2155 fi
2156 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2157 fi
2158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2159 # Binary search between lo and hi bounds.
2160 while test "x$ac_lo" != "x$ac_hi"; do
2161 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2164 $4
2165 int
2166 main (void)
2167 {
2168 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2169 test_array [0] = 0;
2170 return test_array [0];
2171
2172 ;
2173 return 0;
2174 }
2175 _ACEOF
2176 if ac_fn_c_try_compile "$LINENO"
2177 then :
2178 ac_hi=$ac_mid
2179 else $as_nop
2180 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2181 fi
2182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2183 done
2184 case $ac_lo in #((
2185 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2186 '') ac_retval=1 ;;
2187 esac
2188 else
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2191 $4
2192 static long int longval (void) { return $2; }
2193 static unsigned long int ulongval (void) { return $2; }
2194 #include <stdio.h>
2195 #include <stdlib.h>
2196 int
2197 main (void)
2198 {
2199
2200 FILE *f = fopen ("conftest.val", "w");
2201 if (! f)
2202 return 1;
2203 if (($2) < 0)
2204 {
2205 long int i = longval ();
2206 if (i != ($2))
2207 return 1;
2208 fprintf (f, "%ld", i);
2209 }
2210 else
2211 {
2212 unsigned long int i = ulongval ();
2213 if (i != ($2))
2214 return 1;
2215 fprintf (f, "%lu", i);
2216 }
2217 /* Do not output a trailing newline, as this causes \r\n confusion
2218 on some platforms. */
2219 return ferror (f) || fclose (f) != 0;
2220
2221 ;
2222 return 0;
2223 }
2224 _ACEOF
2225 if ac_fn_c_try_run "$LINENO"
2226 then :
2227 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2228 else $as_nop
2229 ac_retval=1
2230 fi
2231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2232 conftest.$ac_objext conftest.beam conftest.$ac_ext
2233 rm -f conftest.val
2234
2235 fi
2236 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2237 as_fn_set_status $ac_retval
2238
2239 } # ac_fn_c_compute_int
2240
2241 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2242 # -------------------------------------------
2243 # Tests whether TYPE exists after having included INCLUDES, setting cache
2244 # variable VAR accordingly.
2245 ac_fn_c_check_type ()
2246 {
2247 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2249 printf %s "checking for $2... " >&6; }
2250 if eval test \${$3+y}
2251 then :
2252 printf %s "(cached) " >&6
2253 else $as_nop
2254 eval "$3=no"
2255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256 /* end confdefs.h. */
2257 $4
2258 int
2259 main (void)
2260 {
2261 if (sizeof ($2))
2262 return 0;
2263 ;
2264 return 0;
2265 }
2266 _ACEOF
2267 if ac_fn_c_try_compile "$LINENO"
2268 then :
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2271 $4
2272 int
2273 main (void)
2274 {
2275 if (sizeof (($2)))
2276 return 0;
2277 ;
2278 return 0;
2279 }
2280 _ACEOF
2281 if ac_fn_c_try_compile "$LINENO"
2282 then :
2283
2284 else $as_nop
2285 eval "$3=yes"
2286 fi
2287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2288 fi
2289 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2290 fi
2291 eval ac_res=\$$3
2292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2293 printf "%s\n" "$ac_res" >&6; }
2294 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2295
2296 } # ac_fn_c_check_type
2297 ac_configure_args_raw=
2298 for ac_arg
2299 do
2300 case $ac_arg in
2301 *\'*)
2302 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2303 esac
2304 as_fn_append ac_configure_args_raw " '$ac_arg'"
2305 done
2306
2307 case $ac_configure_args_raw in
2308 *$as_nl*)
2309 ac_safe_unquote= ;;
2310 *)
2311 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2312 ac_unsafe_a="$ac_unsafe_z#~"
2313 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2314 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2315 esac
2316
2317 cat >config.log <<_ACEOF
2318 This file contains any messages produced by compilers while
2319 running configure, to aid debugging if configure makes a mistake.
2320
2321 It was created by libgcrypt $as_me 1.11.0, which was
2322 generated by GNU Autoconf 2.71. Invocation command line was
2323
2324 $ $0$ac_configure_args_raw
2325
2326 _ACEOF
2327 exec 5>>config.log
2328 {
2329 cat <<_ASUNAME
2330 ## --------- ##
2331 ## Platform. ##
2332 ## --------- ##
2333
2334 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2335 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2336 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2337 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2338 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2339
2340 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2341 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2342
2343 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2344 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2345 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2346 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2347 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2348 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2349 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2350
2351 _ASUNAME
2352
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354 for as_dir in $PATH
2355 do
2356 IFS=$as_save_IFS
2357 case $as_dir in #(((
2358 '') as_dir=./ ;;
2359 */) ;;
2360 *) as_dir=$as_dir/ ;;
2361 esac
2362 printf "%s\n" "PATH: $as_dir"
2363 done
2364 IFS=$as_save_IFS
2365
2366 } >&5
2367
2368 cat >&5 <<_ACEOF
2369
2370
2371 ## ----------- ##
2372 ## Core tests. ##
2373 ## ----------- ##
2374
2375 _ACEOF
2376
2377
2378 # Keep a trace of the command line.
2379 # Strip out --no-create and --no-recursion so they do not pile up.
2380 # Strip out --silent because we don't want to record it for future runs.
2381 # Also quote any args containing shell meta-characters.
2382 # Make two passes to allow for proper duplicate-argument suppression.
2383 ac_configure_args=
2384 ac_configure_args0=
2385 ac_configure_args1=
2386 ac_must_keep_next=false
2387 for ac_pass in 1 2
2388 do
2389 for ac_arg
2390 do
2391 case $ac_arg in
2392 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2393 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2394 | -silent | --silent | --silen | --sile | --sil)
2395 continue ;;
2396 *\'*)
2397 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2398 esac
2399 case $ac_pass in
2400 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2401 2)
2402 as_fn_append ac_configure_args1 " '$ac_arg'"
2403 if test $ac_must_keep_next = true; then
2404 ac_must_keep_next=false # Got value, back to normal.
2405 else
2406 case $ac_arg in
2407 *=* | --config-cache | -C | -disable-* | --disable-* \
2408 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2409 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2410 | -with-* | --with-* | -without-* | --without-* | --x)
2411 case "$ac_configure_args0 " in
2412 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2413 esac
2414 ;;
2415 -* ) ac_must_keep_next=true ;;
2416 esac
2417 fi
2418 as_fn_append ac_configure_args " '$ac_arg'"
2419 ;;
2420 esac
2421 done
2422 done
2423 { ac_configure_args0=; unset ac_configure_args0;}
2424 { ac_configure_args1=; unset ac_configure_args1;}
2425
2426 # When interrupted or exit'd, cleanup temporary files, and complete
2427 # config.log. We remove comments because anyway the quotes in there
2428 # would cause problems or look ugly.
2429 # WARNING: Use '\'' to represent an apostrophe within the trap.
2430 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2431 trap 'exit_status=$?
2432 # Sanitize IFS.
2433 IFS=" "" $as_nl"
2434 # Save into config.log some information that might help in debugging.
2435 {
2436 echo
2437
2438 printf "%s\n" "## ---------------- ##
2439 ## Cache variables. ##
2440 ## ---------------- ##"
2441 echo
2442 # The following way of writing the cache mishandles newlines in values,
2443 (
2444 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2445 eval ac_val=\$$ac_var
2446 case $ac_val in #(
2447 *${as_nl}*)
2448 case $ac_var in #(
2449 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2450 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2451 esac
2452 case $ac_var in #(
2453 _ | IFS | as_nl) ;; #(
2454 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2455 *) { eval $ac_var=; unset $ac_var;} ;;
2456 esac ;;
2457 esac
2458 done
2459 (set) 2>&1 |
2460 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2461 *${as_nl}ac_space=\ *)
2462 sed -n \
2463 "s/'\''/'\''\\\\'\'''\''/g;
2464 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2465 ;; #(
2466 *)
2467 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2468 ;;
2469 esac |
2470 sort
2471 )
2472 echo
2473
2474 printf "%s\n" "## ----------------- ##
2475 ## Output variables. ##
2476 ## ----------------- ##"
2477 echo
2478 for ac_var in $ac_subst_vars
2479 do
2480 eval ac_val=\$$ac_var
2481 case $ac_val in
2482 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2483 esac
2484 printf "%s\n" "$ac_var='\''$ac_val'\''"
2485 done | sort
2486 echo
2487
2488 if test -n "$ac_subst_files"; then
2489 printf "%s\n" "## ------------------- ##
2490 ## File substitutions. ##
2491 ## ------------------- ##"
2492 echo
2493 for ac_var in $ac_subst_files
2494 do
2495 eval ac_val=\$$ac_var
2496 case $ac_val in
2497 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2498 esac
2499 printf "%s\n" "$ac_var='\''$ac_val'\''"
2500 done | sort
2501 echo
2502 fi
2503
2504 if test -s confdefs.h; then
2505 printf "%s\n" "## ----------- ##
2506 ## confdefs.h. ##
2507 ## ----------- ##"
2508 echo
2509 cat confdefs.h
2510 echo
2511 fi
2512 test "$ac_signal" != 0 &&
2513 printf "%s\n" "$as_me: caught signal $ac_signal"
2514 printf "%s\n" "$as_me: exit $exit_status"
2515 } >&5
2516 rm -f core *.core core.conftest.* &&
2517 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2518 exit $exit_status
2519 ' 0
2520 for ac_signal in 1 2 13 15; do
2521 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2522 done
2523 ac_signal=0
2524
2525 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2526 rm -f -r conftest* confdefs.h
2527
2528 printf "%s\n" "/* confdefs.h */" > confdefs.h
2529
2530 # Predefined preprocessor variables.
2531
2532 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2533
2534 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2535
2536 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2537
2538 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2539
2540 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2541
2542 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2543
2544
2545 # Let the site file select an alternate cache file if it wants to.
2546 # Prefer an explicitly selected file to automatically selected ones.
2547 if test -n "$CONFIG_SITE"; then
2548 ac_site_files="$CONFIG_SITE"
2549 elif test "x$prefix" != xNONE; then
2550 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2551 else
2552 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2553 fi
2554
2555 for ac_site_file in $ac_site_files
2556 do
2557 case $ac_site_file in #(
2558 */*) :
2559 ;; #(
2560 *) :
2561 ac_site_file=./$ac_site_file ;;
2562 esac
2563 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2565 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2566 sed 's/^/| /' "$ac_site_file" >&5
2567 . "$ac_site_file" \
2568 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2569 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2570 as_fn_error $? "failed to load site script $ac_site_file
2571 See \`config.log' for more details" "$LINENO" 5; }
2572 fi
2573 done
2574
2575 if test -r "$cache_file"; then
2576 # Some versions of bash will fail to source /dev/null (special files
2577 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2578 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2580 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2581 case $cache_file in
2582 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2583 *) . "./$cache_file";;
2584 esac
2585 fi
2586 else
2587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2588 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2589 >$cache_file
2590 fi
2591
2592 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2593 # Test code for whether the C compiler supports C89 (global declarations)
2594 ac_c_conftest_c89_globals='
2595 /* Does the compiler advertise C89 conformance?
2596 Do not test the value of __STDC__, because some compilers set it to 0
2597 while being otherwise adequately conformant. */
2598 #if !defined __STDC__
2599 # error "Compiler does not advertise C89 conformance"
2600 #endif
2601
2602 #include <stddef.h>
2603 #include <stdarg.h>
2604 struct stat;
2605 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2606 struct buf { int x; };
2607 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2608 static char *e (p, i)
2609 char **p;
2610 int i;
2611 {
2612 return p[i];
2613 }
2614 static char *f (char * (*g) (char **, int), char **p, ...)
2615 {
2616 char *s;
2617 va_list v;
2618 va_start (v,p);
2619 s = g (p, va_arg (v,int));
2620 va_end (v);
2621 return s;
2622 }
2623
2624 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2625 function prototypes and stuff, but not \xHH hex character constants.
2626 These do not provoke an error unfortunately, instead are silently treated
2627 as an "x". The following induces an error, until -std is added to get
2628 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2629 array size at least. It is necessary to write \x00 == 0 to get something
2630 that is true only with -std. */
2631 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2632
2633 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2634 inside strings and character constants. */
2635 #define FOO(x) '\''x'\''
2636 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2637
2638 int test (int i, double x);
2639 struct s1 {int (*f) (int a);};
2640 struct s2 {int (*f) (double a);};
2641 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2642 int, int);'
2643
2644 # Test code for whether the C compiler supports C89 (body of main).
2645 ac_c_conftest_c89_main='
2646 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2647 '
2648
2649 # Test code for whether the C compiler supports C99 (global declarations)
2650 ac_c_conftest_c99_globals='
2651 // Does the compiler advertise C99 conformance?
2652 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2653 # error "Compiler does not advertise C99 conformance"
2654 #endif
2655
2656 #include <stdbool.h>
2657 extern int puts (const char *);
2658 extern int printf (const char *, ...);
2659 extern int dprintf (int, const char *, ...);
2660 extern void *malloc (size_t);
2661
2662 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2663 // dprintf is used instead of fprintf to avoid needing to declare
2664 // FILE and stderr.
2665 #define debug(...) dprintf (2, __VA_ARGS__)
2666 #define showlist(...) puts (#__VA_ARGS__)
2667 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2668 static void
2669 test_varargs_macros (void)
2670 {
2671 int x = 1234;
2672 int y = 5678;
2673 debug ("Flag");
2674 debug ("X = %d\n", x);
2675 showlist (The first, second, and third items.);
2676 report (x>y, "x is %d but y is %d", x, y);
2677 }
2678
2679 // Check long long types.
2680 #define BIG64 18446744073709551615ull
2681 #define BIG32 4294967295ul
2682 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2683 #if !BIG_OK
2684 #error "your preprocessor is broken"
2685 #endif
2686 #if BIG_OK
2687 #else
2688 #error "your preprocessor is broken"
2689 #endif
2690 static long long int bignum = -9223372036854775807LL;
2691 static unsigned long long int ubignum = BIG64;
2692
2693 struct incomplete_array
2694 {
2695 int datasize;
2696 double data[];
2697 };
2698
2699 struct named_init {
2700 int number;
2701 const wchar_t *name;
2702 double average;
2703 };
2704
2705 typedef const char *ccp;
2706
2707 static inline int
2708 test_restrict (ccp restrict text)
2709 {
2710 // See if C++-style comments work.
2711 // Iterate through items via the restricted pointer.
2712 // Also check for declarations in for loops.
2713 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2714 continue;
2715 return 0;
2716 }
2717
2718 // Check varargs and va_copy.
2719 static bool
2720 test_varargs (const char *format, ...)
2721 {
2722 va_list args;
2723 va_start (args, format);
2724 va_list args_copy;
2725 va_copy (args_copy, args);
2726
2727 const char *str = "";
2728 int number = 0;
2729 float fnumber = 0;
2730
2731 while (*format)
2732 {
2733 switch (*format++)
2734 {
2735 case '\''s'\'': // string
2736 str = va_arg (args_copy, const char *);
2737 break;
2738 case '\''d'\'': // int
2739 number = va_arg (args_copy, int);
2740 break;
2741 case '\''f'\'': // float
2742 fnumber = va_arg (args_copy, double);
2743 break;
2744 default:
2745 break;
2746 }
2747 }
2748 va_end (args_copy);
2749 va_end (args);
2750
2751 return *str && number && fnumber;
2752 }
2753 '
2754
2755 # Test code for whether the C compiler supports C99 (body of main).
2756 ac_c_conftest_c99_main='
2757 // Check bool.
2758 _Bool success = false;
2759 success |= (argc != 0);
2760
2761 // Check restrict.
2762 if (test_restrict ("String literal") == 0)
2763 success = true;
2764 char *restrict newvar = "Another string";
2765
2766 // Check varargs.
2767 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2768 test_varargs_macros ();
2769
2770 // Check flexible array members.
2771 struct incomplete_array *ia =
2772 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2773 ia->datasize = 10;
2774 for (int i = 0; i < ia->datasize; ++i)
2775 ia->data[i] = i * 1.234;
2776
2777 // Check named initializers.
2778 struct named_init ni = {
2779 .number = 34,
2780 .name = L"Test wide string",
2781 .average = 543.34343,
2782 };
2783
2784 ni.number = 58;
2785
2786 int dynamic_array[ni.number];
2787 dynamic_array[0] = argv[0][0];
2788 dynamic_array[ni.number - 1] = 543;
2789
2790 // work around unused variable warnings
2791 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2792 || dynamic_array[ni.number - 1] != 543);
2793 '
2794
2795 # Test code for whether the C compiler supports C11 (global declarations)
2796 ac_c_conftest_c11_globals='
2797 // Does the compiler advertise C11 conformance?
2798 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2799 # error "Compiler does not advertise C11 conformance"
2800 #endif
2801
2802 // Check _Alignas.
2803 char _Alignas (double) aligned_as_double;
2804 char _Alignas (0) no_special_alignment;
2805 extern char aligned_as_int;
2806 char _Alignas (0) _Alignas (int) aligned_as_int;
2807
2808 // Check _Alignof.
2809 enum
2810 {
2811 int_alignment = _Alignof (int),
2812 int_array_alignment = _Alignof (int[100]),
2813 char_alignment = _Alignof (char)
2814 };
2815 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2816
2817 // Check _Noreturn.
2818 int _Noreturn does_not_return (void) { for (;;) continue; }
2819
2820 // Check _Static_assert.
2821 struct test_static_assert
2822 {
2823 int x;
2824 _Static_assert (sizeof (int) <= sizeof (long int),
2825 "_Static_assert does not work in struct");
2826 long int y;
2827 };
2828
2829 // Check UTF-8 literals.
2830 #define u8 syntax error!
2831 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2832
2833 // Check duplicate typedefs.
2834 typedef long *long_ptr;
2835 typedef long int *long_ptr;
2836 typedef long_ptr long_ptr;
2837
2838 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2839 struct anonymous
2840 {
2841 union {
2842 struct { int i; int j; };
2843 struct { int k; long int l; } w;
2844 };
2845 int m;
2846 } v1;
2847 '
2848
2849 # Test code for whether the C compiler supports C11 (body of main).
2850 ac_c_conftest_c11_main='
2851 _Static_assert ((offsetof (struct anonymous, i)
2852 == offsetof (struct anonymous, w.k)),
2853 "Anonymous union alignment botch");
2854 v1.i = 2;
2855 v1.w.k = 5;
2856 ok |= v1.i != 5;
2857 '
2858
2859 # Test code for whether the C compiler supports C11 (complete).
2860 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2861 ${ac_c_conftest_c99_globals}
2862 ${ac_c_conftest_c11_globals}
2863
2864 int
2865 main (int argc, char **argv)
2866 {
2867 int ok = 0;
2868 ${ac_c_conftest_c89_main}
2869 ${ac_c_conftest_c99_main}
2870 ${ac_c_conftest_c11_main}
2871 return ok;
2872 }
2873 "
2874
2875 # Test code for whether the C compiler supports C99 (complete).
2876 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2877 ${ac_c_conftest_c99_globals}
2878
2879 int
2880 main (int argc, char **argv)
2881 {
2882 int ok = 0;
2883 ${ac_c_conftest_c89_main}
2884 ${ac_c_conftest_c99_main}
2885 return ok;
2886 }
2887 "
2888
2889 # Test code for whether the C compiler supports C89 (complete).
2890 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2891
2892 int
2893 main (int argc, char **argv)
2894 {
2895 int ok = 0;
2896 ${ac_c_conftest_c89_main}
2897 return ok;
2898 }
2899 "
2900
2901 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2902 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2903 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2904 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2905 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2906 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2907 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2908 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2909 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2910 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2911 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
2912
2913 # Auxiliary files required by this configure script.
2914 ac_aux_files="ltmain.sh compile config.guess config.sub missing install-sh"
2915
2916 # Locations in which to look for auxiliary files.
2917 ac_aux_dir_candidates="${srcdir}/build-aux"
2918
2919 # Search for a directory containing all of the required auxiliary files,
2920 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2921 # If we don't find one directory that contains all the files we need,
2922 # we report the set of missing files from the *first* directory in
2923 # $ac_aux_dir_candidates and give up.
2924 ac_missing_aux_files=""
2925 ac_first_candidate=:
2926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 as_found=false
2929 for as_dir in $ac_aux_dir_candidates
2930 do
2931 IFS=$as_save_IFS
2932 case $as_dir in #(((
2933 '') as_dir=./ ;;
2934 */) ;;
2935 *) as_dir=$as_dir/ ;;
2936 esac
2937 as_found=:
2938
2939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2940 ac_aux_dir_found=yes
2941 ac_install_sh=
2942 for ac_aux in $ac_aux_files
2943 do
2944 # As a special case, if "install-sh" is required, that requirement
2945 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2946 # and $ac_install_sh is set appropriately for whichever one is found.
2947 if test x"$ac_aux" = x"install-sh"
2948 then
2949 if test -f "${as_dir}install-sh"; then
2950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2951 ac_install_sh="${as_dir}install-sh -c"
2952 elif test -f "${as_dir}install.sh"; then
2953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2954 ac_install_sh="${as_dir}install.sh -c"
2955 elif test -f "${as_dir}shtool"; then
2956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2957 ac_install_sh="${as_dir}shtool install -c"
2958 else
2959 ac_aux_dir_found=no
2960 if $ac_first_candidate; then
2961 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2962 else
2963 break
2964 fi
2965 fi
2966 else
2967 if test -f "${as_dir}${ac_aux}"; then
2968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2969 else
2970 ac_aux_dir_found=no
2971 if $ac_first_candidate; then
2972 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2973 else
2974 break
2975 fi
2976 fi
2977 fi
2978 done
2979 if test "$ac_aux_dir_found" = yes; then
2980 ac_aux_dir="$as_dir"
2981 break
2982 fi
2983 ac_first_candidate=false
2984
2985 as_found=false
2986 done
2987 IFS=$as_save_IFS
2988 if $as_found
2989 then :
2990
2991 else $as_nop
2992 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2993 fi
2994
2995
2996 # These three variables are undocumented and unsupported,
2997 # and are intended to be withdrawn in a future Autoconf release.
2998 # They can cause serious problems if a builder's source tree is in a directory
2999 # whose full name contains unusual characters.
3000 if test -f "${ac_aux_dir}config.guess"; then
3001 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3002 fi
3003 if test -f "${ac_aux_dir}config.sub"; then
3004 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3005 fi
3006 if test -f "$ac_aux_dir/configure"; then
3007 ac_configure="$SHELL ${ac_aux_dir}configure"
3008 fi
3009
3010 # Check that the precious variables saved in the cache have kept the same
3011 # value.
3012 ac_cache_corrupted=false
3013 for ac_var in $ac_precious_vars; do
3014 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3015 eval ac_new_set=\$ac_env_${ac_var}_set
3016 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3017 eval ac_new_val=\$ac_env_${ac_var}_value
3018 case $ac_old_set,$ac_new_set in
3019 set,)
3020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3021 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3022 ac_cache_corrupted=: ;;
3023 ,set)
3024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3025 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3026 ac_cache_corrupted=: ;;
3027 ,);;
3028 *)
3029 if test "x$ac_old_val" != "x$ac_new_val"; then
3030 # differences in whitespace do not lead to failure.
3031 ac_old_val_w=`echo x $ac_old_val`
3032 ac_new_val_w=`echo x $ac_new_val`
3033 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3035 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3036 ac_cache_corrupted=:
3037 else
3038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3039 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3040 eval $ac_var=\$ac_old_val
3041 fi
3042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3043 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3045 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3046 fi;;
3047 esac
3048 # Pass precious variables to config.status.
3049 if test "$ac_new_set" = set; then
3050 case $ac_new_val in
3051 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3052 *) ac_arg=$ac_var=$ac_new_val ;;
3053 esac
3054 case " $ac_configure_args " in
3055 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3056 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3057 esac
3058 fi
3059 done
3060 if $ac_cache_corrupted; then
3061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3062 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3064 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3065 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3066 and start over" "$LINENO" 5
3067 fi
3068 ## -------------------- ##
3069 ## Main body of script. ##
3070 ## -------------------- ##
3071
3072 ac_ext=c
3073 ac_cpp='$CPP $CPPFLAGS'
3074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3077
3078
3079
3080 # LT Version numbers, remember to change them just *before* a release.
3081 # (Code changed: REVISION++)
3082 # (Interfaces added/removed/changed: CURRENT++, REVISION=0)
3083 # (Interfaces added: AGE++)
3084 # (Interfaces removed: AGE=0)
3085 #
3086 # (Interfaces removed: CURRENT++, AGE=0, REVISION=0)
3087 # (Interfaces added: CURRENT++, AGE++, REVISION=0)
3088 # (No interfaces changed: REVISION++)
3089 LIBGCRYPT_LT_CURRENT=25
3090 LIBGCRYPT_LT_AGE=5
3091 LIBGCRYPT_LT_REVISION=0
3092 ################################################
3093
3094
3095
3096
3097
3098 # If the API is changed in an incompatible way: increment the next counter.
3099 #
3100 # 1.6: ABI and API change but the change is to most users irrelevant
3101 # and thus the API version number has not been incremented.
3102 LIBGCRYPT_CONFIG_API_VERSION=1
3103
3104 # If you change the required gpg-error version, please remove
3105 # unnecessary error code defines in src/gcrypt-int.h.
3106 NEED_GPG_ERROR_VERSION=1.49
3107
3108
3109
3110 am__api_version='1.16'
3111
3112
3113
3114 # Find a good install program. We prefer a C program (faster),
3115 # so one script is as good as another. But avoid the broken or
3116 # incompatible versions:
3117 # SysV /etc/install, /usr/sbin/install
3118 # SunOS /usr/etc/install
3119 # IRIX /sbin/install
3120 # AIX /bin/install
3121 # AmigaOS /C/install, which installs bootblocks on floppy discs
3122 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3123 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3124 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3125 # OS/2's system install, which has a completely different semantic
3126 # ./install, which can be erroneously created by make from ./install.sh.
3127 # Reject install programs that cannot install multiple files.
3128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3129 printf %s "checking for a BSD-compatible install... " >&6; }
3130 if test -z "$INSTALL"; then
3131 if test ${ac_cv_path_install+y}
3132 then :
3133 printf %s "(cached) " >&6
3134 else $as_nop
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 for as_dir in $PATH
3137 do
3138 IFS=$as_save_IFS
3139 case $as_dir in #(((
3140 '') as_dir=./ ;;
3141 */) ;;
3142 *) as_dir=$as_dir/ ;;
3143 esac
3144 # Account for fact that we put trailing slashes in our PATH walk.
3145 case $as_dir in #((
3146 ./ | /[cC]/* | \
3147 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3148 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3149 /usr/ucb/* ) ;;
3150 *)
3151 # OSF1 and SCO ODT 3.0 have their own names for install.
3152 # Don't use installbsd from OSF since it installs stuff as root
3153 # by default.
3154 for ac_prog in ginstall scoinst install; do
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3157 if test $ac_prog = install &&
3158 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3159 # AIX install. It has an incompatible calling convention.
3160 :
3161 elif test $ac_prog = install &&
3162 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3163 # program-specific install script used by HP pwplus--don't use.
3164 :
3165 else
3166 rm -rf conftest.one conftest.two conftest.dir
3167 echo one > conftest.one
3168 echo two > conftest.two
3169 mkdir conftest.dir
3170 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3171 test -s conftest.one && test -s conftest.two &&
3172 test -s conftest.dir/conftest.one &&
3173 test -s conftest.dir/conftest.two
3174 then
3175 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3176 break 3
3177 fi
3178 fi
3179 fi
3180 done
3181 done
3182 ;;
3183 esac
3184
3185 done
3186 IFS=$as_save_IFS
3187
3188 rm -rf conftest.one conftest.two conftest.dir
3189
3190 fi
3191 if test ${ac_cv_path_install+y}; then
3192 INSTALL=$ac_cv_path_install
3193 else
3194 # As a last resort, use the slow shell script. Don't cache a
3195 # value for INSTALL within a source directory, because that will
3196 # break other packages using the cache if that directory is
3197 # removed, or if the value is a relative name.
3198 INSTALL=$ac_install_sh
3199 fi
3200 fi
3201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3202 printf "%s\n" "$INSTALL" >&6; }
3203
3204 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3205 # It thinks the first close brace ends the variable substitution.
3206 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3207
3208 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3209
3210 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3211
3212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3213 printf %s "checking whether build environment is sane... " >&6; }
3214 # Reject unsafe characters in $srcdir or the absolute working directory
3215 # name. Accept space and tab only in the latter.
3216 am_lf='
3217 '
3218 case `pwd` in
3219 *[\\\"\#\$\&\'\`$am_lf]*)
3220 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3221 esac
3222 case $srcdir in
3223 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3224 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3225 esac
3226
3227 # Do 'set' in a subshell so we don't clobber the current shell's
3228 # arguments. Must try -L first in case configure is actually a
3229 # symlink; some systems play weird games with the mod time of symlinks
3230 # (eg FreeBSD returns the mod time of the symlink's containing
3231 # directory).
3232 if (
3233 am_has_slept=no
3234 for am_try in 1 2; do
3235 echo "timestamp, slept: $am_has_slept" > conftest.file
3236 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3237 if test "$*" = "X"; then
3238 # -L didn't work.
3239 set X `ls -t "$srcdir/configure" conftest.file`
3240 fi
3241 if test "$*" != "X $srcdir/configure conftest.file" \
3242 && test "$*" != "X conftest.file $srcdir/configure"; then
3243
3244 # If neither matched, then we have a broken ls. This can happen
3245 # if, for instance, CONFIG_SHELL is bash and it inherits a
3246 # broken ls alias from the environment. This has actually
3247 # happened. Such a system could not be considered "sane".
3248 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3249 alias in your environment" "$LINENO" 5
3250 fi
3251 if test "$2" = conftest.file || test $am_try -eq 2; then
3252 break
3253 fi
3254 # Just in case.
3255 sleep 1
3256 am_has_slept=yes
3257 done
3258 test "$2" = conftest.file
3259 )
3260 then
3261 # Ok.
3262 :
3263 else
3264 as_fn_error $? "newly created file is older than distributed files!
3265 Check your system clock" "$LINENO" 5
3266 fi
3267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3268 printf "%s\n" "yes" >&6; }
3269 # If we didn't sleep, we still need to ensure time stamps of config.status and
3270 # generated files are strictly newer.
3271 am_sleep_pid=
3272 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3273 ( sleep 1 ) &
3274 am_sleep_pid=$!
3275 fi
3276
3277 rm -f conftest.file
3278
3279 test "$program_prefix" != NONE &&
3280 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3281 # Use a double $ so make ignores it.
3282 test "$program_suffix" != NONE &&
3283 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3284 # Double any \ or $.
3285 # By default was `s,x,x', remove it if useless.
3286 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3287 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3288
3289
3290 # Expand $ac_aux_dir to an absolute path.
3291 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3292
3293
3294 if test x"${MISSING+set}" != xset; then
3295 MISSING="\${SHELL} '$am_aux_dir/missing'"
3296 fi
3297 # Use eval to expand $SHELL
3298 if eval "$MISSING --is-lightweight"; then
3299 am_missing_run="$MISSING "
3300 else
3301 am_missing_run=
3302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3303 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3304 fi
3305
3306 if test x"${install_sh+set}" != xset; then
3307 case $am_aux_dir in
3308 *\ * | *\ *)
3309 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3310 *)
3311 install_sh="\${SHELL} $am_aux_dir/install-sh"
3312 esac
3313 fi
3314
3315 # Installed binaries are usually stripped using 'strip' when the user
3316 # run "make install-strip". However 'strip' might not be the right
3317 # tool to use in cross-compilation environments, therefore Automake
3318 # will honor the 'STRIP' environment variable to overrule this program.
3319 if test "$cross_compiling" != no; then
3320 if test -n "$ac_tool_prefix"; then
3321 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3322 set dummy ${ac_tool_prefix}strip; ac_word=$2
3323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3324 printf %s "checking for $ac_word... " >&6; }
3325 if test ${ac_cv_prog_STRIP+y}
3326 then :
3327 printf %s "(cached) " >&6
3328 else $as_nop
3329 if test -n "$STRIP"; then
3330 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3331 else
3332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333 for as_dir in $PATH
3334 do
3335 IFS=$as_save_IFS
3336 case $as_dir in #(((
3337 '') as_dir=./ ;;
3338 */) ;;
3339 *) as_dir=$as_dir/ ;;
3340 esac
3341 for ac_exec_ext in '' $ac_executable_extensions; do
3342 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3343 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3345 break 2
3346 fi
3347 done
3348 done
3349 IFS=$as_save_IFS
3350
3351 fi
3352 fi
3353 STRIP=$ac_cv_prog_STRIP
3354 if test -n "$STRIP"; then
3355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3356 printf "%s\n" "$STRIP" >&6; }
3357 else
3358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 printf "%s\n" "no" >&6; }
3360 fi
3361
3362
3363 fi
3364 if test -z "$ac_cv_prog_STRIP"; then
3365 ac_ct_STRIP=$STRIP
3366 # Extract the first word of "strip", so it can be a program name with args.
3367 set dummy strip; ac_word=$2
3368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369 printf %s "checking for $ac_word... " >&6; }
3370 if test ${ac_cv_prog_ac_ct_STRIP+y}
3371 then :
3372 printf %s "(cached) " >&6
3373 else $as_nop
3374 if test -n "$ac_ct_STRIP"; then
3375 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3376 else
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH
3379 do
3380 IFS=$as_save_IFS
3381 case $as_dir in #(((
3382 '') as_dir=./ ;;
3383 */) ;;
3384 *) as_dir=$as_dir/ ;;
3385 esac
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3388 ac_cv_prog_ac_ct_STRIP="strip"
3389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3390 break 2
3391 fi
3392 done
3393 done
3394 IFS=$as_save_IFS
3395
3396 fi
3397 fi
3398 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3399 if test -n "$ac_ct_STRIP"; then
3400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3401 printf "%s\n" "$ac_ct_STRIP" >&6; }
3402 else
3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404 printf "%s\n" "no" >&6; }
3405 fi
3406
3407 if test "x$ac_ct_STRIP" = x; then
3408 STRIP=":"
3409 else
3410 case $cross_compiling:$ac_tool_warned in
3411 yes:)
3412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3413 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3414 ac_tool_warned=yes ;;
3415 esac
3416 STRIP=$ac_ct_STRIP
3417 fi
3418 else
3419 STRIP="$ac_cv_prog_STRIP"
3420 fi
3421
3422 fi
3423 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3424
3425
3426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3427 printf %s "checking for a race-free mkdir -p... " >&6; }
3428 if test -z "$MKDIR_P"; then
3429 if test ${ac_cv_path_mkdir+y}
3430 then :
3431 printf %s "(cached) " >&6
3432 else $as_nop
3433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3435 do
3436 IFS=$as_save_IFS
3437 case $as_dir in #(((
3438 '') as_dir=./ ;;
3439 */) ;;
3440 *) as_dir=$as_dir/ ;;
3441 esac
3442 for ac_prog in mkdir gmkdir; do
3443 for ac_exec_ext in '' $ac_executable_extensions; do
3444 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3445 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3446 'mkdir ('*'coreutils) '* | \
3447 'BusyBox '* | \
3448 'mkdir (fileutils) '4.1*)
3449 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3450 break 3;;
3451 esac
3452 done
3453 done
3454 done
3455 IFS=$as_save_IFS
3456
3457 fi
3458
3459 test -d ./--version && rmdir ./--version
3460 if test ${ac_cv_path_mkdir+y}; then
3461 MKDIR_P="$ac_cv_path_mkdir -p"
3462 else
3463 # As a last resort, use the slow shell script. Don't cache a
3464 # value for MKDIR_P within a source directory, because that will
3465 # break other packages using the cache if that directory is
3466 # removed, or if the value is a relative name.
3467 MKDIR_P="$ac_install_sh -d"
3468 fi
3469 fi
3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3471 printf "%s\n" "$MKDIR_P" >&6; }
3472
3473 for ac_prog in gawk mawk nawk awk
3474 do
3475 # Extract the first word of "$ac_prog", so it can be a program name with args.
3476 set dummy $ac_prog; ac_word=$2
3477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3478 printf %s "checking for $ac_word... " >&6; }
3479 if test ${ac_cv_prog_AWK+y}
3480 then :
3481 printf %s "(cached) " >&6
3482 else $as_nop
3483 if test -n "$AWK"; then
3484 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3485 else
3486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487 for as_dir in $PATH
3488 do
3489 IFS=$as_save_IFS
3490 case $as_dir in #(((
3491 '') as_dir=./ ;;
3492 */) ;;
3493 *) as_dir=$as_dir/ ;;
3494 esac
3495 for ac_exec_ext in '' $ac_executable_extensions; do
3496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3497 ac_cv_prog_AWK="$ac_prog"
3498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3499 break 2
3500 fi
3501 done
3502 done
3503 IFS=$as_save_IFS
3504
3505 fi
3506 fi
3507 AWK=$ac_cv_prog_AWK
3508 if test -n "$AWK"; then
3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3510 printf "%s\n" "$AWK" >&6; }
3511 else
3512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3513 printf "%s\n" "no" >&6; }
3514 fi
3515
3516
3517 test -n "$AWK" && break
3518 done
3519
3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3521 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3522 set x ${MAKE-make}
3523 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3524 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3525 then :
3526 printf %s "(cached) " >&6
3527 else $as_nop
3528 cat >conftest.make <<\_ACEOF
3529 SHELL = /bin/sh
3530 all:
3531 @echo '@@@%%%=$(MAKE)=@@@%%%'
3532 _ACEOF
3533 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3534 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3535 *@@@%%%=?*=@@@%%%*)
3536 eval ac_cv_prog_make_${ac_make}_set=yes;;
3537 *)
3538 eval ac_cv_prog_make_${ac_make}_set=no;;
3539 esac
3540 rm -f conftest.make
3541 fi
3542 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3544 printf "%s\n" "yes" >&6; }
3545 SET_MAKE=
3546 else
3547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548 printf "%s\n" "no" >&6; }
3549 SET_MAKE="MAKE=${MAKE-make}"
3550 fi
3551
3552 rm -rf .tst 2>/dev/null
3553 mkdir .tst 2>/dev/null
3554 if test -d .tst; then
3555 am__leading_dot=.
3556 else
3557 am__leading_dot=_
3558 fi
3559 rmdir .tst 2>/dev/null
3560
3561 # Check whether --enable-silent-rules was given.
3562 if test ${enable_silent_rules+y}
3563 then :
3564 enableval=$enable_silent_rules;
3565 fi
3566
3567 case $enable_silent_rules in # (((
3568 yes) AM_DEFAULT_VERBOSITY=0;;
3569 no) AM_DEFAULT_VERBOSITY=1;;
3570 *) AM_DEFAULT_VERBOSITY=1;;
3571 esac
3572 am_make=${MAKE-make}
3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3574 printf %s "checking whether $am_make supports nested variables... " >&6; }
3575 if test ${am_cv_make_support_nested_variables+y}
3576 then :
3577 printf %s "(cached) " >&6
3578 else $as_nop
3579 if printf "%s\n" 'TRUE=$(BAR$(V))
3580 BAR0=false
3581 BAR1=true
3582 V=1
3583 am__doit:
3584 @$(TRUE)
3585 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3586 am_cv_make_support_nested_variables=yes
3587 else
3588 am_cv_make_support_nested_variables=no
3589 fi
3590 fi
3591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3592 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3593 if test $am_cv_make_support_nested_variables = yes; then
3594 AM_V='$(V)'
3595 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3596 else
3597 AM_V=$AM_DEFAULT_VERBOSITY
3598 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3599 fi
3600 AM_BACKSLASH='\'
3601
3602 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3603 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3604 # is not polluted with repeated "-I."
3605 am__isrc=' -I$(srcdir)'
3606 # test to see if srcdir already configured
3607 if test -f $srcdir/config.status; then
3608 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3609 fi
3610 fi
3611
3612 # test whether we have cygpath
3613 if test -z "$CYGPATH_W"; then
3614 if (cygpath --version) >/dev/null 2>/dev/null; then
3615 CYGPATH_W='cygpath -w'
3616 else
3617 CYGPATH_W=echo
3618 fi
3619 fi
3620
3621
3622 # Define the identity of the package.
3623 PACKAGE='libgcrypt'
3624 VERSION='1.11.0'
3625
3626
3627 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3628
3629
3630 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3631
3632 # Some tools Automake needs.
3633
3634 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3635
3636
3637 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3638
3639
3640 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3641
3642
3643 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3644
3645
3646 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3647
3648 # For better backward compatibility. To be removed once Automake 1.9.x
3649 # dies out for good. For more background, see:
3650 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3651 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3652 mkdir_p='$(MKDIR_P)'
3653
3654 # We need awk for the "check" target (and possibly the TAP driver). The
3655 # system "awk" is bad on some platforms.
3656 # Always define AMTAR for backward compatibility. Yes, it's still used
3657 # in the wild :-( We should find a proper way to deprecate it ...
3658 AMTAR='$${TAR-tar}'
3659
3660
3661 # We'll loop over all known methods to create a tar archive until one works.
3662 _am_tools='gnutar pax cpio none'
3663
3664 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3665
3666
3667
3668
3669
3670 # Variables for tags utilities; see am/tags.am
3671 if test -z "$CTAGS"; then
3672 CTAGS=ctags
3673 fi
3674
3675 if test -z "$ETAGS"; then
3676 ETAGS=etags
3677 fi
3678
3679 if test -z "$CSCOPE"; then
3680 CSCOPE=cscope
3681 fi
3682
3683
3684
3685 # POSIX will say in a future version that running "rm -f" with no argument
3686 # is OK; and we want to be able to make that assumption in our Makefile
3687 # recipes. So use an aggressive probe to check that the usage we want is
3688 # actually supported "in the wild" to an acceptable degree.
3689 # See automake bug#10828.
3690 # To make any issue more visible, cause the running configure to be aborted
3691 # by default if the 'rm' program in use doesn't match our expectations; the
3692 # user can still override this though.
3693 if rm -f && rm -fr && rm -rf; then : OK; else
3694 cat >&2 <<'END'
3695 Oops!
3696
3697 Your 'rm' program seems unable to run without file operands specified
3698 on the command line, even when the '-f' option is present. This is contrary
3699 to the behaviour of most rm programs out there, and not conforming with
3700 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3701
3702 Please tell [email protected] about your system, including the value
3703 of your $PATH and any error possibly output before this message. This
3704 can help us improve future automake versions.
3705
3706 END
3707 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3708 echo 'Configuration will proceed anyway, since you have set the' >&2
3709 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3710 echo >&2
3711 else
3712 cat >&2 <<'END'
3713 Aborting the configuration process, to ensure you take notice of the issue.
3714
3715 You can download and install GNU coreutils to get an 'rm' implementation
3716 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3717
3718 If you want to complete the configuration process using your problematic
3719 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3720 to "yes", and re-run configure.
3721
3722 END
3723 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3724 fi
3725 fi
3726
3727 ac_config_headers="$ac_config_headers config.h"
3728
3729
3730
3731
3732
3733 # Make sure we can run config.sub.
3734 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3735 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3736
3737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3738 printf %s "checking build system type... " >&6; }
3739 if test ${ac_cv_build+y}
3740 then :
3741 printf %s "(cached) " >&6
3742 else $as_nop
3743 ac_build_alias=$build_alias
3744 test "x$ac_build_alias" = x &&
3745 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3746 test "x$ac_build_alias" = x &&
3747 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3748 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3749 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3750
3751 fi
3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3753 printf "%s\n" "$ac_cv_build" >&6; }
3754 case $ac_cv_build in
3755 *-*-*) ;;
3756 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3757 esac
3758 build=$ac_cv_build
3759 ac_save_IFS=$IFS; IFS='-'
3760 set x $ac_cv_build
3761 shift
3762 build_cpu=$1
3763 build_vendor=$2
3764 shift; shift
3765 # Remember, the first character of IFS is used to create $*,
3766 # except with old shells:
3767 build_os=$*
3768 IFS=$ac_save_IFS
3769 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3770
3771
3772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3773 printf %s "checking host system type... " >&6; }
3774 if test ${ac_cv_host+y}
3775 then :
3776 printf %s "(cached) " >&6
3777 else $as_nop
3778 if test "x$host_alias" = x; then
3779 ac_cv_host=$ac_cv_build
3780 else
3781 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3782 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3783 fi
3784
3785 fi
3786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3787 printf "%s\n" "$ac_cv_host" >&6; }
3788 case $ac_cv_host in
3789 *-*-*) ;;
3790 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3791 esac
3792 host=$ac_cv_host
3793 ac_save_IFS=$IFS; IFS='-'
3794 set x $ac_cv_host
3795 shift
3796 host_cpu=$1
3797 host_vendor=$2
3798 shift; shift
3799 # Remember, the first character of IFS is used to create $*,
3800 # except with old shells:
3801 host_os=$*
3802 IFS=$ac_save_IFS
3803 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3804
3805
3806
3807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3808 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3809 # Check whether --enable-maintainer-mode was given.
3810 if test ${enable_maintainer_mode+y}
3811 then :
3812 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3813 else $as_nop
3814 USE_MAINTAINER_MODE=no
3815 fi
3816
3817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3818 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3819 if test $USE_MAINTAINER_MODE = yes; then
3820 MAINTAINER_MODE_TRUE=
3821 MAINTAINER_MODE_FALSE='#'
3822 else
3823 MAINTAINER_MODE_TRUE='#'
3824 MAINTAINER_MODE_FALSE=
3825 fi
3826
3827 MAINT=$MAINTAINER_MODE_TRUE
3828
3829
3830 # Check whether --enable-silent-rules was given.
3831 if test ${enable_silent_rules+y}
3832 then :
3833 enableval=$enable_silent_rules;
3834 fi
3835
3836 case $enable_silent_rules in # (((
3837 yes) AM_DEFAULT_VERBOSITY=0;;
3838 no) AM_DEFAULT_VERBOSITY=1;;
3839 *) AM_DEFAULT_VERBOSITY=1;;
3840 esac
3841 am_make=${MAKE-make}
3842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3843 printf %s "checking whether $am_make supports nested variables... " >&6; }
3844 if test ${am_cv_make_support_nested_variables+y}
3845 then :
3846 printf %s "(cached) " >&6
3847 else $as_nop
3848 if printf "%s\n" 'TRUE=$(BAR$(V))
3849 BAR0=false
3850 BAR1=true
3851 V=1
3852 am__doit:
3853 @$(TRUE)
3854 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3855 am_cv_make_support_nested_variables=yes
3856 else
3857 am_cv_make_support_nested_variables=no
3858 fi
3859 fi
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3861 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3862 if test $am_cv_make_support_nested_variables = yes; then
3863 AM_V='$(V)'
3864 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3865 else
3866 AM_V=$AM_DEFAULT_VERBOSITY
3867 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3868 fi
3869 AM_BACKSLASH='\'
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880 DEPDIR="${am__leading_dot}deps"
3881
3882 ac_config_commands="$ac_config_commands depfiles"
3883
3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3885 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3886 cat > confinc.mk << 'END'
3887 am__doit:
3888 @echo this is the am__doit target >confinc.out
3889 .PHONY: am__doit
3890 END
3891 am__include="#"
3892 am__quote=
3893 # BSD make does it like this.
3894 echo '.include "confinc.mk" # ignored' > confmf.BSD
3895 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3896 echo 'include confinc.mk # ignored' > confmf.GNU
3897 _am_result=no
3898 for s in GNU BSD; do
3899 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3900 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3901 ac_status=$?
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); }
3904 case $?:`cat confinc.out 2>/dev/null` in #(
3905 '0:this is the am__doit target') :
3906 case $s in #(
3907 BSD) :
3908 am__include='.include' am__quote='"' ;; #(
3909 *) :
3910 am__include='include' am__quote='' ;;
3911 esac ;; #(
3912 *) :
3913 ;;
3914 esac
3915 if test "$am__include" != "#"; then
3916 _am_result="yes ($s style)"
3917 break
3918 fi
3919 done
3920 rm -f confinc.* confmf.*
3921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3922 printf "%s\n" "${_am_result}" >&6; }
3923
3924 # Check whether --enable-dependency-tracking was given.
3925 if test ${enable_dependency_tracking+y}
3926 then :
3927 enableval=$enable_dependency_tracking;
3928 fi
3929
3930 if test "x$enable_dependency_tracking" != xno; then
3931 am_depcomp="$ac_aux_dir/depcomp"
3932 AMDEPBACKSLASH='\'
3933 am__nodep='_no'
3934 fi
3935 if test "x$enable_dependency_tracking" != xno; then
3936 AMDEP_TRUE=
3937 AMDEP_FALSE='#'
3938 else
3939 AMDEP_TRUE='#'
3940 AMDEP_FALSE=
3941 fi
3942
3943
3944 ac_ext=c
3945 ac_cpp='$CPP $CPPFLAGS'
3946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3949 if test -n "$ac_tool_prefix"; then
3950 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3951 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3953 printf %s "checking for $ac_word... " >&6; }
3954 if test ${ac_cv_prog_CC+y}
3955 then :
3956 printf %s "(cached) " >&6
3957 else $as_nop
3958 if test -n "$CC"; then
3959 ac_cv_prog_CC="$CC" # Let the user override the test.
3960 else
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3963 do
3964 IFS=$as_save_IFS
3965 case $as_dir in #(((
3966 '') as_dir=./ ;;
3967 */) ;;
3968 *) as_dir=$as_dir/ ;;
3969 esac
3970 for ac_exec_ext in '' $ac_executable_extensions; do
3971 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3972 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3974 break 2
3975 fi
3976 done
3977 done
3978 IFS=$as_save_IFS
3979
3980 fi
3981 fi
3982 CC=$ac_cv_prog_CC
3983 if test -n "$CC"; then
3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3985 printf "%s\n" "$CC" >&6; }
3986 else
3987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988 printf "%s\n" "no" >&6; }
3989 fi
3990
3991
3992 fi
3993 if test -z "$ac_cv_prog_CC"; then
3994 ac_ct_CC=$CC
3995 # Extract the first word of "gcc", so it can be a program name with args.
3996 set dummy gcc; ac_word=$2
3997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3998 printf %s "checking for $ac_word... " >&6; }
3999 if test ${ac_cv_prog_ac_ct_CC+y}
4000 then :
4001 printf %s "(cached) " >&6
4002 else $as_nop
4003 if test -n "$ac_ct_CC"; then
4004 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4005 else
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 for as_dir in $PATH
4008 do
4009 IFS=$as_save_IFS
4010 case $as_dir in #(((
4011 '') as_dir=./ ;;
4012 */) ;;
4013 *) as_dir=$as_dir/ ;;
4014 esac
4015 for ac_exec_ext in '' $ac_executable_extensions; do
4016 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4017 ac_cv_prog_ac_ct_CC="gcc"
4018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4019 break 2
4020 fi
4021 done
4022 done
4023 IFS=$as_save_IFS
4024
4025 fi
4026 fi
4027 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4028 if test -n "$ac_ct_CC"; then
4029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4030 printf "%s\n" "$ac_ct_CC" >&6; }
4031 else
4032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4033 printf "%s\n" "no" >&6; }
4034 fi
4035
4036 if test "x$ac_ct_CC" = x; then
4037 CC=""
4038 else
4039 case $cross_compiling:$ac_tool_warned in
4040 yes:)
4041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4042 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4043 ac_tool_warned=yes ;;
4044 esac
4045 CC=$ac_ct_CC
4046 fi
4047 else
4048 CC="$ac_cv_prog_CC"
4049 fi
4050
4051 if test -z "$CC"; then
4052 if test -n "$ac_tool_prefix"; then
4053 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4054 set dummy ${ac_tool_prefix}cc; ac_word=$2
4055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056 printf %s "checking for $ac_word... " >&6; }
4057 if test ${ac_cv_prog_CC+y}
4058 then :
4059 printf %s "(cached) " >&6
4060 else $as_nop
4061 if test -n "$CC"; then
4062 ac_cv_prog_CC="$CC" # Let the user override the test.
4063 else
4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065 for as_dir in $PATH
4066 do
4067 IFS=$as_save_IFS
4068 case $as_dir in #(((
4069 '') as_dir=./ ;;
4070 */) ;;
4071 *) as_dir=$as_dir/ ;;
4072 esac
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4075 ac_cv_prog_CC="${ac_tool_prefix}cc"
4076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4077 break 2
4078 fi
4079 done
4080 done
4081 IFS=$as_save_IFS
4082
4083 fi
4084 fi
4085 CC=$ac_cv_prog_CC
4086 if test -n "$CC"; then
4087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4088 printf "%s\n" "$CC" >&6; }
4089 else
4090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091 printf "%s\n" "no" >&6; }
4092 fi
4093
4094
4095 fi
4096 fi
4097 if test -z "$CC"; then
4098 # Extract the first word of "cc", so it can be a program name with args.
4099 set dummy cc; ac_word=$2
4100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4101 printf %s "checking for $ac_word... " >&6; }
4102 if test ${ac_cv_prog_CC+y}
4103 then :
4104 printf %s "(cached) " >&6
4105 else $as_nop
4106 if test -n "$CC"; then
4107 ac_cv_prog_CC="$CC" # Let the user override the test.
4108 else
4109 ac_prog_rejected=no
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 for as_dir in $PATH
4112 do
4113 IFS=$as_save_IFS
4114 case $as_dir in #(((
4115 '') as_dir=./ ;;
4116 */) ;;
4117 *) as_dir=$as_dir/ ;;
4118 esac
4119 for ac_exec_ext in '' $ac_executable_extensions; do
4120 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4121 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4122 ac_prog_rejected=yes
4123 continue
4124 fi
4125 ac_cv_prog_CC="cc"
4126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4127 break 2
4128 fi
4129 done
4130 done
4131 IFS=$as_save_IFS
4132
4133 if test $ac_prog_rejected = yes; then
4134 # We found a bogon in the path, so make sure we never use it.
4135 set dummy $ac_cv_prog_CC
4136 shift
4137 if test $# != 0; then
4138 # We chose a different compiler from the bogus one.
4139 # However, it has the same basename, so the bogon will be chosen
4140 # first if we set CC to just the basename; use the full file name.
4141 shift
4142 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4143 fi
4144 fi
4145 fi
4146 fi
4147 CC=$ac_cv_prog_CC
4148 if test -n "$CC"; then
4149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4150 printf "%s\n" "$CC" >&6; }
4151 else
4152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153 printf "%s\n" "no" >&6; }
4154 fi
4155
4156
4157 fi
4158 if test -z "$CC"; then
4159 if test -n "$ac_tool_prefix"; then
4160 for ac_prog in cl.exe
4161 do
4162 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4163 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165 printf %s "checking for $ac_word... " >&6; }
4166 if test ${ac_cv_prog_CC+y}
4167 then :
4168 printf %s "(cached) " >&6
4169 else $as_nop
4170 if test -n "$CC"; then
4171 ac_cv_prog_CC="$CC" # Let the user override the test.
4172 else
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH
4175 do
4176 IFS=$as_save_IFS
4177 case $as_dir in #(((
4178 '') as_dir=./ ;;
4179 */) ;;
4180 *) as_dir=$as_dir/ ;;
4181 esac
4182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4184 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4186 break 2
4187 fi
4188 done
4189 done
4190 IFS=$as_save_IFS
4191
4192 fi
4193 fi
4194 CC=$ac_cv_prog_CC
4195 if test -n "$CC"; then
4196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4197 printf "%s\n" "$CC" >&6; }
4198 else
4199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 printf "%s\n" "no" >&6; }
4201 fi
4202
4203
4204 test -n "$CC" && break
4205 done
4206 fi
4207 if test -z "$CC"; then
4208 ac_ct_CC=$CC
4209 for ac_prog in cl.exe
4210 do
4211 # Extract the first word of "$ac_prog", so it can be a program name with args.
4212 set dummy $ac_prog; ac_word=$2
4213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214 printf %s "checking for $ac_word... " >&6; }
4215 if test ${ac_cv_prog_ac_ct_CC+y}
4216 then :
4217 printf %s "(cached) " >&6
4218 else $as_nop
4219 if test -n "$ac_ct_CC"; then
4220 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4221 else
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223 for as_dir in $PATH
4224 do
4225 IFS=$as_save_IFS
4226 case $as_dir in #(((
4227 '') as_dir=./ ;;
4228 */) ;;
4229 *) as_dir=$as_dir/ ;;
4230 esac
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4233 ac_cv_prog_ac_ct_CC="$ac_prog"
4234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4235 break 2
4236 fi
4237 done
4238 done
4239 IFS=$as_save_IFS
4240
4241 fi
4242 fi
4243 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4244 if test -n "$ac_ct_CC"; then
4245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4246 printf "%s\n" "$ac_ct_CC" >&6; }
4247 else
4248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249 printf "%s\n" "no" >&6; }
4250 fi
4251
4252
4253 test -n "$ac_ct_CC" && break
4254 done
4255
4256 if test "x$ac_ct_CC" = x; then
4257 CC=""
4258 else
4259 case $cross_compiling:$ac_tool_warned in
4260 yes:)
4261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4262 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4263 ac_tool_warned=yes ;;
4264 esac
4265 CC=$ac_ct_CC
4266 fi
4267 fi
4268
4269 fi
4270 if test -z "$CC"; then
4271 if test -n "$ac_tool_prefix"; then
4272 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4273 set dummy ${ac_tool_prefix}clang; ac_word=$2
4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4275 printf %s "checking for $ac_word... " >&6; }
4276 if test ${ac_cv_prog_CC+y}
4277 then :
4278 printf %s "(cached) " >&6
4279 else $as_nop
4280 if test -n "$CC"; then
4281 ac_cv_prog_CC="$CC" # Let the user override the test.
4282 else
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH
4285 do
4286 IFS=$as_save_IFS
4287 case $as_dir in #(((
4288 '') as_dir=./ ;;
4289 */) ;;
4290 *) as_dir=$as_dir/ ;;
4291 esac
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4294 ac_cv_prog_CC="${ac_tool_prefix}clang"
4295 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4296 break 2
4297 fi
4298 done
4299 done
4300 IFS=$as_save_IFS
4301
4302 fi
4303 fi
4304 CC=$ac_cv_prog_CC
4305 if test -n "$CC"; then
4306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4307 printf "%s\n" "$CC" >&6; }
4308 else
4309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 printf "%s\n" "no" >&6; }
4311 fi
4312
4313
4314 fi
4315 if test -z "$ac_cv_prog_CC"; then
4316 ac_ct_CC=$CC
4317 # Extract the first word of "clang", so it can be a program name with args.
4318 set dummy clang; ac_word=$2
4319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4320 printf %s "checking for $ac_word... " >&6; }
4321 if test ${ac_cv_prog_ac_ct_CC+y}
4322 then :
4323 printf %s "(cached) " >&6
4324 else $as_nop
4325 if test -n "$ac_ct_CC"; then
4326 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4327 else
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 for as_dir in $PATH
4330 do
4331 IFS=$as_save_IFS
4332 case $as_dir in #(((
4333 '') as_dir=./ ;;
4334 */) ;;
4335 *) as_dir=$as_dir/ ;;
4336 esac
4337 for ac_exec_ext in '' $ac_executable_extensions; do
4338 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4339 ac_cv_prog_ac_ct_CC="clang"
4340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4341 break 2
4342 fi
4343 done
4344 done
4345 IFS=$as_save_IFS
4346
4347 fi
4348 fi
4349 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4350 if test -n "$ac_ct_CC"; then
4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4352 printf "%s\n" "$ac_ct_CC" >&6; }
4353 else
4354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4355 printf "%s\n" "no" >&6; }
4356 fi
4357
4358 if test "x$ac_ct_CC" = x; then
4359 CC=""
4360 else
4361 case $cross_compiling:$ac_tool_warned in
4362 yes:)
4363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4364 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4365 ac_tool_warned=yes ;;
4366 esac
4367 CC=$ac_ct_CC
4368 fi
4369 else
4370 CC="$ac_cv_prog_CC"
4371 fi
4372
4373 fi
4374
4375
4376 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4377 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4378 as_fn_error $? "no acceptable C compiler found in \$PATH
4379 See \`config.log' for more details" "$LINENO" 5; }
4380
4381 # Provide some information about the compiler.
4382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4383 set X $ac_compile
4384 ac_compiler=$2
4385 for ac_option in --version -v -V -qversion -version; do
4386 { { ac_try="$ac_compiler $ac_option >&5"
4387 case "(($ac_try" in
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4390 esac
4391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4392 printf "%s\n" "$ac_try_echo"; } >&5
4393 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4394 ac_status=$?
4395 if test -s conftest.err; then
4396 sed '10a\
4397 ... rest of stderr output deleted ...
4398 10q' conftest.err >conftest.er1
4399 cat conftest.er1 >&5
4400 fi
4401 rm -f conftest.er1 conftest.err
4402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4403 test $ac_status = 0; }
4404 done
4405
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4408
4409 int
4410 main (void)
4411 {
4412
4413 ;
4414 return 0;
4415 }
4416 _ACEOF
4417 ac_clean_files_save=$ac_clean_files
4418 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4419 # Try to create an executable without -o first, disregard a.out.
4420 # It will help us diagnose broken compilers, and finding out an intuition
4421 # of exeext.
4422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4423 printf %s "checking whether the C compiler works... " >&6; }
4424 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4425
4426 # The possible output files:
4427 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4428
4429 ac_rmfiles=
4430 for ac_file in $ac_files
4431 do
4432 case $ac_file in
4433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4434 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4435 esac
4436 done
4437 rm -f $ac_rmfiles
4438
4439 if { { ac_try="$ac_link_default"
4440 case "(($ac_try" in
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4443 esac
4444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4445 printf "%s\n" "$ac_try_echo"; } >&5
4446 (eval "$ac_link_default") 2>&5
4447 ac_status=$?
4448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4449 test $ac_status = 0; }
4450 then :
4451 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4452 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4453 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4454 # so that the user can short-circuit this test for compilers unknown to
4455 # Autoconf.
4456 for ac_file in $ac_files ''
4457 do
4458 test -f "$ac_file" || continue
4459 case $ac_file in
4460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4461 ;;
4462 [ab].out )
4463 # We found the default executable, but exeext='' is most
4464 # certainly right.
4465 break;;
4466 *.* )
4467 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4468 then :; else
4469 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4470 fi
4471 # We set ac_cv_exeext here because the later test for it is not
4472 # safe: cross compilers may not add the suffix if given an `-o'
4473 # argument, so we may need to know it at that point already.
4474 # Even if this section looks crufty: it has the advantage of
4475 # actually working.
4476 break;;
4477 * )
4478 break;;
4479 esac
4480 done
4481 test "$ac_cv_exeext" = no && ac_cv_exeext=
4482
4483 else $as_nop
4484 ac_file=''
4485 fi
4486 if test -z "$ac_file"
4487 then :
4488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489 printf "%s\n" "no" >&6; }
4490 printf "%s\n" "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4492
4493 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4494 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4495 as_fn_error 77 "C compiler cannot create executables
4496 See \`config.log' for more details" "$LINENO" 5; }
4497 else $as_nop
4498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4499 printf "%s\n" "yes" >&6; }
4500 fi
4501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4502 printf %s "checking for C compiler default output file name... " >&6; }
4503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4504 printf "%s\n" "$ac_file" >&6; }
4505 ac_exeext=$ac_cv_exeext
4506
4507 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4508 ac_clean_files=$ac_clean_files_save
4509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4510 printf %s "checking for suffix of executables... " >&6; }
4511 if { { ac_try="$ac_link"
4512 case "(($ac_try" in
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4515 esac
4516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4517 printf "%s\n" "$ac_try_echo"; } >&5
4518 (eval "$ac_link") 2>&5
4519 ac_status=$?
4520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4521 test $ac_status = 0; }
4522 then :
4523 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4524 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4525 # work properly (i.e., refer to `conftest.exe'), while it won't with
4526 # `rm'.
4527 for ac_file in conftest.exe conftest conftest.*; do
4528 test -f "$ac_file" || continue
4529 case $ac_file in
4530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4531 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4532 break;;
4533 * ) break;;
4534 esac
4535 done
4536 else $as_nop
4537 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4538 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4539 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4540 See \`config.log' for more details" "$LINENO" 5; }
4541 fi
4542 rm -f conftest conftest$ac_cv_exeext
4543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4544 printf "%s\n" "$ac_cv_exeext" >&6; }
4545
4546 rm -f conftest.$ac_ext
4547 EXEEXT=$ac_cv_exeext
4548 ac_exeext=$EXEEXT
4549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550 /* end confdefs.h. */
4551 #include <stdio.h>
4552 int
4553 main (void)
4554 {
4555 FILE *f = fopen ("conftest.out", "w");
4556 return ferror (f) || fclose (f) != 0;
4557
4558 ;
4559 return 0;
4560 }
4561 _ACEOF
4562 ac_clean_files="$ac_clean_files conftest.out"
4563 # Check that the compiler produces executables we can run. If not, either
4564 # the compiler is broken, or we cross compile.
4565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4566 printf %s "checking whether we are cross compiling... " >&6; }
4567 if test "$cross_compiling" != yes; then
4568 { { ac_try="$ac_link"
4569 case "(($ac_try" in
4570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4572 esac
4573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4574 printf "%s\n" "$ac_try_echo"; } >&5
4575 (eval "$ac_link") 2>&5
4576 ac_status=$?
4577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4578 test $ac_status = 0; }
4579 if { ac_try='./conftest$ac_cv_exeext'
4580 { { case "(($ac_try" in
4581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582 *) ac_try_echo=$ac_try;;
4583 esac
4584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4585 printf "%s\n" "$ac_try_echo"; } >&5
4586 (eval "$ac_try") 2>&5
4587 ac_status=$?
4588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4589 test $ac_status = 0; }; }; then
4590 cross_compiling=no
4591 else
4592 if test "$cross_compiling" = maybe; then
4593 cross_compiling=yes
4594 else
4595 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4596 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4597 as_fn_error 77 "cannot run C compiled programs.
4598 If you meant to cross compile, use \`--host'.
4599 See \`config.log' for more details" "$LINENO" 5; }
4600 fi
4601 fi
4602 fi
4603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4604 printf "%s\n" "$cross_compiling" >&6; }
4605
4606 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4607 ac_clean_files=$ac_clean_files_save
4608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4609 printf %s "checking for suffix of object files... " >&6; }
4610 if test ${ac_cv_objext+y}
4611 then :
4612 printf %s "(cached) " >&6
4613 else $as_nop
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4616
4617 int
4618 main (void)
4619 {
4620
4621 ;
4622 return 0;
4623 }
4624 _ACEOF
4625 rm -f conftest.o conftest.obj
4626 if { { ac_try="$ac_compile"
4627 case "(($ac_try" in
4628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629 *) ac_try_echo=$ac_try;;
4630 esac
4631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4632 printf "%s\n" "$ac_try_echo"; } >&5
4633 (eval "$ac_compile") 2>&5
4634 ac_status=$?
4635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4636 test $ac_status = 0; }
4637 then :
4638 for ac_file in conftest.o conftest.obj conftest.*; do
4639 test -f "$ac_file" || continue;
4640 case $ac_file in
4641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4642 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4643 break;;
4644 esac
4645 done
4646 else $as_nop
4647 printf "%s\n" "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4649
4650 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4651 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4652 as_fn_error $? "cannot compute suffix of object files: cannot compile
4653 See \`config.log' for more details" "$LINENO" 5; }
4654 fi
4655 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4656 fi
4657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4658 printf "%s\n" "$ac_cv_objext" >&6; }
4659 OBJEXT=$ac_cv_objext
4660 ac_objext=$OBJEXT
4661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4662 printf %s "checking whether the compiler supports GNU C... " >&6; }
4663 if test ${ac_cv_c_compiler_gnu+y}
4664 then :
4665 printf %s "(cached) " >&6
4666 else $as_nop
4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h. */
4669
4670 int
4671 main (void)
4672 {
4673 #ifndef __GNUC__
4674 choke me
4675 #endif
4676
4677 ;
4678 return 0;
4679 }
4680 _ACEOF
4681 if ac_fn_c_try_compile "$LINENO"
4682 then :
4683 ac_compiler_gnu=yes
4684 else $as_nop
4685 ac_compiler_gnu=no
4686 fi
4687 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4688 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4689
4690 fi
4691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4692 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4694
4695 if test $ac_compiler_gnu = yes; then
4696 GCC=yes
4697 else
4698 GCC=
4699 fi
4700 ac_test_CFLAGS=${CFLAGS+y}
4701 ac_save_CFLAGS=$CFLAGS
4702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4703 printf %s "checking whether $CC accepts -g... " >&6; }
4704 if test ${ac_cv_prog_cc_g+y}
4705 then :
4706 printf %s "(cached) " >&6
4707 else $as_nop
4708 ac_save_c_werror_flag=$ac_c_werror_flag
4709 ac_c_werror_flag=yes
4710 ac_cv_prog_cc_g=no
4711 CFLAGS="-g"
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4714
4715 int
4716 main (void)
4717 {
4718
4719 ;
4720 return 0;
4721 }
4722 _ACEOF
4723 if ac_fn_c_try_compile "$LINENO"
4724 then :
4725 ac_cv_prog_cc_g=yes
4726 else $as_nop
4727 CFLAGS=""
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4730
4731 int
4732 main (void)
4733 {
4734
4735 ;
4736 return 0;
4737 }
4738 _ACEOF
4739 if ac_fn_c_try_compile "$LINENO"
4740 then :
4741
4742 else $as_nop
4743 ac_c_werror_flag=$ac_save_c_werror_flag
4744 CFLAGS="-g"
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4747
4748 int
4749 main (void)
4750 {
4751
4752 ;
4753 return 0;
4754 }
4755 _ACEOF
4756 if ac_fn_c_try_compile "$LINENO"
4757 then :
4758 ac_cv_prog_cc_g=yes
4759 fi
4760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4761 fi
4762 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4763 fi
4764 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4765 ac_c_werror_flag=$ac_save_c_werror_flag
4766 fi
4767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4768 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4769 if test $ac_test_CFLAGS; then
4770 CFLAGS=$ac_save_CFLAGS
4771 elif test $ac_cv_prog_cc_g = yes; then
4772 if test "$GCC" = yes; then
4773 CFLAGS="-g -O2"
4774 else
4775 CFLAGS="-g"
4776 fi
4777 else
4778 if test "$GCC" = yes; then
4779 CFLAGS="-O2"
4780 else
4781 CFLAGS=
4782 fi
4783 fi
4784 ac_prog_cc_stdc=no
4785 if test x$ac_prog_cc_stdc = xno
4786 then :
4787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4788 printf %s "checking for $CC option to enable C11 features... " >&6; }
4789 if test ${ac_cv_prog_cc_c11+y}
4790 then :
4791 printf %s "(cached) " >&6
4792 else $as_nop
4793 ac_cv_prog_cc_c11=no
4794 ac_save_CC=$CC
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4797 $ac_c_conftest_c11_program
4798 _ACEOF
4799 for ac_arg in '' -std=gnu11
4800 do
4801 CC="$ac_save_CC $ac_arg"
4802 if ac_fn_c_try_compile "$LINENO"
4803 then :
4804 ac_cv_prog_cc_c11=$ac_arg
4805 fi
4806 rm -f core conftest.err conftest.$ac_objext conftest.beam
4807 test "x$ac_cv_prog_cc_c11" != "xno" && break
4808 done
4809 rm -f conftest.$ac_ext
4810 CC=$ac_save_CC
4811 fi
4812
4813 if test "x$ac_cv_prog_cc_c11" = xno
4814 then :
4815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4816 printf "%s\n" "unsupported" >&6; }
4817 else $as_nop
4818 if test "x$ac_cv_prog_cc_c11" = x
4819 then :
4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4821 printf "%s\n" "none needed" >&6; }
4822 else $as_nop
4823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4824 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4825 CC="$CC $ac_cv_prog_cc_c11"
4826 fi
4827 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4828 ac_prog_cc_stdc=c11
4829 fi
4830 fi
4831 if test x$ac_prog_cc_stdc = xno
4832 then :
4833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4834 printf %s "checking for $CC option to enable C99 features... " >&6; }
4835 if test ${ac_cv_prog_cc_c99+y}
4836 then :
4837 printf %s "(cached) " >&6
4838 else $as_nop
4839 ac_cv_prog_cc_c99=no
4840 ac_save_CC=$CC
4841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4842 /* end confdefs.h. */
4843 $ac_c_conftest_c99_program
4844 _ACEOF
4845 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4846 do
4847 CC="$ac_save_CC $ac_arg"
4848 if ac_fn_c_try_compile "$LINENO"
4849 then :
4850 ac_cv_prog_cc_c99=$ac_arg
4851 fi
4852 rm -f core conftest.err conftest.$ac_objext conftest.beam
4853 test "x$ac_cv_prog_cc_c99" != "xno" && break
4854 done
4855 rm -f conftest.$ac_ext
4856 CC=$ac_save_CC
4857 fi
4858
4859 if test "x$ac_cv_prog_cc_c99" = xno
4860 then :
4861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4862 printf "%s\n" "unsupported" >&6; }
4863 else $as_nop
4864 if test "x$ac_cv_prog_cc_c99" = x
4865 then :
4866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4867 printf "%s\n" "none needed" >&6; }
4868 else $as_nop
4869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4870 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4871 CC="$CC $ac_cv_prog_cc_c99"
4872 fi
4873 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4874 ac_prog_cc_stdc=c99
4875 fi
4876 fi
4877 if test x$ac_prog_cc_stdc = xno
4878 then :
4879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4880 printf %s "checking for $CC option to enable C89 features... " >&6; }
4881 if test ${ac_cv_prog_cc_c89+y}
4882 then :
4883 printf %s "(cached) " >&6
4884 else $as_nop
4885 ac_cv_prog_cc_c89=no
4886 ac_save_CC=$CC
4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h. */
4889 $ac_c_conftest_c89_program
4890 _ACEOF
4891 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4892 do
4893 CC="$ac_save_CC $ac_arg"
4894 if ac_fn_c_try_compile "$LINENO"
4895 then :
4896 ac_cv_prog_cc_c89=$ac_arg
4897 fi
4898 rm -f core conftest.err conftest.$ac_objext conftest.beam
4899 test "x$ac_cv_prog_cc_c89" != "xno" && break
4900 done
4901 rm -f conftest.$ac_ext
4902 CC=$ac_save_CC
4903 fi
4904
4905 if test "x$ac_cv_prog_cc_c89" = xno
4906 then :
4907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4908 printf "%s\n" "unsupported" >&6; }
4909 else $as_nop
4910 if test "x$ac_cv_prog_cc_c89" = x
4911 then :
4912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4913 printf "%s\n" "none needed" >&6; }
4914 else $as_nop
4915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4916 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4917 CC="$CC $ac_cv_prog_cc_c89"
4918 fi
4919 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4920 ac_prog_cc_stdc=c89
4921 fi
4922 fi
4923
4924 ac_ext=c
4925 ac_cpp='$CPP $CPPFLAGS'
4926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4929
4930
4931 ac_ext=c
4932 ac_cpp='$CPP $CPPFLAGS'
4933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4937 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4938 if test ${am_cv_prog_cc_c_o+y}
4939 then :
4940 printf %s "(cached) " >&6
4941 else $as_nop
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4944
4945 int
4946 main (void)
4947 {
4948
4949 ;
4950 return 0;
4951 }
4952 _ACEOF
4953 # Make sure it works both with $CC and with simple cc.
4954 # Following AC_PROG_CC_C_O, we do the test twice because some
4955 # compilers refuse to overwrite an existing .o file with -o,
4956 # though they will create one.
4957 am_cv_prog_cc_c_o=yes
4958 for am_i in 1 2; do
4959 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4960 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4961 ac_status=$?
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); } \
4964 && test -f conftest2.$ac_objext; then
4965 : OK
4966 else
4967 am_cv_prog_cc_c_o=no
4968 break
4969 fi
4970 done
4971 rm -f core conftest*
4972 unset am_i
4973 fi
4974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4975 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4976 if test "$am_cv_prog_cc_c_o" != yes; then
4977 # Losing compiler, so override with the script.
4978 # FIXME: It is wrong to rewrite CC.
4979 # But if we don't then we get into trouble of one sort or another.
4980 # A longer-term fix would be to have automake use am__CC in this case,
4981 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4982 CC="$am_aux_dir/compile $CC"
4983 fi
4984 ac_ext=c
4985 ac_cpp='$CPP $CPPFLAGS'
4986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4989
4990
4991 depcc="$CC" am_compiler_list=
4992
4993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4994 printf %s "checking dependency style of $depcc... " >&6; }
4995 if test ${am_cv_CC_dependencies_compiler_type+y}
4996 then :
4997 printf %s "(cached) " >&6
4998 else $as_nop
4999 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5000 # We make a subdir and do the tests there. Otherwise we can end up
5001 # making bogus files that we don't know about and never remove. For
5002 # instance it was reported that on HP-UX the gcc test will end up
5003 # making a dummy file named 'D' -- because '-MD' means "put the output
5004 # in D".
5005 rm -rf conftest.dir
5006 mkdir conftest.dir
5007 # Copy depcomp to subdir because otherwise we won't find it if we're
5008 # using a relative directory.
5009 cp "$am_depcomp" conftest.dir
5010 cd conftest.dir
5011 # We will build objects and dependencies in a subdirectory because
5012 # it helps to detect inapplicable dependency modes. For instance
5013 # both Tru64's cc and ICC support -MD to output dependencies as a
5014 # side effect of compilation, but ICC will put the dependencies in
5015 # the current directory while Tru64 will put them in the object
5016 # directory.
5017 mkdir sub
5018
5019 am_cv_CC_dependencies_compiler_type=none
5020 if test "$am_compiler_list" = ""; then
5021 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5022 fi
5023 am__universal=false
5024 case " $depcc " in #(
5025 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5026 esac
5027
5028 for depmode in $am_compiler_list; do
5029 # Setup a source with many dependencies, because some compilers
5030 # like to wrap large dependency lists on column 80 (with \), and
5031 # we should not choose a depcomp mode which is confused by this.
5032 #
5033 # We need to recreate these files for each test, as the compiler may
5034 # overwrite some of them when testing with obscure command lines.
5035 # This happens at least with the AIX C compiler.
5036 : > sub/conftest.c
5037 for i in 1 2 3 4 5 6; do
5038 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5039 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5040 # Solaris 10 /bin/sh.
5041 echo '/* dummy */' > sub/conftst$i.h
5042 done
5043 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5044
5045 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5046 # mode. It turns out that the SunPro C++ compiler does not properly
5047 # handle '-M -o', and we need to detect this. Also, some Intel
5048 # versions had trouble with output in subdirs.
5049 am__obj=sub/conftest.${OBJEXT-o}
5050 am__minus_obj="-o $am__obj"
5051 case $depmode in
5052 gcc)
5053 # This depmode causes a compiler race in universal mode.
5054 test "$am__universal" = false || continue
5055 ;;
5056 nosideeffect)
5057 # After this tag, mechanisms are not by side-effect, so they'll
5058 # only be used when explicitly requested.
5059 if test "x$enable_dependency_tracking" = xyes; then
5060 continue
5061 else
5062 break
5063 fi
5064 ;;
5065 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5066 # This compiler won't grok '-c -o', but also, the minuso test has
5067 # not run yet. These depmodes are late enough in the game, and
5068 # so weak that their functioning should not be impacted.
5069 am__obj=conftest.${OBJEXT-o}
5070 am__minus_obj=
5071 ;;
5072 none) break ;;
5073 esac
5074 if depmode=$depmode \
5075 source=sub/conftest.c object=$am__obj \
5076 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5077 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5078 >/dev/null 2>conftest.err &&
5079 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5080 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5081 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5082 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5083 # icc doesn't choke on unknown options, it will just issue warnings
5084 # or remarks (even with -Werror). So we grep stderr for any message
5085 # that says an option was ignored or not supported.
5086 # When given -MP, icc 7.0 and 7.1 complain thusly:
5087 # icc: Command line warning: ignoring option '-M'; no argument required
5088 # The diagnosis changed in icc 8.0:
5089 # icc: Command line remark: option '-MP' not supported
5090 if (grep 'ignoring option' conftest.err ||
5091 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5092 am_cv_CC_dependencies_compiler_type=$depmode
5093 break
5094 fi
5095 fi
5096 done
5097
5098 cd ..
5099 rm -rf conftest.dir
5100 else
5101 am_cv_CC_dependencies_compiler_type=none
5102 fi
5103
5104 fi
5105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5106 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5107 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5108
5109 if
5110 test "x$enable_dependency_tracking" != xno \
5111 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5112 am__fastdepCC_TRUE=
5113 am__fastdepCC_FALSE='#'
5114 else
5115 am__fastdepCC_TRUE='#'
5116 am__fastdepCC_FALSE=
5117 fi
5118
5119
5120
5121 ac_header= ac_cache=
5122 for ac_item in $ac_header_c_list
5123 do
5124 if test $ac_cache; then
5125 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5126 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5127 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5128 fi
5129 ac_header= ac_cache=
5130 elif test $ac_header; then
5131 ac_cache=$ac_item
5132 else
5133 ac_header=$ac_item
5134 fi
5135 done
5136
5137
5138
5139
5140
5141
5142
5143
5144 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5145 then :
5146
5147 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5148
5149 fi
5150
5151
5152
5153
5154
5155
5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5157 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5158 if test ${ac_cv_safe_to_define___extensions__+y}
5159 then :
5160 printf %s "(cached) " >&6
5161 else $as_nop
5162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163 /* end confdefs.h. */
5164
5165 # define __EXTENSIONS__ 1
5166 $ac_includes_default
5167 int
5168 main (void)
5169 {
5170
5171 ;
5172 return 0;
5173 }
5174 _ACEOF
5175 if ac_fn_c_try_compile "$LINENO"
5176 then :
5177 ac_cv_safe_to_define___extensions__=yes
5178 else $as_nop
5179 ac_cv_safe_to_define___extensions__=no
5180 fi
5181 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5182 fi
5183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5184 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5185
5186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5187 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5188 if test ${ac_cv_should_define__xopen_source+y}
5189 then :
5190 printf %s "(cached) " >&6
5191 else $as_nop
5192 ac_cv_should_define__xopen_source=no
5193 if test $ac_cv_header_wchar_h = yes
5194 then :
5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196 /* end confdefs.h. */
5197
5198 #include <wchar.h>
5199 mbstate_t x;
5200 int
5201 main (void)
5202 {
5203
5204 ;
5205 return 0;
5206 }
5207 _ACEOF
5208 if ac_fn_c_try_compile "$LINENO"
5209 then :
5210
5211 else $as_nop
5212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213 /* end confdefs.h. */
5214
5215 #define _XOPEN_SOURCE 500
5216 #include <wchar.h>
5217 mbstate_t x;
5218 int
5219 main (void)
5220 {
5221
5222 ;
5223 return 0;
5224 }
5225 _ACEOF
5226 if ac_fn_c_try_compile "$LINENO"
5227 then :
5228 ac_cv_should_define__xopen_source=yes
5229 fi
5230 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5231 fi
5232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5233 fi
5234 fi
5235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5236 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5237
5238 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5239
5240 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5241
5242 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5243
5244 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5245
5246 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5247
5248 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5249
5250 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5251
5252 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5253
5254 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5255
5256 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5257
5258 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5259
5260 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5261
5262 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5263
5264 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5265
5266 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5267
5268 if test $ac_cv_header_minix_config_h = yes
5269 then :
5270 MINIX=yes
5271 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5272
5273 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5274
5275 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5276
5277 else $as_nop
5278 MINIX=
5279 fi
5280 if test $ac_cv_safe_to_define___extensions__ = yes
5281 then :
5282 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5283
5284 fi
5285 if test $ac_cv_should_define__xopen_source = yes
5286 then :
5287 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5288
5289 fi
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301 ######################
5302 ## Basic checks. ### (we need some results later on (e.g. $GCC)
5303 ######################
5304
5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5306 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5307 set x ${MAKE-make}
5308 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5309 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5310 then :
5311 printf %s "(cached) " >&6
5312 else $as_nop
5313 cat >conftest.make <<\_ACEOF
5314 SHELL = /bin/sh
5315 all:
5316 @echo '@@@%%%=$(MAKE)=@@@%%%'
5317 _ACEOF
5318 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5319 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5320 *@@@%%%=?*=@@@%%%*)
5321 eval ac_cv_prog_make_${ac_make}_set=yes;;
5322 *)
5323 eval ac_cv_prog_make_${ac_make}_set=no;;
5324 esac
5325 rm -f conftest.make
5326 fi
5327 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5329 printf "%s\n" "yes" >&6; }
5330 SET_MAKE=
5331 else
5332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333 printf "%s\n" "no" >&6; }
5334 SET_MAKE="MAKE=${MAKE-make}"
5335 fi
5336
5337 missing_dir=`cd $ac_aux_dir && pwd`
5338
5339 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
5340
5341
5342 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5343
5344
5345 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
5346
5347
5348 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5349
5350 # AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
5351 ac_ext=c
5352 ac_cpp='$CPP $CPPFLAGS'
5353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5356 if test -n "$ac_tool_prefix"; then
5357 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5358 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5360 printf %s "checking for $ac_word... " >&6; }
5361 if test ${ac_cv_prog_CC+y}
5362 then :
5363 printf %s "(cached) " >&6
5364 else $as_nop
5365 if test -n "$CC"; then
5366 ac_cv_prog_CC="$CC" # Let the user override the test.
5367 else
5368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369 for as_dir in $PATH
5370 do
5371 IFS=$as_save_IFS
5372 case $as_dir in #(((
5373 '') as_dir=./ ;;
5374 */) ;;
5375 *) as_dir=$as_dir/ ;;
5376 esac
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5379 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5381 break 2
5382 fi
5383 done
5384 done
5385 IFS=$as_save_IFS
5386
5387 fi
5388 fi
5389 CC=$ac_cv_prog_CC
5390 if test -n "$CC"; then
5391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5392 printf "%s\n" "$CC" >&6; }
5393 else
5394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395 printf "%s\n" "no" >&6; }
5396 fi
5397
5398
5399 fi
5400 if test -z "$ac_cv_prog_CC"; then
5401 ac_ct_CC=$CC
5402 # Extract the first word of "gcc", so it can be a program name with args.
5403 set dummy gcc; ac_word=$2
5404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405 printf %s "checking for $ac_word... " >&6; }
5406 if test ${ac_cv_prog_ac_ct_CC+y}
5407 then :
5408 printf %s "(cached) " >&6
5409 else $as_nop
5410 if test -n "$ac_ct_CC"; then
5411 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5412 else
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 for as_dir in $PATH
5415 do
5416 IFS=$as_save_IFS
5417 case $as_dir in #(((
5418 '') as_dir=./ ;;
5419 */) ;;
5420 *) as_dir=$as_dir/ ;;
5421 esac
5422 for ac_exec_ext in '' $ac_executable_extensions; do
5423 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5424 ac_cv_prog_ac_ct_CC="gcc"
5425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5426 break 2
5427 fi
5428 done
5429 done
5430 IFS=$as_save_IFS
5431
5432 fi
5433 fi
5434 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5435 if test -n "$ac_ct_CC"; then
5436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5437 printf "%s\n" "$ac_ct_CC" >&6; }
5438 else
5439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440 printf "%s\n" "no" >&6; }
5441 fi
5442
5443 if test "x$ac_ct_CC" = x; then
5444 CC=""
5445 else
5446 case $cross_compiling:$ac_tool_warned in
5447 yes:)
5448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5449 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5450 ac_tool_warned=yes ;;
5451 esac
5452 CC=$ac_ct_CC
5453 fi
5454 else
5455 CC="$ac_cv_prog_CC"
5456 fi
5457
5458 if test -z "$CC"; then
5459 if test -n "$ac_tool_prefix"; then
5460 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5461 set dummy ${ac_tool_prefix}cc; ac_word=$2
5462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 printf %s "checking for $ac_word... " >&6; }
5464 if test ${ac_cv_prog_CC+y}
5465 then :
5466 printf %s "(cached) " >&6
5467 else $as_nop
5468 if test -n "$CC"; then
5469 ac_cv_prog_CC="$CC" # Let the user override the test.
5470 else
5471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472 for as_dir in $PATH
5473 do
5474 IFS=$as_save_IFS
5475 case $as_dir in #(((
5476 '') as_dir=./ ;;
5477 */) ;;
5478 *) as_dir=$as_dir/ ;;
5479 esac
5480 for ac_exec_ext in '' $ac_executable_extensions; do
5481 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5482 ac_cv_prog_CC="${ac_tool_prefix}cc"
5483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5484 break 2
5485 fi
5486 done
5487 done
5488 IFS=$as_save_IFS
5489
5490 fi
5491 fi
5492 CC=$ac_cv_prog_CC
5493 if test -n "$CC"; then
5494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5495 printf "%s\n" "$CC" >&6; }
5496 else
5497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498 printf "%s\n" "no" >&6; }
5499 fi
5500
5501
5502 fi
5503 fi
5504 if test -z "$CC"; then
5505 # Extract the first word of "cc", so it can be a program name with args.
5506 set dummy cc; ac_word=$2
5507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5508 printf %s "checking for $ac_word... " >&6; }
5509 if test ${ac_cv_prog_CC+y}
5510 then :
5511 printf %s "(cached) " >&6
5512 else $as_nop
5513 if test -n "$CC"; then
5514 ac_cv_prog_CC="$CC" # Let the user override the test.
5515 else
5516 ac_prog_rejected=no
5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 for as_dir in $PATH
5519 do
5520 IFS=$as_save_IFS
5521 case $as_dir in #(((
5522 '') as_dir=./ ;;
5523 */) ;;
5524 *) as_dir=$as_dir/ ;;
5525 esac
5526 for ac_exec_ext in '' $ac_executable_extensions; do
5527 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5528 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5529 ac_prog_rejected=yes
5530 continue
5531 fi
5532 ac_cv_prog_CC="cc"
5533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5534 break 2
5535 fi
5536 done
5537 done
5538 IFS=$as_save_IFS
5539
5540 if test $ac_prog_rejected = yes; then
5541 # We found a bogon in the path, so make sure we never use it.
5542 set dummy $ac_cv_prog_CC
5543 shift
5544 if test $# != 0; then
5545 # We chose a different compiler from the bogus one.
5546 # However, it has the same basename, so the bogon will be chosen
5547 # first if we set CC to just the basename; use the full file name.
5548 shift
5549 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5550 fi
5551 fi
5552 fi
5553 fi
5554 CC=$ac_cv_prog_CC
5555 if test -n "$CC"; then
5556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5557 printf "%s\n" "$CC" >&6; }
5558 else
5559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 printf "%s\n" "no" >&6; }
5561 fi
5562
5563
5564 fi
5565 if test -z "$CC"; then
5566 if test -n "$ac_tool_prefix"; then
5567 for ac_prog in cl.exe
5568 do
5569 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5570 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5572 printf %s "checking for $ac_word... " >&6; }
5573 if test ${ac_cv_prog_CC+y}
5574 then :
5575 printf %s "(cached) " >&6
5576 else $as_nop
5577 if test -n "$CC"; then
5578 ac_cv_prog_CC="$CC" # Let the user override the test.
5579 else
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH
5582 do
5583 IFS=$as_save_IFS
5584 case $as_dir in #(((
5585 '') as_dir=./ ;;
5586 */) ;;
5587 *) as_dir=$as_dir/ ;;
5588 esac
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5591 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5593 break 2
5594 fi
5595 done
5596 done
5597 IFS=$as_save_IFS
5598
5599 fi
5600 fi
5601 CC=$ac_cv_prog_CC
5602 if test -n "$CC"; then
5603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5604 printf "%s\n" "$CC" >&6; }
5605 else
5606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 printf "%s\n" "no" >&6; }
5608 fi
5609
5610
5611 test -n "$CC" && break
5612 done
5613 fi
5614 if test -z "$CC"; then
5615 ac_ct_CC=$CC
5616 for ac_prog in cl.exe
5617 do
5618 # Extract the first word of "$ac_prog", so it can be a program name with args.
5619 set dummy $ac_prog; ac_word=$2
5620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621 printf %s "checking for $ac_word... " >&6; }
5622 if test ${ac_cv_prog_ac_ct_CC+y}
5623 then :
5624 printf %s "(cached) " >&6
5625 else $as_nop
5626 if test -n "$ac_ct_CC"; then
5627 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5628 else
5629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 for as_dir in $PATH
5631 do
5632 IFS=$as_save_IFS
5633 case $as_dir in #(((
5634 '') as_dir=./ ;;
5635 */) ;;
5636 *) as_dir=$as_dir/ ;;
5637 esac
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5640 ac_cv_prog_ac_ct_CC="$ac_prog"
5641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5642 break 2
5643 fi
5644 done
5645 done
5646 IFS=$as_save_IFS
5647
5648 fi
5649 fi
5650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5651 if test -n "$ac_ct_CC"; then
5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5653 printf "%s\n" "$ac_ct_CC" >&6; }
5654 else
5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 printf "%s\n" "no" >&6; }
5657 fi
5658
5659
5660 test -n "$ac_ct_CC" && break
5661 done
5662
5663 if test "x$ac_ct_CC" = x; then
5664 CC=""
5665 else
5666 case $cross_compiling:$ac_tool_warned in
5667 yes:)
5668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5669 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5670 ac_tool_warned=yes ;;
5671 esac
5672 CC=$ac_ct_CC
5673 fi
5674 fi
5675
5676 fi
5677 if test -z "$CC"; then
5678 if test -n "$ac_tool_prefix"; then
5679 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5680 set dummy ${ac_tool_prefix}clang; ac_word=$2
5681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 printf %s "checking for $ac_word... " >&6; }
5683 if test ${ac_cv_prog_CC+y}
5684 then :
5685 printf %s "(cached) " >&6
5686 else $as_nop
5687 if test -n "$CC"; then
5688 ac_cv_prog_CC="$CC" # Let the user override the test.
5689 else
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691 for as_dir in $PATH
5692 do
5693 IFS=$as_save_IFS
5694 case $as_dir in #(((
5695 '') as_dir=./ ;;
5696 */) ;;
5697 *) as_dir=$as_dir/ ;;
5698 esac
5699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5701 ac_cv_prog_CC="${ac_tool_prefix}clang"
5702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5703 break 2
5704 fi
5705 done
5706 done
5707 IFS=$as_save_IFS
5708
5709 fi
5710 fi
5711 CC=$ac_cv_prog_CC
5712 if test -n "$CC"; then
5713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5714 printf "%s\n" "$CC" >&6; }
5715 else
5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717 printf "%s\n" "no" >&6; }
5718 fi
5719
5720
5721 fi
5722 if test -z "$ac_cv_prog_CC"; then
5723 ac_ct_CC=$CC
5724 # Extract the first word of "clang", so it can be a program name with args.
5725 set dummy clang; ac_word=$2
5726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727 printf %s "checking for $ac_word... " >&6; }
5728 if test ${ac_cv_prog_ac_ct_CC+y}
5729 then :
5730 printf %s "(cached) " >&6
5731 else $as_nop
5732 if test -n "$ac_ct_CC"; then
5733 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5734 else
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736 for as_dir in $PATH
5737 do
5738 IFS=$as_save_IFS
5739 case $as_dir in #(((
5740 '') as_dir=./ ;;
5741 */) ;;
5742 *) as_dir=$as_dir/ ;;
5743 esac
5744 for ac_exec_ext in '' $ac_executable_extensions; do
5745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5746 ac_cv_prog_ac_ct_CC="clang"
5747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5748 break 2
5749 fi
5750 done
5751 done
5752 IFS=$as_save_IFS
5753
5754 fi
5755 fi
5756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5757 if test -n "$ac_ct_CC"; then
5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5759 printf "%s\n" "$ac_ct_CC" >&6; }
5760 else
5761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762 printf "%s\n" "no" >&6; }
5763 fi
5764
5765 if test "x$ac_ct_CC" = x; then
5766 CC=""
5767 else
5768 case $cross_compiling:$ac_tool_warned in
5769 yes:)
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5771 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5772 ac_tool_warned=yes ;;
5773 esac
5774 CC=$ac_ct_CC
5775 fi
5776 else
5777 CC="$ac_cv_prog_CC"
5778 fi
5779
5780 fi
5781
5782
5783 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5784 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5785 as_fn_error $? "no acceptable C compiler found in \$PATH
5786 See \`config.log' for more details" "$LINENO" 5; }
5787
5788 # Provide some information about the compiler.
5789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5790 set X $ac_compile
5791 ac_compiler=$2
5792 for ac_option in --version -v -V -qversion -version; do
5793 { { ac_try="$ac_compiler $ac_option >&5"
5794 case "(($ac_try" in
5795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796 *) ac_try_echo=$ac_try;;
5797 esac
5798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5799 printf "%s\n" "$ac_try_echo"; } >&5
5800 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5801 ac_status=$?
5802 if test -s conftest.err; then
5803 sed '10a\
5804 ... rest of stderr output deleted ...
5805 10q' conftest.err >conftest.er1
5806 cat conftest.er1 >&5
5807 fi
5808 rm -f conftest.er1 conftest.err
5809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5810 test $ac_status = 0; }
5811 done
5812
5813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5814 printf %s "checking whether the compiler supports GNU C... " >&6; }
5815 if test ${ac_cv_c_compiler_gnu+y}
5816 then :
5817 printf %s "(cached) " >&6
5818 else $as_nop
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5821
5822 int
5823 main (void)
5824 {
5825 #ifndef __GNUC__
5826 choke me
5827 #endif
5828
5829 ;
5830 return 0;
5831 }
5832 _ACEOF
5833 if ac_fn_c_try_compile "$LINENO"
5834 then :
5835 ac_compiler_gnu=yes
5836 else $as_nop
5837 ac_compiler_gnu=no
5838 fi
5839 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5840 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5841
5842 fi
5843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5844 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5846
5847 if test $ac_compiler_gnu = yes; then
5848 GCC=yes
5849 else
5850 GCC=
5851 fi
5852 ac_test_CFLAGS=${CFLAGS+y}
5853 ac_save_CFLAGS=$CFLAGS
5854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5855 printf %s "checking whether $CC accepts -g... " >&6; }
5856 if test ${ac_cv_prog_cc_g+y}
5857 then :
5858 printf %s "(cached) " >&6
5859 else $as_nop
5860 ac_save_c_werror_flag=$ac_c_werror_flag
5861 ac_c_werror_flag=yes
5862 ac_cv_prog_cc_g=no
5863 CFLAGS="-g"
5864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865 /* end confdefs.h. */
5866
5867 int
5868 main (void)
5869 {
5870
5871 ;
5872 return 0;
5873 }
5874 _ACEOF
5875 if ac_fn_c_try_compile "$LINENO"
5876 then :
5877 ac_cv_prog_cc_g=yes
5878 else $as_nop
5879 CFLAGS=""
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881 /* end confdefs.h. */
5882
5883 int
5884 main (void)
5885 {
5886
5887 ;
5888 return 0;
5889 }
5890 _ACEOF
5891 if ac_fn_c_try_compile "$LINENO"
5892 then :
5893
5894 else $as_nop
5895 ac_c_werror_flag=$ac_save_c_werror_flag
5896 CFLAGS="-g"
5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898 /* end confdefs.h. */
5899
5900 int
5901 main (void)
5902 {
5903
5904 ;
5905 return 0;
5906 }
5907 _ACEOF
5908 if ac_fn_c_try_compile "$LINENO"
5909 then :
5910 ac_cv_prog_cc_g=yes
5911 fi
5912 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5913 fi
5914 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5915 fi
5916 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5917 ac_c_werror_flag=$ac_save_c_werror_flag
5918 fi
5919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5920 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5921 if test $ac_test_CFLAGS; then
5922 CFLAGS=$ac_save_CFLAGS
5923 elif test $ac_cv_prog_cc_g = yes; then
5924 if test "$GCC" = yes; then
5925 CFLAGS="-g -O2"
5926 else
5927 CFLAGS="-g"
5928 fi
5929 else
5930 if test "$GCC" = yes; then
5931 CFLAGS="-O2"
5932 else
5933 CFLAGS=
5934 fi
5935 fi
5936 ac_prog_cc_stdc=no
5937 if test x$ac_prog_cc_stdc = xno
5938 then :
5939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5940 printf %s "checking for $CC option to enable C11 features... " >&6; }
5941 if test ${ac_cv_prog_cc_c11+y}
5942 then :
5943 printf %s "(cached) " >&6
5944 else $as_nop
5945 ac_cv_prog_cc_c11=no
5946 ac_save_CC=$CC
5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948 /* end confdefs.h. */
5949 $ac_c_conftest_c11_program
5950 _ACEOF
5951 for ac_arg in '' -std=gnu11
5952 do
5953 CC="$ac_save_CC $ac_arg"
5954 if ac_fn_c_try_compile "$LINENO"
5955 then :
5956 ac_cv_prog_cc_c11=$ac_arg
5957 fi
5958 rm -f core conftest.err conftest.$ac_objext conftest.beam
5959 test "x$ac_cv_prog_cc_c11" != "xno" && break
5960 done
5961 rm -f conftest.$ac_ext
5962 CC=$ac_save_CC
5963 fi
5964
5965 if test "x$ac_cv_prog_cc_c11" = xno
5966 then :
5967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5968 printf "%s\n" "unsupported" >&6; }
5969 else $as_nop
5970 if test "x$ac_cv_prog_cc_c11" = x
5971 then :
5972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5973 printf "%s\n" "none needed" >&6; }
5974 else $as_nop
5975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5976 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5977 CC="$CC $ac_cv_prog_cc_c11"
5978 fi
5979 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5980 ac_prog_cc_stdc=c11
5981 fi
5982 fi
5983 if test x$ac_prog_cc_stdc = xno
5984 then :
5985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5986 printf %s "checking for $CC option to enable C99 features... " >&6; }
5987 if test ${ac_cv_prog_cc_c99+y}
5988 then :
5989 printf %s "(cached) " >&6
5990 else $as_nop
5991 ac_cv_prog_cc_c99=no
5992 ac_save_CC=$CC
5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5995 $ac_c_conftest_c99_program
5996 _ACEOF
5997 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5998 do
5999 CC="$ac_save_CC $ac_arg"
6000 if ac_fn_c_try_compile "$LINENO"
6001 then :
6002 ac_cv_prog_cc_c99=$ac_arg
6003 fi
6004 rm -f core conftest.err conftest.$ac_objext conftest.beam
6005 test "x$ac_cv_prog_cc_c99" != "xno" && break
6006 done
6007 rm -f conftest.$ac_ext
6008 CC=$ac_save_CC
6009 fi
6010
6011 if test "x$ac_cv_prog_cc_c99" = xno
6012 then :
6013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6014 printf "%s\n" "unsupported" >&6; }
6015 else $as_nop
6016 if test "x$ac_cv_prog_cc_c99" = x
6017 then :
6018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6019 printf "%s\n" "none needed" >&6; }
6020 else $as_nop
6021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6022 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
6023 CC="$CC $ac_cv_prog_cc_c99"
6024 fi
6025 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6026 ac_prog_cc_stdc=c99
6027 fi
6028 fi
6029 if test x$ac_prog_cc_stdc = xno
6030 then :
6031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6032 printf %s "checking for $CC option to enable C89 features... " >&6; }
6033 if test ${ac_cv_prog_cc_c89+y}
6034 then :
6035 printf %s "(cached) " >&6
6036 else $as_nop
6037 ac_cv_prog_cc_c89=no
6038 ac_save_CC=$CC
6039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040 /* end confdefs.h. */
6041 $ac_c_conftest_c89_program
6042 _ACEOF
6043 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6044 do
6045 CC="$ac_save_CC $ac_arg"
6046 if ac_fn_c_try_compile "$LINENO"
6047 then :
6048 ac_cv_prog_cc_c89=$ac_arg
6049 fi
6050 rm -f core conftest.err conftest.$ac_objext conftest.beam
6051 test "x$ac_cv_prog_cc_c89" != "xno" && break
6052 done
6053 rm -f conftest.$ac_ext
6054 CC=$ac_save_CC
6055 fi
6056
6057 if test "x$ac_cv_prog_cc_c89" = xno
6058 then :
6059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6060 printf "%s\n" "unsupported" >&6; }
6061 else $as_nop
6062 if test "x$ac_cv_prog_cc_c89" = x
6063 then :
6064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6065 printf "%s\n" "none needed" >&6; }
6066 else $as_nop
6067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6068 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6069 CC="$CC $ac_cv_prog_cc_c89"
6070 fi
6071 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6072 ac_prog_cc_stdc=c89
6073 fi
6074 fi
6075
6076 ac_ext=c
6077 ac_cpp='$CPP $CPPFLAGS'
6078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6081
6082
6083 ac_ext=c
6084 ac_cpp='$CPP $CPPFLAGS'
6085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6089 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6090 if test ${am_cv_prog_cc_c_o+y}
6091 then :
6092 printf %s "(cached) " >&6
6093 else $as_nop
6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095 /* end confdefs.h. */
6096
6097 int
6098 main (void)
6099 {
6100
6101 ;
6102 return 0;
6103 }
6104 _ACEOF
6105 # Make sure it works both with $CC and with simple cc.
6106 # Following AC_PROG_CC_C_O, we do the test twice because some
6107 # compilers refuse to overwrite an existing .o file with -o,
6108 # though they will create one.
6109 am_cv_prog_cc_c_o=yes
6110 for am_i in 1 2; do
6111 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6112 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6113 ac_status=$?
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); } \
6116 && test -f conftest2.$ac_objext; then
6117 : OK
6118 else
6119 am_cv_prog_cc_c_o=no
6120 break
6121 fi
6122 done
6123 rm -f core conftest*
6124 unset am_i
6125 fi
6126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6127 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6128 if test "$am_cv_prog_cc_c_o" != yes; then
6129 # Losing compiler, so override with the script.
6130 # FIXME: It is wrong to rewrite CC.
6131 # But if we don't then we get into trouble of one sort or another.
6132 # A longer-term fix would be to have automake use am__CC in this case,
6133 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6134 CC="$am_aux_dir/compile $CC"
6135 fi
6136 ac_ext=c
6137 ac_cpp='$CPP $CPPFLAGS'
6138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6141
6142
6143 depcc="$CC" am_compiler_list=
6144
6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6146 printf %s "checking dependency style of $depcc... " >&6; }
6147 if test ${am_cv_CC_dependencies_compiler_type+y}
6148 then :
6149 printf %s "(cached) " >&6
6150 else $as_nop
6151 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6152 # We make a subdir and do the tests there. Otherwise we can end up
6153 # making bogus files that we don't know about and never remove. For
6154 # instance it was reported that on HP-UX the gcc test will end up
6155 # making a dummy file named 'D' -- because '-MD' means "put the output
6156 # in D".
6157 rm -rf conftest.dir
6158 mkdir conftest.dir
6159 # Copy depcomp to subdir because otherwise we won't find it if we're
6160 # using a relative directory.
6161 cp "$am_depcomp" conftest.dir
6162 cd conftest.dir
6163 # We will build objects and dependencies in a subdirectory because
6164 # it helps to detect inapplicable dependency modes. For instance
6165 # both Tru64's cc and ICC support -MD to output dependencies as a
6166 # side effect of compilation, but ICC will put the dependencies in
6167 # the current directory while Tru64 will put them in the object
6168 # directory.
6169 mkdir sub
6170
6171 am_cv_CC_dependencies_compiler_type=none
6172 if test "$am_compiler_list" = ""; then
6173 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6174 fi
6175 am__universal=false
6176 case " $depcc " in #(
6177 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6178 esac
6179
6180 for depmode in $am_compiler_list; do
6181 # Setup a source with many dependencies, because some compilers
6182 # like to wrap large dependency lists on column 80 (with \), and
6183 # we should not choose a depcomp mode which is confused by this.
6184 #
6185 # We need to recreate these files for each test, as the compiler may
6186 # overwrite some of them when testing with obscure command lines.
6187 # This happens at least with the AIX C compiler.
6188 : > sub/conftest.c
6189 for i in 1 2 3 4 5 6; do
6190 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6191 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6192 # Solaris 10 /bin/sh.
6193 echo '/* dummy */' > sub/conftst$i.h
6194 done
6195 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6196
6197 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6198 # mode. It turns out that the SunPro C++ compiler does not properly
6199 # handle '-M -o', and we need to detect this. Also, some Intel
6200 # versions had trouble with output in subdirs.
6201 am__obj=sub/conftest.${OBJEXT-o}
6202 am__minus_obj="-o $am__obj"
6203 case $depmode in
6204 gcc)
6205 # This depmode causes a compiler race in universal mode.
6206 test "$am__universal" = false || continue
6207 ;;
6208 nosideeffect)
6209 # After this tag, mechanisms are not by side-effect, so they'll
6210 # only be used when explicitly requested.
6211 if test "x$enable_dependency_tracking" = xyes; then
6212 continue
6213 else
6214 break
6215 fi
6216 ;;
6217 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6218 # This compiler won't grok '-c -o', but also, the minuso test has
6219 # not run yet. These depmodes are late enough in the game, and
6220 # so weak that their functioning should not be impacted.
6221 am__obj=conftest.${OBJEXT-o}
6222 am__minus_obj=
6223 ;;
6224 none) break ;;
6225 esac
6226 if depmode=$depmode \
6227 source=sub/conftest.c object=$am__obj \
6228 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6229 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6230 >/dev/null 2>conftest.err &&
6231 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6232 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6233 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6234 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6235 # icc doesn't choke on unknown options, it will just issue warnings
6236 # or remarks (even with -Werror). So we grep stderr for any message
6237 # that says an option was ignored or not supported.
6238 # When given -MP, icc 7.0 and 7.1 complain thusly:
6239 # icc: Command line warning: ignoring option '-M'; no argument required
6240 # The diagnosis changed in icc 8.0:
6241 # icc: Command line remark: option '-MP' not supported
6242 if (grep 'ignoring option' conftest.err ||
6243 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6244 am_cv_CC_dependencies_compiler_type=$depmode
6245 break
6246 fi
6247 fi
6248 done
6249
6250 cd ..
6251 rm -rf conftest.dir
6252 else
6253 am_cv_CC_dependencies_compiler_type=none
6254 fi
6255
6256 fi
6257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6258 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6259 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6260
6261 if
6262 test "x$enable_dependency_tracking" != xno \
6263 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6264 am__fastdepCC_TRUE=
6265 am__fastdepCC_FALSE='#'
6266 else
6267 am__fastdepCC_TRUE='#'
6268 am__fastdepCC_FALSE=
6269 fi
6270
6271
6272 ac_ext=c
6273 ac_cpp='$CPP $CPPFLAGS'
6274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6278 printf %s "checking how to run the C preprocessor... " >&6; }
6279 # On Suns, sometimes $CPP names a directory.
6280 if test -n "$CPP" && test -d "$CPP"; then
6281 CPP=
6282 fi
6283 if test -z "$CPP"; then
6284 if test ${ac_cv_prog_CPP+y}
6285 then :
6286 printf %s "(cached) " >&6
6287 else $as_nop
6288 # Double quotes because $CC needs to be expanded
6289 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6290 do
6291 ac_preproc_ok=false
6292 for ac_c_preproc_warn_flag in '' yes
6293 do
6294 # Use a header file that comes with gcc, so configuring glibc
6295 # with a fresh cross-compiler works.
6296 # On the NeXT, cc -E runs the code through the compiler's parser,
6297 # not just through cpp. "Syntax error" is here to catch this case.
6298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6299 /* end confdefs.h. */
6300 #include <limits.h>
6301 Syntax error
6302 _ACEOF
6303 if ac_fn_c_try_cpp "$LINENO"
6304 then :
6305
6306 else $as_nop
6307 # Broken: fails on valid input.
6308 continue
6309 fi
6310 rm -f conftest.err conftest.i conftest.$ac_ext
6311
6312 # OK, works on sane cases. Now check whether nonexistent headers
6313 # can be detected and how.
6314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315 /* end confdefs.h. */
6316 #include <ac_nonexistent.h>
6317 _ACEOF
6318 if ac_fn_c_try_cpp "$LINENO"
6319 then :
6320 # Broken: success on invalid input.
6321 continue
6322 else $as_nop
6323 # Passes both tests.
6324 ac_preproc_ok=:
6325 break
6326 fi
6327 rm -f conftest.err conftest.i conftest.$ac_ext
6328
6329 done
6330 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6331 rm -f conftest.i conftest.err conftest.$ac_ext
6332 if $ac_preproc_ok
6333 then :
6334 break
6335 fi
6336
6337 done
6338 ac_cv_prog_CPP=$CPP
6339
6340 fi
6341 CPP=$ac_cv_prog_CPP
6342 else
6343 ac_cv_prog_CPP=$CPP
6344 fi
6345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6346 printf "%s\n" "$CPP" >&6; }
6347 ac_preproc_ok=false
6348 for ac_c_preproc_warn_flag in '' yes
6349 do
6350 # Use a header file that comes with gcc, so configuring glibc
6351 # with a fresh cross-compiler works.
6352 # On the NeXT, cc -E runs the code through the compiler's parser,
6353 # not just through cpp. "Syntax error" is here to catch this case.
6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6356 #include <limits.h>
6357 Syntax error
6358 _ACEOF
6359 if ac_fn_c_try_cpp "$LINENO"
6360 then :
6361
6362 else $as_nop
6363 # Broken: fails on valid input.
6364 continue
6365 fi
6366 rm -f conftest.err conftest.i conftest.$ac_ext
6367
6368 # OK, works on sane cases. Now check whether nonexistent headers
6369 # can be detected and how.
6370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6371 /* end confdefs.h. */
6372 #include <ac_nonexistent.h>
6373 _ACEOF
6374 if ac_fn_c_try_cpp "$LINENO"
6375 then :
6376 # Broken: success on invalid input.
6377 continue
6378 else $as_nop
6379 # Passes both tests.
6380 ac_preproc_ok=:
6381 break
6382 fi
6383 rm -f conftest.err conftest.i conftest.$ac_ext
6384
6385 done
6386 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6387 rm -f conftest.i conftest.err conftest.$ac_ext
6388 if $ac_preproc_ok
6389 then :
6390
6391 else $as_nop
6392 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6393 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6394 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6395 See \`config.log' for more details" "$LINENO" 5; }
6396 fi
6397
6398 ac_ext=c
6399 ac_cpp='$CPP $CPPFLAGS'
6400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6403
6404
6405 # By default we simply use the C compiler to build assembly code.
6406
6407 test "${CCAS+set}" = set || CCAS=$CC
6408 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6409
6410
6411
6412 depcc="$CCAS" am_compiler_list=
6413
6414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6415 printf %s "checking dependency style of $depcc... " >&6; }
6416 if test ${am_cv_CCAS_dependencies_compiler_type+y}
6417 then :
6418 printf %s "(cached) " >&6
6419 else $as_nop
6420 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6421 # We make a subdir and do the tests there. Otherwise we can end up
6422 # making bogus files that we don't know about and never remove. For
6423 # instance it was reported that on HP-UX the gcc test will end up
6424 # making a dummy file named 'D' -- because '-MD' means "put the output
6425 # in D".
6426 rm -rf conftest.dir
6427 mkdir conftest.dir
6428 # Copy depcomp to subdir because otherwise we won't find it if we're
6429 # using a relative directory.
6430 cp "$am_depcomp" conftest.dir
6431 cd conftest.dir
6432 # We will build objects and dependencies in a subdirectory because
6433 # it helps to detect inapplicable dependency modes. For instance
6434 # both Tru64's cc and ICC support -MD to output dependencies as a
6435 # side effect of compilation, but ICC will put the dependencies in
6436 # the current directory while Tru64 will put them in the object
6437 # directory.
6438 mkdir sub
6439
6440 am_cv_CCAS_dependencies_compiler_type=none
6441 if test "$am_compiler_list" = ""; then
6442 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6443 fi
6444 am__universal=false
6445
6446
6447 for depmode in $am_compiler_list; do
6448 # Setup a source with many dependencies, because some compilers
6449 # like to wrap large dependency lists on column 80 (with \), and
6450 # we should not choose a depcomp mode which is confused by this.
6451 #
6452 # We need to recreate these files for each test, as the compiler may
6453 # overwrite some of them when testing with obscure command lines.
6454 # This happens at least with the AIX C compiler.
6455 : > sub/conftest.c
6456 for i in 1 2 3 4 5 6; do
6457 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6458 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6459 # Solaris 10 /bin/sh.
6460 echo '/* dummy */' > sub/conftst$i.h
6461 done
6462 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6463
6464 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6465 # mode. It turns out that the SunPro C++ compiler does not properly
6466 # handle '-M -o', and we need to detect this. Also, some Intel
6467 # versions had trouble with output in subdirs.
6468 am__obj=sub/conftest.${OBJEXT-o}
6469 am__minus_obj="-o $am__obj"
6470 case $depmode in
6471 gcc)
6472 # This depmode causes a compiler race in universal mode.
6473 test "$am__universal" = false || continue
6474 ;;
6475 nosideeffect)
6476 # After this tag, mechanisms are not by side-effect, so they'll
6477 # only be used when explicitly requested.
6478 if test "x$enable_dependency_tracking" = xyes; then
6479 continue
6480 else
6481 break
6482 fi
6483 ;;
6484 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6485 # This compiler won't grok '-c -o', but also, the minuso test has
6486 # not run yet. These depmodes are late enough in the game, and
6487 # so weak that their functioning should not be impacted.
6488 am__obj=conftest.${OBJEXT-o}
6489 am__minus_obj=
6490 ;;
6491 none) break ;;
6492 esac
6493 if depmode=$depmode \
6494 source=sub/conftest.c object=$am__obj \
6495 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6496 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6497 >/dev/null 2>conftest.err &&
6498 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6499 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6500 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6501 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6502 # icc doesn't choke on unknown options, it will just issue warnings
6503 # or remarks (even with -Werror). So we grep stderr for any message
6504 # that says an option was ignored or not supported.
6505 # When given -MP, icc 7.0 and 7.1 complain thusly:
6506 # icc: Command line warning: ignoring option '-M'; no argument required
6507 # The diagnosis changed in icc 8.0:
6508 # icc: Command line remark: option '-MP' not supported
6509 if (grep 'ignoring option' conftest.err ||
6510 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6511 am_cv_CCAS_dependencies_compiler_type=$depmode
6512 break
6513 fi
6514 fi
6515 done
6516
6517 cd ..
6518 rm -rf conftest.dir
6519 else
6520 am_cv_CCAS_dependencies_compiler_type=none
6521 fi
6522
6523 fi
6524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6525 printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6526 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6527
6528 if
6529 test "x$enable_dependency_tracking" != xno \
6530 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6531 am__fastdepCCAS_TRUE=
6532 am__fastdepCCAS_FALSE='#'
6533 else
6534 am__fastdepCCAS_TRUE='#'
6535 am__fastdepCCAS_FALSE=
6536 fi
6537
6538
6539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
6540 printf %s "checking for library containing strerror... " >&6; }
6541 if test ${ac_cv_search_strerror+y}
6542 then :
6543 printf %s "(cached) " >&6
6544 else $as_nop
6545 ac_func_search_save_LIBS=$LIBS
6546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547 /* end confdefs.h. */
6548
6549 /* Override any GCC internal prototype to avoid an error.
6550 Use char because int might match the return type of a GCC
6551 builtin and then its argument prototype would still apply. */
6552 char strerror ();
6553 int
6554 main (void)
6555 {
6556 return strerror ();
6557 ;
6558 return 0;
6559 }
6560 _ACEOF
6561 for ac_lib in '' cposix
6562 do
6563 if test -z "$ac_lib"; then
6564 ac_res="none required"
6565 else
6566 ac_res=-l$ac_lib
6567 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6568 fi
6569 if ac_fn_c_try_link "$LINENO"
6570 then :
6571 ac_cv_search_strerror=$ac_res
6572 fi
6573 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6574 conftest$ac_exeext
6575 if test ${ac_cv_search_strerror+y}
6576 then :
6577 break
6578 fi
6579 done
6580 if test ${ac_cv_search_strerror+y}
6581 then :
6582
6583 else $as_nop
6584 ac_cv_search_strerror=no
6585 fi
6586 rm conftest.$ac_ext
6587 LIBS=$ac_func_search_save_LIBS
6588 fi
6589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
6590 printf "%s\n" "$ac_cv_search_strerror" >&6; }
6591 ac_res=$ac_cv_search_strerror
6592 if test "$ac_res" != no
6593 then :
6594 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6595
6596 fi
6597
6598
6599 for ac_prog in gawk mawk nawk awk
6600 do
6601 # Extract the first word of "$ac_prog", so it can be a program name with args.
6602 set dummy $ac_prog; ac_word=$2
6603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604 printf %s "checking for $ac_word... " >&6; }
6605 if test ${ac_cv_prog_AWK+y}
6606 then :
6607 printf %s "(cached) " >&6
6608 else $as_nop
6609 if test -n "$AWK"; then
6610 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6611 else
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 for as_dir in $PATH
6614 do
6615 IFS=$as_save_IFS
6616 case $as_dir in #(((
6617 '') as_dir=./ ;;
6618 */) ;;
6619 *) as_dir=$as_dir/ ;;
6620 esac
6621 for ac_exec_ext in '' $ac_executable_extensions; do
6622 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6623 ac_cv_prog_AWK="$ac_prog"
6624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6625 break 2
6626 fi
6627 done
6628 done
6629 IFS=$as_save_IFS
6630
6631 fi
6632 fi
6633 AWK=$ac_cv_prog_AWK
6634 if test -n "$AWK"; then
6635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6636 printf "%s\n" "$AWK" >&6; }
6637 else
6638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6639 printf "%s\n" "no" >&6; }
6640 fi
6641
6642
6643 test -n "$AWK" && break
6644 done
6645
6646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6647 printf %s "checking for grep that handles long lines and -e... " >&6; }
6648 if test ${ac_cv_path_GREP+y}
6649 then :
6650 printf %s "(cached) " >&6
6651 else $as_nop
6652 if test -z "$GREP"; then
6653 ac_path_GREP_found=false
6654 # Loop through the user's path and test for each of PROGNAME-LIST
6655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6657 do
6658 IFS=$as_save_IFS
6659 case $as_dir in #(((
6660 '') as_dir=./ ;;
6661 */) ;;
6662 *) as_dir=$as_dir/ ;;
6663 esac
6664 for ac_prog in grep ggrep
6665 do
6666 for ac_exec_ext in '' $ac_executable_extensions; do
6667 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6668 as_fn_executable_p "$ac_path_GREP" || continue
6669 # Check for GNU ac_path_GREP and select it if it is found.
6670 # Check for GNU $ac_path_GREP
6671 case `"$ac_path_GREP" --version 2>&1` in
6672 *GNU*)
6673 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6674 *)
6675 ac_count=0
6676 printf %s 0123456789 >"conftest.in"
6677 while :
6678 do
6679 cat "conftest.in" "conftest.in" >"conftest.tmp"
6680 mv "conftest.tmp" "conftest.in"
6681 cp "conftest.in" "conftest.nl"
6682 printf "%s\n" 'GREP' >> "conftest.nl"
6683 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6685 as_fn_arith $ac_count + 1 && ac_count=$as_val
6686 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6687 # Best one so far, save it but keep looking for a better one
6688 ac_cv_path_GREP="$ac_path_GREP"
6689 ac_path_GREP_max=$ac_count
6690 fi
6691 # 10*(2^10) chars as input seems more than enough
6692 test $ac_count -gt 10 && break
6693 done
6694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6695 esac
6696
6697 $ac_path_GREP_found && break 3
6698 done
6699 done
6700 done
6701 IFS=$as_save_IFS
6702 if test -z "$ac_cv_path_GREP"; then
6703 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6704 fi
6705 else
6706 ac_cv_path_GREP=$GREP
6707 fi
6708
6709 fi
6710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6711 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6712 GREP="$ac_cv_path_GREP"
6713
6714
6715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6716 printf %s "checking for fgrep... " >&6; }
6717 if test ${ac_cv_path_FGREP+y}
6718 then :
6719 printf %s "(cached) " >&6
6720 else $as_nop
6721 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6722 then ac_cv_path_FGREP="$GREP -F"
6723 else
6724 if test -z "$FGREP"; then
6725 ac_path_FGREP_found=false
6726 # Loop through the user's path and test for each of PROGNAME-LIST
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6729 do
6730 IFS=$as_save_IFS
6731 case $as_dir in #(((
6732 '') as_dir=./ ;;
6733 */) ;;
6734 *) as_dir=$as_dir/ ;;
6735 esac
6736 for ac_prog in fgrep
6737 do
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6740 as_fn_executable_p "$ac_path_FGREP" || continue
6741 # Check for GNU ac_path_FGREP and select it if it is found.
6742 # Check for GNU $ac_path_FGREP
6743 case `"$ac_path_FGREP" --version 2>&1` in
6744 *GNU*)
6745 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6746 *)
6747 ac_count=0
6748 printf %s 0123456789 >"conftest.in"
6749 while :
6750 do
6751 cat "conftest.in" "conftest.in" >"conftest.tmp"
6752 mv "conftest.tmp" "conftest.in"
6753 cp "conftest.in" "conftest.nl"
6754 printf "%s\n" 'FGREP' >> "conftest.nl"
6755 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6756 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6757 as_fn_arith $ac_count + 1 && ac_count=$as_val
6758 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6759 # Best one so far, save it but keep looking for a better one
6760 ac_cv_path_FGREP="$ac_path_FGREP"
6761 ac_path_FGREP_max=$ac_count
6762 fi
6763 # 10*(2^10) chars as input seems more than enough
6764 test $ac_count -gt 10 && break
6765 done
6766 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6767 esac
6768
6769 $ac_path_FGREP_found && break 3
6770 done
6771 done
6772 done
6773 IFS=$as_save_IFS
6774 if test -z "$ac_cv_path_FGREP"; then
6775 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6776 fi
6777 else
6778 ac_cv_path_FGREP=$FGREP
6779 fi
6780
6781 fi
6782 fi
6783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6784 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6785 FGREP="$ac_cv_path_FGREP"
6786
6787
6788
6789 # Taken from mpfr-4.0.1, then modified for LDADD_FOR_TESTS_KLUDGE
6790 case $host in
6791 *-*-linux*)
6792 if test -n "$LD_LIBRARY_PATH"; then
6793 saved_LDFLAGS="$LDFLAGS"
6794 LDADD_FOR_TESTS_KLUDGE="-Wl,--disable-new-dtags"
6795 LDFLAGS="$LDFLAGS $LDADD_FOR_TESTS_KLUDGE"
6796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether --disable-new-dtags is supported by the linker" >&5
6797 printf %s "checking whether --disable-new-dtags is supported by the linker... " >&6; }
6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h. */
6800
6801 int main (void) { return 0; }
6802
6803 _ACEOF
6804 if ac_fn_c_try_link "$LINENO"
6805 then :
6806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (use it since LD_LIBRARY_PATH is set)" >&5
6807 printf "%s\n" "yes (use it since LD_LIBRARY_PATH is set)" >&6; }
6808 else $as_nop
6809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810 printf "%s\n" "no" >&6; }
6811 LDADD_FOR_TESTS_KLUDGE=""
6812
6813 fi
6814 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6815 conftest$ac_exeext conftest.$ac_ext
6816 LDFLAGS="$saved_LDFLAGS"
6817 fi
6818 ;;
6819 esac
6820
6821
6822 VERSION_NUMBER=0x010b00
6823
6824
6825 # We need to compile and run a program on the build machine.
6826 # Put a plausible default for CC_FOR_BUILD in Makefile.
6827 if test -z "$CC_FOR_BUILD"; then
6828 if test "x$cross_compiling" = "xno"; then
6829 CC_FOR_BUILD='$(CC)'
6830 else
6831 CC_FOR_BUILD=gcc
6832 fi
6833 fi
6834
6835 # Also set EXEEXT_FOR_BUILD.
6836 if test "x$cross_compiling" = "xno"; then
6837 EXEEXT_FOR_BUILD='$(EXEEXT)'
6838 else
6839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
6840 printf %s "checking for build system executable suffix... " >&6; }
6841 if test ${bfd_cv_build_exeext+y}
6842 then :
6843 printf %s "(cached) " >&6
6844 else $as_nop
6845 rm -f conftest*
6846 echo 'int main (void) { return 0; }' > conftest.c
6847 bfd_cv_build_exeext=
6848 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
6849 for file in conftest.*; do
6850 case $file in
6851 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
6852 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
6853 esac
6854 done
6855 rm -f conftest*
6856 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
6857 fi
6858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
6859 printf "%s\n" "$bfd_cv_build_exeext" >&6; }
6860 EXEEXT_FOR_BUILD=""
6861 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
6862 fi
6863
6864
6865
6866
6867 case `pwd` in
6868 *\ * | *\ *)
6869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6870 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6871 esac
6872
6873
6874
6875 macro_version='2.4.2'
6876 macro_revision='1.3337'
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891 ltmain="$ac_aux_dir/ltmain.sh"
6892
6893 # Backslashify metacharacters that are still active within
6894 # double-quoted strings.
6895 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6896
6897 # Same as above, but do not quote variable references.
6898 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6899
6900 # Sed substitution to delay expansion of an escaped shell variable in a
6901 # double_quote_subst'ed string.
6902 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6903
6904 # Sed substitution to delay expansion of an escaped single quote.
6905 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6906
6907 # Sed substitution to avoid accidental globbing in evaled expressions
6908 no_glob_subst='s/\*/\\\*/g'
6909
6910 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6911 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6912 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6913
6914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6915 printf %s "checking how to print strings... " >&6; }
6916 # Test print first, because it will be a builtin if present.
6917 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6918 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6919 ECHO='print -r --'
6920 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6921 ECHO='printf %s\n'
6922 else
6923 # Use this function as a fallback that always works.
6924 func_fallback_echo ()
6925 {
6926 eval 'cat <<_LTECHO_EOF
6927 $1
6928 _LTECHO_EOF'
6929 }
6930 ECHO='func_fallback_echo'
6931 fi
6932
6933 # func_echo_all arg...
6934 # Invoke $ECHO with all args, space-separated.
6935 func_echo_all ()
6936 {
6937 $ECHO ""
6938 }
6939
6940 case "$ECHO" in
6941 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6942 printf "%s\n" "printf" >&6; } ;;
6943 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6944 printf "%s\n" "print -r" >&6; } ;;
6945 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6946 printf "%s\n" "cat" >&6; } ;;
6947 esac
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6963 printf %s "checking for a sed that does not truncate output... " >&6; }
6964 if test ${ac_cv_path_SED+y}
6965 then :
6966 printf %s "(cached) " >&6
6967 else $as_nop
6968 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6969 for ac_i in 1 2 3 4 5 6 7; do
6970 ac_script="$ac_script$as_nl$ac_script"
6971 done
6972 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6973 { ac_script=; unset ac_script;}
6974 if test -z "$SED"; then
6975 ac_path_SED_found=false
6976 # Loop through the user's path and test for each of PROGNAME-LIST
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH
6979 do
6980 IFS=$as_save_IFS
6981 case $as_dir in #(((
6982 '') as_dir=./ ;;
6983 */) ;;
6984 *) as_dir=$as_dir/ ;;
6985 esac
6986 for ac_prog in sed gsed
6987 do
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6990 as_fn_executable_p "$ac_path_SED" || continue
6991 # Check for GNU ac_path_SED and select it if it is found.
6992 # Check for GNU $ac_path_SED
6993 case `"$ac_path_SED" --version 2>&1` in
6994 *GNU*)
6995 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6996 *)
6997 ac_count=0
6998 printf %s 0123456789 >"conftest.in"
6999 while :
7000 do
7001 cat "conftest.in" "conftest.in" >"conftest.tmp"
7002 mv "conftest.tmp" "conftest.in"
7003 cp "conftest.in" "conftest.nl"
7004 printf "%s\n" '' >> "conftest.nl"
7005 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7006 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7007 as_fn_arith $ac_count + 1 && ac_count=$as_val
7008 if test $ac_count -gt ${ac_path_SED_max-0}; then
7009 # Best one so far, save it but keep looking for a better one
7010 ac_cv_path_SED="$ac_path_SED"
7011 ac_path_SED_max=$ac_count
7012 fi
7013 # 10*(2^10) chars as input seems more than enough
7014 test $ac_count -gt 10 && break
7015 done
7016 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7017 esac
7018
7019 $ac_path_SED_found && break 3
7020 done
7021 done
7022 done
7023 IFS=$as_save_IFS
7024 if test -z "$ac_cv_path_SED"; then
7025 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7026 fi
7027 else
7028 ac_cv_path_SED=$SED
7029 fi
7030
7031 fi
7032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7033 printf "%s\n" "$ac_cv_path_SED" >&6; }
7034 SED="$ac_cv_path_SED"
7035 rm -f conftest.sed
7036
7037 test -z "$SED" && SED=sed
7038 Xsed="$SED -e 1s/^X//"
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7051 printf %s "checking for egrep... " >&6; }
7052 if test ${ac_cv_path_EGREP+y}
7053 then :
7054 printf %s "(cached) " >&6
7055 else $as_nop
7056 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7057 then ac_cv_path_EGREP="$GREP -E"
7058 else
7059 if test -z "$EGREP"; then
7060 ac_path_EGREP_found=false
7061 # Loop through the user's path and test for each of PROGNAME-LIST
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7064 do
7065 IFS=$as_save_IFS
7066 case $as_dir in #(((
7067 '') as_dir=./ ;;
7068 */) ;;
7069 *) as_dir=$as_dir/ ;;
7070 esac
7071 for ac_prog in egrep
7072 do
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7075 as_fn_executable_p "$ac_path_EGREP" || continue
7076 # Check for GNU ac_path_EGREP and select it if it is found.
7077 # Check for GNU $ac_path_EGREP
7078 case `"$ac_path_EGREP" --version 2>&1` in
7079 *GNU*)
7080 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7081 *)
7082 ac_count=0
7083 printf %s 0123456789 >"conftest.in"
7084 while :
7085 do
7086 cat "conftest.in" "conftest.in" >"conftest.tmp"
7087 mv "conftest.tmp" "conftest.in"
7088 cp "conftest.in" "conftest.nl"
7089 printf "%s\n" 'EGREP' >> "conftest.nl"
7090 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7091 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7092 as_fn_arith $ac_count + 1 && ac_count=$as_val
7093 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7094 # Best one so far, save it but keep looking for a better one
7095 ac_cv_path_EGREP="$ac_path_EGREP"
7096 ac_path_EGREP_max=$ac_count
7097 fi
7098 # 10*(2^10) chars as input seems more than enough
7099 test $ac_count -gt 10 && break
7100 done
7101 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7102 esac
7103
7104 $ac_path_EGREP_found && break 3
7105 done
7106 done
7107 done
7108 IFS=$as_save_IFS
7109 if test -z "$ac_cv_path_EGREP"; then
7110 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7111 fi
7112 else
7113 ac_cv_path_EGREP=$EGREP
7114 fi
7115
7116 fi
7117 fi
7118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7119 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7120 EGREP="$ac_cv_path_EGREP"
7121
7122
7123 test -z "$GREP" && GREP=grep
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143 # Check whether --with-gnu-ld was given.
7144 if test ${with_gnu_ld+y}
7145 then :
7146 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7147 else $as_nop
7148 with_gnu_ld=no
7149 fi
7150
7151 ac_prog=ld
7152 if test "$GCC" = yes; then
7153 # Check if gcc -print-prog-name=ld gives a path.
7154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7155 printf %s "checking for ld used by $CC... " >&6; }
7156 case $host in
7157 *-*-mingw*)
7158 # gcc leaves a trailing carriage return which upsets mingw
7159 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7160 *)
7161 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7162 esac
7163 case $ac_prog in
7164 # Accept absolute paths.
7165 [\\/]* | ?:[\\/]*)
7166 re_direlt='/[^/][^/]*/\.\./'
7167 # Canonicalize the pathname of ld
7168 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7169 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7170 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7171 done
7172 test -z "$LD" && LD="$ac_prog"
7173 ;;
7174 "")
7175 # If it fails, then pretend we aren't using GCC.
7176 ac_prog=ld
7177 ;;
7178 *)
7179 # If it is relative, then search for the first ld in PATH.
7180 with_gnu_ld=unknown
7181 ;;
7182 esac
7183 elif test "$with_gnu_ld" = yes; then
7184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7185 printf %s "checking for GNU ld... " >&6; }
7186 else
7187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7188 printf %s "checking for non-GNU ld... " >&6; }
7189 fi
7190 if test ${lt_cv_path_LD+y}
7191 then :
7192 printf %s "(cached) " >&6
7193 else $as_nop
7194 if test -z "$LD"; then
7195 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7196 for ac_dir in $PATH; do
7197 IFS="$lt_save_ifs"
7198 test -z "$ac_dir" && ac_dir=.
7199 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7200 lt_cv_path_LD="$ac_dir/$ac_prog"
7201 # Check to see if the program is GNU ld. I'd rather use --version,
7202 # but apparently some variants of GNU ld only accept -v.
7203 # Break only if it was the GNU/non-GNU ld that we prefer.
7204 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7205 *GNU* | *'with BFD'*)
7206 test "$with_gnu_ld" != no && break
7207 ;;
7208 *)
7209 test "$with_gnu_ld" != yes && break
7210 ;;
7211 esac
7212 fi
7213 done
7214 IFS="$lt_save_ifs"
7215 else
7216 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7217 fi
7218 fi
7219
7220 LD="$lt_cv_path_LD"
7221 if test -n "$LD"; then
7222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7223 printf "%s\n" "$LD" >&6; }
7224 else
7225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7226 printf "%s\n" "no" >&6; }
7227 fi
7228 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7230 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
7231 if test ${lt_cv_prog_gnu_ld+y}
7232 then :
7233 printf %s "(cached) " >&6
7234 else $as_nop
7235 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7236 case `$LD -v 2>&1 </dev/null` in
7237 *GNU* | *'with BFD'*)
7238 lt_cv_prog_gnu_ld=yes
7239 ;;
7240 *)
7241 lt_cv_prog_gnu_ld=no
7242 ;;
7243 esac
7244 fi
7245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7246 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
7247 with_gnu_ld=$lt_cv_prog_gnu_ld
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7258 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7259 if test ${lt_cv_path_NM+y}
7260 then :
7261 printf %s "(cached) " >&6
7262 else $as_nop
7263 if test -n "$NM"; then
7264 # Let the user override the test.
7265 lt_cv_path_NM="$NM"
7266 else
7267 lt_nm_to_check="${ac_tool_prefix}nm"
7268 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7269 lt_nm_to_check="$lt_nm_to_check nm"
7270 fi
7271 for lt_tmp_nm in $lt_nm_to_check; do
7272 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7273 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7274 IFS="$lt_save_ifs"
7275 test -z "$ac_dir" && ac_dir=.
7276 tmp_nm="$ac_dir/$lt_tmp_nm"
7277 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7278 # Check to see if the nm accepts a BSD-compat flag.
7279 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7280 # nm: unknown option "B" ignored
7281 # Tru64's nm complains that /dev/null is an invalid object file
7282 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7283 */dev/null* | *'Invalid file or object type'*)
7284 lt_cv_path_NM="$tmp_nm -B"
7285 break
7286 ;;
7287 *)
7288 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7289 */dev/null*)
7290 lt_cv_path_NM="$tmp_nm -p"
7291 break
7292 ;;
7293 *)
7294 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7295 continue # so that we can try to find one that supports BSD flags
7296 ;;
7297 esac
7298 ;;
7299 esac
7300 fi
7301 done
7302 IFS="$lt_save_ifs"
7303 done
7304 : ${lt_cv_path_NM=no}
7305 fi
7306 fi
7307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7308 printf "%s\n" "$lt_cv_path_NM" >&6; }
7309 if test "$lt_cv_path_NM" != "no"; then
7310 NM="$lt_cv_path_NM"
7311 else
7312 # Didn't find any BSD compatible name lister, look for dumpbin.
7313 if test -n "$DUMPBIN"; then :
7314 # Let the user override the test.
7315 else
7316 if test -n "$ac_tool_prefix"; then
7317 for ac_prog in dumpbin "link -dump"
7318 do
7319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7320 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7322 printf %s "checking for $ac_word... " >&6; }
7323 if test ${ac_cv_prog_DUMPBIN+y}
7324 then :
7325 printf %s "(cached) " >&6
7326 else $as_nop
7327 if test -n "$DUMPBIN"; then
7328 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7329 else
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH
7332 do
7333 IFS=$as_save_IFS
7334 case $as_dir in #(((
7335 '') as_dir=./ ;;
7336 */) ;;
7337 *) as_dir=$as_dir/ ;;
7338 esac
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7341 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7343 break 2
7344 fi
7345 done
7346 done
7347 IFS=$as_save_IFS
7348
7349 fi
7350 fi
7351 DUMPBIN=$ac_cv_prog_DUMPBIN
7352 if test -n "$DUMPBIN"; then
7353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7354 printf "%s\n" "$DUMPBIN" >&6; }
7355 else
7356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 printf "%s\n" "no" >&6; }
7358 fi
7359
7360
7361 test -n "$DUMPBIN" && break
7362 done
7363 fi
7364 if test -z "$DUMPBIN"; then
7365 ac_ct_DUMPBIN=$DUMPBIN
7366 for ac_prog in dumpbin "link -dump"
7367 do
7368 # Extract the first word of "$ac_prog", so it can be a program name with args.
7369 set dummy $ac_prog; ac_word=$2
7370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371 printf %s "checking for $ac_word... " >&6; }
7372 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
7373 then :
7374 printf %s "(cached) " >&6
7375 else $as_nop
7376 if test -n "$ac_ct_DUMPBIN"; then
7377 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7378 else
7379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 for as_dir in $PATH
7381 do
7382 IFS=$as_save_IFS
7383 case $as_dir in #(((
7384 '') as_dir=./ ;;
7385 */) ;;
7386 *) as_dir=$as_dir/ ;;
7387 esac
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7390 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7392 break 2
7393 fi
7394 done
7395 done
7396 IFS=$as_save_IFS
7397
7398 fi
7399 fi
7400 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7401 if test -n "$ac_ct_DUMPBIN"; then
7402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7403 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
7404 else
7405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406 printf "%s\n" "no" >&6; }
7407 fi
7408
7409
7410 test -n "$ac_ct_DUMPBIN" && break
7411 done
7412
7413 if test "x$ac_ct_DUMPBIN" = x; then
7414 DUMPBIN=":"
7415 else
7416 case $cross_compiling:$ac_tool_warned in
7417 yes:)
7418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7419 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7420 ac_tool_warned=yes ;;
7421 esac
7422 DUMPBIN=$ac_ct_DUMPBIN
7423 fi
7424 fi
7425
7426 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7427 *COFF*)
7428 DUMPBIN="$DUMPBIN -symbols"
7429 ;;
7430 *)
7431 DUMPBIN=:
7432 ;;
7433 esac
7434 fi
7435
7436 if test "$DUMPBIN" != ":"; then
7437 NM="$DUMPBIN"
7438 fi
7439 fi
7440 test -z "$NM" && NM=nm
7441
7442
7443
7444
7445
7446
7447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7448 printf %s "checking the name lister ($NM) interface... " >&6; }
7449 if test ${lt_cv_nm_interface+y}
7450 then :
7451 printf %s "(cached) " >&6
7452 else $as_nop
7453 lt_cv_nm_interface="BSD nm"
7454 echo "int some_variable = 0;" > conftest.$ac_ext
7455 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7456 (eval "$ac_compile" 2>conftest.err)
7457 cat conftest.err >&5
7458 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7459 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7460 cat conftest.err >&5
7461 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7462 cat conftest.out >&5
7463 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7464 lt_cv_nm_interface="MS dumpbin"
7465 fi
7466 rm -f conftest*
7467 fi
7468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7469 printf "%s\n" "$lt_cv_nm_interface" >&6; }
7470
7471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7472 printf %s "checking whether ln -s works... " >&6; }
7473 LN_S=$as_ln_s
7474 if test "$LN_S" = "ln -s"; then
7475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7476 printf "%s\n" "yes" >&6; }
7477 else
7478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7479 printf "%s\n" "no, using $LN_S" >&6; }
7480 fi
7481
7482 # find the maximum length of command line arguments
7483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7484 printf %s "checking the maximum length of command line arguments... " >&6; }
7485 if test ${lt_cv_sys_max_cmd_len+y}
7486 then :
7487 printf %s "(cached) " >&6
7488 else $as_nop
7489 i=0
7490 teststring="ABCD"
7491
7492 case $build_os in
7493 msdosdjgpp*)
7494 # On DJGPP, this test can blow up pretty badly due to problems in libc
7495 # (any single argument exceeding 2000 bytes causes a buffer overrun
7496 # during glob expansion). Even if it were fixed, the result of this
7497 # check would be larger than it should be.
7498 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7499 ;;
7500
7501 gnu*)
7502 # Under GNU Hurd, this test is not required because there is
7503 # no limit to the length of command line arguments.
7504 # Libtool will interpret -1 as no limit whatsoever
7505 lt_cv_sys_max_cmd_len=-1;
7506 ;;
7507
7508 cygwin* | mingw* | cegcc*)
7509 # On Win9x/ME, this test blows up -- it succeeds, but takes
7510 # about 5 minutes as the teststring grows exponentially.
7511 # Worse, since 9x/ME are not pre-emptively multitasking,
7512 # you end up with a "frozen" computer, even though with patience
7513 # the test eventually succeeds (with a max line length of 256k).
7514 # Instead, let's just punt: use the minimum linelength reported by
7515 # all of the supported platforms: 8192 (on NT/2K/XP).
7516 lt_cv_sys_max_cmd_len=8192;
7517 ;;
7518
7519 mint*)
7520 # On MiNT this can take a long time and run out of memory.
7521 lt_cv_sys_max_cmd_len=8192;
7522 ;;
7523
7524 amigaos*)
7525 # On AmigaOS with pdksh, this test takes hours, literally.
7526 # So we just punt and use a minimum line length of 8192.
7527 lt_cv_sys_max_cmd_len=8192;
7528 ;;
7529
7530 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7531 # This has been around since 386BSD, at least. Likely further.
7532 if test -x /sbin/sysctl; then
7533 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7534 elif test -x /usr/sbin/sysctl; then
7535 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7536 else
7537 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7538 fi
7539 # And add a safety zone
7540 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7541 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7542 ;;
7543
7544 interix*)
7545 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7546 lt_cv_sys_max_cmd_len=196608
7547 ;;
7548
7549 os2*)
7550 # The test takes a long time on OS/2.
7551 lt_cv_sys_max_cmd_len=8192
7552 ;;
7553
7554 osf*)
7555 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7556 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7557 # nice to cause kernel panics so lets avoid the loop below.
7558 # First set a reasonable default.
7559 lt_cv_sys_max_cmd_len=16384
7560 #
7561 if test -x /sbin/sysconfig; then
7562 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7563 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7564 esac
7565 fi
7566 ;;
7567 sco3.2v5*)
7568 lt_cv_sys_max_cmd_len=102400
7569 ;;
7570 sysv5* | sco5v6* | sysv4.2uw2*)
7571 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7572 if test -n "$kargmax"; then
7573 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7574 else
7575 lt_cv_sys_max_cmd_len=32768
7576 fi
7577 ;;
7578 *)
7579 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7580 if test -n "$lt_cv_sys_max_cmd_len"; then
7581 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7583 else
7584 # Make teststring a little bigger before we do anything with it.
7585 # a 1K string should be a reasonable start.
7586 for i in 1 2 3 4 5 6 7 8 ; do
7587 teststring=$teststring$teststring
7588 done
7589 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7590 # If test is not a shell built-in, we'll probably end up computing a
7591 # maximum length that is only half of the actual maximum length, but
7592 # we can't tell.
7593 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7594 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7595 test $i != 17 # 1/2 MB should be enough
7596 do
7597 i=`expr $i + 1`
7598 teststring=$teststring$teststring
7599 done
7600 # Only check the string length outside the loop.
7601 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7602 teststring=
7603 # Add a significant safety factor because C++ compilers can tack on
7604 # massive amounts of additional arguments before passing them to the
7605 # linker. It appears as though 1/2 is a usable value.
7606 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7607 fi
7608 ;;
7609 esac
7610
7611 fi
7612
7613 if test -n $lt_cv_sys_max_cmd_len ; then
7614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7615 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
7616 else
7617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7618 printf "%s\n" "none" >&6; }
7619 fi
7620 max_cmd_len=$lt_cv_sys_max_cmd_len
7621
7622
7623
7624
7625
7626
7627 : ${CP="cp -f"}
7628 : ${MV="mv -f"}
7629 : ${RM="rm -f"}
7630
7631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7632 printf %s "checking whether the shell understands some XSI constructs... " >&6; }
7633 # Try some XSI features
7634 xsi_shell=no
7635 ( _lt_dummy="a/b/c"
7636 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7637 = c,a/b,b/c, \
7638 && eval 'test $(( 1 + 1 )) -eq 2 \
7639 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7640 && xsi_shell=yes
7641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7642 printf "%s\n" "$xsi_shell" >&6; }
7643
7644
7645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7646 printf %s "checking whether the shell understands \"+=\"... " >&6; }
7647 lt_shell_append=no
7648 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7649 >/dev/null 2>&1 \
7650 && lt_shell_append=yes
7651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7652 printf "%s\n" "$lt_shell_append" >&6; }
7653
7654
7655 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7656 lt_unset=unset
7657 else
7658 lt_unset=false
7659 fi
7660
7661
7662
7663
7664
7665 # test EBCDIC or ASCII
7666 case `echo X|tr X '\101'` in
7667 A) # ASCII based system
7668 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7669 lt_SP2NL='tr \040 \012'
7670 lt_NL2SP='tr \015\012 \040\040'
7671 ;;
7672 *) # EBCDIC based system
7673 lt_SP2NL='tr \100 \n'
7674 lt_NL2SP='tr \r\n \100\100'
7675 ;;
7676 esac
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7687 printf %s "checking how to convert $build file names to $host format... " >&6; }
7688 if test ${lt_cv_to_host_file_cmd+y}
7689 then :
7690 printf %s "(cached) " >&6
7691 else $as_nop
7692 case $host in
7693 *-*-mingw* )
7694 case $build in
7695 *-*-mingw* ) # actually msys
7696 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7697 ;;
7698 *-*-cygwin* )
7699 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7700 ;;
7701 * ) # otherwise, assume *nix
7702 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7703 ;;
7704 esac
7705 ;;
7706 *-*-cygwin* )
7707 case $build in
7708 *-*-mingw* ) # actually msys
7709 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7710 ;;
7711 *-*-cygwin* )
7712 lt_cv_to_host_file_cmd=func_convert_file_noop
7713 ;;
7714 * ) # otherwise, assume *nix
7715 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7716 ;;
7717 esac
7718 ;;
7719 * ) # unhandled hosts (and "normal" native builds)
7720 lt_cv_to_host_file_cmd=func_convert_file_noop
7721 ;;
7722 esac
7723
7724 fi
7725
7726 to_host_file_cmd=$lt_cv_to_host_file_cmd
7727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7728 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
7729
7730
7731
7732
7733
7734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7735 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7736 if test ${lt_cv_to_tool_file_cmd+y}
7737 then :
7738 printf %s "(cached) " >&6
7739 else $as_nop
7740 #assume ordinary cross tools, or native build.
7741 lt_cv_to_tool_file_cmd=func_convert_file_noop
7742 case $host in
7743 *-*-mingw* )
7744 case $build in
7745 *-*-mingw* ) # actually msys
7746 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7747 ;;
7748 esac
7749 ;;
7750 esac
7751
7752 fi
7753
7754 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7756 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
7757
7758
7759
7760
7761
7762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7763 printf %s "checking for $LD option to reload object files... " >&6; }
7764 if test ${lt_cv_ld_reload_flag+y}
7765 then :
7766 printf %s "(cached) " >&6
7767 else $as_nop
7768 lt_cv_ld_reload_flag='-r'
7769 fi
7770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7771 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7772 reload_flag=$lt_cv_ld_reload_flag
7773 case $reload_flag in
7774 "" | " "*) ;;
7775 *) reload_flag=" $reload_flag" ;;
7776 esac
7777 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7778 case $host_os in
7779 cygwin* | mingw* | pw32* | cegcc*)
7780 if test "$GCC" != yes; then
7781 reload_cmds=false
7782 fi
7783 ;;
7784 darwin*)
7785 if test "$GCC" = yes; then
7786 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7787 else
7788 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7789 fi
7790 ;;
7791 esac
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801 if test -n "$ac_tool_prefix"; then
7802 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7803 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7805 printf %s "checking for $ac_word... " >&6; }
7806 if test ${ac_cv_prog_OBJDUMP+y}
7807 then :
7808 printf %s "(cached) " >&6
7809 else $as_nop
7810 if test -n "$OBJDUMP"; then
7811 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7812 else
7813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 for as_dir in $PATH
7815 do
7816 IFS=$as_save_IFS
7817 case $as_dir in #(((
7818 '') as_dir=./ ;;
7819 */) ;;
7820 *) as_dir=$as_dir/ ;;
7821 esac
7822 for ac_exec_ext in '' $ac_executable_extensions; do
7823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7824 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7826 break 2
7827 fi
7828 done
7829 done
7830 IFS=$as_save_IFS
7831
7832 fi
7833 fi
7834 OBJDUMP=$ac_cv_prog_OBJDUMP
7835 if test -n "$OBJDUMP"; then
7836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7837 printf "%s\n" "$OBJDUMP" >&6; }
7838 else
7839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840 printf "%s\n" "no" >&6; }
7841 fi
7842
7843
7844 fi
7845 if test -z "$ac_cv_prog_OBJDUMP"; then
7846 ac_ct_OBJDUMP=$OBJDUMP
7847 # Extract the first word of "objdump", so it can be a program name with args.
7848 set dummy objdump; ac_word=$2
7849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7850 printf %s "checking for $ac_word... " >&6; }
7851 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7852 then :
7853 printf %s "(cached) " >&6
7854 else $as_nop
7855 if test -n "$ac_ct_OBJDUMP"; then
7856 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7857 else
7858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859 for as_dir in $PATH
7860 do
7861 IFS=$as_save_IFS
7862 case $as_dir in #(((
7863 '') as_dir=./ ;;
7864 */) ;;
7865 *) as_dir=$as_dir/ ;;
7866 esac
7867 for ac_exec_ext in '' $ac_executable_extensions; do
7868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7869 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7871 break 2
7872 fi
7873 done
7874 done
7875 IFS=$as_save_IFS
7876
7877 fi
7878 fi
7879 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7880 if test -n "$ac_ct_OBJDUMP"; then
7881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7882 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7883 else
7884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 printf "%s\n" "no" >&6; }
7886 fi
7887
7888 if test "x$ac_ct_OBJDUMP" = x; then
7889 OBJDUMP="false"
7890 else
7891 case $cross_compiling:$ac_tool_warned in
7892 yes:)
7893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7894 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7895 ac_tool_warned=yes ;;
7896 esac
7897 OBJDUMP=$ac_ct_OBJDUMP
7898 fi
7899 else
7900 OBJDUMP="$ac_cv_prog_OBJDUMP"
7901 fi
7902
7903 test -z "$OBJDUMP" && OBJDUMP=objdump
7904
7905
7906
7907
7908
7909
7910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7911 printf %s "checking how to recognize dependent libraries... " >&6; }
7912 if test ${lt_cv_deplibs_check_method+y}
7913 then :
7914 printf %s "(cached) " >&6
7915 else $as_nop
7916 lt_cv_file_magic_cmd='$MAGIC_CMD'
7917 lt_cv_file_magic_test_file=
7918 lt_cv_deplibs_check_method='unknown'
7919 # Need to set the preceding variable on all platforms that support
7920 # interlibrary dependencies.
7921 # 'none' -- dependencies not supported.
7922 # `unknown' -- same as none, but documents that we really don't know.
7923 # 'pass_all' -- all dependencies passed with no checks.
7924 # 'test_compile' -- check by making test program.
7925 # 'file_magic [[regex]]' -- check by looking for files in library path
7926 # which responds to the $file_magic_cmd with a given extended regex.
7927 # If you have `file' or equivalent on your system and you're not sure
7928 # whether `pass_all' will *always* work, you probably want this one.
7929
7930 case $host_os in
7931 aix[4-9]*)
7932 lt_cv_deplibs_check_method=pass_all
7933 ;;
7934
7935 beos*)
7936 lt_cv_deplibs_check_method=pass_all
7937 ;;
7938
7939 bsdi[45]*)
7940 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7941 lt_cv_file_magic_cmd='/usr/bin/file -L'
7942 lt_cv_file_magic_test_file=/shlib/libc.so
7943 ;;
7944
7945 cygwin*)
7946 # func_win32_libid is a shell function defined in ltmain.sh
7947 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7948 lt_cv_file_magic_cmd='func_win32_libid'
7949 ;;
7950
7951 mingw* | pw32*)
7952 # Base MSYS/MinGW do not provide the 'file' command needed by
7953 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7954 # unless we find 'file', for example because we are cross-compiling.
7955 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7956 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7957 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7958 lt_cv_file_magic_cmd='func_win32_libid'
7959 else
7960 # Keep this pattern in sync with the one in func_win32_libid.
7961 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7962 lt_cv_file_magic_cmd='$OBJDUMP -f'
7963 fi
7964 ;;
7965
7966 cegcc*)
7967 # use the weaker test based on 'objdump'. See mingw*.
7968 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7969 lt_cv_file_magic_cmd='$OBJDUMP -f'
7970 ;;
7971
7972 darwin* | rhapsody*)
7973 lt_cv_deplibs_check_method=pass_all
7974 ;;
7975
7976 freebsd* | dragonfly*)
7977 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7978 case $host_cpu in
7979 i*86 )
7980 # Not sure whether the presence of OpenBSD here was a mistake.
7981 # Let's accept both of them until this is cleared up.
7982 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7983 lt_cv_file_magic_cmd=/usr/bin/file
7984 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7985 ;;
7986 esac
7987 else
7988 lt_cv_deplibs_check_method=pass_all
7989 fi
7990 ;;
7991
7992 gnu*)
7993 lt_cv_deplibs_check_method=pass_all
7994 ;;
7995
7996 haiku*)
7997 lt_cv_deplibs_check_method=pass_all
7998 ;;
7999
8000 hpux10.20* | hpux11*)
8001 lt_cv_file_magic_cmd=/usr/bin/file
8002 case $host_cpu in
8003 ia64*)
8004 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8005 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8006 ;;
8007 hppa*64*)
8008 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]'
8009 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8010 ;;
8011 *)
8012 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8013 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8014 ;;
8015 esac
8016 ;;
8017
8018 interix[3-9]*)
8019 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8020 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8021 ;;
8022
8023 irix5* | irix6* | nonstopux*)
8024 case $LD in
8025 *-32|*"-32 ") libmagic=32-bit;;
8026 *-n32|*"-n32 ") libmagic=N32;;
8027 *-64|*"-64 ") libmagic=64-bit;;
8028 *) libmagic=never-match;;
8029 esac
8030 lt_cv_deplibs_check_method=pass_all
8031 ;;
8032
8033 # This must be glibc/ELF.
8034 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8035 lt_cv_deplibs_check_method=pass_all
8036 ;;
8037
8038 netbsd* | netbsdelf*-gnu)
8039 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8040 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8041 else
8042 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8043 fi
8044 ;;
8045
8046 newos6*)
8047 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8048 lt_cv_file_magic_cmd=/usr/bin/file
8049 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8050 ;;
8051
8052 *nto* | *qnx*)
8053 lt_cv_deplibs_check_method=pass_all
8054 ;;
8055
8056 openbsd*)
8057 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8059 else
8060 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8061 fi
8062 ;;
8063
8064 osf3* | osf4* | osf5*)
8065 lt_cv_deplibs_check_method=pass_all
8066 ;;
8067
8068 rdos*)
8069 lt_cv_deplibs_check_method=pass_all
8070 ;;
8071
8072 solaris*)
8073 lt_cv_deplibs_check_method=pass_all
8074 ;;
8075
8076 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8077 lt_cv_deplibs_check_method=pass_all
8078 ;;
8079
8080 sysv4 | sysv4.3*)
8081 case $host_vendor in
8082 motorola)
8083 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]'
8084 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8085 ;;
8086 ncr)
8087 lt_cv_deplibs_check_method=pass_all
8088 ;;
8089 sequent)
8090 lt_cv_file_magic_cmd='/bin/file'
8091 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8092 ;;
8093 sni)
8094 lt_cv_file_magic_cmd='/bin/file'
8095 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8096 lt_cv_file_magic_test_file=/lib/libc.so
8097 ;;
8098 siemens)
8099 lt_cv_deplibs_check_method=pass_all
8100 ;;
8101 pc)
8102 lt_cv_deplibs_check_method=pass_all
8103 ;;
8104 esac
8105 ;;
8106
8107 tpf*)
8108 lt_cv_deplibs_check_method=pass_all
8109 ;;
8110 esac
8111
8112 fi
8113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8114 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
8115
8116 file_magic_glob=
8117 want_nocaseglob=no
8118 if test "$build" = "$host"; then
8119 case $host_os in
8120 mingw* | pw32*)
8121 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8122 want_nocaseglob=yes
8123 else
8124 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8125 fi
8126 ;;
8127 esac
8128 fi
8129
8130 file_magic_cmd=$lt_cv_file_magic_cmd
8131 deplibs_check_method=$lt_cv_deplibs_check_method
8132 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155 if test -n "$ac_tool_prefix"; then
8156 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8157 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8159 printf %s "checking for $ac_word... " >&6; }
8160 if test ${ac_cv_prog_DLLTOOL+y}
8161 then :
8162 printf %s "(cached) " >&6
8163 else $as_nop
8164 if test -n "$DLLTOOL"; then
8165 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8166 else
8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168 for as_dir in $PATH
8169 do
8170 IFS=$as_save_IFS
8171 case $as_dir in #(((
8172 '') as_dir=./ ;;
8173 */) ;;
8174 *) as_dir=$as_dir/ ;;
8175 esac
8176 for ac_exec_ext in '' $ac_executable_extensions; do
8177 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8178 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8180 break 2
8181 fi
8182 done
8183 done
8184 IFS=$as_save_IFS
8185
8186 fi
8187 fi
8188 DLLTOOL=$ac_cv_prog_DLLTOOL
8189 if test -n "$DLLTOOL"; then
8190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8191 printf "%s\n" "$DLLTOOL" >&6; }
8192 else
8193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194 printf "%s\n" "no" >&6; }
8195 fi
8196
8197
8198 fi
8199 if test -z "$ac_cv_prog_DLLTOOL"; then
8200 ac_ct_DLLTOOL=$DLLTOOL
8201 # Extract the first word of "dlltool", so it can be a program name with args.
8202 set dummy dlltool; ac_word=$2
8203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8204 printf %s "checking for $ac_word... " >&6; }
8205 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8206 then :
8207 printf %s "(cached) " >&6
8208 else $as_nop
8209 if test -n "$ac_ct_DLLTOOL"; then
8210 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8211 else
8212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213 for as_dir in $PATH
8214 do
8215 IFS=$as_save_IFS
8216 case $as_dir in #(((
8217 '') as_dir=./ ;;
8218 */) ;;
8219 *) as_dir=$as_dir/ ;;
8220 esac
8221 for ac_exec_ext in '' $ac_executable_extensions; do
8222 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8223 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8225 break 2
8226 fi
8227 done
8228 done
8229 IFS=$as_save_IFS
8230
8231 fi
8232 fi
8233 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8234 if test -n "$ac_ct_DLLTOOL"; then
8235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8236 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8237 else
8238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 printf "%s\n" "no" >&6; }
8240 fi
8241
8242 if test "x$ac_ct_DLLTOOL" = x; then
8243 DLLTOOL="false"
8244 else
8245 case $cross_compiling:$ac_tool_warned in
8246 yes:)
8247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8248 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8249 ac_tool_warned=yes ;;
8250 esac
8251 DLLTOOL=$ac_ct_DLLTOOL
8252 fi
8253 else
8254 DLLTOOL="$ac_cv_prog_DLLTOOL"
8255 fi
8256
8257 test -z "$DLLTOOL" && DLLTOOL=dlltool
8258
8259
8260
8261
8262
8263
8264
8265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8266 printf %s "checking how to associate runtime and link libraries... " >&6; }
8267 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
8268 then :
8269 printf %s "(cached) " >&6
8270 else $as_nop
8271 lt_cv_sharedlib_from_linklib_cmd='unknown'
8272
8273 case $host_os in
8274 cygwin* | mingw* | pw32* | cegcc*)
8275 # two different shell functions defined in ltmain.sh
8276 # decide which to use based on capabilities of $DLLTOOL
8277 case `$DLLTOOL --help 2>&1` in
8278 *--identify-strict*)
8279 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8280 ;;
8281 *)
8282 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8283 ;;
8284 esac
8285 ;;
8286 *)
8287 # fallback: assume linklib IS sharedlib
8288 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8289 ;;
8290 esac
8291
8292 fi
8293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8294 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8295 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8296 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8297
8298
8299
8300
8301
8302
8303
8304 if test -n "$ac_tool_prefix"; then
8305 for ac_prog in ar
8306 do
8307 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8308 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8310 printf %s "checking for $ac_word... " >&6; }
8311 if test ${ac_cv_prog_AR+y}
8312 then :
8313 printf %s "(cached) " >&6
8314 else $as_nop
8315 if test -n "$AR"; then
8316 ac_cv_prog_AR="$AR" # Let the user override the test.
8317 else
8318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319 for as_dir in $PATH
8320 do
8321 IFS=$as_save_IFS
8322 case $as_dir in #(((
8323 '') as_dir=./ ;;
8324 */) ;;
8325 *) as_dir=$as_dir/ ;;
8326 esac
8327 for ac_exec_ext in '' $ac_executable_extensions; do
8328 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8329 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8331 break 2
8332 fi
8333 done
8334 done
8335 IFS=$as_save_IFS
8336
8337 fi
8338 fi
8339 AR=$ac_cv_prog_AR
8340 if test -n "$AR"; then
8341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8342 printf "%s\n" "$AR" >&6; }
8343 else
8344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345 printf "%s\n" "no" >&6; }
8346 fi
8347
8348
8349 test -n "$AR" && break
8350 done
8351 fi
8352 if test -z "$AR"; then
8353 ac_ct_AR=$AR
8354 for ac_prog in ar
8355 do
8356 # Extract the first word of "$ac_prog", so it can be a program name with args.
8357 set dummy $ac_prog; ac_word=$2
8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359 printf %s "checking for $ac_word... " >&6; }
8360 if test ${ac_cv_prog_ac_ct_AR+y}
8361 then :
8362 printf %s "(cached) " >&6
8363 else $as_nop
8364 if test -n "$ac_ct_AR"; then
8365 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8366 else
8367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 for as_dir in $PATH
8369 do
8370 IFS=$as_save_IFS
8371 case $as_dir in #(((
8372 '') as_dir=./ ;;
8373 */) ;;
8374 *) as_dir=$as_dir/ ;;
8375 esac
8376 for ac_exec_ext in '' $ac_executable_extensions; do
8377 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8378 ac_cv_prog_ac_ct_AR="$ac_prog"
8379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8380 break 2
8381 fi
8382 done
8383 done
8384 IFS=$as_save_IFS
8385
8386 fi
8387 fi
8388 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8389 if test -n "$ac_ct_AR"; then
8390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8391 printf "%s\n" "$ac_ct_AR" >&6; }
8392 else
8393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 printf "%s\n" "no" >&6; }
8395 fi
8396
8397
8398 test -n "$ac_ct_AR" && break
8399 done
8400
8401 if test "x$ac_ct_AR" = x; then
8402 AR="false"
8403 else
8404 case $cross_compiling:$ac_tool_warned in
8405 yes:)
8406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8407 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8408 ac_tool_warned=yes ;;
8409 esac
8410 AR=$ac_ct_AR
8411 fi
8412 fi
8413
8414 : ${AR=ar}
8415 : ${AR_FLAGS=cru}
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8428 printf %s "checking for archiver @FILE support... " >&6; }
8429 if test ${lt_cv_ar_at_file+y}
8430 then :
8431 printf %s "(cached) " >&6
8432 else $as_nop
8433 lt_cv_ar_at_file=no
8434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8435 /* end confdefs.h. */
8436
8437 int
8438 main (void)
8439 {
8440
8441 ;
8442 return 0;
8443 }
8444 _ACEOF
8445 if ac_fn_c_try_compile "$LINENO"
8446 then :
8447 echo conftest.$ac_objext > conftest.lst
8448 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8450 (eval $lt_ar_try) 2>&5
8451 ac_status=$?
8452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8453 test $ac_status = 0; }
8454 if test "$ac_status" -eq 0; then
8455 # Ensure the archiver fails upon bogus file names.
8456 rm -f conftest.$ac_objext libconftest.a
8457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8458 (eval $lt_ar_try) 2>&5
8459 ac_status=$?
8460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8461 test $ac_status = 0; }
8462 if test "$ac_status" -ne 0; then
8463 lt_cv_ar_at_file=@
8464 fi
8465 fi
8466 rm -f conftest.* libconftest.a
8467
8468 fi
8469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8470
8471 fi
8472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8473 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
8474
8475 if test "x$lt_cv_ar_at_file" = xno; then
8476 archiver_list_spec=
8477 else
8478 archiver_list_spec=$lt_cv_ar_at_file
8479 fi
8480
8481
8482
8483
8484
8485
8486
8487 if test -n "$ac_tool_prefix"; then
8488 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8489 set dummy ${ac_tool_prefix}strip; ac_word=$2
8490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8491 printf %s "checking for $ac_word... " >&6; }
8492 if test ${ac_cv_prog_STRIP+y}
8493 then :
8494 printf %s "(cached) " >&6
8495 else $as_nop
8496 if test -n "$STRIP"; then
8497 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8498 else
8499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8500 for as_dir in $PATH
8501 do
8502 IFS=$as_save_IFS
8503 case $as_dir in #(((
8504 '') as_dir=./ ;;
8505 */) ;;
8506 *) as_dir=$as_dir/ ;;
8507 esac
8508 for ac_exec_ext in '' $ac_executable_extensions; do
8509 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8510 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8512 break 2
8513 fi
8514 done
8515 done
8516 IFS=$as_save_IFS
8517
8518 fi
8519 fi
8520 STRIP=$ac_cv_prog_STRIP
8521 if test -n "$STRIP"; then
8522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8523 printf "%s\n" "$STRIP" >&6; }
8524 else
8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526 printf "%s\n" "no" >&6; }
8527 fi
8528
8529
8530 fi
8531 if test -z "$ac_cv_prog_STRIP"; then
8532 ac_ct_STRIP=$STRIP
8533 # Extract the first word of "strip", so it can be a program name with args.
8534 set dummy strip; ac_word=$2
8535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8536 printf %s "checking for $ac_word... " >&6; }
8537 if test ${ac_cv_prog_ac_ct_STRIP+y}
8538 then :
8539 printf %s "(cached) " >&6
8540 else $as_nop
8541 if test -n "$ac_ct_STRIP"; then
8542 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8543 else
8544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545 for as_dir in $PATH
8546 do
8547 IFS=$as_save_IFS
8548 case $as_dir in #(((
8549 '') as_dir=./ ;;
8550 */) ;;
8551 *) as_dir=$as_dir/ ;;
8552 esac
8553 for ac_exec_ext in '' $ac_executable_extensions; do
8554 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8555 ac_cv_prog_ac_ct_STRIP="strip"
8556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8557 break 2
8558 fi
8559 done
8560 done
8561 IFS=$as_save_IFS
8562
8563 fi
8564 fi
8565 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8566 if test -n "$ac_ct_STRIP"; then
8567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8568 printf "%s\n" "$ac_ct_STRIP" >&6; }
8569 else
8570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571 printf "%s\n" "no" >&6; }
8572 fi
8573
8574 if test "x$ac_ct_STRIP" = x; then
8575 STRIP=":"
8576 else
8577 case $cross_compiling:$ac_tool_warned in
8578 yes:)
8579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8580 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8581 ac_tool_warned=yes ;;
8582 esac
8583 STRIP=$ac_ct_STRIP
8584 fi
8585 else
8586 STRIP="$ac_cv_prog_STRIP"
8587 fi
8588
8589 test -z "$STRIP" && STRIP=:
8590
8591
8592
8593
8594
8595
8596 if test -n "$ac_tool_prefix"; then
8597 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8598 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8600 printf %s "checking for $ac_word... " >&6; }
8601 if test ${ac_cv_prog_RANLIB+y}
8602 then :
8603 printf %s "(cached) " >&6
8604 else $as_nop
8605 if test -n "$RANLIB"; then
8606 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8607 else
8608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8609 for as_dir in $PATH
8610 do
8611 IFS=$as_save_IFS
8612 case $as_dir in #(((
8613 '') as_dir=./ ;;
8614 */) ;;
8615 *) as_dir=$as_dir/ ;;
8616 esac
8617 for ac_exec_ext in '' $ac_executable_extensions; do
8618 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8619 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8621 break 2
8622 fi
8623 done
8624 done
8625 IFS=$as_save_IFS
8626
8627 fi
8628 fi
8629 RANLIB=$ac_cv_prog_RANLIB
8630 if test -n "$RANLIB"; then
8631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8632 printf "%s\n" "$RANLIB" >&6; }
8633 else
8634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8635 printf "%s\n" "no" >&6; }
8636 fi
8637
8638
8639 fi
8640 if test -z "$ac_cv_prog_RANLIB"; then
8641 ac_ct_RANLIB=$RANLIB
8642 # Extract the first word of "ranlib", so it can be a program name with args.
8643 set dummy ranlib; ac_word=$2
8644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8645 printf %s "checking for $ac_word... " >&6; }
8646 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8647 then :
8648 printf %s "(cached) " >&6
8649 else $as_nop
8650 if test -n "$ac_ct_RANLIB"; then
8651 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8652 else
8653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654 for as_dir in $PATH
8655 do
8656 IFS=$as_save_IFS
8657 case $as_dir in #(((
8658 '') as_dir=./ ;;
8659 */) ;;
8660 *) as_dir=$as_dir/ ;;
8661 esac
8662 for ac_exec_ext in '' $ac_executable_extensions; do
8663 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8664 ac_cv_prog_ac_ct_RANLIB="ranlib"
8665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8666 break 2
8667 fi
8668 done
8669 done
8670 IFS=$as_save_IFS
8671
8672 fi
8673 fi
8674 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8675 if test -n "$ac_ct_RANLIB"; then
8676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8677 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8678 else
8679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8680 printf "%s\n" "no" >&6; }
8681 fi
8682
8683 if test "x$ac_ct_RANLIB" = x; then
8684 RANLIB=":"
8685 else
8686 case $cross_compiling:$ac_tool_warned in
8687 yes:)
8688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8689 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8690 ac_tool_warned=yes ;;
8691 esac
8692 RANLIB=$ac_ct_RANLIB
8693 fi
8694 else
8695 RANLIB="$ac_cv_prog_RANLIB"
8696 fi
8697
8698 test -z "$RANLIB" && RANLIB=:
8699
8700
8701
8702
8703
8704
8705 # Determine commands to create old-style static archives.
8706 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8707 old_postinstall_cmds='chmod 644 $oldlib'
8708 old_postuninstall_cmds=
8709
8710 if test -n "$RANLIB"; then
8711 case $host_os in
8712 openbsd*)
8713 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8714 ;;
8715 *)
8716 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8717 ;;
8718 esac
8719 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8720 fi
8721
8722 case $host_os in
8723 darwin*)
8724 lock_old_archive_extraction=yes ;;
8725 *)
8726 lock_old_archive_extraction=no ;;
8727 esac
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767 # If no C compiler was specified, use CC.
8768 LTCC=${LTCC-"$CC"}
8769
8770 # If no C compiler flags were specified, use CFLAGS.
8771 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8772
8773 # Allow CC to be a program name with arguments.
8774 compiler=$CC
8775
8776
8777 # Check for command to grab the raw symbol name followed by C symbol from nm.
8778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8779 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8780 if test ${lt_cv_sys_global_symbol_pipe+y}
8781 then :
8782 printf %s "(cached) " >&6
8783 else $as_nop
8784
8785 # These are sane defaults that work on at least a few old systems.
8786 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8787
8788 # Character class describing NM global symbol codes.
8789 symcode='[BCDEGRST]'
8790
8791 # Regexp to match symbols that can be accessed directly from C.
8792 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8793
8794 # Define system-specific variables.
8795 case $host_os in
8796 aix*)
8797 symcode='[BCDT]'
8798 ;;
8799 cygwin* | mingw* | pw32* | cegcc*)
8800 symcode='[ABCDGISTW]'
8801 ;;
8802 hpux*)
8803 if test "$host_cpu" = ia64; then
8804 symcode='[ABCDEGRST]'
8805 fi
8806 ;;
8807 irix* | nonstopux*)
8808 symcode='[BCDEGRST]'
8809 ;;
8810 osf*)
8811 symcode='[BCDEGQRST]'
8812 ;;
8813 solaris*)
8814 symcode='[BDRT]'
8815 ;;
8816 sco3.2v5*)
8817 symcode='[DT]'
8818 ;;
8819 sysv4.2uw2*)
8820 symcode='[DT]'
8821 ;;
8822 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8823 symcode='[ABDT]'
8824 ;;
8825 sysv4)
8826 symcode='[DFNSTU]'
8827 ;;
8828 esac
8829
8830 # If we're using GNU nm, then use its standard symbol codes.
8831 case `$NM -V 2>&1` in
8832 *GNU* | *'with BFD'*)
8833 symcode='[ABCDGIRSTW]' ;;
8834 esac
8835
8836 # Transform an extracted symbol line into a proper C declaration.
8837 # Some systems (esp. on ia64) link data and code symbols differently,
8838 # so use this general approach.
8839 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8840
8841 # Transform an extracted symbol line into symbol name and symbol address
8842 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8843 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'"
8844
8845 # Handle CRLF in mingw tool chain
8846 opt_cr=
8847 case $build_os in
8848 mingw*)
8849 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8850 ;;
8851 esac
8852
8853 # Try without a prefix underscore, then with it.
8854 for ac_symprfx in "" "_"; do
8855
8856 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8857 symxfrm="\\1 $ac_symprfx\\2 \\2"
8858
8859 # Write the raw and C identifiers.
8860 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8861 # Fake it for dumpbin and say T for any non-static function
8862 # and D for any global variable.
8863 # Also find C++ and __fastcall symbols from MSVC++,
8864 # which start with @ or ?.
8865 lt_cv_sys_global_symbol_pipe="$AWK '"\
8866 " {last_section=section; section=\$ 3};"\
8867 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8868 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8869 " \$ 0!~/External *\|/{next};"\
8870 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8871 " {if(hide[section]) next};"\
8872 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8873 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8874 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8875 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8876 " ' prfx=^$ac_symprfx"
8877 else
8878 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8879 fi
8880 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8881
8882 # Check to see that the pipe works correctly.
8883 pipe_works=no
8884
8885 rm -f conftest*
8886 cat > conftest.$ac_ext <<_LT_EOF
8887 #ifdef __cplusplus
8888 extern "C" {
8889 #endif
8890 char nm_test_var;
8891 void nm_test_func(void);
8892 void nm_test_func(void){}
8893 #ifdef __cplusplus
8894 }
8895 #endif
8896 int main(){nm_test_var='a';nm_test_func();return(0);}
8897 _LT_EOF
8898
8899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8900 (eval $ac_compile) 2>&5
8901 ac_status=$?
8902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8903 test $ac_status = 0; }; then
8904 # Now try to grab the symbols.
8905 nlist=conftest.nm
8906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8907 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8908 ac_status=$?
8909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8910 test $ac_status = 0; } && test -s "$nlist"; then
8911 # Try sorting and uniquifying the output.
8912 if sort "$nlist" | uniq > "$nlist"T; then
8913 mv -f "$nlist"T "$nlist"
8914 else
8915 rm -f "$nlist"T
8916 fi
8917
8918 # Make sure that we snagged all the symbols we need.
8919 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8920 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8921 cat <<_LT_EOF > conftest.$ac_ext
8922 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8923 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8924 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8925 relocations are performed -- see ld's documentation on pseudo-relocs. */
8926 # define LT_DLSYM_CONST
8927 #elif defined(__osf__)
8928 /* This system does not cope well with relocations in const data. */
8929 # define LT_DLSYM_CONST
8930 #else
8931 # define LT_DLSYM_CONST const
8932 #endif
8933
8934 #ifdef __cplusplus
8935 extern "C" {
8936 #endif
8937
8938 _LT_EOF
8939 # Now generate the symbol file.
8940 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8941
8942 cat <<_LT_EOF >> conftest.$ac_ext
8943
8944 /* The mapping between symbol names and symbols. */
8945 LT_DLSYM_CONST struct {
8946 const char *name;
8947 void *address;
8948 }
8949 lt__PROGRAM__LTX_preloaded_symbols[] =
8950 {
8951 { "@PROGRAM@", (void *) 0 },
8952 _LT_EOF
8953 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8954 cat <<\_LT_EOF >> conftest.$ac_ext
8955 {0, (void *) 0}
8956 };
8957
8958 /* This works around a problem in FreeBSD linker */
8959 #ifdef FREEBSD_WORKAROUND
8960 static const void *lt_preloaded_setup() {
8961 return lt__PROGRAM__LTX_preloaded_symbols;
8962 }
8963 #endif
8964
8965 #ifdef __cplusplus
8966 }
8967 #endif
8968 _LT_EOF
8969 # Now try linking the two files.
8970 mv conftest.$ac_objext conftstm.$ac_objext
8971 lt_globsym_save_LIBS=$LIBS
8972 lt_globsym_save_CFLAGS=$CFLAGS
8973 LIBS="conftstm.$ac_objext"
8974 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8976 (eval $ac_link) 2>&5
8977 ac_status=$?
8978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8979 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8980 pipe_works=yes
8981 fi
8982 LIBS=$lt_globsym_save_LIBS
8983 CFLAGS=$lt_globsym_save_CFLAGS
8984 else
8985 echo "cannot find nm_test_func in $nlist" >&5
8986 fi
8987 else
8988 echo "cannot find nm_test_var in $nlist" >&5
8989 fi
8990 else
8991 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8992 fi
8993 else
8994 echo "$progname: failed program was:" >&5
8995 cat conftest.$ac_ext >&5
8996 fi
8997 rm -rf conftest* conftst*
8998
8999 # Do not use the global_symbol_pipe unless it works.
9000 if test "$pipe_works" = yes; then
9001 break
9002 else
9003 lt_cv_sys_global_symbol_pipe=
9004 fi
9005 done
9006
9007 fi
9008
9009 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9010 lt_cv_sys_global_symbol_to_cdecl=
9011 fi
9012 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9014 printf "%s\n" "failed" >&6; }
9015 else
9016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9017 printf "%s\n" "ok" >&6; }
9018 fi
9019
9020 # Response file support.
9021 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9022 nm_file_list_spec='@'
9023 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9024 nm_file_list_spec='@'
9025 fi
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9054 printf %s "checking for sysroot... " >&6; }
9055
9056 # Check whether --with-sysroot was given.
9057 if test ${with_sysroot+y}
9058 then :
9059 withval=$with_sysroot;
9060 else $as_nop
9061 with_sysroot=no
9062 fi
9063
9064
9065 lt_sysroot=
9066 case ${with_sysroot} in #(
9067 yes)
9068 if test "$GCC" = yes; then
9069 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9070 fi
9071 ;; #(
9072 /*)
9073 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9074 ;; #(
9075 no|'')
9076 ;; #(
9077 *)
9078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9079 printf "%s\n" "${with_sysroot}" >&6; }
9080 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9081 ;;
9082 esac
9083
9084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9085 printf "%s\n" "${lt_sysroot:-no}" >&6; }
9086
9087
9088
9089
9090
9091 # Check whether --enable-libtool-lock was given.
9092 if test ${enable_libtool_lock+y}
9093 then :
9094 enableval=$enable_libtool_lock;
9095 fi
9096
9097 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9098
9099 # Some flags need to be propagated to the compiler or linker for good
9100 # libtool support.
9101 case $host in
9102 ia64-*-hpux*)
9103 # Find out which ABI we are using.
9104 echo 'int i;' > conftest.$ac_ext
9105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9106 (eval $ac_compile) 2>&5
9107 ac_status=$?
9108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9109 test $ac_status = 0; }; then
9110 case `/usr/bin/file conftest.$ac_objext` in
9111 *ELF-32*)
9112 HPUX_IA64_MODE="32"
9113 ;;
9114 *ELF-64*)
9115 HPUX_IA64_MODE="64"
9116 ;;
9117 esac
9118 fi
9119 rm -rf conftest*
9120 ;;
9121 *-*-irix6*)
9122 # Find out which ABI we are using.
9123 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9125 (eval $ac_compile) 2>&5
9126 ac_status=$?
9127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9128 test $ac_status = 0; }; then
9129 if test "$lt_cv_prog_gnu_ld" = yes; then
9130 case `/usr/bin/file conftest.$ac_objext` in
9131 *32-bit*)
9132 LD="${LD-ld} -melf32bsmip"
9133 ;;
9134 *N32*)
9135 LD="${LD-ld} -melf32bmipn32"
9136 ;;
9137 *64-bit*)
9138 LD="${LD-ld} -melf64bmip"
9139 ;;
9140 esac
9141 else
9142 case `/usr/bin/file conftest.$ac_objext` in
9143 *32-bit*)
9144 LD="${LD-ld} -32"
9145 ;;
9146 *N32*)
9147 LD="${LD-ld} -n32"
9148 ;;
9149 *64-bit*)
9150 LD="${LD-ld} -64"
9151 ;;
9152 esac
9153 fi
9154 fi
9155 rm -rf conftest*
9156 ;;
9157
9158 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9159 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9160 # Find out which ABI we are using.
9161 echo 'int i;' > conftest.$ac_ext
9162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9163 (eval $ac_compile) 2>&5
9164 ac_status=$?
9165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9166 test $ac_status = 0; }; then
9167 case `/usr/bin/file conftest.o` in
9168 *32-bit*)
9169 case $host in
9170 x86_64-*kfreebsd*-gnu)
9171 LD="${LD-ld} -m elf_i386_fbsd"
9172 ;;
9173 x86_64-*linux*)
9174 LD="${LD-ld} -m elf_i386"
9175 ;;
9176 powerpc64le-*)
9177 LD="${LD-ld} -m elf32lppclinux"
9178 ;;
9179 powerpc64-*)
9180 LD="${LD-ld} -m elf32ppclinux"
9181 ;;
9182 s390x-*linux*)
9183 LD="${LD-ld} -m elf_s390"
9184 ;;
9185 sparc64-*linux*)
9186 LD="${LD-ld} -m elf32_sparc"
9187 ;;
9188 esac
9189 ;;
9190 *64-bit*)
9191 case $host in
9192 x86_64-*kfreebsd*-gnu)
9193 LD="${LD-ld} -m elf_x86_64_fbsd"
9194 ;;
9195 x86_64-*linux*)
9196 LD="${LD-ld} -m elf_x86_64"
9197 ;;
9198 powerpcle-*)
9199 LD="${LD-ld} -m elf64lppc"
9200 ;;
9201 powerpc-*)
9202 LD="${LD-ld} -m elf64ppc"
9203 ;;
9204 s390*-*linux*|s390*-*tpf*)
9205 LD="${LD-ld} -m elf64_s390"
9206 ;;
9207 sparc*-*linux*)
9208 LD="${LD-ld} -m elf64_sparc"
9209 ;;
9210 esac
9211 ;;
9212 esac
9213 fi
9214 rm -rf conftest*
9215 ;;
9216
9217 *-*-sco3.2v5*)
9218 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9219 SAVE_CFLAGS="$CFLAGS"
9220 CFLAGS="$CFLAGS -belf"
9221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9222 printf %s "checking whether the C compiler needs -belf... " >&6; }
9223 if test ${lt_cv_cc_needs_belf+y}
9224 then :
9225 printf %s "(cached) " >&6
9226 else $as_nop
9227 ac_ext=c
9228 ac_cpp='$CPP $CPPFLAGS'
9229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9232
9233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9234 /* end confdefs.h. */
9235
9236 int
9237 main (void)
9238 {
9239
9240 ;
9241 return 0;
9242 }
9243 _ACEOF
9244 if ac_fn_c_try_link "$LINENO"
9245 then :
9246 lt_cv_cc_needs_belf=yes
9247 else $as_nop
9248 lt_cv_cc_needs_belf=no
9249 fi
9250 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9251 conftest$ac_exeext conftest.$ac_ext
9252 ac_ext=c
9253 ac_cpp='$CPP $CPPFLAGS'
9254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9257
9258 fi
9259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9260 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
9261 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9262 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9263 CFLAGS="$SAVE_CFLAGS"
9264 fi
9265 ;;
9266 *-*solaris*)
9267 # Find out which ABI we are using.
9268 echo 'int i;' > conftest.$ac_ext
9269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9270 (eval $ac_compile) 2>&5
9271 ac_status=$?
9272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9273 test $ac_status = 0; }; then
9274 case `/usr/bin/file conftest.o` in
9275 *64-bit*)
9276 case $lt_cv_prog_gnu_ld in
9277 yes*)
9278 case $host in
9279 i?86-*-solaris*)
9280 LD="${LD-ld} -m elf_x86_64"
9281 ;;
9282 sparc*-*-solaris*)
9283 LD="${LD-ld} -m elf64_sparc"
9284 ;;
9285 esac
9286 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9287 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9288 LD="${LD-ld}_sol2"
9289 fi
9290 ;;
9291 *)
9292 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9293 LD="${LD-ld} -64"
9294 fi
9295 ;;
9296 esac
9297 ;;
9298 esac
9299 fi
9300 rm -rf conftest*
9301 ;;
9302 esac
9303
9304 need_locks="$enable_libtool_lock"
9305
9306 if test -n "$ac_tool_prefix"; then
9307 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9308 set dummy ${ac_tool_prefix}mt; ac_word=$2
9309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9310 printf %s "checking for $ac_word... " >&6; }
9311 if test ${ac_cv_prog_MANIFEST_TOOL+y}
9312 then :
9313 printf %s "(cached) " >&6
9314 else $as_nop
9315 if test -n "$MANIFEST_TOOL"; then
9316 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9317 else
9318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9319 for as_dir in $PATH
9320 do
9321 IFS=$as_save_IFS
9322 case $as_dir in #(((
9323 '') as_dir=./ ;;
9324 */) ;;
9325 *) as_dir=$as_dir/ ;;
9326 esac
9327 for ac_exec_ext in '' $ac_executable_extensions; do
9328 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9329 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9331 break 2
9332 fi
9333 done
9334 done
9335 IFS=$as_save_IFS
9336
9337 fi
9338 fi
9339 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9340 if test -n "$MANIFEST_TOOL"; then
9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9342 printf "%s\n" "$MANIFEST_TOOL" >&6; }
9343 else
9344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9345 printf "%s\n" "no" >&6; }
9346 fi
9347
9348
9349 fi
9350 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9351 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9352 # Extract the first word of "mt", so it can be a program name with args.
9353 set dummy mt; ac_word=$2
9354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9355 printf %s "checking for $ac_word... " >&6; }
9356 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9357 then :
9358 printf %s "(cached) " >&6
9359 else $as_nop
9360 if test -n "$ac_ct_MANIFEST_TOOL"; then
9361 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9362 else
9363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9364 for as_dir in $PATH
9365 do
9366 IFS=$as_save_IFS
9367 case $as_dir in #(((
9368 '') as_dir=./ ;;
9369 */) ;;
9370 *) as_dir=$as_dir/ ;;
9371 esac
9372 for ac_exec_ext in '' $ac_executable_extensions; do
9373 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9374 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9376 break 2
9377 fi
9378 done
9379 done
9380 IFS=$as_save_IFS
9381
9382 fi
9383 fi
9384 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9385 if test -n "$ac_ct_MANIFEST_TOOL"; then
9386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9387 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9388 else
9389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9390 printf "%s\n" "no" >&6; }
9391 fi
9392
9393 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9394 MANIFEST_TOOL=":"
9395 else
9396 case $cross_compiling:$ac_tool_warned in
9397 yes:)
9398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9399 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9400 ac_tool_warned=yes ;;
9401 esac
9402 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9403 fi
9404 else
9405 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9406 fi
9407
9408 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9410 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9411 if test ${lt_cv_path_mainfest_tool+y}
9412 then :
9413 printf %s "(cached) " >&6
9414 else $as_nop
9415 lt_cv_path_mainfest_tool=no
9416 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9417 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9418 cat conftest.err >&5
9419 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9420 lt_cv_path_mainfest_tool=yes
9421 fi
9422 rm -f conftest*
9423 fi
9424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9425 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
9426 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9427 MANIFEST_TOOL=:
9428 fi
9429
9430
9431
9432
9433
9434
9435 case $host_os in
9436 rhapsody* | darwin*)
9437 if test -n "$ac_tool_prefix"; then
9438 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9439 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9441 printf %s "checking for $ac_word... " >&6; }
9442 if test ${ac_cv_prog_DSYMUTIL+y}
9443 then :
9444 printf %s "(cached) " >&6
9445 else $as_nop
9446 if test -n "$DSYMUTIL"; then
9447 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9448 else
9449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9450 for as_dir in $PATH
9451 do
9452 IFS=$as_save_IFS
9453 case $as_dir in #(((
9454 '') as_dir=./ ;;
9455 */) ;;
9456 *) as_dir=$as_dir/ ;;
9457 esac
9458 for ac_exec_ext in '' $ac_executable_extensions; do
9459 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9460 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9462 break 2
9463 fi
9464 done
9465 done
9466 IFS=$as_save_IFS
9467
9468 fi
9469 fi
9470 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9471 if test -n "$DSYMUTIL"; then
9472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9473 printf "%s\n" "$DSYMUTIL" >&6; }
9474 else
9475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9476 printf "%s\n" "no" >&6; }
9477 fi
9478
9479
9480 fi
9481 if test -z "$ac_cv_prog_DSYMUTIL"; then
9482 ac_ct_DSYMUTIL=$DSYMUTIL
9483 # Extract the first word of "dsymutil", so it can be a program name with args.
9484 set dummy dsymutil; ac_word=$2
9485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9486 printf %s "checking for $ac_word... " >&6; }
9487 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9488 then :
9489 printf %s "(cached) " >&6
9490 else $as_nop
9491 if test -n "$ac_ct_DSYMUTIL"; then
9492 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9493 else
9494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9495 for as_dir in $PATH
9496 do
9497 IFS=$as_save_IFS
9498 case $as_dir in #(((
9499 '') as_dir=./ ;;
9500 */) ;;
9501 *) as_dir=$as_dir/ ;;
9502 esac
9503 for ac_exec_ext in '' $ac_executable_extensions; do
9504 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9505 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9507 break 2
9508 fi
9509 done
9510 done
9511 IFS=$as_save_IFS
9512
9513 fi
9514 fi
9515 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9516 if test -n "$ac_ct_DSYMUTIL"; then
9517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9518 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9519 else
9520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9521 printf "%s\n" "no" >&6; }
9522 fi
9523
9524 if test "x$ac_ct_DSYMUTIL" = x; then
9525 DSYMUTIL=":"
9526 else
9527 case $cross_compiling:$ac_tool_warned in
9528 yes:)
9529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9530 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9531 ac_tool_warned=yes ;;
9532 esac
9533 DSYMUTIL=$ac_ct_DSYMUTIL
9534 fi
9535 else
9536 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9537 fi
9538
9539 if test -n "$ac_tool_prefix"; then
9540 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9541 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9543 printf %s "checking for $ac_word... " >&6; }
9544 if test ${ac_cv_prog_NMEDIT+y}
9545 then :
9546 printf %s "(cached) " >&6
9547 else $as_nop
9548 if test -n "$NMEDIT"; then
9549 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9550 else
9551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9552 for as_dir in $PATH
9553 do
9554 IFS=$as_save_IFS
9555 case $as_dir in #(((
9556 '') as_dir=./ ;;
9557 */) ;;
9558 *) as_dir=$as_dir/ ;;
9559 esac
9560 for ac_exec_ext in '' $ac_executable_extensions; do
9561 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9562 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9564 break 2
9565 fi
9566 done
9567 done
9568 IFS=$as_save_IFS
9569
9570 fi
9571 fi
9572 NMEDIT=$ac_cv_prog_NMEDIT
9573 if test -n "$NMEDIT"; then
9574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9575 printf "%s\n" "$NMEDIT" >&6; }
9576 else
9577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9578 printf "%s\n" "no" >&6; }
9579 fi
9580
9581
9582 fi
9583 if test -z "$ac_cv_prog_NMEDIT"; then
9584 ac_ct_NMEDIT=$NMEDIT
9585 # Extract the first word of "nmedit", so it can be a program name with args.
9586 set dummy nmedit; ac_word=$2
9587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9588 printf %s "checking for $ac_word... " >&6; }
9589 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9590 then :
9591 printf %s "(cached) " >&6
9592 else $as_nop
9593 if test -n "$ac_ct_NMEDIT"; then
9594 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9595 else
9596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9597 for as_dir in $PATH
9598 do
9599 IFS=$as_save_IFS
9600 case $as_dir in #(((
9601 '') as_dir=./ ;;
9602 */) ;;
9603 *) as_dir=$as_dir/ ;;
9604 esac
9605 for ac_exec_ext in '' $ac_executable_extensions; do
9606 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9607 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9609 break 2
9610 fi
9611 done
9612 done
9613 IFS=$as_save_IFS
9614
9615 fi
9616 fi
9617 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9618 if test -n "$ac_ct_NMEDIT"; then
9619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9620 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9621 else
9622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9623 printf "%s\n" "no" >&6; }
9624 fi
9625
9626 if test "x$ac_ct_NMEDIT" = x; then
9627 NMEDIT=":"
9628 else
9629 case $cross_compiling:$ac_tool_warned in
9630 yes:)
9631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9632 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9633 ac_tool_warned=yes ;;
9634 esac
9635 NMEDIT=$ac_ct_NMEDIT
9636 fi
9637 else
9638 NMEDIT="$ac_cv_prog_NMEDIT"
9639 fi
9640
9641 if test -n "$ac_tool_prefix"; then
9642 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9643 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9645 printf %s "checking for $ac_word... " >&6; }
9646 if test ${ac_cv_prog_LIPO+y}
9647 then :
9648 printf %s "(cached) " >&6
9649 else $as_nop
9650 if test -n "$LIPO"; then
9651 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9652 else
9653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9654 for as_dir in $PATH
9655 do
9656 IFS=$as_save_IFS
9657 case $as_dir in #(((
9658 '') as_dir=./ ;;
9659 */) ;;
9660 *) as_dir=$as_dir/ ;;
9661 esac
9662 for ac_exec_ext in '' $ac_executable_extensions; do
9663 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9664 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9666 break 2
9667 fi
9668 done
9669 done
9670 IFS=$as_save_IFS
9671
9672 fi
9673 fi
9674 LIPO=$ac_cv_prog_LIPO
9675 if test -n "$LIPO"; then
9676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9677 printf "%s\n" "$LIPO" >&6; }
9678 else
9679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9680 printf "%s\n" "no" >&6; }
9681 fi
9682
9683
9684 fi
9685 if test -z "$ac_cv_prog_LIPO"; then
9686 ac_ct_LIPO=$LIPO
9687 # Extract the first word of "lipo", so it can be a program name with args.
9688 set dummy lipo; ac_word=$2
9689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9690 printf %s "checking for $ac_word... " >&6; }
9691 if test ${ac_cv_prog_ac_ct_LIPO+y}
9692 then :
9693 printf %s "(cached) " >&6
9694 else $as_nop
9695 if test -n "$ac_ct_LIPO"; then
9696 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9697 else
9698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9699 for as_dir in $PATH
9700 do
9701 IFS=$as_save_IFS
9702 case $as_dir in #(((
9703 '') as_dir=./ ;;
9704 */) ;;
9705 *) as_dir=$as_dir/ ;;
9706 esac
9707 for ac_exec_ext in '' $ac_executable_extensions; do
9708 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9709 ac_cv_prog_ac_ct_LIPO="lipo"
9710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9711 break 2
9712 fi
9713 done
9714 done
9715 IFS=$as_save_IFS
9716
9717 fi
9718 fi
9719 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9720 if test -n "$ac_ct_LIPO"; then
9721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9722 printf "%s\n" "$ac_ct_LIPO" >&6; }
9723 else
9724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9725 printf "%s\n" "no" >&6; }
9726 fi
9727
9728 if test "x$ac_ct_LIPO" = x; then
9729 LIPO=":"
9730 else
9731 case $cross_compiling:$ac_tool_warned in
9732 yes:)
9733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9734 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9735 ac_tool_warned=yes ;;
9736 esac
9737 LIPO=$ac_ct_LIPO
9738 fi
9739 else
9740 LIPO="$ac_cv_prog_LIPO"
9741 fi
9742
9743 if test -n "$ac_tool_prefix"; then
9744 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9745 set dummy ${ac_tool_prefix}otool; ac_word=$2
9746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9747 printf %s "checking for $ac_word... " >&6; }
9748 if test ${ac_cv_prog_OTOOL+y}
9749 then :
9750 printf %s "(cached) " >&6
9751 else $as_nop
9752 if test -n "$OTOOL"; then
9753 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9754 else
9755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9756 for as_dir in $PATH
9757 do
9758 IFS=$as_save_IFS
9759 case $as_dir in #(((
9760 '') as_dir=./ ;;
9761 */) ;;
9762 *) as_dir=$as_dir/ ;;
9763 esac
9764 for ac_exec_ext in '' $ac_executable_extensions; do
9765 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9766 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9768 break 2
9769 fi
9770 done
9771 done
9772 IFS=$as_save_IFS
9773
9774 fi
9775 fi
9776 OTOOL=$ac_cv_prog_OTOOL
9777 if test -n "$OTOOL"; then
9778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9779 printf "%s\n" "$OTOOL" >&6; }
9780 else
9781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9782 printf "%s\n" "no" >&6; }
9783 fi
9784
9785
9786 fi
9787 if test -z "$ac_cv_prog_OTOOL"; then
9788 ac_ct_OTOOL=$OTOOL
9789 # Extract the first word of "otool", so it can be a program name with args.
9790 set dummy otool; ac_word=$2
9791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9792 printf %s "checking for $ac_word... " >&6; }
9793 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9794 then :
9795 printf %s "(cached) " >&6
9796 else $as_nop
9797 if test -n "$ac_ct_OTOOL"; then
9798 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9799 else
9800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9801 for as_dir in $PATH
9802 do
9803 IFS=$as_save_IFS
9804 case $as_dir in #(((
9805 '') as_dir=./ ;;
9806 */) ;;
9807 *) as_dir=$as_dir/ ;;
9808 esac
9809 for ac_exec_ext in '' $ac_executable_extensions; do
9810 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9811 ac_cv_prog_ac_ct_OTOOL="otool"
9812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9813 break 2
9814 fi
9815 done
9816 done
9817 IFS=$as_save_IFS
9818
9819 fi
9820 fi
9821 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9822 if test -n "$ac_ct_OTOOL"; then
9823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9824 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9825 else
9826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9827 printf "%s\n" "no" >&6; }
9828 fi
9829
9830 if test "x$ac_ct_OTOOL" = x; then
9831 OTOOL=":"
9832 else
9833 case $cross_compiling:$ac_tool_warned in
9834 yes:)
9835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9836 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9837 ac_tool_warned=yes ;;
9838 esac
9839 OTOOL=$ac_ct_OTOOL
9840 fi
9841 else
9842 OTOOL="$ac_cv_prog_OTOOL"
9843 fi
9844
9845 if test -n "$ac_tool_prefix"; then
9846 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9847 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9849 printf %s "checking for $ac_word... " >&6; }
9850 if test ${ac_cv_prog_OTOOL64+y}
9851 then :
9852 printf %s "(cached) " >&6
9853 else $as_nop
9854 if test -n "$OTOOL64"; then
9855 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9856 else
9857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9858 for as_dir in $PATH
9859 do
9860 IFS=$as_save_IFS
9861 case $as_dir in #(((
9862 '') as_dir=./ ;;
9863 */) ;;
9864 *) as_dir=$as_dir/ ;;
9865 esac
9866 for ac_exec_ext in '' $ac_executable_extensions; do
9867 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9868 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9870 break 2
9871 fi
9872 done
9873 done
9874 IFS=$as_save_IFS
9875
9876 fi
9877 fi
9878 OTOOL64=$ac_cv_prog_OTOOL64
9879 if test -n "$OTOOL64"; then
9880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9881 printf "%s\n" "$OTOOL64" >&6; }
9882 else
9883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9884 printf "%s\n" "no" >&6; }
9885 fi
9886
9887
9888 fi
9889 if test -z "$ac_cv_prog_OTOOL64"; then
9890 ac_ct_OTOOL64=$OTOOL64
9891 # Extract the first word of "otool64", so it can be a program name with args.
9892 set dummy otool64; ac_word=$2
9893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9894 printf %s "checking for $ac_word... " >&6; }
9895 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9896 then :
9897 printf %s "(cached) " >&6
9898 else $as_nop
9899 if test -n "$ac_ct_OTOOL64"; then
9900 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9901 else
9902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9903 for as_dir in $PATH
9904 do
9905 IFS=$as_save_IFS
9906 case $as_dir in #(((
9907 '') as_dir=./ ;;
9908 */) ;;
9909 *) as_dir=$as_dir/ ;;
9910 esac
9911 for ac_exec_ext in '' $ac_executable_extensions; do
9912 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9913 ac_cv_prog_ac_ct_OTOOL64="otool64"
9914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9915 break 2
9916 fi
9917 done
9918 done
9919 IFS=$as_save_IFS
9920
9921 fi
9922 fi
9923 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9924 if test -n "$ac_ct_OTOOL64"; then
9925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9926 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9927 else
9928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9929 printf "%s\n" "no" >&6; }
9930 fi
9931
9932 if test "x$ac_ct_OTOOL64" = x; then
9933 OTOOL64=":"
9934 else
9935 case $cross_compiling:$ac_tool_warned in
9936 yes:)
9937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9938 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9939 ac_tool_warned=yes ;;
9940 esac
9941 OTOOL64=$ac_ct_OTOOL64
9942 fi
9943 else
9944 OTOOL64="$ac_cv_prog_OTOOL64"
9945 fi
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9974 printf %s "checking for -single_module linker flag... " >&6; }
9975 if test ${lt_cv_apple_cc_single_mod+y}
9976 then :
9977 printf %s "(cached) " >&6
9978 else $as_nop
9979 lt_cv_apple_cc_single_mod=no
9980 if test -z "${LT_MULTI_MODULE}"; then
9981 # By default we will add the -single_module flag. You can override
9982 # by either setting the environment variable LT_MULTI_MODULE
9983 # non-empty at configure time, or by adding -multi_module to the
9984 # link flags.
9985 rm -rf libconftest.dylib*
9986 echo "int foo(void){return 1;}" > conftest.c
9987 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9988 -dynamiclib -Wl,-single_module conftest.c" >&5
9989 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9990 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9991 _lt_result=$?
9992 # If there is a non-empty error log, and "single_module"
9993 # appears in it, assume the flag caused a linker warning
9994 if test -s conftest.err && $GREP single_module conftest.err; then
9995 cat conftest.err >&5
9996 # Otherwise, if the output was created with a 0 exit code from
9997 # the compiler, it worked.
9998 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9999 lt_cv_apple_cc_single_mod=yes
10000 else
10001 cat conftest.err >&5
10002 fi
10003 rm -rf libconftest.dylib*
10004 rm -f conftest.*
10005 fi
10006 fi
10007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10008 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
10009
10010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10011 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
10012 if test ${lt_cv_ld_exported_symbols_list+y}
10013 then :
10014 printf %s "(cached) " >&6
10015 else $as_nop
10016 lt_cv_ld_exported_symbols_list=no
10017 save_LDFLAGS=$LDFLAGS
10018 echo "_main" > conftest.sym
10019 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021 /* end confdefs.h. */
10022
10023 int
10024 main (void)
10025 {
10026
10027 ;
10028 return 0;
10029 }
10030 _ACEOF
10031 if ac_fn_c_try_link "$LINENO"
10032 then :
10033 lt_cv_ld_exported_symbols_list=yes
10034 else $as_nop
10035 lt_cv_ld_exported_symbols_list=no
10036 fi
10037 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10038 conftest$ac_exeext conftest.$ac_ext
10039 LDFLAGS="$save_LDFLAGS"
10040
10041 fi
10042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10043 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
10044
10045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10046 printf %s "checking for -force_load linker flag... " >&6; }
10047 if test ${lt_cv_ld_force_load+y}
10048 then :
10049 printf %s "(cached) " >&6
10050 else $as_nop
10051 lt_cv_ld_force_load=no
10052 cat > conftest.c << _LT_EOF
10053 int forced_loaded() { return 2;}
10054 _LT_EOF
10055 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10056 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10057 echo "$AR cru libconftest.a conftest.o" >&5
10058 $AR cru libconftest.a conftest.o 2>&5
10059 echo "$RANLIB libconftest.a" >&5
10060 $RANLIB libconftest.a 2>&5
10061 cat > conftest.c << _LT_EOF
10062 int main() { return 0;}
10063 _LT_EOF
10064 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10065 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10066 _lt_result=$?
10067 if test -s conftest.err && $GREP force_load conftest.err; then
10068 cat conftest.err >&5
10069 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
10070 lt_cv_ld_force_load=yes
10071 else
10072 cat conftest.err >&5
10073 fi
10074 rm -f conftest.err libconftest.a conftest conftest.c
10075 rm -rf conftest.dSYM
10076
10077 fi
10078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10079 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
10080 case $host_os in
10081 rhapsody* | darwin1.[012])
10082 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10083 darwin1.*)
10084 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10085 darwin*)
10086 case ${MACOSX_DEPLOYMENT_TARGET},$host in
10087 10.[012]*,*|,*powerpc*)
10088 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10089 *)
10090 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10091 esac
10092 ;;
10093 esac
10094 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10095 _lt_dar_single_mod='$single_module'
10096 fi
10097 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10098 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10099 else
10100 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10101 fi
10102 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10103 _lt_dsymutil='~$DSYMUTIL $lib || :'
10104 else
10105 _lt_dsymutil=
10106 fi
10107 ;;
10108 esac
10109
10110 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10111 "
10112 if test "x$ac_cv_header_dlfcn_h" = xyes
10113 then :
10114 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
10115
10116 fi
10117
10118
10119
10120
10121
10122 # Set options
10123 enable_win32_dll=yes
10124
10125 case $host in
10126 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10127 if test -n "$ac_tool_prefix"; then
10128 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10129 set dummy ${ac_tool_prefix}as; ac_word=$2
10130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10131 printf %s "checking for $ac_word... " >&6; }
10132 if test ${ac_cv_prog_AS+y}
10133 then :
10134 printf %s "(cached) " >&6
10135 else $as_nop
10136 if test -n "$AS"; then
10137 ac_cv_prog_AS="$AS" # Let the user override the test.
10138 else
10139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10140 for as_dir in $PATH
10141 do
10142 IFS=$as_save_IFS
10143 case $as_dir in #(((
10144 '') as_dir=./ ;;
10145 */) ;;
10146 *) as_dir=$as_dir/ ;;
10147 esac
10148 for ac_exec_ext in '' $ac_executable_extensions; do
10149 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10150 ac_cv_prog_AS="${ac_tool_prefix}as"
10151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10152 break 2
10153 fi
10154 done
10155 done
10156 IFS=$as_save_IFS
10157
10158 fi
10159 fi
10160 AS=$ac_cv_prog_AS
10161 if test -n "$AS"; then
10162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10163 printf "%s\n" "$AS" >&6; }
10164 else
10165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10166 printf "%s\n" "no" >&6; }
10167 fi
10168
10169
10170 fi
10171 if test -z "$ac_cv_prog_AS"; then
10172 ac_ct_AS=$AS
10173 # Extract the first word of "as", so it can be a program name with args.
10174 set dummy as; ac_word=$2
10175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10176 printf %s "checking for $ac_word... " >&6; }
10177 if test ${ac_cv_prog_ac_ct_AS+y}
10178 then :
10179 printf %s "(cached) " >&6
10180 else $as_nop
10181 if test -n "$ac_ct_AS"; then
10182 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10183 else
10184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10185 for as_dir in $PATH
10186 do
10187 IFS=$as_save_IFS
10188 case $as_dir in #(((
10189 '') as_dir=./ ;;
10190 */) ;;
10191 *) as_dir=$as_dir/ ;;
10192 esac
10193 for ac_exec_ext in '' $ac_executable_extensions; do
10194 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10195 ac_cv_prog_ac_ct_AS="as"
10196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10197 break 2
10198 fi
10199 done
10200 done
10201 IFS=$as_save_IFS
10202
10203 fi
10204 fi
10205 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10206 if test -n "$ac_ct_AS"; then
10207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10208 printf "%s\n" "$ac_ct_AS" >&6; }
10209 else
10210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10211 printf "%s\n" "no" >&6; }
10212 fi
10213
10214 if test "x$ac_ct_AS" = x; then
10215 AS="false"
10216 else
10217 case $cross_compiling:$ac_tool_warned in
10218 yes:)
10219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10220 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10221 ac_tool_warned=yes ;;
10222 esac
10223 AS=$ac_ct_AS
10224 fi
10225 else
10226 AS="$ac_cv_prog_AS"
10227 fi
10228
10229 if test -n "$ac_tool_prefix"; then
10230 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10231 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10233 printf %s "checking for $ac_word... " >&6; }
10234 if test ${ac_cv_prog_DLLTOOL+y}
10235 then :
10236 printf %s "(cached) " >&6
10237 else $as_nop
10238 if test -n "$DLLTOOL"; then
10239 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10240 else
10241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10242 for as_dir in $PATH
10243 do
10244 IFS=$as_save_IFS
10245 case $as_dir in #(((
10246 '') as_dir=./ ;;
10247 */) ;;
10248 *) as_dir=$as_dir/ ;;
10249 esac
10250 for ac_exec_ext in '' $ac_executable_extensions; do
10251 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10252 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10254 break 2
10255 fi
10256 done
10257 done
10258 IFS=$as_save_IFS
10259
10260 fi
10261 fi
10262 DLLTOOL=$ac_cv_prog_DLLTOOL
10263 if test -n "$DLLTOOL"; then
10264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10265 printf "%s\n" "$DLLTOOL" >&6; }
10266 else
10267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10268 printf "%s\n" "no" >&6; }
10269 fi
10270
10271
10272 fi
10273 if test -z "$ac_cv_prog_DLLTOOL"; then
10274 ac_ct_DLLTOOL=$DLLTOOL
10275 # Extract the first word of "dlltool", so it can be a program name with args.
10276 set dummy dlltool; ac_word=$2
10277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10278 printf %s "checking for $ac_word... " >&6; }
10279 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10280 then :
10281 printf %s "(cached) " >&6
10282 else $as_nop
10283 if test -n "$ac_ct_DLLTOOL"; then
10284 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10285 else
10286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10287 for as_dir in $PATH
10288 do
10289 IFS=$as_save_IFS
10290 case $as_dir in #(((
10291 '') as_dir=./ ;;
10292 */) ;;
10293 *) as_dir=$as_dir/ ;;
10294 esac
10295 for ac_exec_ext in '' $ac_executable_extensions; do
10296 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10297 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10299 break 2
10300 fi
10301 done
10302 done
10303 IFS=$as_save_IFS
10304
10305 fi
10306 fi
10307 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10308 if test -n "$ac_ct_DLLTOOL"; then
10309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10310 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10311 else
10312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10313 printf "%s\n" "no" >&6; }
10314 fi
10315
10316 if test "x$ac_ct_DLLTOOL" = x; then
10317 DLLTOOL="false"
10318 else
10319 case $cross_compiling:$ac_tool_warned in
10320 yes:)
10321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10322 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10323 ac_tool_warned=yes ;;
10324 esac
10325 DLLTOOL=$ac_ct_DLLTOOL
10326 fi
10327 else
10328 DLLTOOL="$ac_cv_prog_DLLTOOL"
10329 fi
10330
10331 if test -n "$ac_tool_prefix"; then
10332 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10333 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10335 printf %s "checking for $ac_word... " >&6; }
10336 if test ${ac_cv_prog_OBJDUMP+y}
10337 then :
10338 printf %s "(cached) " >&6
10339 else $as_nop
10340 if test -n "$OBJDUMP"; then
10341 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10342 else
10343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10344 for as_dir in $PATH
10345 do
10346 IFS=$as_save_IFS
10347 case $as_dir in #(((
10348 '') as_dir=./ ;;
10349 */) ;;
10350 *) as_dir=$as_dir/ ;;
10351 esac
10352 for ac_exec_ext in '' $ac_executable_extensions; do
10353 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10354 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10355 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10356 break 2
10357 fi
10358 done
10359 done
10360 IFS=$as_save_IFS
10361
10362 fi
10363 fi
10364 OBJDUMP=$ac_cv_prog_OBJDUMP
10365 if test -n "$OBJDUMP"; then
10366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10367 printf "%s\n" "$OBJDUMP" >&6; }
10368 else
10369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10370 printf "%s\n" "no" >&6; }
10371 fi
10372
10373
10374 fi
10375 if test -z "$ac_cv_prog_OBJDUMP"; then
10376 ac_ct_OBJDUMP=$OBJDUMP
10377 # Extract the first word of "objdump", so it can be a program name with args.
10378 set dummy objdump; ac_word=$2
10379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10380 printf %s "checking for $ac_word... " >&6; }
10381 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10382 then :
10383 printf %s "(cached) " >&6
10384 else $as_nop
10385 if test -n "$ac_ct_OBJDUMP"; then
10386 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10387 else
10388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10389 for as_dir in $PATH
10390 do
10391 IFS=$as_save_IFS
10392 case $as_dir in #(((
10393 '') as_dir=./ ;;
10394 */) ;;
10395 *) as_dir=$as_dir/ ;;
10396 esac
10397 for ac_exec_ext in '' $ac_executable_extensions; do
10398 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10399 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10401 break 2
10402 fi
10403 done
10404 done
10405 IFS=$as_save_IFS
10406
10407 fi
10408 fi
10409 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10410 if test -n "$ac_ct_OBJDUMP"; then
10411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10412 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10413 else
10414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10415 printf "%s\n" "no" >&6; }
10416 fi
10417
10418 if test "x$ac_ct_OBJDUMP" = x; then
10419 OBJDUMP="false"
10420 else
10421 case $cross_compiling:$ac_tool_warned in
10422 yes:)
10423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10424 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10425 ac_tool_warned=yes ;;
10426 esac
10427 OBJDUMP=$ac_ct_OBJDUMP
10428 fi
10429 else
10430 OBJDUMP="$ac_cv_prog_OBJDUMP"
10431 fi
10432
10433 ;;
10434 esac
10435
10436 test -z "$AS" && AS=as
10437
10438
10439
10440
10441
10442 test -z "$DLLTOOL" && DLLTOOL=dlltool
10443
10444
10445
10446
10447
10448 test -z "$OBJDUMP" && OBJDUMP=objdump
10449
10450
10451
10452
10453 # Check whether --enable-static was given.
10454 if test ${enable_static+y}
10455 then :
10456 enableval=$enable_static; p=${PACKAGE-default}
10457 case $enableval in
10458 yes) enable_static=yes ;;
10459 no) enable_static=no ;;
10460 *)
10461 enable_static=no
10462 # Look at the argument we got. We use all the common list separators.
10463 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10464 for pkg in $enableval; do
10465 IFS="$lt_save_ifs"
10466 if test "X$pkg" = "X$p"; then
10467 enable_static=yes
10468 fi
10469 done
10470 IFS="$lt_save_ifs"
10471 ;;
10472 esac
10473 else $as_nop
10474 enable_static=no
10475 fi
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486 enable_dlopen=no
10487
10488
10489
10490 # Check whether --enable-shared was given.
10491 if test ${enable_shared+y}
10492 then :
10493 enableval=$enable_shared; p=${PACKAGE-default}
10494 case $enableval in
10495 yes) enable_shared=yes ;;
10496 no) enable_shared=no ;;
10497 *)
10498 enable_shared=no
10499 # Look at the argument we got. We use all the common list separators.
10500 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10501 for pkg in $enableval; do
10502 IFS="$lt_save_ifs"
10503 if test "X$pkg" = "X$p"; then
10504 enable_shared=yes
10505 fi
10506 done
10507 IFS="$lt_save_ifs"
10508 ;;
10509 esac
10510 else $as_nop
10511 enable_shared=yes
10512 fi
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524 # Check whether --with-pic was given.
10525 if test ${with_pic+y}
10526 then :
10527 withval=$with_pic; lt_p=${PACKAGE-default}
10528 case $withval in
10529 yes|no) pic_mode=$withval ;;
10530 *)
10531 pic_mode=default
10532 # Look at the argument we got. We use all the common list separators.
10533 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10534 for lt_pkg in $withval; do
10535 IFS="$lt_save_ifs"
10536 if test "X$lt_pkg" = "X$lt_p"; then
10537 pic_mode=yes
10538 fi
10539 done
10540 IFS="$lt_save_ifs"
10541 ;;
10542 esac
10543 else $as_nop
10544 pic_mode=default
10545 fi
10546
10547
10548 test -z "$pic_mode" && pic_mode=default
10549
10550
10551
10552
10553
10554
10555
10556 # Check whether --enable-fast-install was given.
10557 if test ${enable_fast_install+y}
10558 then :
10559 enableval=$enable_fast_install; p=${PACKAGE-default}
10560 case $enableval in
10561 yes) enable_fast_install=yes ;;
10562 no) enable_fast_install=no ;;
10563 *)
10564 enable_fast_install=no
10565 # Look at the argument we got. We use all the common list separators.
10566 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10567 for pkg in $enableval; do
10568 IFS="$lt_save_ifs"
10569 if test "X$pkg" = "X$p"; then
10570 enable_fast_install=yes
10571 fi
10572 done
10573 IFS="$lt_save_ifs"
10574 ;;
10575 esac
10576 else $as_nop
10577 enable_fast_install=yes
10578 fi
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590 # This can be used to rebuild libtool when needed
10591 LIBTOOL_DEPS="$ltmain"
10592
10593 # Always use our own libtool.
10594 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625 test -z "$LN_S" && LN_S="ln -s"
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640 if test -n "${ZSH_VERSION+set}" ; then
10641 setopt NO_GLOB_SUBST
10642 fi
10643
10644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10645 printf %s "checking for objdir... " >&6; }
10646 if test ${lt_cv_objdir+y}
10647 then :
10648 printf %s "(cached) " >&6
10649 else $as_nop
10650 rm -f .libs 2>/dev/null
10651 mkdir .libs 2>/dev/null
10652 if test -d .libs; then
10653 lt_cv_objdir=.libs
10654 else
10655 # MS-DOS does not allow filenames that begin with a dot.
10656 lt_cv_objdir=_libs
10657 fi
10658 rmdir .libs 2>/dev/null
10659 fi
10660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10661 printf "%s\n" "$lt_cv_objdir" >&6; }
10662 objdir=$lt_cv_objdir
10663
10664
10665
10666
10667
10668 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10669
10670
10671
10672
10673 case $host_os in
10674 aix3*)
10675 # AIX sometimes has problems with the GCC collect2 program. For some
10676 # reason, if we set the COLLECT_NAMES environment variable, the problems
10677 # vanish in a puff of smoke.
10678 if test "X${COLLECT_NAMES+set}" != Xset; then
10679 COLLECT_NAMES=
10680 export COLLECT_NAMES
10681 fi
10682 ;;
10683 esac
10684
10685 # Global variables:
10686 ofile=libtool
10687 can_build_shared=yes
10688
10689 # All known linkers require a `.a' archive for static linking (except MSVC,
10690 # which needs '.lib').
10691 libext=a
10692
10693 with_gnu_ld="$lt_cv_prog_gnu_ld"
10694
10695 old_CC="$CC"
10696 old_CFLAGS="$CFLAGS"
10697
10698 # Set sane defaults for various variables
10699 test -z "$CC" && CC=cc
10700 test -z "$LTCC" && LTCC=$CC
10701 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10702 test -z "$LD" && LD=ld
10703 test -z "$ac_objext" && ac_objext=o
10704
10705 for cc_temp in $compiler""; do
10706 case $cc_temp in
10707 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10708 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10709 \-*) ;;
10710 *) break;;
10711 esac
10712 done
10713 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10714
10715
10716 # Only perform the check for file, if the check method requires it
10717 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10718 case $deplibs_check_method in
10719 file_magic*)
10720 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10722 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10723 if test ${lt_cv_path_MAGIC_CMD+y}
10724 then :
10725 printf %s "(cached) " >&6
10726 else $as_nop
10727 case $MAGIC_CMD in
10728 [\\/*] | ?:[\\/]*)
10729 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10730 ;;
10731 *)
10732 lt_save_MAGIC_CMD="$MAGIC_CMD"
10733 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10734 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10735 for ac_dir in $ac_dummy; do
10736 IFS="$lt_save_ifs"
10737 test -z "$ac_dir" && ac_dir=.
10738 if test -f $ac_dir/${ac_tool_prefix}file; then
10739 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10740 if test -n "$file_magic_test_file"; then
10741 case $deplibs_check_method in
10742 "file_magic "*)
10743 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10744 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10745 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10746 $EGREP "$file_magic_regex" > /dev/null; then
10747 :
10748 else
10749 cat <<_LT_EOF 1>&2
10750
10751 *** Warning: the command libtool uses to detect shared libraries,
10752 *** $file_magic_cmd, produces output that libtool cannot recognize.
10753 *** The result is that libtool may fail to recognize shared libraries
10754 *** as such. This will affect the creation of libtool libraries that
10755 *** depend on shared libraries, but programs linked with such libtool
10756 *** libraries will work regardless of this problem. Nevertheless, you
10757 *** may want to report the problem to your system manager and/or to
10758 *** [email protected]
10759
10760 _LT_EOF
10761 fi ;;
10762 esac
10763 fi
10764 break
10765 fi
10766 done
10767 IFS="$lt_save_ifs"
10768 MAGIC_CMD="$lt_save_MAGIC_CMD"
10769 ;;
10770 esac
10771 fi
10772
10773 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10774 if test -n "$MAGIC_CMD"; then
10775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10776 printf "%s\n" "$MAGIC_CMD" >&6; }
10777 else
10778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10779 printf "%s\n" "no" >&6; }
10780 fi
10781
10782
10783
10784
10785
10786 if test -z "$lt_cv_path_MAGIC_CMD"; then
10787 if test -n "$ac_tool_prefix"; then
10788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10789 printf %s "checking for file... " >&6; }
10790 if test ${lt_cv_path_MAGIC_CMD+y}
10791 then :
10792 printf %s "(cached) " >&6
10793 else $as_nop
10794 case $MAGIC_CMD in
10795 [\\/*] | ?:[\\/]*)
10796 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10797 ;;
10798 *)
10799 lt_save_MAGIC_CMD="$MAGIC_CMD"
10800 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10801 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10802 for ac_dir in $ac_dummy; do
10803 IFS="$lt_save_ifs"
10804 test -z "$ac_dir" && ac_dir=.
10805 if test -f $ac_dir/file; then
10806 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10807 if test -n "$file_magic_test_file"; then
10808 case $deplibs_check_method in
10809 "file_magic "*)
10810 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10811 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10812 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10813 $EGREP "$file_magic_regex" > /dev/null; then
10814 :
10815 else
10816 cat <<_LT_EOF 1>&2
10817
10818 *** Warning: the command libtool uses to detect shared libraries,
10819 *** $file_magic_cmd, produces output that libtool cannot recognize.
10820 *** The result is that libtool may fail to recognize shared libraries
10821 *** as such. This will affect the creation of libtool libraries that
10822 *** depend on shared libraries, but programs linked with such libtool
10823 *** libraries will work regardless of this problem. Nevertheless, you
10824 *** may want to report the problem to your system manager and/or to
10825 *** [email protected]
10826
10827 _LT_EOF
10828 fi ;;
10829 esac
10830 fi
10831 break
10832 fi
10833 done
10834 IFS="$lt_save_ifs"
10835 MAGIC_CMD="$lt_save_MAGIC_CMD"
10836 ;;
10837 esac
10838 fi
10839
10840 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10841 if test -n "$MAGIC_CMD"; then
10842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10843 printf "%s\n" "$MAGIC_CMD" >&6; }
10844 else
10845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10846 printf "%s\n" "no" >&6; }
10847 fi
10848
10849
10850 else
10851 MAGIC_CMD=:
10852 fi
10853 fi
10854
10855 fi
10856 ;;
10857 esac
10858
10859 # Use C for the default configuration in the libtool script
10860
10861 lt_save_CC="$CC"
10862 ac_ext=c
10863 ac_cpp='$CPP $CPPFLAGS'
10864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10867
10868
10869 # Source file extension for C test sources.
10870 ac_ext=c
10871
10872 # Object file extension for compiled C test sources.
10873 objext=o
10874 objext=$objext
10875
10876 # Code to be used in simple compile tests
10877 lt_simple_compile_test_code="int some_variable = 0;"
10878
10879 # Code to be used in simple link tests
10880 lt_simple_link_test_code='int main(){return(0);}'
10881
10882
10883
10884
10885
10886
10887
10888 # If no C compiler was specified, use CC.
10889 LTCC=${LTCC-"$CC"}
10890
10891 # If no C compiler flags were specified, use CFLAGS.
10892 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10893
10894 # Allow CC to be a program name with arguments.
10895 compiler=$CC
10896
10897 # Save the default compiler, since it gets overwritten when the other
10898 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10899 compiler_DEFAULT=$CC
10900
10901 # save warnings/boilerplate of simple test code
10902 ac_outfile=conftest.$ac_objext
10903 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10904 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10905 _lt_compiler_boilerplate=`cat conftest.err`
10906 $RM conftest*
10907
10908 ac_outfile=conftest.$ac_objext
10909 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10910 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10911 _lt_linker_boilerplate=`cat conftest.err`
10912 $RM -r conftest*
10913
10914
10915 ## CAVEAT EMPTOR:
10916 ## There is no encapsulation within the following macros, do not change
10917 ## the running order or otherwise move them around unless you know exactly
10918 ## what you are doing...
10919 if test -n "$compiler"; then
10920
10921 lt_prog_compiler_no_builtin_flag=
10922
10923 if test "$GCC" = yes; then
10924 case $cc_basename in
10925 nvcc*)
10926 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10927 *)
10928 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10929 esac
10930
10931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10932 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10933 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10934 then :
10935 printf %s "(cached) " >&6
10936 else $as_nop
10937 lt_cv_prog_compiler_rtti_exceptions=no
10938 ac_outfile=conftest.$ac_objext
10939 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10940 lt_compiler_flag="-fno-rtti -fno-exceptions"
10941 # Insert the option either (1) after the last *FLAGS variable, or
10942 # (2) before a word containing "conftest.", or (3) at the end.
10943 # Note that $ac_compile itself does not contain backslashes and begins
10944 # with a dollar sign (not a hyphen), so the echo should work correctly.
10945 # The option is referenced via a variable to avoid confusing sed.
10946 lt_compile=`echo "$ac_compile" | $SED \
10947 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10948 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10949 -e 's:$: $lt_compiler_flag:'`
10950 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10951 (eval "$lt_compile" 2>conftest.err)
10952 ac_status=$?
10953 cat conftest.err >&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 if (exit $ac_status) && test -s "$ac_outfile"; then
10956 # The compiler can only warn and ignore the option if not recognized
10957 # So say no if there are warnings other than the usual output.
10958 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10959 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10960 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10961 lt_cv_prog_compiler_rtti_exceptions=yes
10962 fi
10963 fi
10964 $RM conftest*
10965
10966 fi
10967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10968 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10969
10970 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10971 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10972 else
10973 :
10974 fi
10975
10976 fi
10977
10978
10979
10980
10981
10982
10983 lt_prog_compiler_wl=
10984 lt_prog_compiler_pic=
10985 lt_prog_compiler_static=
10986
10987
10988 if test "$GCC" = yes; then
10989 lt_prog_compiler_wl='-Wl,'
10990 lt_prog_compiler_static='-static'
10991
10992 case $host_os in
10993 aix*)
10994 # All AIX code is PIC.
10995 if test "$host_cpu" = ia64; then
10996 # AIX 5 now supports IA64 processor
10997 lt_prog_compiler_static='-Bstatic'
10998 fi
10999 ;;
11000
11001 amigaos*)
11002 case $host_cpu in
11003 powerpc)
11004 # see comment about AmigaOS4 .so support
11005 lt_prog_compiler_pic='-fPIC'
11006 ;;
11007 m68k)
11008 # FIXME: we need at least 68020 code to build shared libraries, but
11009 # adding the `-m68020' flag to GCC prevents building anything better,
11010 # like `-m68040'.
11011 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11012 ;;
11013 esac
11014 ;;
11015
11016 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11017 # PIC is the default for these OSes.
11018 ;;
11019
11020 mingw* | cygwin* | pw32* | os2* | cegcc*)
11021 # This hack is so that the source file can tell whether it is being
11022 # built for inclusion in a dll (and should export symbols for example).
11023 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11024 # (--disable-auto-import) libraries
11025 lt_prog_compiler_pic='-DDLL_EXPORT'
11026 ;;
11027
11028 darwin* | rhapsody*)
11029 # PIC is the default on this platform
11030 # Common symbols not allowed in MH_DYLIB files
11031 lt_prog_compiler_pic='-fno-common'
11032 ;;
11033
11034 haiku*)
11035 # PIC is the default for Haiku.
11036 # The "-static" flag exists, but is broken.
11037 lt_prog_compiler_static=
11038 ;;
11039
11040 hpux*)
11041 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11042 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11043 # sets the default TLS model and affects inlining.
11044 case $host_cpu in
11045 hppa*64*)
11046 # +Z the default
11047 ;;
11048 *)
11049 lt_prog_compiler_pic='-fPIC'
11050 ;;
11051 esac
11052 ;;
11053
11054 interix[3-9]*)
11055 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11056 # Instead, we relocate shared libraries at runtime.
11057 ;;
11058
11059 msdosdjgpp*)
11060 # Just because we use GCC doesn't mean we suddenly get shared libraries
11061 # on systems that don't support them.
11062 lt_prog_compiler_can_build_shared=no
11063 enable_shared=no
11064 ;;
11065
11066 *nto* | *qnx*)
11067 # QNX uses GNU C++, but need to define -shared option too, otherwise
11068 # it will coredump.
11069 lt_prog_compiler_pic='-fPIC -shared'
11070 ;;
11071
11072 sysv4*MP*)
11073 if test -d /usr/nec; then
11074 lt_prog_compiler_pic=-Kconform_pic
11075 fi
11076 ;;
11077
11078 *)
11079 lt_prog_compiler_pic='-fPIC'
11080 ;;
11081 esac
11082
11083 case $cc_basename in
11084 nvcc*) # Cuda Compiler Driver 2.2
11085 lt_prog_compiler_wl='-Xlinker '
11086 if test -n "$lt_prog_compiler_pic"; then
11087 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11088 fi
11089 ;;
11090 esac
11091 else
11092 # PORTME Check for flag to pass linker flags through the system compiler.
11093 case $host_os in
11094 aix*)
11095 lt_prog_compiler_wl='-Wl,'
11096 if test "$host_cpu" = ia64; then
11097 # AIX 5 now supports IA64 processor
11098 lt_prog_compiler_static='-Bstatic'
11099 else
11100 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11101 fi
11102 ;;
11103
11104 mingw* | cygwin* | pw32* | os2* | cegcc*)
11105 # This hack is so that the source file can tell whether it is being
11106 # built for inclusion in a dll (and should export symbols for example).
11107 lt_prog_compiler_pic='-DDLL_EXPORT'
11108 ;;
11109
11110 hpux9* | hpux10* | hpux11*)
11111 lt_prog_compiler_wl='-Wl,'
11112 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11113 # not for PA HP-UX.
11114 case $host_cpu in
11115 hppa*64*|ia64*)
11116 # +Z the default
11117 ;;
11118 *)
11119 lt_prog_compiler_pic='+Z'
11120 ;;
11121 esac
11122 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11123 lt_prog_compiler_static='${wl}-a ${wl}archive'
11124 ;;
11125
11126 irix5* | irix6* | nonstopux*)
11127 lt_prog_compiler_wl='-Wl,'
11128 # PIC (with -KPIC) is the default.
11129 lt_prog_compiler_static='-non_shared'
11130 ;;
11131
11132 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11133 case $cc_basename in
11134 # old Intel for x86_64 which still supported -KPIC.
11135 ecc*)
11136 lt_prog_compiler_wl='-Wl,'
11137 lt_prog_compiler_pic='-KPIC'
11138 lt_prog_compiler_static='-static'
11139 ;;
11140 # icc used to be incompatible with GCC.
11141 # ICC 10 doesn't accept -KPIC any more.
11142 icc* | ifort*)
11143 lt_prog_compiler_wl='-Wl,'
11144 lt_prog_compiler_pic='-fPIC'
11145 lt_prog_compiler_static='-static'
11146 ;;
11147 # Lahey Fortran 8.1.
11148 lf95*)
11149 lt_prog_compiler_wl='-Wl,'
11150 lt_prog_compiler_pic='--shared'
11151 lt_prog_compiler_static='--static'
11152 ;;
11153 nagfor*)
11154 # NAG Fortran compiler
11155 lt_prog_compiler_wl='-Wl,-Wl,,'
11156 lt_prog_compiler_pic='-PIC'
11157 lt_prog_compiler_static='-Bstatic'
11158 ;;
11159 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11160 # Portland Group compilers (*not* the Pentium gcc compiler,
11161 # which looks to be a dead project)
11162 lt_prog_compiler_wl='-Wl,'
11163 lt_prog_compiler_pic='-fpic'
11164 lt_prog_compiler_static='-Bstatic'
11165 ;;
11166 ccc*)
11167 lt_prog_compiler_wl='-Wl,'
11168 # All Alpha code is PIC.
11169 lt_prog_compiler_static='-non_shared'
11170 ;;
11171 xl* | bgxl* | bgf* | mpixl*)
11172 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11173 lt_prog_compiler_wl='-Wl,'
11174 lt_prog_compiler_pic='-qpic'
11175 lt_prog_compiler_static='-qstaticlink'
11176 ;;
11177 *)
11178 case `$CC -V 2>&1 | sed 5q` in
11179 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11180 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11181 lt_prog_compiler_pic='-KPIC'
11182 lt_prog_compiler_static='-Bstatic'
11183 lt_prog_compiler_wl=''
11184 ;;
11185 *Sun\ F* | *Sun*Fortran*)
11186 lt_prog_compiler_pic='-KPIC'
11187 lt_prog_compiler_static='-Bstatic'
11188 lt_prog_compiler_wl='-Qoption ld '
11189 ;;
11190 *Sun\ C*)
11191 # Sun C 5.9
11192 lt_prog_compiler_pic='-KPIC'
11193 lt_prog_compiler_static='-Bstatic'
11194 lt_prog_compiler_wl='-Wl,'
11195 ;;
11196 *Intel*\ [CF]*Compiler*)
11197 lt_prog_compiler_wl='-Wl,'
11198 lt_prog_compiler_pic='-fPIC'
11199 lt_prog_compiler_static='-static'
11200 ;;
11201 *Portland\ Group*)
11202 lt_prog_compiler_wl='-Wl,'
11203 lt_prog_compiler_pic='-fpic'
11204 lt_prog_compiler_static='-Bstatic'
11205 ;;
11206 esac
11207 ;;
11208 esac
11209 ;;
11210
11211 newsos6)
11212 lt_prog_compiler_pic='-KPIC'
11213 lt_prog_compiler_static='-Bstatic'
11214 ;;
11215
11216 *nto* | *qnx*)
11217 # QNX uses GNU C++, but need to define -shared option too, otherwise
11218 # it will coredump.
11219 lt_prog_compiler_pic='-fPIC -shared'
11220 ;;
11221
11222 osf3* | osf4* | osf5*)
11223 lt_prog_compiler_wl='-Wl,'
11224 # All OSF/1 code is PIC.
11225 lt_prog_compiler_static='-non_shared'
11226 ;;
11227
11228 rdos*)
11229 lt_prog_compiler_static='-non_shared'
11230 ;;
11231
11232 solaris*)
11233 lt_prog_compiler_pic='-KPIC'
11234 lt_prog_compiler_static='-Bstatic'
11235 case $cc_basename in
11236 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11237 lt_prog_compiler_wl='-Qoption ld ';;
11238 *)
11239 lt_prog_compiler_wl='-Wl,';;
11240 esac
11241 ;;
11242
11243 sunos4*)
11244 lt_prog_compiler_wl='-Qoption ld '
11245 lt_prog_compiler_pic='-PIC'
11246 lt_prog_compiler_static='-Bstatic'
11247 ;;
11248
11249 sysv4 | sysv4.2uw2* | sysv4.3*)
11250 lt_prog_compiler_wl='-Wl,'
11251 lt_prog_compiler_pic='-KPIC'
11252 lt_prog_compiler_static='-Bstatic'
11253 ;;
11254
11255 sysv4*MP*)
11256 if test -d /usr/nec ;then
11257 lt_prog_compiler_pic='-Kconform_pic'
11258 lt_prog_compiler_static='-Bstatic'
11259 fi
11260 ;;
11261
11262 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11263 lt_prog_compiler_wl='-Wl,'
11264 lt_prog_compiler_pic='-KPIC'
11265 lt_prog_compiler_static='-Bstatic'
11266 ;;
11267
11268 unicos*)
11269 lt_prog_compiler_wl='-Wl,'
11270 lt_prog_compiler_can_build_shared=no
11271 ;;
11272
11273 uts4*)
11274 lt_prog_compiler_pic='-pic'
11275 lt_prog_compiler_static='-Bstatic'
11276 ;;
11277
11278 *)
11279 lt_prog_compiler_can_build_shared=no
11280 ;;
11281 esac
11282 fi
11283
11284 case $host_os in
11285 # For platforms which do not support PIC, -DPIC is meaningless:
11286 *djgpp*)
11287 lt_prog_compiler_pic=
11288 ;;
11289 *)
11290 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11291 ;;
11292 esac
11293
11294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11295 printf %s "checking for $compiler option to produce PIC... " >&6; }
11296 if test ${lt_cv_prog_compiler_pic+y}
11297 then :
11298 printf %s "(cached) " >&6
11299 else $as_nop
11300 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11301 fi
11302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11303 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11304 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11305
11306 #
11307 # Check to make sure the PIC flag actually works.
11308 #
11309 if test -n "$lt_prog_compiler_pic"; then
11310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11311 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11312 if test ${lt_cv_prog_compiler_pic_works+y}
11313 then :
11314 printf %s "(cached) " >&6
11315 else $as_nop
11316 lt_cv_prog_compiler_pic_works=no
11317 ac_outfile=conftest.$ac_objext
11318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11319 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11320 # Insert the option either (1) after the last *FLAGS variable, or
11321 # (2) before a word containing "conftest.", or (3) at the end.
11322 # Note that $ac_compile itself does not contain backslashes and begins
11323 # with a dollar sign (not a hyphen), so the echo should work correctly.
11324 # The option is referenced via a variable to avoid confusing sed.
11325 lt_compile=`echo "$ac_compile" | $SED \
11326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11328 -e 's:$: $lt_compiler_flag:'`
11329 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11330 (eval "$lt_compile" 2>conftest.err)
11331 ac_status=$?
11332 cat conftest.err >&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 if (exit $ac_status) && test -s "$ac_outfile"; then
11335 # The compiler can only warn and ignore the option if not recognized
11336 # So say no if there are warnings other than the usual output.
11337 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11339 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11340 lt_cv_prog_compiler_pic_works=yes
11341 fi
11342 fi
11343 $RM conftest*
11344
11345 fi
11346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11347 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11348
11349 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11350 case $lt_prog_compiler_pic in
11351 "" | " "*) ;;
11352 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11353 esac
11354 else
11355 lt_prog_compiler_pic=
11356 lt_prog_compiler_can_build_shared=no
11357 fi
11358
11359 fi
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371 #
11372 # Check to make sure the static flag actually works.
11373 #
11374 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11376 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11377 if test ${lt_cv_prog_compiler_static_works+y}
11378 then :
11379 printf %s "(cached) " >&6
11380 else $as_nop
11381 lt_cv_prog_compiler_static_works=no
11382 save_LDFLAGS="$LDFLAGS"
11383 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11384 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11385 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11386 # The linker can only warn and ignore the option if not recognized
11387 # So say no if there are warnings
11388 if test -s conftest.err; then
11389 # Append any errors to the config.log.
11390 cat conftest.err 1>&5
11391 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11392 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11393 if diff conftest.exp conftest.er2 >/dev/null; then
11394 lt_cv_prog_compiler_static_works=yes
11395 fi
11396 else
11397 lt_cv_prog_compiler_static_works=yes
11398 fi
11399 fi
11400 $RM -r conftest*
11401 LDFLAGS="$save_LDFLAGS"
11402
11403 fi
11404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11405 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11406
11407 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11408 :
11409 else
11410 lt_prog_compiler_static=
11411 fi
11412
11413
11414
11415
11416
11417
11418
11419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11420 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11421 if test ${lt_cv_prog_compiler_c_o+y}
11422 then :
11423 printf %s "(cached) " >&6
11424 else $as_nop
11425 lt_cv_prog_compiler_c_o=no
11426 $RM -r conftest 2>/dev/null
11427 mkdir conftest
11428 cd conftest
11429 mkdir out
11430 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11431
11432 lt_compiler_flag="-o out/conftest2.$ac_objext"
11433 # Insert the option either (1) after the last *FLAGS variable, or
11434 # (2) before a word containing "conftest.", or (3) at the end.
11435 # Note that $ac_compile itself does not contain backslashes and begins
11436 # with a dollar sign (not a hyphen), so the echo should work correctly.
11437 lt_compile=`echo "$ac_compile" | $SED \
11438 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11440 -e 's:$: $lt_compiler_flag:'`
11441 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11442 (eval "$lt_compile" 2>out/conftest.err)
11443 ac_status=$?
11444 cat out/conftest.err >&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11447 then
11448 # The compiler can only warn and ignore the option if not recognized
11449 # So say no if there are warnings
11450 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11451 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11452 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11453 lt_cv_prog_compiler_c_o=yes
11454 fi
11455 fi
11456 chmod u+w . 2>&5
11457 $RM conftest*
11458 # SGI C++ compiler will create directory out/ii_files/ for
11459 # template instantiation
11460 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11461 $RM out/* && rmdir out
11462 cd ..
11463 $RM -r conftest
11464 $RM conftest*
11465
11466 fi
11467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11468 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11469
11470
11471
11472
11473
11474
11475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11476 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11477 if test ${lt_cv_prog_compiler_c_o+y}
11478 then :
11479 printf %s "(cached) " >&6
11480 else $as_nop
11481 lt_cv_prog_compiler_c_o=no
11482 $RM -r conftest 2>/dev/null
11483 mkdir conftest
11484 cd conftest
11485 mkdir out
11486 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11487
11488 lt_compiler_flag="-o out/conftest2.$ac_objext"
11489 # Insert the option either (1) after the last *FLAGS variable, or
11490 # (2) before a word containing "conftest.", or (3) at the end.
11491 # Note that $ac_compile itself does not contain backslashes and begins
11492 # with a dollar sign (not a hyphen), so the echo should work correctly.
11493 lt_compile=`echo "$ac_compile" | $SED \
11494 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11496 -e 's:$: $lt_compiler_flag:'`
11497 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11498 (eval "$lt_compile" 2>out/conftest.err)
11499 ac_status=$?
11500 cat out/conftest.err >&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11503 then
11504 # The compiler can only warn and ignore the option if not recognized
11505 # So say no if there are warnings
11506 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11507 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11508 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11509 lt_cv_prog_compiler_c_o=yes
11510 fi
11511 fi
11512 chmod u+w . 2>&5
11513 $RM conftest*
11514 # SGI C++ compiler will create directory out/ii_files/ for
11515 # template instantiation
11516 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11517 $RM out/* && rmdir out
11518 cd ..
11519 $RM -r conftest
11520 $RM conftest*
11521
11522 fi
11523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11524 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11525
11526
11527
11528
11529 hard_links="nottested"
11530 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11531 # do not overwrite the value of need_locks provided by the user
11532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11533 printf %s "checking if we can lock with hard links... " >&6; }
11534 hard_links=yes
11535 $RM conftest*
11536 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11537 touch conftest.a
11538 ln conftest.a conftest.b 2>&5 || hard_links=no
11539 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11541 printf "%s\n" "$hard_links" >&6; }
11542 if test "$hard_links" = no; then
11543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11544 printf "%s\n" "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11545 need_locks=warn
11546 fi
11547 else
11548 need_locks=no
11549 fi
11550
11551
11552
11553
11554
11555
11556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11557 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11558
11559 runpath_var=
11560 allow_undefined_flag=
11561 always_export_symbols=no
11562 archive_cmds=
11563 archive_expsym_cmds=
11564 compiler_needs_object=no
11565 enable_shared_with_static_runtimes=no
11566 export_dynamic_flag_spec=
11567 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11568 hardcode_automatic=no
11569 hardcode_direct=no
11570 hardcode_direct_absolute=no
11571 hardcode_libdir_flag_spec=
11572 hardcode_libdir_separator=
11573 hardcode_minus_L=no
11574 hardcode_shlibpath_var=unsupported
11575 inherit_rpath=no
11576 link_all_deplibs=unknown
11577 module_cmds=
11578 module_expsym_cmds=
11579 old_archive_from_new_cmds=
11580 old_archive_from_expsyms_cmds=
11581 thread_safe_flag_spec=
11582 whole_archive_flag_spec=
11583 # include_expsyms should be a list of space-separated symbols to be *always*
11584 # included in the symbol list
11585 include_expsyms=
11586 # exclude_expsyms can be an extended regexp of symbols to exclude
11587 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11588 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11589 # as well as any symbol that contains `d'.
11590 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11591 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11592 # platforms (ab)use it in PIC code, but their linkers get confused if
11593 # the symbol is explicitly referenced. Since portable code cannot
11594 # rely on this symbol name, it's probably fine to never include it in
11595 # preloaded symbol tables.
11596 # Exclude shared library initialization/finalization symbols.
11597 extract_expsyms_cmds=
11598
11599 case $host_os in
11600 cygwin* | mingw* | pw32* | cegcc*)
11601 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11602 # When not using gcc, we currently assume that we are using
11603 # Microsoft Visual C++.
11604 if test "$GCC" != yes; then
11605 with_gnu_ld=no
11606 fi
11607 ;;
11608 interix*)
11609 # we just hope/assume this is gcc and not c89 (= MSVC++)
11610 with_gnu_ld=yes
11611 ;;
11612 openbsd*)
11613 with_gnu_ld=no
11614 ;;
11615 linux* | k*bsd*-gnu | gnu*)
11616 link_all_deplibs=no
11617 ;;
11618 esac
11619
11620 ld_shlibs=yes
11621
11622 # On some targets, GNU ld is compatible enough with the native linker
11623 # that we're better off using the native interface for both.
11624 lt_use_gnu_ld_interface=no
11625 if test "$with_gnu_ld" = yes; then
11626 case $host_os in
11627 aix*)
11628 # The AIX port of GNU ld has always aspired to compatibility
11629 # with the native linker. However, as the warning in the GNU ld
11630 # block says, versions before 2.19.5* couldn't really create working
11631 # shared libraries, regardless of the interface used.
11632 case `$LD -v 2>&1` in
11633 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11634 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11635 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11636 *)
11637 lt_use_gnu_ld_interface=yes
11638 ;;
11639 esac
11640 ;;
11641 *)
11642 lt_use_gnu_ld_interface=yes
11643 ;;
11644 esac
11645 fi
11646
11647 if test "$lt_use_gnu_ld_interface" = yes; then
11648 # If archive_cmds runs LD, not CC, wlarc should be empty
11649 wlarc='${wl}'
11650
11651 # Set some defaults for GNU ld with shared library support. These
11652 # are reset later if shared libraries are not supported. Putting them
11653 # here allows them to be overridden if necessary.
11654 runpath_var=LD_RUN_PATH
11655 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11656 export_dynamic_flag_spec='${wl}--export-dynamic'
11657 # ancient GNU ld didn't support --whole-archive et. al.
11658 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11659 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11660 else
11661 whole_archive_flag_spec=
11662 fi
11663 supports_anon_versioning=no
11664 case `$LD -v 2>&1` in
11665 *GNU\ gold*) supports_anon_versioning=yes ;;
11666 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11667 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11668 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11669 *\ 2.11.*) ;; # other 2.11 versions
11670 *) supports_anon_versioning=yes ;;
11671 esac
11672
11673 # See if GNU ld supports shared libraries.
11674 case $host_os in
11675 aix[3-9]*)
11676 # On AIX/PPC, the GNU linker is very broken
11677 if test "$host_cpu" != ia64; then
11678 ld_shlibs=no
11679 cat <<_LT_EOF 1>&2
11680
11681 *** Warning: the GNU linker, at least up to release 2.19, is reported
11682 *** to be unable to reliably create shared libraries on AIX.
11683 *** Therefore, libtool is disabling shared libraries support. If you
11684 *** really care for shared libraries, you may want to install binutils
11685 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11686 *** You will then need to restart the configuration process.
11687
11688 _LT_EOF
11689 fi
11690 ;;
11691
11692 amigaos*)
11693 case $host_cpu in
11694 powerpc)
11695 # see comment about AmigaOS4 .so support
11696 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11697 archive_expsym_cmds=''
11698 ;;
11699 m68k)
11700 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)'
11701 hardcode_libdir_flag_spec='-L$libdir'
11702 hardcode_minus_L=yes
11703 ;;
11704 esac
11705 ;;
11706
11707 beos*)
11708 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11709 allow_undefined_flag=unsupported
11710 # Joseph Beckenbach <[email protected]> says some releases of gcc
11711 # support --undefined. This deserves some investigation. FIXME
11712 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11713 else
11714 ld_shlibs=no
11715 fi
11716 ;;
11717
11718 cygwin* | mingw* | pw32* | cegcc*)
11719 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11720 # as there is no search path for DLLs.
11721 hardcode_libdir_flag_spec='-L$libdir'
11722 export_dynamic_flag_spec='${wl}--export-all-symbols'
11723 allow_undefined_flag=unsupported
11724 always_export_symbols=no
11725 enable_shared_with_static_runtimes=yes
11726 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'
11727 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11728
11729 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11731 # If the export-symbols file already is a .def file (1st line
11732 # is EXPORTS), use it as is; otherwise, prepend...
11733 archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
11734 cp $export_symbols $output_objdir/$soname.def;
11735 else
11736 echo EXPORTS > $output_objdir/$soname.def;
11737 cat $export_symbols >> $output_objdir/$soname.def;
11738 fi~
11739 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11740 else
11741 ld_shlibs=no
11742 fi
11743 ;;
11744
11745 haiku*)
11746 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11747 link_all_deplibs=yes
11748 ;;
11749
11750 interix[3-9]*)
11751 hardcode_direct=no
11752 hardcode_shlibpath_var=no
11753 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11754 export_dynamic_flag_spec='${wl}-E'
11755 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11756 # Instead, shared libraries are loaded at an image base (0x10000000 by
11757 # default) and relocated if they conflict, which is a slow very memory
11758 # consuming and fragmenting process. To avoid this, we pick a random,
11759 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11760 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11761 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11762 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'
11763 ;;
11764
11765 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11766 tmp_diet=no
11767 if test "$host_os" = linux-dietlibc; then
11768 case $cc_basename in
11769 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11770 esac
11771 fi
11772 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11773 && test "$tmp_diet" = no
11774 then
11775 tmp_addflag=' $pic_flag'
11776 tmp_sharedflag='-shared'
11777 case $cc_basename,$host_cpu in
11778 pgcc*) # Portland Group C compiler
11779 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'
11780 tmp_addflag=' $pic_flag'
11781 ;;
11782 pgf77* | pgf90* | pgf95* | pgfortran*)
11783 # Portland Group f77 and f90 compilers
11784 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'
11785 tmp_addflag=' $pic_flag -Mnomain' ;;
11786 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11787 tmp_addflag=' -i_dynamic' ;;
11788 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11789 tmp_addflag=' -i_dynamic -nofor_main' ;;
11790 ifc* | ifort*) # Intel Fortran compiler
11791 tmp_addflag=' -nofor_main' ;;
11792 lf95*) # Lahey Fortran 8.1
11793 whole_archive_flag_spec=
11794 tmp_sharedflag='--shared' ;;
11795 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11796 tmp_sharedflag='-qmkshrobj'
11797 tmp_addflag= ;;
11798 nvcc*) # Cuda Compiler Driver 2.2
11799 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'
11800 compiler_needs_object=yes
11801 ;;
11802 esac
11803 case `$CC -V 2>&1 | sed 5q` in
11804 *Sun\ C*) # Sun C 5.9
11805 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'
11806 compiler_needs_object=yes
11807 tmp_sharedflag='-G' ;;
11808 *Sun\ F*) # Sun Fortran 8.3
11809 tmp_sharedflag='-G' ;;
11810 esac
11811 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11812
11813 if test "x$supports_anon_versioning" = xyes; then
11814 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11815 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11816 echo "local: *; };" >> $output_objdir/$libname.ver~
11817 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11818 fi
11819
11820 case $cc_basename in
11821 xlf* | bgf* | bgxlf* | mpixlf*)
11822 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11823 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11824 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11825 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11826 if test "x$supports_anon_versioning" = xyes; then
11827 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11828 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11829 echo "local: *; };" >> $output_objdir/$libname.ver~
11830 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11831 fi
11832 ;;
11833 esac
11834 else
11835 ld_shlibs=no
11836 fi
11837 ;;
11838
11839 netbsd* | netbsdelf*-gnu)
11840 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11841 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11842 wlarc=
11843 else
11844 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11845 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11846 fi
11847 ;;
11848
11849 solaris*)
11850 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11851 ld_shlibs=no
11852 cat <<_LT_EOF 1>&2
11853
11854 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11855 *** create shared libraries on Solaris systems. Therefore, libtool
11856 *** is disabling shared libraries support. We urge you to upgrade GNU
11857 *** binutils to release 2.9.1 or newer. Another option is to modify
11858 *** your PATH or compiler configuration so that the native linker is
11859 *** used, and then restart.
11860
11861 _LT_EOF
11862 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11863 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11864 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11865 else
11866 ld_shlibs=no
11867 fi
11868 ;;
11869
11870 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11871 case `$LD -v 2>&1` in
11872 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11873 ld_shlibs=no
11874 cat <<_LT_EOF 1>&2
11875
11876 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11877 *** reliably create shared libraries on SCO systems. Therefore, libtool
11878 *** is disabling shared libraries support. We urge you to upgrade GNU
11879 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11880 *** your PATH or compiler configuration so that the native linker is
11881 *** used, and then restart.
11882
11883 _LT_EOF
11884 ;;
11885 *)
11886 # For security reasons, it is highly recommended that you always
11887 # use absolute paths for naming shared libraries, and exclude the
11888 # DT_RUNPATH tag from executables and libraries. But doing so
11889 # requires that you compile everything twice, which is a pain.
11890 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11891 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11892 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11893 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11894 else
11895 ld_shlibs=no
11896 fi
11897 ;;
11898 esac
11899 ;;
11900
11901 sunos4*)
11902 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11903 wlarc=
11904 hardcode_direct=yes
11905 hardcode_shlibpath_var=no
11906 ;;
11907
11908 *)
11909 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11910 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11911 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11912 else
11913 ld_shlibs=no
11914 fi
11915 ;;
11916 esac
11917
11918 if test "$ld_shlibs" = no; then
11919 runpath_var=
11920 hardcode_libdir_flag_spec=
11921 export_dynamic_flag_spec=
11922 whole_archive_flag_spec=
11923 fi
11924 else
11925 # PORTME fill in a description of your system's linker (not GNU ld)
11926 case $host_os in
11927 aix3*)
11928 allow_undefined_flag=unsupported
11929 always_export_symbols=yes
11930 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'
11931 # Note: this linker hardcodes the directories in LIBPATH if there
11932 # are no directories specified by -L.
11933 hardcode_minus_L=yes
11934 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11935 # Neither direct hardcoding nor static linking is supported with a
11936 # broken collect2.
11937 hardcode_direct=unsupported
11938 fi
11939 ;;
11940
11941 aix[4-9]*)
11942 if test "$host_cpu" = ia64; then
11943 # On IA64, the linker does run time linking by default, so we don't
11944 # have to do anything special.
11945 aix_use_runtimelinking=no
11946 exp_sym_flag='-Bexport'
11947 no_entry_flag=""
11948 else
11949 # If we're using GNU nm, then we don't want the "-C" option.
11950 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11951 # Also, AIX nm treats weak defined symbols like other global
11952 # defined symbols, whereas GNU nm marks them as "W".
11953 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11954 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'
11955 else
11956 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'
11957 fi
11958 aix_use_runtimelinking=no
11959
11960 # Test if we are trying to use run time linking or normal
11961 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11962 # need to do runtime linking.
11963 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11964 for ld_flag in $LDFLAGS; do
11965 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11966 aix_use_runtimelinking=yes
11967 break
11968 fi
11969 done
11970 ;;
11971 esac
11972
11973 exp_sym_flag='-bexport'
11974 no_entry_flag='-bnoentry'
11975 fi
11976
11977 # When large executables or shared objects are built, AIX ld can
11978 # have problems creating the table of contents. If linking a library
11979 # or program results in "error TOC overflow" add -mminimal-toc to
11980 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11981 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11982
11983 archive_cmds=''
11984 hardcode_direct=yes
11985 hardcode_direct_absolute=yes
11986 hardcode_libdir_separator=':'
11987 link_all_deplibs=yes
11988 file_list_spec='${wl}-f,'
11989
11990 if test "$GCC" = yes; then
11991 case $host_os in aix4.[012]|aix4.[012].*)
11992 # We only want to do this on AIX 4.2 and lower, the check
11993 # below for broken collect2 doesn't work under 4.3+
11994 collect2name=`${CC} -print-prog-name=collect2`
11995 if test -f "$collect2name" &&
11996 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11997 then
11998 # We have reworked collect2
11999 :
12000 else
12001 # We have old collect2
12002 hardcode_direct=unsupported
12003 # It fails to find uninstalled libraries when the uninstalled
12004 # path is not listed in the libpath. Setting hardcode_minus_L
12005 # to unsupported forces relinking
12006 hardcode_minus_L=yes
12007 hardcode_libdir_flag_spec='-L$libdir'
12008 hardcode_libdir_separator=
12009 fi
12010 ;;
12011 esac
12012 shared_flag='-shared'
12013 if test "$aix_use_runtimelinking" = yes; then
12014 shared_flag="$shared_flag "'${wl}-G'
12015 fi
12016 link_all_deplibs=no
12017 else
12018 # not using gcc
12019 if test "$host_cpu" = ia64; then
12020 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12021 # chokes on -Wl,-G. The following line is correct:
12022 shared_flag='-G'
12023 else
12024 if test "$aix_use_runtimelinking" = yes; then
12025 shared_flag='${wl}-G'
12026 else
12027 shared_flag='${wl}-bM:SRE'
12028 fi
12029 fi
12030 fi
12031
12032 export_dynamic_flag_spec='${wl}-bexpall'
12033 # It seems that -bexpall does not export symbols beginning with
12034 # underscore (_), so it is better to generate a list of symbols to export.
12035 always_export_symbols=yes
12036 if test "$aix_use_runtimelinking" = yes; then
12037 # Warning - without using the other runtime loading flags (-brtl),
12038 # -berok will link without error, but may produce a broken library.
12039 allow_undefined_flag='-berok'
12040 # Determine the default libpath from the value encoded in an
12041 # empty executable.
12042 if test "${lt_cv_aix_libpath+set}" = set; then
12043 aix_libpath=$lt_cv_aix_libpath
12044 else
12045 if test ${lt_cv_aix_libpath_+y}
12046 then :
12047 printf %s "(cached) " >&6
12048 else $as_nop
12049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12050 /* end confdefs.h. */
12051
12052 int
12053 main (void)
12054 {
12055
12056 ;
12057 return 0;
12058 }
12059 _ACEOF
12060 if ac_fn_c_try_link "$LINENO"
12061 then :
12062
12063 lt_aix_libpath_sed='
12064 /Import File Strings/,/^$/ {
12065 /^0/ {
12066 s/^0 *\([^ ]*\) *$/\1/
12067 p
12068 }
12069 }'
12070 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12071 # Check for a 64-bit object if we didn't find anything.
12072 if test -z "$lt_cv_aix_libpath_"; then
12073 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12074 fi
12075 fi
12076 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12077 conftest$ac_exeext conftest.$ac_ext
12078 if test -z "$lt_cv_aix_libpath_"; then
12079 lt_cv_aix_libpath_="/usr/lib:/lib"
12080 fi
12081
12082 fi
12083
12084 aix_libpath=$lt_cv_aix_libpath_
12085 fi
12086
12087 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12088 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"
12089 else
12090 if test "$host_cpu" = ia64; then
12091 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12092 allow_undefined_flag="-z nodefs"
12093 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"
12094 else
12095 # Determine the default libpath from the value encoded in an
12096 # empty executable.
12097 if test "${lt_cv_aix_libpath+set}" = set; then
12098 aix_libpath=$lt_cv_aix_libpath
12099 else
12100 if test ${lt_cv_aix_libpath_+y}
12101 then :
12102 printf %s "(cached) " >&6
12103 else $as_nop
12104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12105 /* end confdefs.h. */
12106
12107 int
12108 main (void)
12109 {
12110
12111 ;
12112 return 0;
12113 }
12114 _ACEOF
12115 if ac_fn_c_try_link "$LINENO"
12116 then :
12117
12118 lt_aix_libpath_sed='
12119 /Import File Strings/,/^$/ {
12120 /^0/ {
12121 s/^0 *\([^ ]*\) *$/\1/
12122 p
12123 }
12124 }'
12125 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12126 # Check for a 64-bit object if we didn't find anything.
12127 if test -z "$lt_cv_aix_libpath_"; then
12128 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12129 fi
12130 fi
12131 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12132 conftest$ac_exeext conftest.$ac_ext
12133 if test -z "$lt_cv_aix_libpath_"; then
12134 lt_cv_aix_libpath_="/usr/lib:/lib"
12135 fi
12136
12137 fi
12138
12139 aix_libpath=$lt_cv_aix_libpath_
12140 fi
12141
12142 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12143 # Warning - without using the other run time loading flags,
12144 # -berok will link without error, but may produce a broken library.
12145 no_undefined_flag=' ${wl}-bernotok'
12146 allow_undefined_flag=' ${wl}-berok'
12147 if test "$with_gnu_ld" = yes; then
12148 # We only use this code for GNU lds that support --whole-archive.
12149 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12150 else
12151 # Exported symbols can be pulled into shared objects from archives
12152 whole_archive_flag_spec='$convenience'
12153 fi
12154 archive_cmds_need_lc=yes
12155 # This is similar to how AIX traditionally builds its shared libraries.
12156 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'
12157 fi
12158 fi
12159 ;;
12160
12161 amigaos*)
12162 case $host_cpu in
12163 powerpc)
12164 # see comment about AmigaOS4 .so support
12165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12166 archive_expsym_cmds=''
12167 ;;
12168 m68k)
12169 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)'
12170 hardcode_libdir_flag_spec='-L$libdir'
12171 hardcode_minus_L=yes
12172 ;;
12173 esac
12174 ;;
12175
12176 bsdi[45]*)
12177 export_dynamic_flag_spec=-rdynamic
12178 ;;
12179
12180 cygwin* | mingw* | pw32* | cegcc*)
12181 # When not using gcc, we currently assume that we are using
12182 # Microsoft Visual C++.
12183 # hardcode_libdir_flag_spec is actually meaningless, as there is
12184 # no search path for DLLs.
12185 case $cc_basename in
12186 cl*)
12187 # Native MSVC
12188 hardcode_libdir_flag_spec=' '
12189 allow_undefined_flag=unsupported
12190 always_export_symbols=yes
12191 file_list_spec='@'
12192 # Tell ltmain to make .lib files, not .a files.
12193 libext=lib
12194 # Tell ltmain to make .dll files, not .so files.
12195 shrext_cmds=".dll"
12196 # FIXME: Setting linknames here is a bad hack.
12197 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12198 archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
12199 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12200 else
12201 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12202 fi~
12203 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12204 linknames='
12205 # The linker will not automatically build a static lib if we build a DLL.
12206 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12207 enable_shared_with_static_runtimes=yes
12208 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12209 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12210 # Don't use ranlib
12211 old_postinstall_cmds='chmod 644 $oldlib'
12212 postlink_cmds='lt_outputfile="@OUTPUT@"~
12213 lt_tool_outputfile="@TOOL_OUTPUT@"~
12214 case $lt_outputfile in
12215 *.exe|*.EXE) ;;
12216 *)
12217 lt_outputfile="$lt_outputfile.exe"
12218 lt_tool_outputfile="$lt_tool_outputfile.exe"
12219 ;;
12220 esac~
12221 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12222 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12223 $RM "$lt_outputfile.manifest";
12224 fi'
12225 ;;
12226 *)
12227 # Assume MSVC wrapper
12228 hardcode_libdir_flag_spec=' '
12229 allow_undefined_flag=unsupported
12230 # Tell ltmain to make .lib files, not .a files.
12231 libext=lib
12232 # Tell ltmain to make .dll files, not .so files.
12233 shrext_cmds=".dll"
12234 # FIXME: Setting linknames here is a bad hack.
12235 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12236 # The linker will automatically build a .lib file if we build a DLL.
12237 old_archive_from_new_cmds='true'
12238 # FIXME: Should let the user specify the lib program.
12239 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12240 enable_shared_with_static_runtimes=yes
12241 ;;
12242 esac
12243 ;;
12244
12245 darwin* | rhapsody*)
12246
12247
12248 archive_cmds_need_lc=no
12249 hardcode_direct=no
12250 hardcode_automatic=yes
12251 hardcode_shlibpath_var=unsupported
12252 if test "$lt_cv_ld_force_load" = "yes"; then
12253 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\"`'
12254
12255 else
12256 whole_archive_flag_spec=''
12257 fi
12258 link_all_deplibs=yes
12259 allow_undefined_flag="$_lt_dar_allow_undefined"
12260 case $cc_basename in
12261 ifort*) _lt_dar_can_shared=yes ;;
12262 *) _lt_dar_can_shared=$GCC ;;
12263 esac
12264 if test "$_lt_dar_can_shared" = "yes"; then
12265 output_verbose_link_cmd=func_echo_all
12266 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12267 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12268 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}"
12269 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}"
12270
12271 else
12272 ld_shlibs=no
12273 fi
12274
12275 ;;
12276
12277 dgux*)
12278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12279 hardcode_libdir_flag_spec='-L$libdir'
12280 hardcode_shlibpath_var=no
12281 ;;
12282
12283 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12284 # support. Future versions do this automatically, but an explicit c++rt0.o
12285 # does not break anything, and helps significantly (at the cost of a little
12286 # extra space).
12287 freebsd2.2*)
12288 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12289 hardcode_libdir_flag_spec='-R$libdir'
12290 hardcode_direct=yes
12291 hardcode_shlibpath_var=no
12292 ;;
12293
12294 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12295 freebsd2.*)
12296 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12297 hardcode_direct=yes
12298 hardcode_minus_L=yes
12299 hardcode_shlibpath_var=no
12300 ;;
12301
12302 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12303 freebsd* | dragonfly*)
12304 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12305 hardcode_libdir_flag_spec='-R$libdir'
12306 hardcode_direct=yes
12307 hardcode_shlibpath_var=no
12308 ;;
12309
12310 hpux9*)
12311 if test "$GCC" = yes; then
12312 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'
12313 else
12314 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'
12315 fi
12316 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12317 hardcode_libdir_separator=:
12318 hardcode_direct=yes
12319
12320 # hardcode_minus_L: Not really in the search PATH,
12321 # but as the default location of the library.
12322 hardcode_minus_L=yes
12323 export_dynamic_flag_spec='${wl}-E'
12324 ;;
12325
12326 hpux10*)
12327 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12328 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12329 else
12330 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12331 fi
12332 if test "$with_gnu_ld" = no; then
12333 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12334 hardcode_libdir_separator=:
12335 hardcode_direct=yes
12336 hardcode_direct_absolute=yes
12337 export_dynamic_flag_spec='${wl}-E'
12338 # hardcode_minus_L: Not really in the search PATH,
12339 # but as the default location of the library.
12340 hardcode_minus_L=yes
12341 fi
12342 ;;
12343
12344 hpux11*)
12345 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12346 case $host_cpu in
12347 hppa*64*)
12348 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12349 ;;
12350 ia64*)
12351 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12352 ;;
12353 *)
12354 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12355 ;;
12356 esac
12357 else
12358 case $host_cpu in
12359 hppa*64*)
12360 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12361 ;;
12362 ia64*)
12363 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12364 ;;
12365 *)
12366
12367 # Older versions of the 11.00 compiler do not understand -b yet
12368 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12370 printf %s "checking if $CC understands -b... " >&6; }
12371 if test ${lt_cv_prog_compiler__b+y}
12372 then :
12373 printf %s "(cached) " >&6
12374 else $as_nop
12375 lt_cv_prog_compiler__b=no
12376 save_LDFLAGS="$LDFLAGS"
12377 LDFLAGS="$LDFLAGS -b"
12378 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12379 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12380 # The linker can only warn and ignore the option if not recognized
12381 # So say no if there are warnings
12382 if test -s conftest.err; then
12383 # Append any errors to the config.log.
12384 cat conftest.err 1>&5
12385 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12386 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12387 if diff conftest.exp conftest.er2 >/dev/null; then
12388 lt_cv_prog_compiler__b=yes
12389 fi
12390 else
12391 lt_cv_prog_compiler__b=yes
12392 fi
12393 fi
12394 $RM -r conftest*
12395 LDFLAGS="$save_LDFLAGS"
12396
12397 fi
12398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12399 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12400
12401 if test x"$lt_cv_prog_compiler__b" = xyes; then
12402 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12403 else
12404 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12405 fi
12406
12407 ;;
12408 esac
12409 fi
12410 if test "$with_gnu_ld" = no; then
12411 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12412 hardcode_libdir_separator=:
12413
12414 case $host_cpu in
12415 hppa*64*|ia64*)
12416 hardcode_direct=no
12417 hardcode_shlibpath_var=no
12418 ;;
12419 *)
12420 hardcode_direct=yes
12421 hardcode_direct_absolute=yes
12422 export_dynamic_flag_spec='${wl}-E'
12423
12424 # hardcode_minus_L: Not really in the search PATH,
12425 # but as the default location of the library.
12426 hardcode_minus_L=yes
12427 ;;
12428 esac
12429 fi
12430 ;;
12431
12432 irix5* | irix6* | nonstopux*)
12433 if test "$GCC" = yes; then
12434 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'
12435 # Try to use the -exported_symbol ld option, if it does not
12436 # work, assume that -exports_file does not work either and
12437 # implicitly export all symbols.
12438 # This should be the same for all languages, so no per-tag cache variable.
12439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12440 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12441 if test ${lt_cv_irix_exported_symbol+y}
12442 then :
12443 printf %s "(cached) " >&6
12444 else $as_nop
12445 save_LDFLAGS="$LDFLAGS"
12446 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12448 /* end confdefs.h. */
12449 int foo (void) { return 0; }
12450 _ACEOF
12451 if ac_fn_c_try_link "$LINENO"
12452 then :
12453 lt_cv_irix_exported_symbol=yes
12454 else $as_nop
12455 lt_cv_irix_exported_symbol=no
12456 fi
12457 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12458 conftest$ac_exeext conftest.$ac_ext
12459 LDFLAGS="$save_LDFLAGS"
12460 fi
12461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12462 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12463 if test "$lt_cv_irix_exported_symbol" = yes; then
12464 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'
12465 fi
12466 else
12467 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'
12468 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'
12469 fi
12470 archive_cmds_need_lc='no'
12471 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12472 hardcode_libdir_separator=:
12473 inherit_rpath=yes
12474 link_all_deplibs=yes
12475 ;;
12476
12477 netbsd* | netbsdelf*-gnu)
12478 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12479 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12480 else
12481 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12482 fi
12483 hardcode_libdir_flag_spec='-R$libdir'
12484 hardcode_direct=yes
12485 hardcode_shlibpath_var=no
12486 ;;
12487
12488 newsos6)
12489 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12490 hardcode_direct=yes
12491 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12492 hardcode_libdir_separator=:
12493 hardcode_shlibpath_var=no
12494 ;;
12495
12496 *nto* | *qnx*)
12497 ;;
12498
12499 openbsd*)
12500 if test -f /usr/libexec/ld.so; then
12501 hardcode_direct=yes
12502 hardcode_shlibpath_var=no
12503 hardcode_direct_absolute=yes
12504 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12505 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12506 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12507 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12508 export_dynamic_flag_spec='${wl}-E'
12509 else
12510 case $host_os in
12511 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12512 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12513 hardcode_libdir_flag_spec='-R$libdir'
12514 ;;
12515 *)
12516 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12517 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12518 ;;
12519 esac
12520 fi
12521 else
12522 ld_shlibs=no
12523 fi
12524 ;;
12525
12526 os2*)
12527 hardcode_libdir_flag_spec='-L$libdir'
12528 hardcode_minus_L=yes
12529 allow_undefined_flag=unsupported
12530 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'
12531 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12532 ;;
12533
12534 osf3*)
12535 if test "$GCC" = yes; then
12536 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12537 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'
12538 else
12539 allow_undefined_flag=' -expect_unresolved \*'
12540 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'
12541 fi
12542 archive_cmds_need_lc='no'
12543 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12544 hardcode_libdir_separator=:
12545 ;;
12546
12547 osf4* | osf5*) # as osf3* with the addition of -msym flag
12548 if test "$GCC" = yes; then
12549 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12550 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'
12551 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12552 else
12553 allow_undefined_flag=' -expect_unresolved \*'
12554 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'
12555 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~
12556 $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'
12557
12558 # Both c and cxx compiler support -rpath directly
12559 hardcode_libdir_flag_spec='-rpath $libdir'
12560 fi
12561 archive_cmds_need_lc='no'
12562 hardcode_libdir_separator=:
12563 ;;
12564
12565 solaris*)
12566 no_undefined_flag=' -z defs'
12567 if test "$GCC" = yes; then
12568 wlarc='${wl}'
12569 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12570 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12571 $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'
12572 else
12573 case `$CC -V 2>&1` in
12574 *"Compilers 5.0"*)
12575 wlarc=''
12576 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12577 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12578 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12579 ;;
12580 *)
12581 wlarc='${wl}'
12582 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12583 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12584 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12585 ;;
12586 esac
12587 fi
12588 hardcode_libdir_flag_spec='-R$libdir'
12589 hardcode_shlibpath_var=no
12590 case $host_os in
12591 solaris2.[0-5] | solaris2.[0-5].*) ;;
12592 *)
12593 # The compiler driver will combine and reorder linker options,
12594 # but understands `-z linker_flag'. GCC discards it without `$wl',
12595 # but is careful enough not to reorder.
12596 # Supported since Solaris 2.6 (maybe 2.5.1?)
12597 if test "$GCC" = yes; then
12598 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12599 else
12600 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12601 fi
12602 ;;
12603 esac
12604 link_all_deplibs=yes
12605 ;;
12606
12607 sunos4*)
12608 if test "x$host_vendor" = xsequent; then
12609 # Use $CC to link under sequent, because it throws in some extra .o
12610 # files that make .init and .fini sections work.
12611 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12612 else
12613 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12614 fi
12615 hardcode_libdir_flag_spec='-L$libdir'
12616 hardcode_direct=yes
12617 hardcode_minus_L=yes
12618 hardcode_shlibpath_var=no
12619 ;;
12620
12621 sysv4)
12622 case $host_vendor in
12623 sni)
12624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12625 hardcode_direct=yes # is this really true???
12626 ;;
12627 siemens)
12628 ## LD is ld it makes a PLAMLIB
12629 ## CC just makes a GrossModule.
12630 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12631 reload_cmds='$CC -r -o $output$reload_objs'
12632 hardcode_direct=no
12633 ;;
12634 motorola)
12635 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12636 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12637 ;;
12638 esac
12639 runpath_var='LD_RUN_PATH'
12640 hardcode_shlibpath_var=no
12641 ;;
12642
12643 sysv4.3*)
12644 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12645 hardcode_shlibpath_var=no
12646 export_dynamic_flag_spec='-Bexport'
12647 ;;
12648
12649 sysv4*MP*)
12650 if test -d /usr/nec; then
12651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12652 hardcode_shlibpath_var=no
12653 runpath_var=LD_RUN_PATH
12654 hardcode_runpath_var=yes
12655 ld_shlibs=yes
12656 fi
12657 ;;
12658
12659 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12660 no_undefined_flag='${wl}-z,text'
12661 archive_cmds_need_lc=no
12662 hardcode_shlibpath_var=no
12663 runpath_var='LD_RUN_PATH'
12664
12665 if test "$GCC" = yes; then
12666 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12667 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12668 else
12669 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12670 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12671 fi
12672 ;;
12673
12674 sysv5* | sco3.2v5* | sco5v6*)
12675 # Note: We can NOT use -z defs as we might desire, because we do not
12676 # link with -lc, and that would cause any symbols used from libc to
12677 # always be unresolved, which means just about no library would
12678 # ever link correctly. If we're not using GNU ld we use -z text
12679 # though, which does catch some bad symbols but isn't as heavy-handed
12680 # as -z defs.
12681 no_undefined_flag='${wl}-z,text'
12682 allow_undefined_flag='${wl}-z,nodefs'
12683 archive_cmds_need_lc=no
12684 hardcode_shlibpath_var=no
12685 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12686 hardcode_libdir_separator=':'
12687 link_all_deplibs=yes
12688 export_dynamic_flag_spec='${wl}-Bexport'
12689 runpath_var='LD_RUN_PATH'
12690
12691 if test "$GCC" = yes; then
12692 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12693 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12694 else
12695 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12696 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12697 fi
12698 ;;
12699
12700 uts4*)
12701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12702 hardcode_libdir_flag_spec='-L$libdir'
12703 hardcode_shlibpath_var=no
12704 ;;
12705
12706 *)
12707 ld_shlibs=no
12708 ;;
12709 esac
12710
12711 if test x$host_vendor = xsni; then
12712 case $host in
12713 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12714 export_dynamic_flag_spec='${wl}-Blargedynsym'
12715 ;;
12716 esac
12717 fi
12718 fi
12719
12720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12721 printf "%s\n" "$ld_shlibs" >&6; }
12722 test "$ld_shlibs" = no && can_build_shared=no
12723
12724 with_gnu_ld=$with_gnu_ld
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740 #
12741 # Do we need to explicitly link libc?
12742 #
12743 case "x$archive_cmds_need_lc" in
12744 x|xyes)
12745 # Assume -lc should be added
12746 archive_cmds_need_lc=yes
12747
12748 if test "$enable_shared" = yes && test "$GCC" = yes; then
12749 case $archive_cmds in
12750 *'~'*)
12751 # FIXME: we may have to deal with multi-command sequences.
12752 ;;
12753 '$CC '*)
12754 # Test whether the compiler implicitly links with -lc since on some
12755 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12756 # to ld, don't add -lc before -lgcc.
12757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12758 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12759 if test ${lt_cv_archive_cmds_need_lc+y}
12760 then :
12761 printf %s "(cached) " >&6
12762 else $as_nop
12763 $RM conftest*
12764 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12765
12766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12767 (eval $ac_compile) 2>&5
12768 ac_status=$?
12769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12770 test $ac_status = 0; } 2>conftest.err; then
12771 soname=conftest
12772 lib=conftest
12773 libobjs=conftest.$ac_objext
12774 deplibs=
12775 wl=$lt_prog_compiler_wl
12776 pic_flag=$lt_prog_compiler_pic
12777 compiler_flags=-v
12778 linker_flags=-v
12779 verstring=
12780 output_objdir=.
12781 libname=conftest
12782 lt_save_allow_undefined_flag=$allow_undefined_flag
12783 allow_undefined_flag=
12784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12785 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12786 ac_status=$?
12787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12788 test $ac_status = 0; }
12789 then
12790 lt_cv_archive_cmds_need_lc=no
12791 else
12792 lt_cv_archive_cmds_need_lc=yes
12793 fi
12794 allow_undefined_flag=$lt_save_allow_undefined_flag
12795 else
12796 cat conftest.err 1>&5
12797 fi
12798 $RM conftest*
12799
12800 fi
12801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12802 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12803 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12804 ;;
12805 esac
12806 fi
12807 ;;
12808 esac
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12962 printf %s "checking dynamic linker characteristics... " >&6; }
12963
12964 if test "$GCC" = yes; then
12965 case $host_os in
12966 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12967 *) lt_awk_arg="/^libraries:/" ;;
12968 esac
12969 case $host_os in
12970 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12971 *) lt_sed_strip_eq="s,=/,/,g" ;;
12972 esac
12973 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12974 case $lt_search_path_spec in
12975 *\;*)
12976 # if the path contains ";" then we assume it to be the separator
12977 # otherwise default to the standard path separator (i.e. ":") - it is
12978 # assumed that no part of a normal pathname contains ";" but that should
12979 # okay in the real world where ";" in dirpaths is itself problematic.
12980 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12981 ;;
12982 *)
12983 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12984 ;;
12985 esac
12986 # Ok, now we have the path, separated by spaces, we can step through it
12987 # and add multilib dir if necessary.
12988 lt_tmp_lt_search_path_spec=
12989 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12990 for lt_sys_path in $lt_search_path_spec; do
12991 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12992 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12993 else
12994 test -d "$lt_sys_path" && \
12995 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12996 fi
12997 done
12998 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12999 BEGIN {RS=" "; FS="/|\n";} {
13000 lt_foo="";
13001 lt_count=0;
13002 for (lt_i = NF; lt_i > 0; lt_i--) {
13003 if ($lt_i != "" && $lt_i != ".") {
13004 if ($lt_i == "..") {
13005 lt_count++;
13006 } else {
13007 if (lt_count == 0) {
13008 lt_foo="/" $lt_i lt_foo;
13009 } else {
13010 lt_count--;
13011 }
13012 }
13013 }
13014 }
13015 if (lt_foo != "") { lt_freq[lt_foo]++; }
13016 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13017 }'`
13018 # AWK program above erroneously prepends '/' to C:/dos/paths
13019 # for these hosts.
13020 case $host_os in
13021 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13022 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13023 esac
13024 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13025 else
13026 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13027 fi
13028 library_names_spec=
13029 libname_spec='lib$name'
13030 soname_spec=
13031 shrext_cmds=".so"
13032 postinstall_cmds=
13033 postuninstall_cmds=
13034 finish_cmds=
13035 finish_eval=
13036 shlibpath_var=
13037 shlibpath_overrides_runpath=unknown
13038 version_type=none
13039 dynamic_linker="$host_os ld.so"
13040 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13041 need_lib_prefix=unknown
13042 hardcode_into_libs=no
13043
13044 # when you set need_version to no, make sure it does not cause -set_version
13045 # flags to be left without arguments
13046 need_version=unknown
13047
13048 case $host_os in
13049 aix3*)
13050 version_type=linux # correct to gnu/linux during the next big refactor
13051 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13052 shlibpath_var=LIBPATH
13053
13054 # AIX 3 has no versioning support, so we append a major version to the name.
13055 soname_spec='${libname}${release}${shared_ext}$major'
13056 ;;
13057
13058 aix[4-9]*)
13059 version_type=linux # correct to gnu/linux during the next big refactor
13060 need_lib_prefix=no
13061 need_version=no
13062 hardcode_into_libs=yes
13063 if test "$host_cpu" = ia64; then
13064 # AIX 5 supports IA64
13065 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13066 shlibpath_var=LD_LIBRARY_PATH
13067 else
13068 # With GCC up to 2.95.x, collect2 would create an import file
13069 # for dependence libraries. The import file would start with
13070 # the line `#! .'. This would cause the generated library to
13071 # depend on `.', always an invalid library. This was fixed in
13072 # development snapshots of GCC prior to 3.0.
13073 case $host_os in
13074 aix4 | aix4.[01] | aix4.[01].*)
13075 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13076 echo ' yes '
13077 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13078 :
13079 else
13080 can_build_shared=no
13081 fi
13082 ;;
13083 esac
13084 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13085 # soname into executable. Probably we can add versioning support to
13086 # collect2, so additional links can be useful in future.
13087 if test "$aix_use_runtimelinking" = yes; then
13088 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13089 # instead of lib<name>.a to let people know that these are not
13090 # typical AIX shared libraries.
13091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13092 else
13093 # We preserve .a as extension for shared libraries through AIX4.2
13094 # and later when we are not doing run time linking.
13095 library_names_spec='${libname}${release}.a $libname.a'
13096 soname_spec='${libname}${release}${shared_ext}$major'
13097 fi
13098 shlibpath_var=LIBPATH
13099 fi
13100 ;;
13101
13102 amigaos*)
13103 case $host_cpu in
13104 powerpc)
13105 # Since July 2007 AmigaOS4 officially supports .so libraries.
13106 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13108 ;;
13109 m68k)
13110 library_names_spec='$libname.ixlibrary $libname.a'
13111 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13112 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'
13113 ;;
13114 esac
13115 ;;
13116
13117 beos*)
13118 library_names_spec='${libname}${shared_ext}'
13119 dynamic_linker="$host_os ld.so"
13120 shlibpath_var=LIBRARY_PATH
13121 ;;
13122
13123 bsdi[45]*)
13124 version_type=linux # correct to gnu/linux during the next big refactor
13125 need_version=no
13126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13127 soname_spec='${libname}${release}${shared_ext}$major'
13128 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13129 shlibpath_var=LD_LIBRARY_PATH
13130 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13131 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13132 # the default ld.so.conf also contains /usr/contrib/lib and
13133 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13134 # libtool to hard-code these into programs
13135 ;;
13136
13137 cygwin* | mingw* | pw32* | cegcc*)
13138 version_type=windows
13139 shrext_cmds=".dll"
13140 need_version=no
13141 need_lib_prefix=no
13142
13143 case $GCC,$cc_basename in
13144 yes,*)
13145 # gcc
13146 library_names_spec='$libname.dll.a'
13147 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13148 postinstall_cmds='base_file=`basename \${file}`~
13149 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13150 dldir=$destdir/`dirname \$dlpath`~
13151 test -d \$dldir || mkdir -p \$dldir~
13152 $install_prog $dir/$dlname \$dldir/$dlname~
13153 chmod a+x \$dldir/$dlname~
13154 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13155 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13156 fi'
13157 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13158 dlpath=$dir/\$dldll~
13159 $RM \$dlpath'
13160 shlibpath_overrides_runpath=yes
13161
13162 case $host_os in
13163 cygwin*)
13164 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13165 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13166
13167 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13168 ;;
13169 mingw* | cegcc*)
13170 # MinGW DLLs use traditional 'lib' prefix
13171 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13172 ;;
13173 pw32*)
13174 # pw32 DLLs use 'pw' prefix rather than 'lib'
13175 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13176 ;;
13177 esac
13178 dynamic_linker='Win32 ld.exe'
13179 ;;
13180
13181 *,cl*)
13182 # Native MSVC
13183 libname_spec='$name'
13184 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13185 library_names_spec='${libname}.dll.lib'
13186
13187 case $build_os in
13188 mingw*)
13189 sys_lib_search_path_spec=
13190 lt_save_ifs=$IFS
13191 IFS=';'
13192 for lt_path in $LIB
13193 do
13194 IFS=$lt_save_ifs
13195 # Let DOS variable expansion print the short 8.3 style file name.
13196 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13197 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13198 done
13199 IFS=$lt_save_ifs
13200 # Convert to MSYS style.
13201 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13202 ;;
13203 cygwin*)
13204 # Convert to unix form, then to dos form, then back to unix form
13205 # but this time dos style (no spaces!) so that the unix form looks
13206 # like /cygdrive/c/PROGRA~1:/cygdr...
13207 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13208 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13209 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13210 ;;
13211 *)
13212 sys_lib_search_path_spec="$LIB"
13213 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13214 # It is most probably a Windows format PATH.
13215 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13216 else
13217 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13218 fi
13219 # FIXME: find the short name or the path components, as spaces are
13220 # common. (e.g. "Program Files" -> "PROGRA~1")
13221 ;;
13222 esac
13223
13224 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13225 postinstall_cmds='base_file=`basename \${file}`~
13226 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13227 dldir=$destdir/`dirname \$dlpath`~
13228 test -d \$dldir || mkdir -p \$dldir~
13229 $install_prog $dir/$dlname \$dldir/$dlname'
13230 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13231 dlpath=$dir/\$dldll~
13232 $RM \$dlpath'
13233 shlibpath_overrides_runpath=yes
13234 dynamic_linker='Win32 link.exe'
13235 ;;
13236
13237 *)
13238 # Assume MSVC wrapper
13239 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13240 dynamic_linker='Win32 ld.exe'
13241 ;;
13242 esac
13243 # FIXME: first we should search . and the directory the executable is in
13244 shlibpath_var=PATH
13245 ;;
13246
13247 darwin* | rhapsody*)
13248 dynamic_linker="$host_os dyld"
13249 version_type=darwin
13250 need_lib_prefix=no
13251 need_version=no
13252 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13253 soname_spec='${libname}${release}${major}$shared_ext'
13254 shlibpath_overrides_runpath=yes
13255 shlibpath_var=DYLD_LIBRARY_PATH
13256 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13257
13258 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13259 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13260 ;;
13261
13262 dgux*)
13263 version_type=linux # correct to gnu/linux during the next big refactor
13264 need_lib_prefix=no
13265 need_version=no
13266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13267 soname_spec='${libname}${release}${shared_ext}$major'
13268 shlibpath_var=LD_LIBRARY_PATH
13269 ;;
13270
13271 freebsd* | dragonfly*)
13272 # DragonFly does not have aout. When/if they implement a new
13273 # versioning mechanism, adjust this.
13274 if test -x /usr/bin/objformat; then
13275 objformat=`/usr/bin/objformat`
13276 else
13277 case $host_os in
13278 freebsd[23].*) objformat=aout ;;
13279 *) objformat=elf ;;
13280 esac
13281 fi
13282 version_type=freebsd-$objformat
13283 case $version_type in
13284 freebsd-elf*)
13285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13286 need_version=no
13287 need_lib_prefix=no
13288 ;;
13289 freebsd-*)
13290 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13291 need_version=yes
13292 ;;
13293 esac
13294 shlibpath_var=LD_LIBRARY_PATH
13295 case $host_os in
13296 freebsd2.*)
13297 shlibpath_overrides_runpath=yes
13298 ;;
13299 freebsd3.[01]* | freebsdelf3.[01]*)
13300 shlibpath_overrides_runpath=yes
13301 hardcode_into_libs=yes
13302 ;;
13303 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13304 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13305 shlibpath_overrides_runpath=no
13306 hardcode_into_libs=yes
13307 ;;
13308 *) # from 4.6 on, and DragonFly
13309 shlibpath_overrides_runpath=yes
13310 hardcode_into_libs=yes
13311 ;;
13312 esac
13313 ;;
13314
13315 gnu*)
13316 version_type=linux # correct to gnu/linux during the next big refactor
13317 need_lib_prefix=no
13318 need_version=no
13319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13320 soname_spec='${libname}${release}${shared_ext}$major'
13321 shlibpath_var=LD_LIBRARY_PATH
13322 shlibpath_overrides_runpath=no
13323 hardcode_into_libs=yes
13324 ;;
13325
13326 haiku*)
13327 version_type=linux # correct to gnu/linux during the next big refactor
13328 need_lib_prefix=no
13329 need_version=no
13330 dynamic_linker="$host_os runtime_loader"
13331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13332 soname_spec='${libname}${release}${shared_ext}$major'
13333 shlibpath_var=LIBRARY_PATH
13334 shlibpath_overrides_runpath=yes
13335 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13336 hardcode_into_libs=yes
13337 ;;
13338
13339 hpux9* | hpux10* | hpux11*)
13340 # Give a soname corresponding to the major version so that dld.sl refuses to
13341 # link against other versions.
13342 version_type=sunos
13343 need_lib_prefix=no
13344 need_version=no
13345 case $host_cpu in
13346 ia64*)
13347 shrext_cmds='.so'
13348 hardcode_into_libs=yes
13349 dynamic_linker="$host_os dld.so"
13350 shlibpath_var=LD_LIBRARY_PATH
13351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13353 soname_spec='${libname}${release}${shared_ext}$major'
13354 if test "X$HPUX_IA64_MODE" = X32; then
13355 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13356 else
13357 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13358 fi
13359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13360 ;;
13361 hppa*64*)
13362 shrext_cmds='.sl'
13363 hardcode_into_libs=yes
13364 dynamic_linker="$host_os dld.sl"
13365 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13366 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13368 soname_spec='${libname}${release}${shared_ext}$major'
13369 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13371 ;;
13372 *)
13373 shrext_cmds='.sl'
13374 dynamic_linker="$host_os dld.sl"
13375 shlibpath_var=SHLIB_PATH
13376 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13378 soname_spec='${libname}${release}${shared_ext}$major'
13379 ;;
13380 esac
13381 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13382 postinstall_cmds='chmod 555 $lib'
13383 # or fails outright, so override atomically:
13384 install_override_mode=555
13385 ;;
13386
13387 interix[3-9]*)
13388 version_type=linux # correct to gnu/linux during the next big refactor
13389 need_lib_prefix=no
13390 need_version=no
13391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13392 soname_spec='${libname}${release}${shared_ext}$major'
13393 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13394 shlibpath_var=LD_LIBRARY_PATH
13395 shlibpath_overrides_runpath=no
13396 hardcode_into_libs=yes
13397 ;;
13398
13399 irix5* | irix6* | nonstopux*)
13400 case $host_os in
13401 nonstopux*) version_type=nonstopux ;;
13402 *)
13403 if test "$lt_cv_prog_gnu_ld" = yes; then
13404 version_type=linux # correct to gnu/linux during the next big refactor
13405 else
13406 version_type=irix
13407 fi ;;
13408 esac
13409 need_lib_prefix=no
13410 need_version=no
13411 soname_spec='${libname}${release}${shared_ext}$major'
13412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13413 case $host_os in
13414 irix5* | nonstopux*)
13415 libsuff= shlibsuff=
13416 ;;
13417 *)
13418 case $LD in # libtool.m4 will add one of these switches to LD
13419 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13420 libsuff= shlibsuff= libmagic=32-bit;;
13421 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13422 libsuff=32 shlibsuff=N32 libmagic=N32;;
13423 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13424 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13425 *) libsuff= shlibsuff= libmagic=never-match;;
13426 esac
13427 ;;
13428 esac
13429 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13430 shlibpath_overrides_runpath=no
13431 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13432 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13433 hardcode_into_libs=yes
13434 ;;
13435
13436 # No shared lib support for Linux oldld, aout, or coff.
13437 linux*oldld* | linux*aout* | linux*coff*)
13438 dynamic_linker=no
13439 ;;
13440
13441 linux*android*)
13442 version_type=none # Android doesn't support versioned libraries.
13443 need_lib_prefix=no
13444 need_version=no
13445 library_names_spec='$libname$release$shared_ext'
13446 soname_spec='$libname$release$shared_ext'
13447 finish_cmds=
13448 shlibpath_var=LD_LIBRARY_PATH
13449 shlibpath_overrides_runpath=yes
13450
13451 # This implies no fast_install, which is unacceptable.
13452 # Some rework will be needed to allow for fast_install
13453 # before this can be enabled.
13454 hardcode_into_libs=yes
13455
13456 dynamic_linker='Android linker'
13457 # Don't embed -rpath directories since the linker doesn't support them.
13458 hardcode_libdir_flag_spec='-L$libdir'
13459 ;;
13460
13461 # This must be glibc/ELF.
13462 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13463 version_type=linux # correct to gnu/linux during the next big refactor
13464 need_lib_prefix=no
13465 need_version=no
13466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13467 soname_spec='${libname}${release}${shared_ext}$major'
13468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13469 shlibpath_var=LD_LIBRARY_PATH
13470 shlibpath_overrides_runpath=no
13471
13472 # Some binutils ld are patched to set DT_RUNPATH
13473 if test ${lt_cv_shlibpath_overrides_runpath+y}
13474 then :
13475 printf %s "(cached) " >&6
13476 else $as_nop
13477 lt_cv_shlibpath_overrides_runpath=no
13478 save_LDFLAGS=$LDFLAGS
13479 save_libdir=$libdir
13480 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13481 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13483 /* end confdefs.h. */
13484
13485 int
13486 main (void)
13487 {
13488
13489 ;
13490 return 0;
13491 }
13492 _ACEOF
13493 if ac_fn_c_try_link "$LINENO"
13494 then :
13495 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13496 then :
13497 lt_cv_shlibpath_overrides_runpath=yes
13498 fi
13499 fi
13500 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13501 conftest$ac_exeext conftest.$ac_ext
13502 LDFLAGS=$save_LDFLAGS
13503 libdir=$save_libdir
13504
13505 fi
13506
13507 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13508
13509 # This implies no fast_install, which is unacceptable.
13510 # Some rework will be needed to allow for fast_install
13511 # before this can be enabled.
13512 hardcode_into_libs=yes
13513
13514 # Append ld.so.conf contents to the search path
13515 if test -f /etc/ld.so.conf; then
13516 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' ' '`
13517 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13518 fi
13519
13520 # We used to test for /lib/ld.so.1 and disable shared libraries on
13521 # powerpc, because MkLinux only supported shared libraries with the
13522 # GNU dynamic linker. Since this was broken with cross compilers,
13523 # most powerpc-linux boxes support dynamic linking these days and
13524 # people can always --disable-shared, the test was removed, and we
13525 # assume the GNU/Linux dynamic linker is in use.
13526 dynamic_linker='GNU/Linux ld.so'
13527 ;;
13528
13529 netbsdelf*-gnu)
13530 version_type=linux
13531 need_lib_prefix=no
13532 need_version=no
13533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13534 soname_spec='${libname}${release}${shared_ext}$major'
13535 shlibpath_var=LD_LIBRARY_PATH
13536 shlibpath_overrides_runpath=no
13537 hardcode_into_libs=yes
13538 dynamic_linker='NetBSD ld.elf_so'
13539 ;;
13540
13541 netbsd*)
13542 version_type=sunos
13543 need_lib_prefix=no
13544 need_version=no
13545 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13547 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13548 dynamic_linker='NetBSD (a.out) ld.so'
13549 else
13550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13551 soname_spec='${libname}${release}${shared_ext}$major'
13552 dynamic_linker='NetBSD ld.elf_so'
13553 fi
13554 shlibpath_var=LD_LIBRARY_PATH
13555 shlibpath_overrides_runpath=yes
13556 hardcode_into_libs=yes
13557 ;;
13558
13559 newsos6)
13560 version_type=linux # correct to gnu/linux during the next big refactor
13561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13562 shlibpath_var=LD_LIBRARY_PATH
13563 shlibpath_overrides_runpath=yes
13564 ;;
13565
13566 *nto* | *qnx*)
13567 version_type=qnx
13568 need_lib_prefix=no
13569 need_version=no
13570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13571 soname_spec='${libname}${release}${shared_ext}$major'
13572 shlibpath_var=LD_LIBRARY_PATH
13573 shlibpath_overrides_runpath=no
13574 hardcode_into_libs=yes
13575 dynamic_linker='ldqnx.so'
13576 ;;
13577
13578 openbsd*)
13579 version_type=sunos
13580 sys_lib_dlsearch_path_spec="/usr/lib"
13581 need_lib_prefix=no
13582 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13583 case $host_os in
13584 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13585 *) need_version=no ;;
13586 esac
13587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13588 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13589 shlibpath_var=LD_LIBRARY_PATH
13590 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13591 case $host_os in
13592 openbsd2.[89] | openbsd2.[89].*)
13593 shlibpath_overrides_runpath=no
13594 ;;
13595 *)
13596 shlibpath_overrides_runpath=yes
13597 ;;
13598 esac
13599 else
13600 shlibpath_overrides_runpath=yes
13601 fi
13602 ;;
13603
13604 os2*)
13605 libname_spec='$name'
13606 shrext_cmds=".dll"
13607 need_lib_prefix=no
13608 library_names_spec='$libname${shared_ext} $libname.a'
13609 dynamic_linker='OS/2 ld.exe'
13610 shlibpath_var=LIBPATH
13611 ;;
13612
13613 osf3* | osf4* | osf5*)
13614 version_type=osf
13615 need_lib_prefix=no
13616 need_version=no
13617 soname_spec='${libname}${release}${shared_ext}$major'
13618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13619 shlibpath_var=LD_LIBRARY_PATH
13620 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13621 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13622 ;;
13623
13624 rdos*)
13625 dynamic_linker=no
13626 ;;
13627
13628 solaris*)
13629 version_type=linux # correct to gnu/linux during the next big refactor
13630 need_lib_prefix=no
13631 need_version=no
13632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13633 soname_spec='${libname}${release}${shared_ext}$major'
13634 shlibpath_var=LD_LIBRARY_PATH
13635 shlibpath_overrides_runpath=yes
13636 hardcode_into_libs=yes
13637 # ldd complains unless libraries are executable
13638 postinstall_cmds='chmod +x $lib'
13639 ;;
13640
13641 sunos4*)
13642 version_type=sunos
13643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13644 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13645 shlibpath_var=LD_LIBRARY_PATH
13646 shlibpath_overrides_runpath=yes
13647 if test "$with_gnu_ld" = yes; then
13648 need_lib_prefix=no
13649 fi
13650 need_version=yes
13651 ;;
13652
13653 sysv4 | sysv4.3*)
13654 version_type=linux # correct to gnu/linux during the next big refactor
13655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13656 soname_spec='${libname}${release}${shared_ext}$major'
13657 shlibpath_var=LD_LIBRARY_PATH
13658 case $host_vendor in
13659 sni)
13660 shlibpath_overrides_runpath=no
13661 need_lib_prefix=no
13662 runpath_var=LD_RUN_PATH
13663 ;;
13664 siemens)
13665 need_lib_prefix=no
13666 ;;
13667 motorola)
13668 need_lib_prefix=no
13669 need_version=no
13670 shlibpath_overrides_runpath=no
13671 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13672 ;;
13673 esac
13674 ;;
13675
13676 sysv4*MP*)
13677 if test -d /usr/nec ;then
13678 version_type=linux # correct to gnu/linux during the next big refactor
13679 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13680 soname_spec='$libname${shared_ext}.$major'
13681 shlibpath_var=LD_LIBRARY_PATH
13682 fi
13683 ;;
13684
13685 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13686 version_type=freebsd-elf
13687 need_lib_prefix=no
13688 need_version=no
13689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13690 soname_spec='${libname}${release}${shared_ext}$major'
13691 shlibpath_var=LD_LIBRARY_PATH
13692 shlibpath_overrides_runpath=yes
13693 hardcode_into_libs=yes
13694 if test "$with_gnu_ld" = yes; then
13695 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13696 else
13697 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13698 case $host_os in
13699 sco3.2v5*)
13700 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13701 ;;
13702 esac
13703 fi
13704 sys_lib_dlsearch_path_spec='/usr/lib'
13705 ;;
13706
13707 tpf*)
13708 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13709 version_type=linux # correct to gnu/linux during the next big refactor
13710 need_lib_prefix=no
13711 need_version=no
13712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13713 shlibpath_var=LD_LIBRARY_PATH
13714 shlibpath_overrides_runpath=no
13715 hardcode_into_libs=yes
13716 ;;
13717
13718 uts4*)
13719 version_type=linux # correct to gnu/linux during the next big refactor
13720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13721 soname_spec='${libname}${release}${shared_ext}$major'
13722 shlibpath_var=LD_LIBRARY_PATH
13723 ;;
13724
13725 *)
13726 dynamic_linker=no
13727 ;;
13728 esac
13729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13730 printf "%s\n" "$dynamic_linker" >&6; }
13731 test "$dynamic_linker" = no && can_build_shared=no
13732
13733 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13734 if test "$GCC" = yes; then
13735 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13736 fi
13737
13738 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13739 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13740 fi
13741 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13742 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13743 fi
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13837 printf %s "checking how to hardcode library paths into programs... " >&6; }
13838 hardcode_action=
13839 if test -n "$hardcode_libdir_flag_spec" ||
13840 test -n "$runpath_var" ||
13841 test "X$hardcode_automatic" = "Xyes" ; then
13842
13843 # We can hardcode non-existent directories.
13844 if test "$hardcode_direct" != no &&
13845 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13846 # have to relink, otherwise we might link with an installed library
13847 # when we should be linking with a yet-to-be-installed one
13848 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13849 test "$hardcode_minus_L" != no; then
13850 # Linking always hardcodes the temporary library directory.
13851 hardcode_action=relink
13852 else
13853 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13854 hardcode_action=immediate
13855 fi
13856 else
13857 # We cannot hardcode anything, or else we can only hardcode existing
13858 # directories.
13859 hardcode_action=unsupported
13860 fi
13861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13862 printf "%s\n" "$hardcode_action" >&6; }
13863
13864 if test "$hardcode_action" = relink ||
13865 test "$inherit_rpath" = yes; then
13866 # Fast installation is not supported
13867 enable_fast_install=no
13868 elif test "$shlibpath_overrides_runpath" = yes ||
13869 test "$enable_shared" = no; then
13870 # Fast installation is not necessary
13871 enable_fast_install=needless
13872 fi
13873
13874
13875
13876
13877
13878
13879 if test "x$enable_dlopen" != xyes; then
13880 enable_dlopen=unknown
13881 enable_dlopen_self=unknown
13882 enable_dlopen_self_static=unknown
13883 else
13884 lt_cv_dlopen=no
13885 lt_cv_dlopen_libs=
13886
13887 case $host_os in
13888 beos*)
13889 lt_cv_dlopen="load_add_on"
13890 lt_cv_dlopen_libs=
13891 lt_cv_dlopen_self=yes
13892 ;;
13893
13894 mingw* | pw32* | cegcc*)
13895 lt_cv_dlopen="LoadLibrary"
13896 lt_cv_dlopen_libs=
13897 ;;
13898
13899 cygwin*)
13900 lt_cv_dlopen="dlopen"
13901 lt_cv_dlopen_libs=
13902 ;;
13903
13904 darwin*)
13905 # if libdl is installed we need to link against it
13906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13907 printf %s "checking for dlopen in -ldl... " >&6; }
13908 if test ${ac_cv_lib_dl_dlopen+y}
13909 then :
13910 printf %s "(cached) " >&6
13911 else $as_nop
13912 ac_check_lib_save_LIBS=$LIBS
13913 LIBS="-ldl $LIBS"
13914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13915 /* end confdefs.h. */
13916
13917 /* Override any GCC internal prototype to avoid an error.
13918 Use char because int might match the return type of a GCC
13919 builtin and then its argument prototype would still apply. */
13920 char dlopen ();
13921 int
13922 main (void)
13923 {
13924 return dlopen ();
13925 ;
13926 return 0;
13927 }
13928 _ACEOF
13929 if ac_fn_c_try_link "$LINENO"
13930 then :
13931 ac_cv_lib_dl_dlopen=yes
13932 else $as_nop
13933 ac_cv_lib_dl_dlopen=no
13934 fi
13935 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13936 conftest$ac_exeext conftest.$ac_ext
13937 LIBS=$ac_check_lib_save_LIBS
13938 fi
13939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13940 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13941 if test "x$ac_cv_lib_dl_dlopen" = xyes
13942 then :
13943 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13944 else $as_nop
13945
13946 lt_cv_dlopen="dyld"
13947 lt_cv_dlopen_libs=
13948 lt_cv_dlopen_self=yes
13949
13950 fi
13951
13952 ;;
13953
13954 *)
13955 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13956 if test "x$ac_cv_func_shl_load" = xyes
13957 then :
13958 lt_cv_dlopen="shl_load"
13959 else $as_nop
13960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13961 printf %s "checking for shl_load in -ldld... " >&6; }
13962 if test ${ac_cv_lib_dld_shl_load+y}
13963 then :
13964 printf %s "(cached) " >&6
13965 else $as_nop
13966 ac_check_lib_save_LIBS=$LIBS
13967 LIBS="-ldld $LIBS"
13968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h. */
13970
13971 /* Override any GCC internal prototype to avoid an error.
13972 Use char because int might match the return type of a GCC
13973 builtin and then its argument prototype would still apply. */
13974 char shl_load ();
13975 int
13976 main (void)
13977 {
13978 return shl_load ();
13979 ;
13980 return 0;
13981 }
13982 _ACEOF
13983 if ac_fn_c_try_link "$LINENO"
13984 then :
13985 ac_cv_lib_dld_shl_load=yes
13986 else $as_nop
13987 ac_cv_lib_dld_shl_load=no
13988 fi
13989 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13990 conftest$ac_exeext conftest.$ac_ext
13991 LIBS=$ac_check_lib_save_LIBS
13992 fi
13993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13994 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13995 if test "x$ac_cv_lib_dld_shl_load" = xyes
13996 then :
13997 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13998 else $as_nop
13999 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14000 if test "x$ac_cv_func_dlopen" = xyes
14001 then :
14002 lt_cv_dlopen="dlopen"
14003 else $as_nop
14004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14005 printf %s "checking for dlopen in -ldl... " >&6; }
14006 if test ${ac_cv_lib_dl_dlopen+y}
14007 then :
14008 printf %s "(cached) " >&6
14009 else $as_nop
14010 ac_check_lib_save_LIBS=$LIBS
14011 LIBS="-ldl $LIBS"
14012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14013 /* end confdefs.h. */
14014
14015 /* Override any GCC internal prototype to avoid an error.
14016 Use char because int might match the return type of a GCC
14017 builtin and then its argument prototype would still apply. */
14018 char dlopen ();
14019 int
14020 main (void)
14021 {
14022 return dlopen ();
14023 ;
14024 return 0;
14025 }
14026 _ACEOF
14027 if ac_fn_c_try_link "$LINENO"
14028 then :
14029 ac_cv_lib_dl_dlopen=yes
14030 else $as_nop
14031 ac_cv_lib_dl_dlopen=no
14032 fi
14033 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14034 conftest$ac_exeext conftest.$ac_ext
14035 LIBS=$ac_check_lib_save_LIBS
14036 fi
14037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14038 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14039 if test "x$ac_cv_lib_dl_dlopen" = xyes
14040 then :
14041 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14042 else $as_nop
14043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14044 printf %s "checking for dlopen in -lsvld... " >&6; }
14045 if test ${ac_cv_lib_svld_dlopen+y}
14046 then :
14047 printf %s "(cached) " >&6
14048 else $as_nop
14049 ac_check_lib_save_LIBS=$LIBS
14050 LIBS="-lsvld $LIBS"
14051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14052 /* end confdefs.h. */
14053
14054 /* Override any GCC internal prototype to avoid an error.
14055 Use char because int might match the return type of a GCC
14056 builtin and then its argument prototype would still apply. */
14057 char dlopen ();
14058 int
14059 main (void)
14060 {
14061 return dlopen ();
14062 ;
14063 return 0;
14064 }
14065 _ACEOF
14066 if ac_fn_c_try_link "$LINENO"
14067 then :
14068 ac_cv_lib_svld_dlopen=yes
14069 else $as_nop
14070 ac_cv_lib_svld_dlopen=no
14071 fi
14072 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14073 conftest$ac_exeext conftest.$ac_ext
14074 LIBS=$ac_check_lib_save_LIBS
14075 fi
14076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14077 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14078 if test "x$ac_cv_lib_svld_dlopen" = xyes
14079 then :
14080 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14081 else $as_nop
14082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14083 printf %s "checking for dld_link in -ldld... " >&6; }
14084 if test ${ac_cv_lib_dld_dld_link+y}
14085 then :
14086 printf %s "(cached) " >&6
14087 else $as_nop
14088 ac_check_lib_save_LIBS=$LIBS
14089 LIBS="-ldld $LIBS"
14090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091 /* end confdefs.h. */
14092
14093 /* Override any GCC internal prototype to avoid an error.
14094 Use char because int might match the return type of a GCC
14095 builtin and then its argument prototype would still apply. */
14096 char dld_link ();
14097 int
14098 main (void)
14099 {
14100 return dld_link ();
14101 ;
14102 return 0;
14103 }
14104 _ACEOF
14105 if ac_fn_c_try_link "$LINENO"
14106 then :
14107 ac_cv_lib_dld_dld_link=yes
14108 else $as_nop
14109 ac_cv_lib_dld_dld_link=no
14110 fi
14111 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14112 conftest$ac_exeext conftest.$ac_ext
14113 LIBS=$ac_check_lib_save_LIBS
14114 fi
14115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14116 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14117 if test "x$ac_cv_lib_dld_dld_link" = xyes
14118 then :
14119 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14120 fi
14121
14122
14123 fi
14124
14125
14126 fi
14127
14128
14129 fi
14130
14131
14132 fi
14133
14134
14135 fi
14136
14137 ;;
14138 esac
14139
14140 if test "x$lt_cv_dlopen" != xno; then
14141 enable_dlopen=yes
14142 else
14143 enable_dlopen=no
14144 fi
14145
14146 case $lt_cv_dlopen in
14147 dlopen)
14148 save_CPPFLAGS="$CPPFLAGS"
14149 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14150
14151 save_LDFLAGS="$LDFLAGS"
14152 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14153
14154 save_LIBS="$LIBS"
14155 LIBS="$lt_cv_dlopen_libs $LIBS"
14156
14157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14158 printf %s "checking whether a program can dlopen itself... " >&6; }
14159 if test ${lt_cv_dlopen_self+y}
14160 then :
14161 printf %s "(cached) " >&6
14162 else $as_nop
14163 if test "$cross_compiling" = yes; then :
14164 lt_cv_dlopen_self=cross
14165 else
14166 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14167 lt_status=$lt_dlunknown
14168 cat > conftest.$ac_ext <<_LT_EOF
14169 #line $LINENO "configure"
14170 #include "confdefs.h"
14171
14172 #if HAVE_DLFCN_H
14173 #include <dlfcn.h>
14174 #endif
14175
14176 #include <stdio.h>
14177
14178 #ifdef RTLD_GLOBAL
14179 # define LT_DLGLOBAL RTLD_GLOBAL
14180 #else
14181 # ifdef DL_GLOBAL
14182 # define LT_DLGLOBAL DL_GLOBAL
14183 # else
14184 # define LT_DLGLOBAL 0
14185 # endif
14186 #endif
14187
14188 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14189 find out it does not work in some platform. */
14190 #ifndef LT_DLLAZY_OR_NOW
14191 # ifdef RTLD_LAZY
14192 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14193 # else
14194 # ifdef DL_LAZY
14195 # define LT_DLLAZY_OR_NOW DL_LAZY
14196 # else
14197 # ifdef RTLD_NOW
14198 # define LT_DLLAZY_OR_NOW RTLD_NOW
14199 # else
14200 # ifdef DL_NOW
14201 # define LT_DLLAZY_OR_NOW DL_NOW
14202 # else
14203 # define LT_DLLAZY_OR_NOW 0
14204 # endif
14205 # endif
14206 # endif
14207 # endif
14208 #endif
14209
14210 /* When -fvisbility=hidden is used, assume the code has been annotated
14211 correspondingly for the symbols needed. */
14212 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14213 int fnord () __attribute__((visibility("default")));
14214 #endif
14215
14216 int fnord () { return 42; }
14217 int main ()
14218 {
14219 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14220 int status = $lt_dlunknown;
14221
14222 if (self)
14223 {
14224 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14225 else
14226 {
14227 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14228 else puts (dlerror ());
14229 }
14230 /* dlclose (self); */
14231 }
14232 else
14233 puts (dlerror ());
14234
14235 return status;
14236 }
14237 _LT_EOF
14238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14239 (eval $ac_link) 2>&5
14240 ac_status=$?
14241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14242 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14243 (./conftest; exit; ) >&5 2>/dev/null
14244 lt_status=$?
14245 case x$lt_status in
14246 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14247 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14248 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14249 esac
14250 else :
14251 # compilation failed
14252 lt_cv_dlopen_self=no
14253 fi
14254 fi
14255 rm -fr conftest*
14256
14257
14258 fi
14259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14260 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14261
14262 if test "x$lt_cv_dlopen_self" = xyes; then
14263 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14265 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14266 if test ${lt_cv_dlopen_self_static+y}
14267 then :
14268 printf %s "(cached) " >&6
14269 else $as_nop
14270 if test "$cross_compiling" = yes; then :
14271 lt_cv_dlopen_self_static=cross
14272 else
14273 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14274 lt_status=$lt_dlunknown
14275 cat > conftest.$ac_ext <<_LT_EOF
14276 #line $LINENO "configure"
14277 #include "confdefs.h"
14278
14279 #if HAVE_DLFCN_H
14280 #include <dlfcn.h>
14281 #endif
14282
14283 #include <stdio.h>
14284
14285 #ifdef RTLD_GLOBAL
14286 # define LT_DLGLOBAL RTLD_GLOBAL
14287 #else
14288 # ifdef DL_GLOBAL
14289 # define LT_DLGLOBAL DL_GLOBAL
14290 # else
14291 # define LT_DLGLOBAL 0
14292 # endif
14293 #endif
14294
14295 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14296 find out it does not work in some platform. */
14297 #ifndef LT_DLLAZY_OR_NOW
14298 # ifdef RTLD_LAZY
14299 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14300 # else
14301 # ifdef DL_LAZY
14302 # define LT_DLLAZY_OR_NOW DL_LAZY
14303 # else
14304 # ifdef RTLD_NOW
14305 # define LT_DLLAZY_OR_NOW RTLD_NOW
14306 # else
14307 # ifdef DL_NOW
14308 # define LT_DLLAZY_OR_NOW DL_NOW
14309 # else
14310 # define LT_DLLAZY_OR_NOW 0
14311 # endif
14312 # endif
14313 # endif
14314 # endif
14315 #endif
14316
14317 /* When -fvisbility=hidden is used, assume the code has been annotated
14318 correspondingly for the symbols needed. */
14319 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14320 int fnord () __attribute__((visibility("default")));
14321 #endif
14322
14323 int fnord () { return 42; }
14324 int main ()
14325 {
14326 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14327 int status = $lt_dlunknown;
14328
14329 if (self)
14330 {
14331 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14332 else
14333 {
14334 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14335 else puts (dlerror ());
14336 }
14337 /* dlclose (self); */
14338 }
14339 else
14340 puts (dlerror ());
14341
14342 return status;
14343 }
14344 _LT_EOF
14345 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14346 (eval $ac_link) 2>&5
14347 ac_status=$?
14348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14349 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14350 (./conftest; exit; ) >&5 2>/dev/null
14351 lt_status=$?
14352 case x$lt_status in
14353 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14354 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14355 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14356 esac
14357 else :
14358 # compilation failed
14359 lt_cv_dlopen_self_static=no
14360 fi
14361 fi
14362 rm -fr conftest*
14363
14364
14365 fi
14366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14367 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14368 fi
14369
14370 CPPFLAGS="$save_CPPFLAGS"
14371 LDFLAGS="$save_LDFLAGS"
14372 LIBS="$save_LIBS"
14373 ;;
14374 esac
14375
14376 case $lt_cv_dlopen_self in
14377 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14378 *) enable_dlopen_self=unknown ;;
14379 esac
14380
14381 case $lt_cv_dlopen_self_static in
14382 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14383 *) enable_dlopen_self_static=unknown ;;
14384 esac
14385 fi
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403 striplib=
14404 old_striplib=
14405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14406 printf %s "checking whether stripping libraries is possible... " >&6; }
14407 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14408 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14409 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14411 printf "%s\n" "yes" >&6; }
14412 else
14413 # FIXME - insert some real tests, host_os isn't really good enough
14414 case $host_os in
14415 darwin*)
14416 if test -n "$STRIP" ; then
14417 striplib="$STRIP -x"
14418 old_striplib="$STRIP -S"
14419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14420 printf "%s\n" "yes" >&6; }
14421 else
14422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14423 printf "%s\n" "no" >&6; }
14424 fi
14425 ;;
14426 *)
14427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14428 printf "%s\n" "no" >&6; }
14429 ;;
14430 esac
14431 fi
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444 # Report which library types will actually be built
14445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14446 printf %s "checking if libtool supports shared libraries... " >&6; }
14447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14448 printf "%s\n" "$can_build_shared" >&6; }
14449
14450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14451 printf %s "checking whether to build shared libraries... " >&6; }
14452 test "$can_build_shared" = "no" && enable_shared=no
14453
14454 # On AIX, shared libraries and static libraries use the same namespace, and
14455 # are all built from PIC.
14456 case $host_os in
14457 aix3*)
14458 test "$enable_shared" = yes && enable_static=no
14459 if test -n "$RANLIB"; then
14460 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14461 postinstall_cmds='$RANLIB $lib'
14462 fi
14463 ;;
14464
14465 aix[4-9]*)
14466 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14467 test "$enable_shared" = yes && enable_static=no
14468 fi
14469 ;;
14470 esac
14471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14472 printf "%s\n" "$enable_shared" >&6; }
14473
14474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14475 printf %s "checking whether to build static libraries... " >&6; }
14476 # Make sure either enable_shared or enable_static is yes.
14477 test "$enable_shared" = yes || enable_static=yes
14478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14479 printf "%s\n" "$enable_static" >&6; }
14480
14481
14482
14483
14484 fi
14485 ac_ext=c
14486 ac_cpp='$CPP $CPPFLAGS'
14487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14490
14491 CC="$lt_save_CC"
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507 ac_config_commands="$ac_config_commands libtool"
14508
14509
14510
14511
14512 # Only expand once:
14513
14514
14515 if test -n "$ac_tool_prefix"; then
14516 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14517 set dummy ${ac_tool_prefix}windres; ac_word=$2
14518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14519 printf %s "checking for $ac_word... " >&6; }
14520 if test ${ac_cv_prog_RC+y}
14521 then :
14522 printf %s "(cached) " >&6
14523 else $as_nop
14524 if test -n "$RC"; then
14525 ac_cv_prog_RC="$RC" # Let the user override the test.
14526 else
14527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14528 for as_dir in $PATH
14529 do
14530 IFS=$as_save_IFS
14531 case $as_dir in #(((
14532 '') as_dir=./ ;;
14533 */) ;;
14534 *) as_dir=$as_dir/ ;;
14535 esac
14536 for ac_exec_ext in '' $ac_executable_extensions; do
14537 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14538 ac_cv_prog_RC="${ac_tool_prefix}windres"
14539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14540 break 2
14541 fi
14542 done
14543 done
14544 IFS=$as_save_IFS
14545
14546 fi
14547 fi
14548 RC=$ac_cv_prog_RC
14549 if test -n "$RC"; then
14550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
14551 printf "%s\n" "$RC" >&6; }
14552 else
14553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14554 printf "%s\n" "no" >&6; }
14555 fi
14556
14557
14558 fi
14559 if test -z "$ac_cv_prog_RC"; then
14560 ac_ct_RC=$RC
14561 # Extract the first word of "windres", so it can be a program name with args.
14562 set dummy windres; ac_word=$2
14563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14564 printf %s "checking for $ac_word... " >&6; }
14565 if test ${ac_cv_prog_ac_ct_RC+y}
14566 then :
14567 printf %s "(cached) " >&6
14568 else $as_nop
14569 if test -n "$ac_ct_RC"; then
14570 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
14571 else
14572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14573 for as_dir in $PATH
14574 do
14575 IFS=$as_save_IFS
14576 case $as_dir in #(((
14577 '') as_dir=./ ;;
14578 */) ;;
14579 *) as_dir=$as_dir/ ;;
14580 esac
14581 for ac_exec_ext in '' $ac_executable_extensions; do
14582 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14583 ac_cv_prog_ac_ct_RC="windres"
14584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14585 break 2
14586 fi
14587 done
14588 done
14589 IFS=$as_save_IFS
14590
14591 fi
14592 fi
14593 ac_ct_RC=$ac_cv_prog_ac_ct_RC
14594 if test -n "$ac_ct_RC"; then
14595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
14596 printf "%s\n" "$ac_ct_RC" >&6; }
14597 else
14598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14599 printf "%s\n" "no" >&6; }
14600 fi
14601
14602 if test "x$ac_ct_RC" = x; then
14603 RC=""
14604 else
14605 case $cross_compiling:$ac_tool_warned in
14606 yes:)
14607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14608 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14609 ac_tool_warned=yes ;;
14610 esac
14611 RC=$ac_ct_RC
14612 fi
14613 else
14614 RC="$ac_cv_prog_RC"
14615 fi
14616
14617
14618
14619
14620 # Source file extension for RC test sources.
14621 ac_ext=rc
14622
14623 # Object file extension for compiled RC test sources.
14624 objext=o
14625 objext_RC=$objext
14626
14627 # Code to be used in simple compile tests
14628 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
14629
14630 # Code to be used in simple link tests
14631 lt_simple_link_test_code="$lt_simple_compile_test_code"
14632
14633 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14634
14635
14636
14637
14638
14639
14640 # If no C compiler was specified, use CC.
14641 LTCC=${LTCC-"$CC"}
14642
14643 # If no C compiler flags were specified, use CFLAGS.
14644 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14645
14646 # Allow CC to be a program name with arguments.
14647 compiler=$CC
14648
14649
14650 # save warnings/boilerplate of simple test code
14651 ac_outfile=conftest.$ac_objext
14652 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14653 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14654 _lt_compiler_boilerplate=`cat conftest.err`
14655 $RM conftest*
14656
14657 ac_outfile=conftest.$ac_objext
14658 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14659 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14660 _lt_linker_boilerplate=`cat conftest.err`
14661 $RM -r conftest*
14662
14663
14664 # Allow CC to be a program name with arguments.
14665 lt_save_CC="$CC"
14666 lt_save_CFLAGS=$CFLAGS
14667 lt_save_GCC=$GCC
14668 GCC=
14669 CC=${RC-"windres"}
14670 CFLAGS=
14671 compiler=$CC
14672 compiler_RC=$CC
14673 for cc_temp in $compiler""; do
14674 case $cc_temp in
14675 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14676 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14677 \-*) ;;
14678 *) break;;
14679 esac
14680 done
14681 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14682
14683 lt_cv_prog_compiler_c_o_RC=yes
14684
14685 if test -n "$compiler"; then
14686 :
14687
14688
14689
14690 fi
14691
14692 GCC=$lt_save_GCC
14693 ac_ext=c
14694 ac_cpp='$CPP $CPPFLAGS'
14695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14698
14699 CC=$lt_save_CC
14700 CFLAGS=$lt_save_CFLAGS
14701
14702
14703
14704 ##########################
14705 ## General definitions. ##
14706 ##########################
14707
14708 # Used by libgcrypt-config
14709 LIBGCRYPT_CONFIG_LIBS="-lgcrypt"
14710 LIBGCRYPT_CONFIG_CFLAGS=""
14711 LIBGCRYPT_CONFIG_HOST="$host"
14712
14713 # Definitions for symmetric ciphers.
14714 available_ciphers="arcfour blowfish cast5 des aes twofish serpent rfc2268 seed"
14715 available_ciphers="$available_ciphers camellia idea salsa20 gost28147 chacha20"
14716 available_ciphers="$available_ciphers sm4 aria"
14717 enabled_ciphers=""
14718
14719 # Definitions for public-key ciphers.
14720 available_pubkey_ciphers="dsa elgamal rsa ecc"
14721 enabled_pubkey_ciphers=""
14722
14723 # Definitions for message digests.
14724 available_digests="crc gostr3411-94 md2 md4 md5 rmd160 sha1 sha256 sha512"
14725 available_digests="$available_digests sha3 tiger whirlpool stribog blake2"
14726 available_digests="$available_digests sm3"
14727 enabled_digests=""
14728
14729 # Definitions for kdfs (optional ones)
14730 available_kdfs="s2k pkdf2 scrypt"
14731 enabled_kdfs=""
14732
14733 # Definitions for random modules.
14734 available_random_modules="getentropy linux egd unix"
14735 auto_random_modules="$available_random_modules"
14736
14737 # Supported thread backends.
14738 LIBGCRYPT_THREAD_MODULES=""
14739
14740 # Other definitions.
14741 have_w32_system=no
14742 have_w32ce_system=no
14743 have_pthread=no
14744
14745
14746 # Setup some stuff depending on host.
14747 case "${host}" in
14748 *-*-mingw32*)
14749 ac_cv_have_dev_random=no
14750 have_w32_system=yes
14751 case "${host}" in
14752 *-mingw32ce*)
14753 have_w32ce_system=yes
14754 available_random_modules="w32ce"
14755 ;;
14756 *)
14757 available_random_modules="w32"
14758 ;;
14759 esac
14760
14761 printf "%s\n" "#define USE_ONLY_8DOT3 1" >>confdefs.h
14762
14763
14764 printf "%s\n" "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
14765
14766
14767 printf "%s\n" "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
14768
14769 ;;
14770
14771 i?86-emx-os2 | i?86-*-os2*emx)
14772 # OS/2 with the EMX environment
14773 ac_cv_have_dev_random=no
14774 printf "%s\n" "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
14775
14776 printf "%s\n" "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
14777
14778 ;;
14779
14780 i?86-*-msdosdjgpp*)
14781 # DOS with the DJGPP environment
14782 ac_cv_have_dev_random=no
14783 printf "%s\n" "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
14784
14785 printf "%s\n" "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
14786
14787 ;;
14788
14789 *-*-hpux*)
14790 if test -z "$GCC" ; then
14791 CFLAGS="$CFLAGS -Ae -D_HPUX_SOURCE"
14792 fi
14793 ;;
14794 *-dec-osf4*)
14795 if test -z "$GCC" ; then
14796 # Suppress all warnings
14797 # to get rid of the unsigned/signed char mismatch warnings.
14798 CFLAGS="$CFLAGS -w"
14799 fi
14800 ;;
14801 m68k-atari-mint)
14802 ;;
14803 *-apple-darwin*)
14804
14805 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
14806
14807
14808 printf "%s\n" "#define USE_POSIX_SPAWN_FOR_TESTS 1" >>confdefs.h
14809
14810 ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default"
14811 if test "x$ac_cv_header_spawn_h" = xyes
14812 then :
14813 printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h
14814
14815 fi
14816
14817 ;;
14818 *)
14819 ;;
14820 esac
14821
14822 if test "$have_w32_system" = yes; then
14823
14824 printf "%s\n" "#define HAVE_W32_SYSTEM 1" >>confdefs.h
14825
14826 if test "$have_w32ce_system" = yes; then
14827
14828 printf "%s\n" "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
14829
14830 fi
14831 fi
14832 if test "$have_w32_system" = yes; then
14833 HAVE_W32_SYSTEM_TRUE=
14834 HAVE_W32_SYSTEM_FALSE='#'
14835 else
14836 HAVE_W32_SYSTEM_TRUE='#'
14837 HAVE_W32_SYSTEM_FALSE=
14838 fi
14839
14840 if test "$have_w32ce_system" = yes; then
14841 HAVE_W32CE_SYSTEM_TRUE=
14842 HAVE_W32CE_SYSTEM_FALSE='#'
14843 else
14844 HAVE_W32CE_SYSTEM_TRUE='#'
14845 HAVE_W32CE_SYSTEM_FALSE=
14846 fi
14847
14848
14849
14850
14851 # A printable OS Name is sometimes useful.
14852 case "${host}" in
14853 *-*-mingw32ce*)
14854 PRINTABLE_OS_NAME="W32CE"
14855 ;;
14856
14857 *-*-mingw32*)
14858 PRINTABLE_OS_NAME="W32"
14859 ;;
14860
14861 i?86-emx-os2 | i?86-*-os2*emx )
14862 PRINTABLE_OS_NAME="OS/2"
14863 ;;
14864
14865 i?86-*-msdosdjgpp*)
14866 PRINTABLE_OS_NAME="MSDOS/DJGPP"
14867 ;;
14868
14869 *-linux*)
14870 PRINTABLE_OS_NAME="GNU/Linux"
14871 ;;
14872
14873 *)
14874 PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
14875 ;;
14876 esac
14877
14878 NAME_OF_DEV_RANDOM="/dev/random"
14879 NAME_OF_DEV_URANDOM="/dev/urandom"
14880
14881 # Check whether --enable-endian-check was given.
14882 if test ${enable_endian_check+y}
14883 then :
14884 enableval=$enable_endian_check; endiancheck=$enableval
14885 else $as_nop
14886 endiancheck=yes
14887 fi
14888
14889 if test x"$endiancheck" = xyes ; then
14890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14891 printf %s "checking whether byte ordering is bigendian... " >&6; }
14892 if test ${ac_cv_c_bigendian+y}
14893 then :
14894 printf %s "(cached) " >&6
14895 else $as_nop
14896 ac_cv_c_bigendian=unknown
14897 # See if we're dealing with a universal compiler.
14898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14899 /* end confdefs.h. */
14900 #ifndef __APPLE_CC__
14901 not a universal capable compiler
14902 #endif
14903 typedef int dummy;
14904
14905 _ACEOF
14906 if ac_fn_c_try_compile "$LINENO"
14907 then :
14908
14909 # Check for potential -arch flags. It is not universal unless
14910 # there are at least two -arch flags with different values.
14911 ac_arch=
14912 ac_prev=
14913 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14914 if test -n "$ac_prev"; then
14915 case $ac_word in
14916 i?86 | x86_64 | ppc | ppc64)
14917 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14918 ac_arch=$ac_word
14919 else
14920 ac_cv_c_bigendian=universal
14921 break
14922 fi
14923 ;;
14924 esac
14925 ac_prev=
14926 elif test "x$ac_word" = "x-arch"; then
14927 ac_prev=arch
14928 fi
14929 done
14930 fi
14931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14932 if test $ac_cv_c_bigendian = unknown; then
14933 # See if sys/param.h defines the BYTE_ORDER macro.
14934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14935 /* end confdefs.h. */
14936 #include <sys/types.h>
14937 #include <sys/param.h>
14938
14939 int
14940 main (void)
14941 {
14942 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14943 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14944 && LITTLE_ENDIAN)
14945 bogus endian macros
14946 #endif
14947
14948 ;
14949 return 0;
14950 }
14951 _ACEOF
14952 if ac_fn_c_try_compile "$LINENO"
14953 then :
14954 # It does; now see whether it defined to BIG_ENDIAN or not.
14955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14956 /* end confdefs.h. */
14957 #include <sys/types.h>
14958 #include <sys/param.h>
14959
14960 int
14961 main (void)
14962 {
14963 #if BYTE_ORDER != BIG_ENDIAN
14964 not big endian
14965 #endif
14966
14967 ;
14968 return 0;
14969 }
14970 _ACEOF
14971 if ac_fn_c_try_compile "$LINENO"
14972 then :
14973 ac_cv_c_bigendian=yes
14974 else $as_nop
14975 ac_cv_c_bigendian=no
14976 fi
14977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14978 fi
14979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14980 fi
14981 if test $ac_cv_c_bigendian = unknown; then
14982 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14984 /* end confdefs.h. */
14985 #include <limits.h>
14986
14987 int
14988 main (void)
14989 {
14990 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14991 bogus endian macros
14992 #endif
14993
14994 ;
14995 return 0;
14996 }
14997 _ACEOF
14998 if ac_fn_c_try_compile "$LINENO"
14999 then :
15000 # It does; now see whether it defined to _BIG_ENDIAN or not.
15001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15002 /* end confdefs.h. */
15003 #include <limits.h>
15004
15005 int
15006 main (void)
15007 {
15008 #ifndef _BIG_ENDIAN
15009 not big endian
15010 #endif
15011
15012 ;
15013 return 0;
15014 }
15015 _ACEOF
15016 if ac_fn_c_try_compile "$LINENO"
15017 then :
15018 ac_cv_c_bigendian=yes
15019 else $as_nop
15020 ac_cv_c_bigendian=no
15021 fi
15022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15023 fi
15024 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15025 fi
15026 if test $ac_cv_c_bigendian = unknown; then
15027 # Compile a test program.
15028 if test "$cross_compiling" = yes
15029 then :
15030 # Try to guess by grepping values from an object file.
15031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15032 /* end confdefs.h. */
15033 unsigned short int ascii_mm[] =
15034 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15035 unsigned short int ascii_ii[] =
15036 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15037 int use_ascii (int i) {
15038 return ascii_mm[i] + ascii_ii[i];
15039 }
15040 unsigned short int ebcdic_ii[] =
15041 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15042 unsigned short int ebcdic_mm[] =
15043 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15044 int use_ebcdic (int i) {
15045 return ebcdic_mm[i] + ebcdic_ii[i];
15046 }
15047 extern int foo;
15048
15049 int
15050 main (void)
15051 {
15052 return use_ascii (foo) == use_ebcdic (foo);
15053 ;
15054 return 0;
15055 }
15056 _ACEOF
15057 if ac_fn_c_try_compile "$LINENO"
15058 then :
15059 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15060 ac_cv_c_bigendian=yes
15061 fi
15062 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15063 if test "$ac_cv_c_bigendian" = unknown; then
15064 ac_cv_c_bigendian=no
15065 else
15066 # finding both strings is unlikely to happen, but who knows?
15067 ac_cv_c_bigendian=unknown
15068 fi
15069 fi
15070 fi
15071 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15072 else $as_nop
15073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15074 /* end confdefs.h. */
15075 $ac_includes_default
15076 int
15077 main (void)
15078 {
15079
15080 /* Are we little or big endian? From Harbison&Steele. */
15081 union
15082 {
15083 long int l;
15084 char c[sizeof (long int)];
15085 } u;
15086 u.l = 1;
15087 return u.c[sizeof (long int) - 1] == 1;
15088
15089 ;
15090 return 0;
15091 }
15092 _ACEOF
15093 if ac_fn_c_try_run "$LINENO"
15094 then :
15095 ac_cv_c_bigendian=no
15096 else $as_nop
15097 ac_cv_c_bigendian=yes
15098 fi
15099 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15100 conftest.$ac_objext conftest.beam conftest.$ac_ext
15101 fi
15102
15103 fi
15104 fi
15105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15106 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
15107 case $ac_cv_c_bigendian in #(
15108 yes)
15109 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
15110 ;; #(
15111 no)
15112 ;; #(
15113 universal)
15114
15115 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15116
15117 ;; #(
15118 *)
15119 as_fn_error $? "unknown endianness
15120 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15121 esac
15122
15123 else
15124
15125 printf "%s\n" "#define DISABLED_ENDIAN_CHECK 1" >>confdefs.h
15126
15127 fi
15128
15129 # The cast to long int works around a bug in the HP C Compiler
15130 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15131 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15132 # This bug is HP SR number 8606223364.
15133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
15134 printf %s "checking size of unsigned short... " >&6; }
15135 if test ${ac_cv_sizeof_unsigned_short+y}
15136 then :
15137 printf %s "(cached) " >&6
15138 else $as_nop
15139 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"
15140 then :
15141
15142 else $as_nop
15143 if test "$ac_cv_type_unsigned_short" = yes; then
15144 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15145 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15146 as_fn_error 77 "cannot compute sizeof (unsigned short)
15147 See \`config.log' for more details" "$LINENO" 5; }
15148 else
15149 ac_cv_sizeof_unsigned_short=0
15150 fi
15151 fi
15152
15153 fi
15154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
15155 printf "%s\n" "$ac_cv_sizeof_unsigned_short" >&6; }
15156
15157
15158
15159 printf "%s\n" "#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short" >>confdefs.h
15160
15161
15162 # The cast to long int works around a bug in the HP C Compiler
15163 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15164 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15165 # This bug is HP SR number 8606223364.
15166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
15167 printf %s "checking size of unsigned int... " >&6; }
15168 if test ${ac_cv_sizeof_unsigned_int+y}
15169 then :
15170 printf %s "(cached) " >&6
15171 else $as_nop
15172 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"
15173 then :
15174
15175 else $as_nop
15176 if test "$ac_cv_type_unsigned_int" = yes; then
15177 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15178 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15179 as_fn_error 77 "cannot compute sizeof (unsigned int)
15180 See \`config.log' for more details" "$LINENO" 5; }
15181 else
15182 ac_cv_sizeof_unsigned_int=0
15183 fi
15184 fi
15185
15186 fi
15187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
15188 printf "%s\n" "$ac_cv_sizeof_unsigned_int" >&6; }
15189
15190
15191
15192 printf "%s\n" "#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int" >>confdefs.h
15193
15194
15195 # The cast to long int works around a bug in the HP C Compiler
15196 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15197 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15198 # This bug is HP SR number 8606223364.
15199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
15200 printf %s "checking size of unsigned long... " >&6; }
15201 if test ${ac_cv_sizeof_unsigned_long+y}
15202 then :
15203 printf %s "(cached) " >&6
15204 else $as_nop
15205 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"
15206 then :
15207
15208 else $as_nop
15209 if test "$ac_cv_type_unsigned_long" = yes; then
15210 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15211 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15212 as_fn_error 77 "cannot compute sizeof (unsigned long)
15213 See \`config.log' for more details" "$LINENO" 5; }
15214 else
15215 ac_cv_sizeof_unsigned_long=0
15216 fi
15217 fi
15218
15219 fi
15220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
15221 printf "%s\n" "$ac_cv_sizeof_unsigned_long" >&6; }
15222
15223
15224
15225 printf "%s\n" "#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long" >>confdefs.h
15226
15227
15228 # The cast to long int works around a bug in the HP C Compiler
15229 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15230 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15231 # This bug is HP SR number 8606223364.
15232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
15233 printf %s "checking size of unsigned long long... " >&6; }
15234 if test ${ac_cv_sizeof_unsigned_long_long+y}
15235 then :
15236 printf %s "(cached) " >&6
15237 else $as_nop
15238 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"
15239 then :
15240
15241 else $as_nop
15242 if test "$ac_cv_type_unsigned_long_long" = yes; then
15243 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15244 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15245 as_fn_error 77 "cannot compute sizeof (unsigned long long)
15246 See \`config.log' for more details" "$LINENO" 5; }
15247 else
15248 ac_cv_sizeof_unsigned_long_long=0
15249 fi
15250 fi
15251
15252 fi
15253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
15254 printf "%s\n" "$ac_cv_sizeof_unsigned_long_long" >&6; }
15255
15256
15257
15258 printf "%s\n" "#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long" >>confdefs.h
15259
15260
15261 # The cast to long int works around a bug in the HP C Compiler
15262 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15263 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15264 # This bug is HP SR number 8606223364.
15265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
15266 printf %s "checking size of unsigned __int128... " >&6; }
15267 if test ${ac_cv_sizeof_unsigned___int128+y}
15268 then :
15269 printf %s "(cached) " >&6
15270 else $as_nop
15271 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"
15272 then :
15273
15274 else $as_nop
15275 if test "$ac_cv_type_unsigned___int128" = yes; then
15276 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15277 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15278 as_fn_error 77 "cannot compute sizeof (unsigned __int128)
15279 See \`config.log' for more details" "$LINENO" 5; }
15280 else
15281 ac_cv_sizeof_unsigned___int128=0
15282 fi
15283 fi
15284
15285 fi
15286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
15287 printf "%s\n" "$ac_cv_sizeof_unsigned___int128" >&6; }
15288
15289
15290
15291 printf "%s\n" "#define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128" >>confdefs.h
15292
15293
15294 # The cast to long int works around a bug in the HP C Compiler
15295 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15296 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15297 # This bug is HP SR number 8606223364.
15298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15299 printf %s "checking size of void *... " >&6; }
15300 if test ${ac_cv_sizeof_void_p+y}
15301 then :
15302 printf %s "(cached) " >&6
15303 else $as_nop
15304 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
15305 then :
15306
15307 else $as_nop
15308 if test "$ac_cv_type_void_p" = yes; then
15309 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15310 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15311 as_fn_error 77 "cannot compute sizeof (void *)
15312 See \`config.log' for more details" "$LINENO" 5; }
15313 else
15314 ac_cv_sizeof_void_p=0
15315 fi
15316 fi
15317
15318 fi
15319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15320 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
15321
15322
15323
15324 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
15325
15326
15327
15328
15329 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15330 if test "x$ac_cv_type_uintptr_t" = xyes
15331 then :
15332
15333 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
15334
15335 else $as_nop
15336 for ac_type in 'unsigned int' 'unsigned long int' \
15337 'unsigned long long int'; do
15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h. */
15340 $ac_includes_default
15341 int
15342 main (void)
15343 {
15344 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15345 test_array [0] = 0;
15346 return test_array [0];
15347
15348 ;
15349 return 0;
15350 }
15351 _ACEOF
15352 if ac_fn_c_try_compile "$LINENO"
15353 then :
15354
15355 printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
15356
15357 ac_type=
15358 fi
15359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15360 test -z "$ac_type" && break
15361 done
15362 fi
15363
15364
15365
15366 if test "$ac_cv_sizeof_unsigned_short" = "0" \
15367 || test "$ac_cv_sizeof_unsigned_int" = "0" \
15368 || test "$ac_cv_sizeof_unsigned_long" = "0"; then
15369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&5
15370 printf "%s\n" "$as_me: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&2;};
15371 fi
15372
15373 # Ensure that we have UINT64_C before we bother to check for uint64_t
15374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for UINT64_C" >&5
15375 printf %s "checking for UINT64_C... " >&6; }
15376 if test ${gnupg_cv_uint64_c_works+y}
15377 then :
15378 printf %s "(cached) " >&6
15379 else $as_nop
15380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15381 /* end confdefs.h. */
15382 #include <inttypes.h>
15383 int
15384 main (void)
15385 {
15386 uint64_t foo=UINT64_C(42);
15387 ;
15388 return 0;
15389 }
15390 _ACEOF
15391 if ac_fn_c_try_compile "$LINENO"
15392 then :
15393 gnupg_cv_uint64_c_works=yes
15394 else $as_nop
15395 gnupg_cv_uint64_c_works=no
15396 fi
15397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15398 fi
15399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_uint64_c_works" >&5
15400 printf "%s\n" "$gnupg_cv_uint64_c_works" >&6; }
15401 if test "$gnupg_cv_uint64_c_works" = "yes" ; then
15402 # The cast to long int works around a bug in the HP C Compiler
15403 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15404 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15405 # This bug is HP SR number 8606223364.
15406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uint64_t" >&5
15407 printf %s "checking size of uint64_t... " >&6; }
15408 if test ${ac_cv_sizeof_uint64_t+y}
15409 then :
15410 printf %s "(cached) " >&6
15411 else $as_nop
15412 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint64_t))" "ac_cv_sizeof_uint64_t" "$ac_includes_default"
15413 then :
15414
15415 else $as_nop
15416 if test "$ac_cv_type_uint64_t" = yes; then
15417 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15418 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15419 as_fn_error 77 "cannot compute sizeof (uint64_t)
15420 See \`config.log' for more details" "$LINENO" 5; }
15421 else
15422 ac_cv_sizeof_uint64_t=0
15423 fi
15424 fi
15425
15426 fi
15427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint64_t" >&5
15428 printf "%s\n" "$ac_cv_sizeof_uint64_t" >&6; }
15429
15430
15431
15432 printf "%s\n" "#define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t" >>confdefs.h
15433
15434
15435 fi
15436
15437 # Do we have any 64-bit data types?
15438 if test "$ac_cv_sizeof_unsigned_int" != "8" \
15439 && test "$ac_cv_sizeof_unsigned_long" != "8" \
15440 && test "$ac_cv_sizeof_unsigned_long_long" != "8" \
15441 && test "$ac_cv_sizeof_uint64_t" != "8"; then
15442 as_fn_error $? "
15443 ***
15444 *** No 64-bit integer type available.
15445 *** It is not possible to build Libgcrypt on this platform.
15446 ***" "$LINENO" 5
15447 fi
15448
15449
15450 # If not specified otherwise, all available algorithms will be
15451 # included.
15452 default_ciphers="$available_ciphers"
15453 default_pubkey_ciphers="$available_pubkey_ciphers"
15454 default_digests="$available_digests"
15455 default_kdfs="$available_kdfs"
15456 # Blacklist MD2 by default
15457 default_digests=`echo $default_digests | sed -e 's/md2//g'`
15458
15459 # Substitutions to set generated files in a Emacs buffer to read-only.
15460 emacs_local_vars_begin='Local Variables:'
15461
15462 emacs_local_vars_read_only='buffer-read-only: t'
15463
15464 emacs_local_vars_end='End:'
15465
15466
15467 ############################
15468 ## Command line switches. ##
15469 ############################
15470
15471 # Implementation of the --enable-ciphers switch.
15472 # Check whether --enable-ciphers was given.
15473 if test ${enable_ciphers+y}
15474 then :
15475 enableval=$enable_ciphers; enabled_ciphers=`echo $enableval | tr ',:' ' ' | tr 'A-Z' 'a-z'`
15476 else $as_nop
15477 enabled_ciphers=""
15478 fi
15479
15480 if test "x$enabled_ciphers" = "x" \
15481 -o "$enabled_ciphers" = "yes" \
15482 -o "$enabled_ciphers" = "no"; then
15483 enabled_ciphers=$default_ciphers
15484 fi
15485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which symmetric ciphers to include" >&5
15486 printf %s "checking which symmetric ciphers to include... " >&6; }
15487 for cipher in $enabled_ciphers; do
15488
15489 name=$cipher
15490 list=$available_ciphers
15491 found=0
15492
15493 for n in $list; do
15494 if test "x$name" = "x$n"; then
15495 found=1
15496 fi
15497 done
15498
15499 if test "$found" = "0"; then
15500 as_fn_error $? "unsupported cipher \"$cipher\" specified" "$LINENO" 5
15501 fi
15502 done
15503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enabled_ciphers" >&5
15504 printf "%s\n" "$enabled_ciphers" >&6; }
15505
15506 # Implementation of the --enable-pubkey-ciphers switch.
15507 # Check whether --enable-pubkey-ciphers was given.
15508 if test ${enable_pubkey_ciphers+y}
15509 then :
15510 enableval=$enable_pubkey_ciphers; enabled_pubkey_ciphers=`echo $enableval | tr ',:' ' ' | tr 'A-Z' 'a-z'`
15511 else $as_nop
15512 enabled_pubkey_ciphers=""
15513 fi
15514
15515 if test "x$enabled_pubkey_ciphers" = "x" \
15516 -o "$enabled_pubkey_ciphers" = "yes" \
15517 -o "$enabled_pubkey_ciphers" = "no"; then
15518 enabled_pubkey_ciphers=$default_pubkey_ciphers
15519 fi
15520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which public-key ciphers to include" >&5
15521 printf %s "checking which public-key ciphers to include... " >&6; }
15522 for cipher in $enabled_pubkey_ciphers; do
15523
15524 name=$cipher
15525 list=$available_pubkey_ciphers
15526 found=0
15527
15528 for n in $list; do
15529 if test "x$name" = "x$n"; then
15530 found=1
15531 fi
15532 done
15533
15534 if test "$found" = "0"; then
15535 as_fn_error $? "unsupported public-key cipher specified" "$LINENO" 5
15536 fi
15537 done
15538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enabled_pubkey_ciphers" >&5
15539 printf "%s\n" "$enabled_pubkey_ciphers" >&6; }
15540
15541 # Implementation of the --enable-digests switch.
15542 # Check whether --enable-digests was given.
15543 if test ${enable_digests+y}
15544 then :
15545 enableval=$enable_digests; enabled_digests=`echo $enableval | tr ',:' ' ' | tr 'A-Z' 'a-z'`
15546 else $as_nop
15547 enabled_digests=""
15548 fi
15549
15550 if test "x$enabled_digests" = "x" \
15551 -o "$enabled_digests" = "yes" \
15552 -o "$enabled_digests" = "no"; then
15553 enabled_digests=$default_digests
15554 fi
15555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which message digests to include" >&5
15556 printf %s "checking which message digests to include... " >&6; }
15557 for digest in $enabled_digests; do
15558
15559 name=$digest
15560 list=$available_digests
15561 found=0
15562
15563 for n in $list; do
15564 if test "x$name" = "x$n"; then
15565 found=1
15566 fi
15567 done
15568
15569 if test "$found" = "0"; then
15570 as_fn_error $? "unsupported message digest specified" "$LINENO" 5
15571 fi
15572 done
15573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enabled_digests" >&5
15574 printf "%s\n" "$enabled_digests" >&6; }
15575
15576 # Implementation of the --enable-kdfs switch.
15577 # Check whether --enable-kdfs was given.
15578 if test ${enable_kdfs+y}
15579 then :
15580 enableval=$enable_kdfs; enabled_kdfs=`echo $enableval | tr ',:' ' ' | tr 'A-Z' 'a-z'`
15581 else $as_nop
15582 enabled_kdfs=""
15583 fi
15584
15585 if test "x$enabled_kdfs" = "x" \
15586 -o "$enabled_kdfs" = "yes" \
15587 -o "$enabled_kdfs" = "no"; then
15588 enabled_kdfs=$default_kdfs
15589 fi
15590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which key derivation functions to include" >&5
15591 printf %s "checking which key derivation functions to include... " >&6; }
15592 for kdf in $enabled_kdfs; do
15593
15594 name=$kdf
15595 list=$available_kdfs
15596 found=0
15597
15598 for n in $list; do
15599 if test "x$name" = "x$n"; then
15600 found=1
15601 fi
15602 done
15603
15604 if test "$found" = "0"; then
15605 as_fn_error $? "unsupported key derivation function specified" "$LINENO" 5
15606 fi
15607 done
15608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enabled_kdfs" >&5
15609 printf "%s\n" "$enabled_kdfs" >&6; }
15610
15611 # Implementation of the --enable-random switch.
15612 # Check whether --enable-random was given.
15613 if test ${enable_random+y}
15614 then :
15615 enableval=$enable_random; random=`echo $enableval | tr 'A-Z' 'a-z'`
15616 fi
15617
15618 if test "x$random" = "x" -o "$random" = "yes" -o "$random" = "no"; then
15619 random=default
15620 fi
15621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which random module to use" >&5
15622 printf %s "checking which random module to use... " >&6; }
15623 if test "$random" != "default" -a "$random" != "auto"; then
15624
15625 name=$random
15626 list=$available_random_modules
15627 found=0
15628
15629 for n in $list; do
15630 if test "x$name" = "x$n"; then
15631 found=1
15632 fi
15633 done
15634
15635 if test "$found" = "0"; then
15636 as_fn_error $? "unsupported random module specified" "$LINENO" 5
15637 fi
15638 fi
15639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $random" >&5
15640 printf "%s\n" "$random" >&6; }
15641
15642 # Implementation of the --disable-dev-random switch.
15643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether use of /dev/random is requested" >&5
15644 printf %s "checking whether use of /dev/random is requested... " >&6; }
15645 # Check whether --enable-dev-random was given.
15646 if test ${enable_dev_random+y}
15647 then :
15648 enableval=$enable_dev_random; try_dev_random=$enableval
15649 else $as_nop
15650 try_dev_random=yes
15651 fi
15652
15653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $try_dev_random" >&5
15654 printf "%s\n" "$try_dev_random" >&6; }
15655
15656 # Implementation of the --with-egd-socket switch.
15657
15658 # Check whether --with-egd-socket was given.
15659 if test ${with_egd_socket+y}
15660 then :
15661 withval=$with_egd_socket; egd_socket_name="$withval"
15662 else $as_nop
15663 egd_socket_name=""
15664 fi
15665
15666
15667 printf "%s\n" "#define EGD_SOCKET_NAME \"$egd_socket_name\"" >>confdefs.h
15668
15669
15670
15671 # Implementation of --disable-asm.
15672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether MPI and cipher assembler modules are requested" >&5
15673 printf %s "checking whether MPI and cipher assembler modules are requested... " >&6; }
15674 # Check whether --enable-asm was given.
15675 if test ${enable_asm+y}
15676 then :
15677 enableval=$enable_asm; try_asm_modules=$enableval
15678 else $as_nop
15679 try_asm_modules=yes
15680 fi
15681
15682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $try_asm_modules" >&5
15683 printf "%s\n" "$try_asm_modules" >&6; }
15684 if test "$try_asm_modules" != yes ; then
15685
15686 printf "%s\n" "#define ASM_DISABLED 1" >>confdefs.h
15687
15688 fi
15689
15690 # Implementation of the --enable-large-data-tests switch.
15691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to run large data tests" >&5
15692 printf %s "checking whether to run large data tests... " >&6; }
15693 # Check whether --enable-large-data-tests was given.
15694 if test ${enable_large_data_tests+y}
15695 then :
15696 enableval=$enable_large_data_tests; large_data_tests=$enableval
15697 else $as_nop
15698 large_data_tests=no
15699 fi
15700
15701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $large_data_tests" >&5
15702 printf "%s\n" "$large_data_tests" >&6; }
15703 RUN_LARGE_DATA_TESTS=$large_data_tests
15704
15705
15706 # Implementation of --enable-force-soft-hwfeatures
15707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether 'soft' HW feature bits are forced on" >&5
15708 printf %s "checking whether 'soft' HW feature bits are forced on... " >&6; }
15709 # Check whether --enable-force-soft-hwfeatures was given.
15710 if test ${enable_force_soft_hwfeatures+y}
15711 then :
15712 enableval=$enable_force_soft_hwfeatures; force_soft_hwfeatures=$enableval
15713 else $as_nop
15714 force_soft_hwfeatures=no
15715 fi
15716
15717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $force_soft_hwfeatures" >&5
15718 printf "%s\n" "$force_soft_hwfeatures" >&6; }
15719
15720
15721 # Implementation of the --with-capabilities switch.
15722 # Check whether we want to use Linux capabilities
15723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether use of capabilities is requested" >&5
15724 printf %s "checking whether use of capabilities is requested... " >&6; }
15725
15726 # Check whether --with-capabilities was given.
15727 if test ${with_capabilities+y}
15728 then :
15729 withval=$with_capabilities; use_capabilities="$withval"
15730 else $as_nop
15731 use_capabilities=no
15732 fi
15733
15734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_capabilities" >&5
15735 printf "%s\n" "$use_capabilities" >&6; }
15736
15737 # Implementation of the --enable-hmac-binary-check.
15738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a HMAC binary check is requested" >&5
15739 printf %s "checking whether a HMAC binary check is requested... " >&6; }
15740 # Check whether --enable-hmac-binary-check was given.
15741 if test ${enable_hmac_binary_check+y}
15742 then :
15743 enableval=$enable_hmac_binary_check; use_hmac_binary_check="$enableval"
15744 else $as_nop
15745 use_hmac_binary_check=no
15746 fi
15747
15748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_hmac_binary_check" >&5
15749 printf "%s\n" "$use_hmac_binary_check" >&6; }
15750 if test "$use_hmac_binary_check" = no ; then
15751 DEF_HMAC_BINARY_CHECK=''
15752 else
15753
15754 printf "%s\n" "#define ENABLE_HMAC_BINARY_CHECK 1" >>confdefs.h
15755
15756 if test -n "$ac_tool_prefix"; then
15757 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
15758 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
15759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15760 printf %s "checking for $ac_word... " >&6; }
15761 if test ${ac_cv_prog_OBJCOPY+y}
15762 then :
15763 printf %s "(cached) " >&6
15764 else $as_nop
15765 if test -n "$OBJCOPY"; then
15766 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
15767 else
15768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15769 for as_dir in $PATH
15770 do
15771 IFS=$as_save_IFS
15772 case $as_dir in #(((
15773 '') as_dir=./ ;;
15774 */) ;;
15775 *) as_dir=$as_dir/ ;;
15776 esac
15777 for ac_exec_ext in '' $ac_executable_extensions; do
15778 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15779 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
15780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15781 break 2
15782 fi
15783 done
15784 done
15785 IFS=$as_save_IFS
15786
15787 fi
15788 fi
15789 OBJCOPY=$ac_cv_prog_OBJCOPY
15790 if test -n "$OBJCOPY"; then
15791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
15792 printf "%s\n" "$OBJCOPY" >&6; }
15793 else
15794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15795 printf "%s\n" "no" >&6; }
15796 fi
15797
15798
15799 fi
15800 if test -z "$ac_cv_prog_OBJCOPY"; then
15801 ac_ct_OBJCOPY=$OBJCOPY
15802 # Extract the first word of "objcopy", so it can be a program name with args.
15803 set dummy objcopy; ac_word=$2
15804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15805 printf %s "checking for $ac_word... " >&6; }
15806 if test ${ac_cv_prog_ac_ct_OBJCOPY+y}
15807 then :
15808 printf %s "(cached) " >&6
15809 else $as_nop
15810 if test -n "$ac_ct_OBJCOPY"; then
15811 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
15812 else
15813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15814 for as_dir in $PATH
15815 do
15816 IFS=$as_save_IFS
15817 case $as_dir in #(((
15818 '') as_dir=./ ;;
15819 */) ;;
15820 *) as_dir=$as_dir/ ;;
15821 esac
15822 for ac_exec_ext in '' $ac_executable_extensions; do
15823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15824 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
15825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15826 break 2
15827 fi
15828 done
15829 done
15830 IFS=$as_save_IFS
15831
15832 fi
15833 fi
15834 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
15835 if test -n "$ac_ct_OBJCOPY"; then
15836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
15837 printf "%s\n" "$ac_ct_OBJCOPY" >&6; }
15838 else
15839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15840 printf "%s\n" "no" >&6; }
15841 fi
15842
15843 if test "x$ac_ct_OBJCOPY" = x; then
15844 OBJCOPY=""
15845 else
15846 case $cross_compiling:$ac_tool_warned in
15847 yes:)
15848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15849 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15850 ac_tool_warned=yes ;;
15851 esac
15852 OBJCOPY=$ac_ct_OBJCOPY
15853 fi
15854 else
15855 OBJCOPY="$ac_cv_prog_OBJCOPY"
15856 fi
15857
15858 if test -n "$ac_tool_prefix"; then
15859 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
15860 set dummy ${ac_tool_prefix}readelf; ac_word=$2
15861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15862 printf %s "checking for $ac_word... " >&6; }
15863 if test ${ac_cv_prog_READELF+y}
15864 then :
15865 printf %s "(cached) " >&6
15866 else $as_nop
15867 if test -n "$READELF"; then
15868 ac_cv_prog_READELF="$READELF" # Let the user override the test.
15869 else
15870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15871 for as_dir in $PATH
15872 do
15873 IFS=$as_save_IFS
15874 case $as_dir in #(((
15875 '') as_dir=./ ;;
15876 */) ;;
15877 *) as_dir=$as_dir/ ;;
15878 esac
15879 for ac_exec_ext in '' $ac_executable_extensions; do
15880 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15881 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
15882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15883 break 2
15884 fi
15885 done
15886 done
15887 IFS=$as_save_IFS
15888
15889 fi
15890 fi
15891 READELF=$ac_cv_prog_READELF
15892 if test -n "$READELF"; then
15893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
15894 printf "%s\n" "$READELF" >&6; }
15895 else
15896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15897 printf "%s\n" "no" >&6; }
15898 fi
15899
15900
15901 fi
15902 if test -z "$ac_cv_prog_READELF"; then
15903 ac_ct_READELF=$READELF
15904 # Extract the first word of "readelf", so it can be a program name with args.
15905 set dummy readelf; ac_word=$2
15906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15907 printf %s "checking for $ac_word... " >&6; }
15908 if test ${ac_cv_prog_ac_ct_READELF+y}
15909 then :
15910 printf %s "(cached) " >&6
15911 else $as_nop
15912 if test -n "$ac_ct_READELF"; then
15913 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
15914 else
15915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15916 for as_dir in $PATH
15917 do
15918 IFS=$as_save_IFS
15919 case $as_dir in #(((
15920 '') as_dir=./ ;;
15921 */) ;;
15922 *) as_dir=$as_dir/ ;;
15923 esac
15924 for ac_exec_ext in '' $ac_executable_extensions; do
15925 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15926 ac_cv_prog_ac_ct_READELF="readelf"
15927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15928 break 2
15929 fi
15930 done
15931 done
15932 IFS=$as_save_IFS
15933
15934 fi
15935 fi
15936 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
15937 if test -n "$ac_ct_READELF"; then
15938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
15939 printf "%s\n" "$ac_ct_READELF" >&6; }
15940 else
15941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15942 printf "%s\n" "no" >&6; }
15943 fi
15944
15945 if test "x$ac_ct_READELF" = x; then
15946 READELF=""
15947 else
15948 case $cross_compiling:$ac_tool_warned in
15949 yes:)
15950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15951 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15952 ac_tool_warned=yes ;;
15953 esac
15954 READELF=$ac_ct_READELF
15955 fi
15956 else
15957 READELF="$ac_cv_prog_READELF"
15958 fi
15959
15960 if test "$use_hmac_binary_check" != yes ; then
15961 DEF_HMAC_BINARY_CHECK=-DKEY_FOR_BINARY_CHECK="'\"$use_hmac_binary_check\"'"
15962 fi
15963 fi
15964 if test "x$use_hmac_binary_check" != xno; then
15965 USE_HMAC_BINARY_CHECK_TRUE=
15966 USE_HMAC_BINARY_CHECK_FALSE='#'
15967 else
15968 USE_HMAC_BINARY_CHECK_TRUE='#'
15969 USE_HMAC_BINARY_CHECK_FALSE=
15970 fi
15971
15972
15973
15974 # Implementation of the --with-fips-module-version.
15975
15976 # Check whether --with-fips-module-version was given.
15977 if test ${with_fips_module_version+y}
15978 then :
15979 withval=$with_fips_module_version; fips_module_version="$withval"
15980 else $as_nop
15981 fips_module_version=""
15982 fi
15983
15984
15985 printf "%s\n" "#define FIPS_MODULE_VERSION \"$fips_module_version\"" >>confdefs.h
15986
15987
15988 # Implementation of the --disable-jent-support switch.
15989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether jitter entropy support is requested" >&5
15990 printf %s "checking whether jitter entropy support is requested... " >&6; }
15991 # Check whether --enable-jent-support was given.
15992 if test ${enable_jent_support+y}
15993 then :
15994 enableval=$enable_jent_support; jentsupport=$enableval
15995 else $as_nop
15996 jentsupport=yes
15997 fi
15998
15999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $jentsupport" >&5
16000 printf "%s\n" "$jentsupport" >&6; }
16001
16002 # Implementation of the --disable-padlock-support switch.
16003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether padlock support is requested" >&5
16004 printf %s "checking whether padlock support is requested... " >&6; }
16005 # Check whether --enable-padlock-support was given.
16006 if test ${enable_padlock_support+y}
16007 then :
16008 enableval=$enable_padlock_support; padlocksupport=$enableval
16009 else $as_nop
16010 padlocksupport=yes
16011 fi
16012
16013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $padlocksupport" >&5
16014 printf "%s\n" "$padlocksupport" >&6; }
16015
16016 # Implementation of the --disable-aesni-support switch.
16017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether AESNI support is requested" >&5
16018 printf %s "checking whether AESNI support is requested... " >&6; }
16019 # Check whether --enable-aesni-support was given.
16020 if test ${enable_aesni_support+y}
16021 then :
16022 enableval=$enable_aesni_support; aesnisupport=$enableval
16023 else $as_nop
16024 aesnisupport=yes
16025 fi
16026
16027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $aesnisupport" >&5
16028 printf "%s\n" "$aesnisupport" >&6; }
16029
16030 # Implementation of the --disable-shaext-support switch.
16031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether SHAEXT support is requested" >&5
16032 printf %s "checking whether SHAEXT support is requested... " >&6; }
16033 # Check whether --enable-shaext-support was given.
16034 if test ${enable_shaext_support+y}
16035 then :
16036 enableval=$enable_shaext_support; shaextsupport=$enableval
16037 else $as_nop
16038 shaextsupport=yes
16039 fi
16040
16041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $shaextsupport" >&5
16042 printf "%s\n" "$shaextsupport" >&6; }
16043
16044 # Implementation of the --disable-pclmul-support switch.
16045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether PCLMUL support is requested" >&5
16046 printf %s "checking whether PCLMUL support is requested... " >&6; }
16047 # Check whether --enable-pclmul-support was given.
16048 if test ${enable_pclmul_support+y}
16049 then :
16050 enableval=$enable_pclmul_support; pclmulsupport=$enableval
16051 else $as_nop
16052 pclmulsupport=yes
16053 fi
16054
16055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pclmulsupport" >&5
16056 printf "%s\n" "$pclmulsupport" >&6; }
16057
16058 # Implementation of the --disable-sse41-support switch.
16059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether SSE4.1 support is requested" >&5
16060 printf %s "checking whether SSE4.1 support is requested... " >&6; }
16061 # Check whether --enable-sse41-support was given.
16062 if test ${enable_sse41_support+y}
16063 then :
16064 enableval=$enable_sse41_support; sse41support=$enableval
16065 else $as_nop
16066 sse41support=yes
16067 fi
16068
16069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sse41support" >&5
16070 printf "%s\n" "$sse41support" >&6; }
16071
16072 # Implementation of the --disable-drng-support switch.
16073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether DRNG support is requested" >&5
16074 printf %s "checking whether DRNG support is requested... " >&6; }
16075 # Check whether --enable-drng-support was given.
16076 if test ${enable_drng_support+y}
16077 then :
16078 enableval=$enable_drng_support; drngsupport=$enableval
16079 else $as_nop
16080 drngsupport=yes
16081 fi
16082
16083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $drngsupport" >&5
16084 printf "%s\n" "$drngsupport" >&6; }
16085
16086 # Implementation of the --disable-avx-support switch.
16087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether AVX support is requested" >&5
16088 printf %s "checking whether AVX support is requested... " >&6; }
16089 # Check whether --enable-avx-support was given.
16090 if test ${enable_avx_support+y}
16091 then :
16092 enableval=$enable_avx_support; avxsupport=$enableval
16093 else $as_nop
16094 avxsupport=yes
16095 fi
16096
16097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $avxsupport" >&5
16098 printf "%s\n" "$avxsupport" >&6; }
16099
16100 # Implementation of the --disable-avx2-support switch.
16101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether AVX2 support is requested" >&5
16102 printf %s "checking whether AVX2 support is requested... " >&6; }
16103 # Check whether --enable-avx2-support was given.
16104 if test ${enable_avx2_support+y}
16105 then :
16106 enableval=$enable_avx2_support; avx2support=$enableval
16107 else $as_nop
16108 avx2support=yes
16109 fi
16110
16111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $avx2support" >&5
16112 printf "%s\n" "$avx2support" >&6; }
16113
16114 # Implementation of the --disable-avx512-support switch.
16115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether AVX512 support is requested" >&5
16116 printf %s "checking whether AVX512 support is requested... " >&6; }
16117 # Check whether --enable-avx512-support was given.
16118 if test ${enable_avx512_support+y}
16119 then :
16120 enableval=$enable_avx512_support; avx512support=$enableval
16121 else $as_nop
16122 avx512support=yes
16123 fi
16124
16125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $avx512support" >&5
16126 printf "%s\n" "$avx512support" >&6; }
16127
16128 # Implementation of the --disable-gfni-support switch.
16129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GFNI support is requested" >&5
16130 printf %s "checking whether GFNI support is requested... " >&6; }
16131 # Check whether --enable-gfni-support was given.
16132 if test ${enable_gfni_support+y}
16133 then :
16134 enableval=$enable_gfni_support; gfnisupport=$enableval
16135 else $as_nop
16136 gfnisupport=yes
16137 fi
16138
16139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gfnisupport" >&5
16140 printf "%s\n" "$gfnisupport" >&6; }
16141
16142 # Implementation of the --disable-neon-support switch.
16143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NEON support is requested" >&5
16144 printf %s "checking whether NEON support is requested... " >&6; }
16145 # Check whether --enable-neon-support was given.
16146 if test ${enable_neon_support+y}
16147 then :
16148 enableval=$enable_neon_support; neonsupport=$enableval
16149 else $as_nop
16150 neonsupport=yes
16151 fi
16152
16153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $neonsupport" >&5
16154 printf "%s\n" "$neonsupport" >&6; }
16155
16156 # Implementation of the --disable-arm-crypto-support switch.
16157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ARMv8 Crypto Extension support is requested" >&5
16158 printf %s "checking whether ARMv8 Crypto Extension support is requested... " >&6; }
16159 # Check whether --enable-arm-crypto-support was given.
16160 if test ${enable_arm_crypto_support+y}
16161 then :
16162 enableval=$enable_arm_crypto_support; armcryptosupport=$enableval
16163 else $as_nop
16164 armcryptosupport=yes
16165 fi
16166
16167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $armcryptosupport" >&5
16168 printf "%s\n" "$armcryptosupport" >&6; }
16169
16170 # Implementation of the --disable-sve-support switch.
16171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether SVE support is requested" >&5
16172 printf %s "checking whether SVE support is requested... " >&6; }
16173 # Check whether --enable-sve-support was given.
16174 if test ${enable_sve_support+y}
16175 then :
16176 enableval=$enable_sve_support; svesupport=$enableval
16177 else $as_nop
16178 svesupport=yes
16179 fi
16180
16181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $svesupport" >&5
16182 printf "%s\n" "$svesupport" >&6; }
16183
16184 # Implementation of the --disable-sve2-support switch.
16185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether SVE2 support is requested" >&5
16186 printf %s "checking whether SVE2 support is requested... " >&6; }
16187 # Check whether --enable-sve2-support was given.
16188 if test ${enable_sve2_support+y}
16189 then :
16190 enableval=$enable_sve2_support; sve2support=$enableval
16191 else $as_nop
16192 sve2support=yes
16193 fi
16194
16195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sve2support" >&5
16196 printf "%s\n" "$sve2support" >&6; }
16197
16198 # Implementation of the --disable-ppc-crypto-support switch.
16199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether PPC crypto support is requested" >&5
16200 printf %s "checking whether PPC crypto support is requested... " >&6; }
16201 # Check whether --enable-ppc-crypto-support was given.
16202 if test ${enable_ppc_crypto_support+y}
16203 then :
16204 enableval=$enable_ppc_crypto_support; ppccryptosupport=$enableval
16205 else $as_nop
16206 ppccryptosupport=yes
16207 fi
16208
16209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ppccryptosupport" >&5
16210 printf "%s\n" "$ppccryptosupport" >&6; }
16211
16212 # Implementation of the --disable-O-flag-munging switch.
16213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a -O flag munging is requested" >&5
16214 printf %s "checking whether a -O flag munging is requested... " >&6; }
16215 # Check whether --enable-O-flag-munging was given.
16216 if test ${enable_O_flag_munging+y}
16217 then :
16218 enableval=$enable_O_flag_munging; enable_o_flag_munging=$enableval
16219 else $as_nop
16220 enable_o_flag_munging=yes
16221 fi
16222
16223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_o_flag_munging" >&5
16224 printf "%s\n" "$enable_o_flag_munging" >&6; }
16225 if test "$enable_o_flag_munging" = "yes"; then
16226 ENABLE_O_FLAG_MUNGING_TRUE=
16227 ENABLE_O_FLAG_MUNGING_FALSE='#'
16228 else
16229 ENABLE_O_FLAG_MUNGING_TRUE='#'
16230 ENABLE_O_FLAG_MUNGING_FALSE=
16231 fi
16232
16233
16234 # Implementation of the --disable-instrumentation-munging switch.
16235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a instrumentation (-fprofile, -fsanitize) munging is requested" >&5
16236 printf %s "checking whether a instrumentation (-fprofile, -fsanitize) munging is requested... " >&6; }
16237 # Check whether --enable-instrumentation-munging was given.
16238 if test ${enable_instrumentation_munging+y}
16239 then :
16240 enableval=$enable_instrumentation_munging; enable_instrumentation_munging=$enableval
16241 else $as_nop
16242 enable_instrumentation_munging=yes
16243 fi
16244
16245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_instrumentation_munging" >&5
16246 printf "%s\n" "$enable_instrumentation_munging" >&6; }
16247 if test "$enable_instrumentation_munging" = "yes"; then
16248 ENABLE_INSTRUMENTATION_MUNGING_TRUE=
16249 ENABLE_INSTRUMENTATION_MUNGING_FALSE='#'
16250 else
16251 ENABLE_INSTRUMENTATION_MUNGING_TRUE='#'
16252 ENABLE_INSTRUMENTATION_MUNGING_FALSE=
16253 fi
16254
16255
16256 # Implementation of the --disable-amd64-as-feature-detection switch.
16257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable AMD64 as(1) feature detection" >&5
16258 printf %s "checking whether to enable AMD64 as(1) feature detection... " >&6; }
16259 # Check whether --enable-amd64-as-feature-detection was given.
16260 if test ${enable_amd64_as_feature_detection+y}
16261 then :
16262 enableval=$enable_amd64_as_feature_detection; amd64_as_feature_detection=$enableval
16263 else $as_nop
16264 amd64_as_feature_detection=yes
16265 fi
16266
16267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $amd64_as_feature_detection" >&5
16268 printf "%s\n" "$amd64_as_feature_detection" >&6; }
16269
16270
16271
16272 printf "%s\n" "#define PRINTABLE_OS_NAME \"$PRINTABLE_OS_NAME\"" >>confdefs.h
16273
16274
16275 # For some systems we know that we have ld_version scripts.
16276 # Use it then as default.
16277 have_ld_version_script=no
16278 case "${host}" in
16279 *-*-linux*)
16280 have_ld_version_script=yes
16281 ;;
16282 *-*-gnu*)
16283 have_ld_version_script=yes
16284 ;;
16285 esac
16286 # Check whether --enable-ld-version-script was given.
16287 if test ${enable_ld_version_script+y}
16288 then :
16289 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
16290 else $as_nop
16291 :
16292 fi
16293
16294 if test "$have_ld_version_script" = "yes"; then
16295 HAVE_LD_VERSION_SCRIPT_TRUE=
16296 HAVE_LD_VERSION_SCRIPT_FALSE='#'
16297 else
16298 HAVE_LD_VERSION_SCRIPT_TRUE='#'
16299 HAVE_LD_VERSION_SCRIPT_FALSE=
16300 fi
16301
16302
16303
16304 printf "%s\n" "#define NAME_OF_DEV_RANDOM \"$NAME_OF_DEV_RANDOM\"" >>confdefs.h
16305
16306
16307 printf "%s\n" "#define NAME_OF_DEV_URANDOM \"$NAME_OF_DEV_URANDOM\"" >>confdefs.h
16308
16309
16310 #
16311 # Specify how we support our local modification of libtool for Windows
16312 # 64-bit. Options are:
16313 #
16314 # (1) apply: when appying patch fails, it results failure of entire build
16315 # (2) never: never apply the patch (no try)
16316 # (3) try: use patched if it goes well, use original if fails
16317 #
16318
16319 # Check whether --with-libtool-modification was given.
16320 if test ${with_libtool_modification+y}
16321 then :
16322 withval=$with_libtool_modification; build_libtool_modification=$withval
16323 else $as_nop
16324 build_libtool_modification=never
16325 fi
16326
16327
16328 #
16329 # Apply a patch (locally maintained one of ours) to libtool
16330 #
16331 case $host in
16332 x86_64-*mingw32*)
16333 ac_config_commands="$ac_config_commands libtool-patch"
16334
16335 ;;
16336 *)
16337 ;;
16338 esac
16339
16340 ###############################
16341 #### Checks for libraries. ####
16342 ###############################
16343
16344 #
16345 # gpg-error is required.
16346 #
16347 gpg_error_config_prefix=""
16348
16349 # Check whether --with-libgpg-error-prefix was given.
16350 if test ${with_libgpg_error_prefix+y}
16351 then :
16352 withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
16353 fi
16354
16355
16356
16357 # Check whether --with-gpg-error-prefix was given.
16358 if test ${with_gpg_error_prefix+y}
16359 then :
16360 withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
16361 fi
16362
16363
16364 if test x"${GPG_ERROR_CONFIG}" = x ; then
16365 if test x"${gpg_error_config_prefix}" != x ; then
16366 GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
16367 else
16368 case "${SYSROOT}" in
16369 /*)
16370 if test -x "${SYSROOT}/bin/gpg-error-config" ; then
16371 GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
16372 fi
16373 ;;
16374 '')
16375 ;;
16376 *)
16377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
16378 printf "%s\n" "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
16379 ;;
16380 esac
16381 fi
16382 fi
16383
16384 # Extract the first word of "gpg-error-config", so it can be a program name with args.
16385 set dummy gpg-error-config; ac_word=$2
16386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16387 printf %s "checking for $ac_word... " >&6; }
16388 if test ${ac_cv_path_GPG_ERROR_CONFIG+y}
16389 then :
16390 printf %s "(cached) " >&6
16391 else $as_nop
16392 case $GPG_ERROR_CONFIG in
16393 [\\/]* | ?:[\\/]*)
16394 ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
16395 ;;
16396 *)
16397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16398 for as_dir in $PATH
16399 do
16400 IFS=$as_save_IFS
16401 case $as_dir in #(((
16402 '') as_dir=./ ;;
16403 */) ;;
16404 *) as_dir=$as_dir/ ;;
16405 esac
16406 for ac_exec_ext in '' $ac_executable_extensions; do
16407 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16408 ac_cv_path_GPG_ERROR_CONFIG="$as_dir$ac_word$ac_exec_ext"
16409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16410 break 2
16411 fi
16412 done
16413 done
16414 IFS=$as_save_IFS
16415
16416 test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
16417 ;;
16418 esac
16419 fi
16420 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
16421 if test -n "$GPG_ERROR_CONFIG"; then
16422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
16423 printf "%s\n" "$GPG_ERROR_CONFIG" >&6; }
16424 else
16425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16426 printf "%s\n" "no" >&6; }
16427 fi
16428
16429
16430
16431 # Extract the first word of "gpgrt-config", so it can be a program name with args.
16432 set dummy gpgrt-config; ac_word=$2
16433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16434 printf %s "checking for $ac_word... " >&6; }
16435 if test ${ac_cv_path_GPGRT_CONFIG+y}
16436 then :
16437 printf %s "(cached) " >&6
16438 else $as_nop
16439 case $GPGRT_CONFIG in
16440 [\\/]* | ?:[\\/]*)
16441 ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
16442 ;;
16443 *)
16444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16445 as_dummy="$prefix/bin:$PATH"
16446 for as_dir in $as_dummy
16447 do
16448 IFS=$as_save_IFS
16449 case $as_dir in #(((
16450 '') as_dir=./ ;;
16451 */) ;;
16452 *) as_dir=$as_dir/ ;;
16453 esac
16454 for ac_exec_ext in '' $ac_executable_extensions; do
16455 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16456 ac_cv_path_GPGRT_CONFIG="$as_dir$ac_word$ac_exec_ext"
16457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16458 break 2
16459 fi
16460 done
16461 done
16462 IFS=$as_save_IFS
16463
16464 test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
16465 ;;
16466 esac
16467 fi
16468 GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
16469 if test -n "$GPGRT_CONFIG"; then
16470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
16471 printf "%s\n" "$GPGRT_CONFIG" >&6; }
16472 else
16473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16474 printf "%s\n" "no" >&6; }
16475 fi
16476
16477
16478 if test "$GPGRT_CONFIG" != "no"; then
16479 # Determine gpgrt_libdir
16480 #
16481 # Get the prefix of gpgrt-config assuming it's something like:
16482 # <PREFIX>/bin/gpgrt-config
16483 gpgrt_prefix=${GPGRT_CONFIG%/*/*}
16484 possible_libdir1=${gpgrt_prefix}/lib
16485 # Determine by using system libdir-format with CC, it's like:
16486 # Normal style: /usr/lib
16487 # GNU cross style: /usr/<triplet>/lib
16488 # Debian style: /usr/lib/<multiarch-name>
16489 # Fedora/openSUSE style: /usr/lib, /usr/lib32 or /usr/lib64
16490 # It is assumed that CC is specified to the one of host on cross build.
16491 if libdir_candidates=$(${CC:-cc} -print-search-dirs | \
16492 sed -n -e "/^libraries/{s/libraries: =//;s/:/\\
16493 /g;p;}"); then
16494 # From the output of -print-search-dirs, select valid pkgconfig dirs.
16495 libdir_candidates=$(for dir in $libdir_candidates; do
16496 if p=$(cd $dir 2>/dev/null && pwd); then
16497 test -d "$p/pkgconfig" && echo $p;
16498 fi
16499 done)
16500
16501 for possible_libdir0 in $libdir_candidates; do
16502 # possible_libdir0:
16503 # Fallback candidate, the one of system-installed (by $CC)
16504 # (/usr/<triplet>/lib, /usr/lib/<multiarch-name> or /usr/lib32)
16505 # possible_libdir1:
16506 # Another candidate, user-locally-installed
16507 # (<gpgrt_prefix>/lib)
16508 # possible_libdir2
16509 # Most preferred
16510 # (<gpgrt_prefix>/<triplet>/lib,
16511 # <gpgrt_prefix>/lib/<multiarch-name> or <gpgrt_prefix>/lib32)
16512 if test "${possible_libdir0##*/}" = "lib"; then
16513 possible_prefix0=${possible_libdir0%/lib}
16514 possible_prefix0_triplet=${possible_prefix0##*/}
16515 if test -z "$possible_prefix0_triplet"; then
16516 continue
16517 fi
16518 possible_libdir2=${gpgrt_prefix}/$possible_prefix0_triplet/lib
16519 else
16520 possible_prefix0=${possible_libdir0%%/lib*}
16521 possible_libdir2=${gpgrt_prefix}${possible_libdir0#$possible_prefix0}
16522 fi
16523 if test -f ${possible_libdir2}/pkgconfig/gpg-error.pc; then
16524 gpgrt_libdir=${possible_libdir2}
16525 elif test -f ${possible_libdir1}/pkgconfig/gpg-error.pc; then
16526 gpgrt_libdir=${possible_libdir1}
16527 elif test -f ${possible_libdir0}/pkgconfig/gpg-error.pc; then
16528 gpgrt_libdir=${possible_libdir0}
16529 fi
16530 if test -n "$gpgrt_libdir"; then break; fi
16531 done
16532 fi
16533 if test -z "$gpgrt_libdir"; then
16534 # No valid pkgconfig dir in any of the system directories, fallback
16535 gpgrt_libdir=${possible_libdir1}
16536 fi
16537 else
16538 unset GPGRT_CONFIG
16539 fi
16540
16541 if test -n "$gpgrt_libdir"; then
16542 # Add the --libdir option to GPGRT_CONFIG
16543 GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
16544 # Make sure if gpgrt-config really works, by testing config gpg-error
16545 if ! $GPGRT_CONFIG gpg-error --exists; then
16546 # If it doesn't work, clear the GPGRT_CONFIG variable.
16547 unset GPGRT_CONFIG
16548 fi
16549 else
16550 # GPGRT_CONFIG found but no suitable dir for --libdir found.
16551 # This is a failure. Clear the GPGRT_CONFIG variable.
16552 unset GPGRT_CONFIG
16553 fi
16554
16555 if test x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
16556 GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
16557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
16558 printf "%s\n" "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
16559 gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion`
16560 elif test x"$GPG_ERROR_CONFIG" != x -a "$GPG_ERROR_CONFIG" != "no"; then
16561 gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
16562 else
16563 gpg_error_config_version="0.0"
16564 fi
16565
16566 min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
16567 ok=no
16568 if test "$GPG_ERROR_CONFIG" != "no"; then
16569 req_major=`echo $min_gpg_error_version | \
16570 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
16571 req_minor=`echo $min_gpg_error_version | \
16572 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
16573 major=`echo $gpg_error_config_version | \
16574 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
16575 minor=`echo $gpg_error_config_version | \
16576 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
16577 if test "$major" -gt "$req_major"; then
16578 ok=yes
16579 else
16580 if test "$major" -eq "$req_major"; then
16581 if test "$minor" -ge "$req_minor"; then
16582 ok=yes
16583 fi
16584 fi
16585 fi
16586 fi
16587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
16588 printf %s "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
16589 if test $ok = yes; then
16590 GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags`
16591 GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs`
16592 if test -z "$GPGRT_CONFIG"; then
16593 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --mt --cflags 2>/dev/null`
16594 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --mt --libs 2>/dev/null`
16595 else
16596 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --variable=mtcflags 2>/dev/null`
16597 GPG_ERROR_MT_CFLAGS="$GPG_ERROR_CFLAGS${GPG_ERROR_CFLAGS:+ }$GPG_ERROR_MT_CFLAGS"
16598 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --variable=mtlibs 2>/dev/null`
16599 GPG_ERROR_MT_LIBS="$GPG_ERROR_LIBS${GPG_ERROR_LIBS:+ }$GPG_ERROR_MT_LIBS"
16600 fi
16601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
16602 printf "%s\n" "yes ($gpg_error_config_version)" >&6; }
16603 :
16604 if test -z "$GPGRT_CONFIG"; then
16605 gpg_error_config_host=`$GPG_ERROR_CONFIG --host 2>/dev/null || echo none`
16606 else
16607 gpg_error_config_host=`$GPG_ERROR_CONFIG --variable=host 2>/dev/null || echo none`
16608 fi
16609 if test x"$gpg_error_config_host" != xnone ; then
16610 if test x"$gpg_error_config_host" != x"$host" ; then
16611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
16612 ***
16613 *** The config script \"$GPG_ERROR_CONFIG\" was
16614 *** built for $gpg_error_config_host and thus may not match the
16615 *** used host $host.
16616 *** You may want to use the configure option --with-libgpg-error-prefix
16617 *** to specify a matching config script or use \$SYSROOT.
16618 ***" >&5
16619 printf "%s\n" "$as_me: WARNING:
16620 ***
16621 *** The config script \"$GPG_ERROR_CONFIG\" was
16622 *** built for $gpg_error_config_host and thus may not match the
16623 *** used host $host.
16624 *** You may want to use the configure option --with-libgpg-error-prefix
16625 *** to specify a matching config script or use \$SYSROOT.
16626 ***" >&2;}
16627 gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
16628 fi
16629 fi
16630 else
16631 GPG_ERROR_CFLAGS=""
16632 GPG_ERROR_LIBS=""
16633 GPG_ERROR_MT_CFLAGS=""
16634 GPG_ERROR_MT_LIBS=""
16635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16636 printf "%s\n" "no" >&6; }
16637 :
16638 fi
16639
16640
16641
16642
16643
16644 if test "x$GPG_ERROR_LIBS" = "x"; then
16645 as_fn_error $? "libgpg-error is needed.
16646 See ftp://ftp.gnupg.org/gcrypt/libgpg-error/ ." "$LINENO" 5
16647 fi
16648
16649
16650 printf "%s\n" "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_GCRYPT" >>confdefs.h
16651
16652
16653 if test -n "$GPGRT_CONFIG" \
16654 -a "$ac_cv_path_GPG_ERROR_CONFIG" = no; then
16655 USE_GPGRT_CONFIG_TRUE=
16656 USE_GPGRT_CONFIG_FALSE='#'
16657 else
16658 USE_GPGRT_CONFIG_TRUE='#'
16659 USE_GPGRT_CONFIG_FALSE=
16660 fi
16661
16662
16663 #
16664 # Check whether pthreads is available
16665 #
16666 if test "$have_w32_system" != yes; then
16667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16668 printf %s "checking for pthread_create in -lpthread... " >&6; }
16669 if test ${ac_cv_lib_pthread_pthread_create+y}
16670 then :
16671 printf %s "(cached) " >&6
16672 else $as_nop
16673 ac_check_lib_save_LIBS=$LIBS
16674 LIBS="-lpthread $LIBS"
16675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16676 /* end confdefs.h. */
16677
16678 /* Override any GCC internal prototype to avoid an error.
16679 Use char because int might match the return type of a GCC
16680 builtin and then its argument prototype would still apply. */
16681 char pthread_create ();
16682 int
16683 main (void)
16684 {
16685 return pthread_create ();
16686 ;
16687 return 0;
16688 }
16689 _ACEOF
16690 if ac_fn_c_try_link "$LINENO"
16691 then :
16692 ac_cv_lib_pthread_pthread_create=yes
16693 else $as_nop
16694 ac_cv_lib_pthread_pthread_create=no
16695 fi
16696 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16697 conftest$ac_exeext conftest.$ac_ext
16698 LIBS=$ac_check_lib_save_LIBS
16699 fi
16700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16701 printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
16702 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
16703 then :
16704 have_pthread=yes
16705 fi
16706
16707 if test "$have_pthread" = yes; then
16708
16709 printf "%s\n" "#define HAVE_PTHREAD 1 " >>confdefs.h
16710
16711 fi
16712 fi
16713
16714
16715 # Solaris needs -lsocket and -lnsl. Unisys system includes
16716 # gethostbyname in libsocket but needs libnsl for socket.
16717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
16718 printf %s "checking for library containing setsockopt... " >&6; }
16719 if test ${ac_cv_search_setsockopt+y}
16720 then :
16721 printf %s "(cached) " >&6
16722 else $as_nop
16723 ac_func_search_save_LIBS=$LIBS
16724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16725 /* end confdefs.h. */
16726
16727 /* Override any GCC internal prototype to avoid an error.
16728 Use char because int might match the return type of a GCC
16729 builtin and then its argument prototype would still apply. */
16730 char setsockopt ();
16731 int
16732 main (void)
16733 {
16734 return setsockopt ();
16735 ;
16736 return 0;
16737 }
16738 _ACEOF
16739 for ac_lib in '' socket
16740 do
16741 if test -z "$ac_lib"; then
16742 ac_res="none required"
16743 else
16744 ac_res=-l$ac_lib
16745 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16746 fi
16747 if ac_fn_c_try_link "$LINENO"
16748 then :
16749 ac_cv_search_setsockopt=$ac_res
16750 fi
16751 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16752 conftest$ac_exeext
16753 if test ${ac_cv_search_setsockopt+y}
16754 then :
16755 break
16756 fi
16757 done
16758 if test ${ac_cv_search_setsockopt+y}
16759 then :
16760
16761 else $as_nop
16762 ac_cv_search_setsockopt=no
16763 fi
16764 rm conftest.$ac_ext
16765 LIBS=$ac_func_search_save_LIBS
16766 fi
16767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
16768 printf "%s\n" "$ac_cv_search_setsockopt" >&6; }
16769 ac_res=$ac_cv_search_setsockopt
16770 if test "$ac_res" != no
16771 then :
16772 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16773
16774 else $as_nop
16775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
16776 printf %s "checking for library containing setsockopt... " >&6; }
16777 if test ${ac_cv_search_setsockopt+y}
16778 then :
16779 printf %s "(cached) " >&6
16780 else $as_nop
16781 ac_func_search_save_LIBS=$LIBS
16782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16783 /* end confdefs.h. */
16784
16785 /* Override any GCC internal prototype to avoid an error.
16786 Use char because int might match the return type of a GCC
16787 builtin and then its argument prototype would still apply. */
16788 char setsockopt ();
16789 int
16790 main (void)
16791 {
16792 return setsockopt ();
16793 ;
16794 return 0;
16795 }
16796 _ACEOF
16797 for ac_lib in '' socket
16798 do
16799 if test -z "$ac_lib"; then
16800 ac_res="none required"
16801 else
16802 ac_res=-l$ac_lib
16803 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
16804 fi
16805 if ac_fn_c_try_link "$LINENO"
16806 then :
16807 ac_cv_search_setsockopt=$ac_res
16808 fi
16809 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16810 conftest$ac_exeext
16811 if test ${ac_cv_search_setsockopt+y}
16812 then :
16813 break
16814 fi
16815 done
16816 if test ${ac_cv_search_setsockopt+y}
16817 then :
16818
16819 else $as_nop
16820 ac_cv_search_setsockopt=no
16821 fi
16822 rm conftest.$ac_ext
16823 LIBS=$ac_func_search_save_LIBS
16824 fi
16825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
16826 printf "%s\n" "$ac_cv_search_setsockopt" >&6; }
16827 ac_res=$ac_cv_search_setsockopt
16828 if test "$ac_res" != no
16829 then :
16830 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16831
16832 fi
16833
16834 fi
16835
16836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
16837 printf %s "checking for library containing setsockopt... " >&6; }
16838 if test ${ac_cv_search_setsockopt+y}
16839 then :
16840 printf %s "(cached) " >&6
16841 else $as_nop
16842 ac_func_search_save_LIBS=$LIBS
16843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16844 /* end confdefs.h. */
16845
16846 /* Override any GCC internal prototype to avoid an error.
16847 Use char because int might match the return type of a GCC
16848 builtin and then its argument prototype would still apply. */
16849 char setsockopt ();
16850 int
16851 main (void)
16852 {
16853 return setsockopt ();
16854 ;
16855 return 0;
16856 }
16857 _ACEOF
16858 for ac_lib in '' nsl
16859 do
16860 if test -z "$ac_lib"; then
16861 ac_res="none required"
16862 else
16863 ac_res=-l$ac_lib
16864 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16865 fi
16866 if ac_fn_c_try_link "$LINENO"
16867 then :
16868 ac_cv_search_setsockopt=$ac_res
16869 fi
16870 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16871 conftest$ac_exeext
16872 if test ${ac_cv_search_setsockopt+y}
16873 then :
16874 break
16875 fi
16876 done
16877 if test ${ac_cv_search_setsockopt+y}
16878 then :
16879
16880 else $as_nop
16881 ac_cv_search_setsockopt=no
16882 fi
16883 rm conftest.$ac_ext
16884 LIBS=$ac_func_search_save_LIBS
16885 fi
16886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
16887 printf "%s\n" "$ac_cv_search_setsockopt" >&6; }
16888 ac_res=$ac_cv_search_setsockopt
16889 if test "$ac_res" != no
16890 then :
16891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16892
16893 fi
16894
16895
16896 ##################################
16897 #### Checks for header files. ####
16898 ##################################
16899
16900 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
16901 if test "x$ac_cv_header_unistd_h" = xyes
16902 then :
16903 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
16904
16905 fi
16906 ac_fn_c_check_header_compile "$LINENO" "sys/auxv.h" "ac_cv_header_sys_auxv_h" "$ac_includes_default"
16907 if test "x$ac_cv_header_sys_auxv_h" = xyes
16908 then :
16909 printf "%s\n" "#define HAVE_SYS_AUXV_H 1" >>confdefs.h
16910
16911 fi
16912 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
16913 if test "x$ac_cv_header_sys_random_h" = xyes
16914 then :
16915 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
16916
16917 fi
16918 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default"
16919 if test "x$ac_cv_header_sys_sysctl_h" = xyes
16920 then :
16921 printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h
16922
16923 fi
16924
16925
16926
16927 ##########################################
16928 #### Checks for typedefs, structures, ####
16929 #### and compiler characteristics. ####
16930 ##########################################
16931
16932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16933 printf %s "checking for an ANSI C-conforming const... " >&6; }
16934 if test ${ac_cv_c_const+y}
16935 then :
16936 printf %s "(cached) " >&6
16937 else $as_nop
16938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16939 /* end confdefs.h. */
16940
16941 int
16942 main (void)
16943 {
16944
16945 #ifndef __cplusplus
16946 /* Ultrix mips cc rejects this sort of thing. */
16947 typedef int charset[2];
16948 const charset cs = { 0, 0 };
16949 /* SunOS 4.1.1 cc rejects this. */
16950 char const *const *pcpcc;
16951 char **ppc;
16952 /* NEC SVR4.0.2 mips cc rejects this. */
16953 struct point {int x, y;};
16954 static struct point const zero = {0,0};
16955 /* IBM XL C 1.02.0.0 rejects this.
16956 It does not let you subtract one const X* pointer from another in
16957 an arm of an if-expression whose if-part is not a constant
16958 expression */
16959 const char *g = "string";
16960 pcpcc = &g + (g ? g-g : 0);
16961 /* HPUX 7.0 cc rejects these. */
16962 ++pcpcc;
16963 ppc = (char**) pcpcc;
16964 pcpcc = (char const *const *) ppc;
16965 { /* SCO 3.2v4 cc rejects this sort of thing. */
16966 char tx;
16967 char *t = &tx;
16968 char const *s = 0 ? (char *) 0 : (char const *) 0;
16969
16970 *t++ = 0;
16971 if (s) return 0;
16972 }
16973 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16974 int x[] = {25, 17};
16975 const int *foo = &x[0];
16976 ++foo;
16977 }
16978 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16979 typedef const int *iptr;
16980 iptr p = 0;
16981 ++p;
16982 }
16983 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
16984 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16985 struct s { int j; const int *ap[3]; } bx;
16986 struct s *b = &bx; b->j = 5;
16987 }
16988 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16989 const int foo = 10;
16990 if (!foo) return 0;
16991 }
16992 return !cs[0] && !zero.x;
16993 #endif
16994
16995 ;
16996 return 0;
16997 }
16998 _ACEOF
16999 if ac_fn_c_try_compile "$LINENO"
17000 then :
17001 ac_cv_c_const=yes
17002 else $as_nop
17003 ac_cv_c_const=no
17004 fi
17005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17006 fi
17007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17008 printf "%s\n" "$ac_cv_c_const" >&6; }
17009 if test $ac_cv_c_const = no; then
17010
17011 printf "%s\n" "#define const /**/" >>confdefs.h
17012
17013 fi
17014
17015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17016 printf %s "checking for inline... " >&6; }
17017 if test ${ac_cv_c_inline+y}
17018 then :
17019 printf %s "(cached) " >&6
17020 else $as_nop
17021 ac_cv_c_inline=no
17022 for ac_kw in inline __inline__ __inline; do
17023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17024 /* end confdefs.h. */
17025 #ifndef __cplusplus
17026 typedef int foo_t;
17027 static $ac_kw foo_t static_foo (void) {return 0; }
17028 $ac_kw foo_t foo (void) {return 0; }
17029 #endif
17030
17031 _ACEOF
17032 if ac_fn_c_try_compile "$LINENO"
17033 then :
17034 ac_cv_c_inline=$ac_kw
17035 fi
17036 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17037 test "$ac_cv_c_inline" != no && break
17038 done
17039
17040 fi
17041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17042 printf "%s\n" "$ac_cv_c_inline" >&6; }
17043
17044 case $ac_cv_c_inline in
17045 inline | yes) ;;
17046 *)
17047 case $ac_cv_c_inline in
17048 no) ac_val=;;
17049 *) ac_val=$ac_cv_c_inline;;
17050 esac
17051 cat >>confdefs.h <<_ACEOF
17052 #ifndef __cplusplus
17053 #define inline $ac_val
17054 #endif
17055 _ACEOF
17056 ;;
17057 esac
17058
17059 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17060 if test "x$ac_cv_type_size_t" = xyes
17061 then :
17062
17063 else $as_nop
17064
17065 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
17066
17067 fi
17068
17069
17070 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
17071 "
17072 if test "x$ac_cv_type_pid_t" = xyes
17073 then :
17074
17075 else $as_nop
17076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17077 /* end confdefs.h. */
17078
17079 #if defined _WIN64 && !defined __CYGWIN__
17080 LLP64
17081 #endif
17082
17083 int
17084 main (void)
17085 {
17086
17087 ;
17088 return 0;
17089 }
17090
17091 _ACEOF
17092 if ac_fn_c_try_compile "$LINENO"
17093 then :
17094 ac_pid_type='int'
17095 else $as_nop
17096 ac_pid_type='__int64'
17097 fi
17098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17099
17100 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
17101
17102
17103 fi
17104
17105
17106
17107 ac_fn_c_check_type "$LINENO" "byte" "ac_cv_type_byte" "$ac_includes_default"
17108 if test "x$ac_cv_type_byte" = xyes
17109 then :
17110
17111 printf "%s\n" "#define HAVE_BYTE 1" >>confdefs.h
17112
17113
17114 fi
17115 ac_fn_c_check_type "$LINENO" "ushort" "ac_cv_type_ushort" "$ac_includes_default"
17116 if test "x$ac_cv_type_ushort" = xyes
17117 then :
17118
17119 printf "%s\n" "#define HAVE_USHORT 1" >>confdefs.h
17120
17121
17122 fi
17123 ac_fn_c_check_type "$LINENO" "u16" "ac_cv_type_u16" "$ac_includes_default"
17124 if test "x$ac_cv_type_u16" = xyes
17125 then :
17126
17127 printf "%s\n" "#define HAVE_U16 1" >>confdefs.h
17128
17129
17130 fi
17131 ac_fn_c_check_type "$LINENO" "u32" "ac_cv_type_u32" "$ac_includes_default"
17132 if test "x$ac_cv_type_u32" = xyes
17133 then :
17134
17135 printf "%s\n" "#define HAVE_U32 1" >>confdefs.h
17136
17137
17138 fi
17139 ac_fn_c_check_type "$LINENO" "u64" "ac_cv_type_u64" "$ac_includes_default"
17140 if test "x$ac_cv_type_u64" = xyes
17141 then :
17142
17143 printf "%s\n" "#define HAVE_U64 1" >>confdefs.h
17144
17145
17146 fi
17147
17148
17149 #
17150 # Check for __builtin_bswap32 intrinsic.
17151 #
17152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
17153 printf %s "checking for __builtin_bswap32... " >&6; }
17154 if test ${gcry_cv_have_builtin_bswap32+y}
17155 then :
17156 printf %s "(cached) " >&6
17157 else $as_nop
17158 gcry_cv_have_builtin_bswap32=no
17159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17160 /* end confdefs.h. */
17161
17162 int
17163 main (void)
17164 {
17165 int x = 0; int y = __builtin_bswap32(x); return y;
17166 ;
17167 return 0;
17168 }
17169 _ACEOF
17170 if ac_fn_c_try_link "$LINENO"
17171 then :
17172 gcry_cv_have_builtin_bswap32=yes
17173 fi
17174 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17175 conftest$ac_exeext conftest.$ac_ext
17176 fi
17177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_builtin_bswap32" >&5
17178 printf "%s\n" "$gcry_cv_have_builtin_bswap32" >&6; }
17179 if test "$gcry_cv_have_builtin_bswap32" = "yes" ; then
17180
17181 printf "%s\n" "#define HAVE_BUILTIN_BSWAP32 1" >>confdefs.h
17182
17183 fi
17184
17185
17186 #
17187 # Check for __builtin_bswap64 intrinsic.
17188 #
17189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
17190 printf %s "checking for __builtin_bswap64... " >&6; }
17191 if test ${gcry_cv_have_builtin_bswap64+y}
17192 then :
17193 printf %s "(cached) " >&6
17194 else $as_nop
17195 gcry_cv_have_builtin_bswap64=no
17196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17197 /* end confdefs.h. */
17198
17199 int
17200 main (void)
17201 {
17202 long long x = 0; long long y = __builtin_bswap64(x); return y;
17203 ;
17204 return 0;
17205 }
17206 _ACEOF
17207 if ac_fn_c_try_link "$LINENO"
17208 then :
17209 gcry_cv_have_builtin_bswap64=yes
17210 fi
17211 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17212 conftest$ac_exeext conftest.$ac_ext
17213 fi
17214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_builtin_bswap64" >&5
17215 printf "%s\n" "$gcry_cv_have_builtin_bswap64" >&6; }
17216 if test "$gcry_cv_have_builtin_bswap64" = "yes" ; then
17217
17218 printf "%s\n" "#define HAVE_BUILTIN_BSWAP64 1" >>confdefs.h
17219
17220 fi
17221
17222
17223 #
17224 # Check for __builtin_ctz intrinsic.
17225 #
17226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctz" >&5
17227 printf %s "checking for __builtin_ctz... " >&6; }
17228 if test ${gcry_cv_have_builtin_ctz+y}
17229 then :
17230 printf %s "(cached) " >&6
17231 else $as_nop
17232 gcry_cv_have_builtin_ctz=no
17233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17234 /* end confdefs.h. */
17235
17236 int
17237 main (void)
17238 {
17239 unsigned int x = 0; int y = __builtin_ctz(x); return y;
17240 ;
17241 return 0;
17242 }
17243 _ACEOF
17244 if ac_fn_c_try_link "$LINENO"
17245 then :
17246 gcry_cv_have_builtin_ctz=yes
17247 fi
17248 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17249 conftest$ac_exeext conftest.$ac_ext
17250 fi
17251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_builtin_ctz" >&5
17252 printf "%s\n" "$gcry_cv_have_builtin_ctz" >&6; }
17253 if test "$gcry_cv_have_builtin_ctz" = "yes" ; then
17254
17255 printf "%s\n" "#define HAVE_BUILTIN_CTZ 1" >>confdefs.h
17256
17257 fi
17258
17259
17260 #
17261 # Check for __builtin_ctzl intrinsic.
17262 #
17263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctzl" >&5
17264 printf %s "checking for __builtin_ctzl... " >&6; }
17265 if test ${gcry_cv_have_builtin_ctzl+y}
17266 then :
17267 printf %s "(cached) " >&6
17268 else $as_nop
17269 gcry_cv_have_builtin_ctzl=no
17270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17271 /* end confdefs.h. */
17272
17273 int
17274 main (void)
17275 {
17276 unsigned long x = 0; long y = __builtin_ctzl(x); return y;
17277 ;
17278 return 0;
17279 }
17280 _ACEOF
17281 if ac_fn_c_try_link "$LINENO"
17282 then :
17283 gcry_cv_have_builtin_ctzl=yes
17284 fi
17285 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17286 conftest$ac_exeext conftest.$ac_ext
17287 fi
17288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_builtin_ctzl" >&5
17289 printf "%s\n" "$gcry_cv_have_builtin_ctzl" >&6; }
17290 if test "$gcry_cv_have_builtin_ctzl" = "yes" ; then
17291
17292 printf "%s\n" "#define HAVE_BUILTIN_CTZL 1" >>confdefs.h
17293
17294 fi
17295
17296
17297 #
17298 # Check for __builtin_clz intrinsic.
17299 #
17300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
17301 printf %s "checking for __builtin_clz... " >&6; }
17302 if test ${gcry_cv_have_builtin_clz+y}
17303 then :
17304 printf %s "(cached) " >&6
17305 else $as_nop
17306 gcry_cv_have_builtin_clz=no
17307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17308 /* end confdefs.h. */
17309
17310 int
17311 main (void)
17312 {
17313 unsigned int x = 0; int y = __builtin_clz(x); return y;
17314 ;
17315 return 0;
17316 }
17317 _ACEOF
17318 if ac_fn_c_try_link "$LINENO"
17319 then :
17320 gcry_cv_have_builtin_clz=yes
17321 fi
17322 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17323 conftest$ac_exeext conftest.$ac_ext
17324 fi
17325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_builtin_clz" >&5
17326 printf "%s\n" "$gcry_cv_have_builtin_clz" >&6; }
17327 if test "$gcry_cv_have_builtin_clz" = "yes" ; then
17328
17329 printf "%s\n" "#define HAVE_BUILTIN_CLZ 1" >>confdefs.h
17330
17331 fi
17332
17333
17334 #
17335 # Check for __builtin_clzl intrinsic.
17336 #
17337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzl" >&5
17338 printf %s "checking for __builtin_clzl... " >&6; }
17339 if test ${gcry_cv_have_builtin_clzl+y}
17340 then :
17341 printf %s "(cached) " >&6
17342 else $as_nop
17343 gcry_cv_have_builtin_clzl=no
17344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17345 /* end confdefs.h. */
17346
17347 int
17348 main (void)
17349 {
17350 unsigned long x = 0; long y = __builtin_clzl(x); return y;
17351 ;
17352 return 0;
17353 }
17354 _ACEOF
17355 if ac_fn_c_try_link "$LINENO"
17356 then :
17357 gcry_cv_have_builtin_clzl=yes
17358 fi
17359 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17360 conftest$ac_exeext conftest.$ac_ext
17361 fi
17362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_builtin_clzl" >&5
17363 printf "%s\n" "$gcry_cv_have_builtin_clzl" >&6; }
17364 if test "$gcry_cv_have_builtin_clzl" = "yes" ; then
17365
17366 printf "%s\n" "#define HAVE_BUILTIN_CLZL 1" >>confdefs.h
17367
17368 fi
17369
17370
17371 #
17372 # Check for __sync_synchronize intrinsic.
17373 #
17374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __sync_synchronize" >&5
17375 printf %s "checking for __sync_synchronize... " >&6; }
17376 if test ${gcry_cv_have_sync_synchronize+y}
17377 then :
17378 printf %s "(cached) " >&6
17379 else $as_nop
17380 gcry_cv_have_sync_synchronize=no
17381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17382 /* end confdefs.h. */
17383
17384 int
17385 main (void)
17386 {
17387 __sync_synchronize(); return 0;
17388 ;
17389 return 0;
17390 }
17391 _ACEOF
17392 if ac_fn_c_try_link "$LINENO"
17393 then :
17394 gcry_cv_have_sync_synchronize=yes
17395 fi
17396 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17397 conftest$ac_exeext conftest.$ac_ext
17398 fi
17399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_sync_synchronize" >&5
17400 printf "%s\n" "$gcry_cv_have_sync_synchronize" >&6; }
17401 if test "$gcry_cv_have_sync_synchronize" = "yes" ; then
17402
17403 printf "%s\n" "#define HAVE_SYNC_SYNCHRONIZE 1" >>confdefs.h
17404
17405 fi
17406
17407
17408 #
17409 # Check for VLA support (variable length arrays).
17410 #
17411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the variable length arrays are supported" >&5
17412 printf %s "checking whether the variable length arrays are supported... " >&6; }
17413 if test ${gcry_cv_have_vla+y}
17414 then :
17415 printf %s "(cached) " >&6
17416 else $as_nop
17417 gcry_cv_have_vla=no
17418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17419 /* end confdefs.h. */
17420 void f1(char *, int);
17421 char foo(int i) {
17422 char b[(i < 0 ? 0 : i) + 1];
17423 f1(b, sizeof b); return b[0];}
17424 _ACEOF
17425 if ac_fn_c_try_compile "$LINENO"
17426 then :
17427 gcry_cv_have_vla=yes
17428 fi
17429 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17430 fi
17431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_vla" >&5
17432 printf "%s\n" "$gcry_cv_have_vla" >&6; }
17433 if test "$gcry_cv_have_vla" = "yes" ; then
17434
17435 printf "%s\n" "#define HAVE_VLA 1" >>confdefs.h
17436
17437 fi
17438
17439
17440 #
17441 # Check for ELF visibility support.
17442 #
17443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the visibility attribute is supported" >&5
17444 printf %s "checking whether the visibility attribute is supported... " >&6; }
17445 if test ${gcry_cv_visibility_attribute+y}
17446 then :
17447 printf %s "(cached) " >&6
17448 else $as_nop
17449 gcry_cv_visibility_attribute=no
17450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17451 /* end confdefs.h. */
17452 int foo __attribute__ ((visibility ("hidden"))) = 1;
17453 int bar __attribute__ ((visibility ("protected"))) = 1;
17454
17455 _ACEOF
17456
17457 if ${CC-cc} -Werror -S conftest.c -o conftest.s \
17458 1>&5 2>&5 ; then
17459 if grep '\.hidden.*foo' conftest.s >/dev/null 2>&1 ; then
17460 if grep '\.protected.*bar' conftest.s >/dev/null 2>&1; then
17461 gcry_cv_visibility_attribute=yes
17462 fi
17463 fi
17464 fi
17465
17466 fi
17467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_visibility_attribute" >&5
17468 printf "%s\n" "$gcry_cv_visibility_attribute" >&6; }
17469 if test "$gcry_cv_visibility_attribute" = "yes"; then
17470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken visibility attribute" >&5
17471 printf %s "checking for broken visibility attribute... " >&6; }
17472 if test ${gcry_cv_broken_visibility_attribute+y}
17473 then :
17474 printf %s "(cached) " >&6
17475 else $as_nop
17476 gcry_cv_broken_visibility_attribute=yes
17477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17478 /* end confdefs.h. */
17479 int foo (int x);
17480 int bar (int x) __asm__ ("foo")
17481 __attribute__ ((visibility ("hidden")));
17482 int bar (int x) { return x; }
17483
17484 _ACEOF
17485
17486 if ${CC-cc} -Werror -S conftest.c -o conftest.s \
17487 1>&5 2>&5 ; then
17488 if grep '\.hidden[ _]foo' conftest.s >/dev/null 2>&1;
17489 then
17490 gcry_cv_broken_visibility_attribute=no
17491 fi
17492 fi
17493
17494 fi
17495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_broken_visibility_attribute" >&5
17496 printf "%s\n" "$gcry_cv_broken_visibility_attribute" >&6; }
17497 fi
17498 if test "$gcry_cv_visibility_attribute" = "yes"; then
17499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken alias attribute" >&5
17500 printf %s "checking for broken alias attribute... " >&6; }
17501 if test ${gcry_cv_broken_alias_attribute+y}
17502 then :
17503 printf %s "(cached) " >&6
17504 else $as_nop
17505 gcry_cv_broken_alias_attribute=yes
17506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17507 /* end confdefs.h. */
17508 extern int foo (int x) __asm ("xyzzy");
17509 int bar (int x) { return x; }
17510 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
17511 extern int dfoo;
17512 extern __typeof (dfoo) dfoo __asm ("abccb");
17513 int dfoo = 1;
17514
17515 _ACEOF
17516
17517 if ${CC-cc} -Werror -S conftest.c -o conftest.s \
17518 1>&5 2>&5 ; then
17519 if grep 'xyzzy' conftest.s >/dev/null 2>&1 && \
17520 grep 'abccb' conftest.s >/dev/null 2>&1; then
17521 gcry_cv_broken_alias_attribute=no
17522 fi
17523 fi
17524
17525 fi
17526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_broken_alias_attribute" >&5
17527 printf "%s\n" "$gcry_cv_broken_alias_attribute" >&6; }
17528 fi
17529 if test "$gcry_cv_visibility_attribute" = "yes"; then
17530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -fvisibility=hidden" >&5
17531 printf %s "checking if gcc supports -fvisibility=hidden... " >&6; }
17532 if test ${gcry_cv_gcc_has_f_visibility+y}
17533 then :
17534 printf %s "(cached) " >&6
17535 else $as_nop
17536 gcry_cv_gcc_has_f_visibility=no
17537 _gcc_cflags_save=$CFLAGS
17538 CFLAGS="-fvisibility=hidden"
17539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17540 /* end confdefs.h. */
17541
17542 int
17543 main (void)
17544 {
17545
17546 ;
17547 return 0;
17548 }
17549 _ACEOF
17550 if ac_fn_c_try_compile "$LINENO"
17551 then :
17552 gcry_cv_gcc_has_f_visibility=yes
17553 fi
17554 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17555 CFLAGS=$_gcc_cflags_save;
17556
17557 fi
17558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_has_f_visibility" >&5
17559 printf "%s\n" "$gcry_cv_gcc_has_f_visibility" >&6; }
17560 fi
17561 if test "$gcry_cv_visibility_attribute" = "yes" \
17562 && test "$gcry_cv_broken_visibility_attribute" != "yes" \
17563 && test "$gcry_cv_broken_alias_attribute" != "yes" \
17564 && test "$gcry_cv_gcc_has_f_visibility" = "yes"
17565 then
17566
17567 printf "%s\n" "#define GCRY_USE_VISIBILITY 1" >>confdefs.h
17568
17569 CFLAGS="$CFLAGS -fvisibility=hidden"
17570 fi
17571
17572
17573 # Following attribute tests depend on warnings to cause compile to fail,
17574 # so set -Werror temporarily.
17575 _gcc_cflags_save=$CFLAGS
17576 CFLAGS="$CFLAGS -Werror"
17577
17578
17579 #
17580 # Check whether the compiler supports the GCC style aligned attribute
17581 #
17582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the GCC style aligned attribute is supported" >&5
17583 printf %s "checking whether the GCC style aligned attribute is supported... " >&6; }
17584 if test ${gcry_cv_gcc_attribute_aligned+y}
17585 then :
17586 printf %s "(cached) " >&6
17587 else $as_nop
17588 gcry_cv_gcc_attribute_aligned=no
17589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17590 /* end confdefs.h. */
17591 struct { int a; } foo __attribute__ ((aligned (16)));
17592 _ACEOF
17593 if ac_fn_c_try_compile "$LINENO"
17594 then :
17595 gcry_cv_gcc_attribute_aligned=yes
17596 fi
17597 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17598 fi
17599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_attribute_aligned" >&5
17600 printf "%s\n" "$gcry_cv_gcc_attribute_aligned" >&6; }
17601 if test "$gcry_cv_gcc_attribute_aligned" = "yes" ; then
17602
17603 printf "%s\n" "#define HAVE_GCC_ATTRIBUTE_ALIGNED 1" >>confdefs.h
17604
17605 fi
17606
17607
17608 #
17609 # Check whether the compiler supports the GCC style packed attribute
17610 #
17611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the GCC style packed attribute is supported" >&5
17612 printf %s "checking whether the GCC style packed attribute is supported... " >&6; }
17613 if test ${gcry_cv_gcc_attribute_packed+y}
17614 then :
17615 printf %s "(cached) " >&6
17616 else $as_nop
17617 gcry_cv_gcc_attribute_packed=no
17618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17619 /* end confdefs.h. */
17620 struct foolong_s { long b; } __attribute__ ((packed));
17621 struct foo_s { char a; struct foolong_s b; }
17622 __attribute__ ((packed));
17623 enum bar {
17624 FOO = 1 / (sizeof(struct foo_s) == (sizeof(char) + sizeof(long))),
17625 };
17626 _ACEOF
17627 if ac_fn_c_try_compile "$LINENO"
17628 then :
17629 gcry_cv_gcc_attribute_packed=yes
17630 fi
17631 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17632 fi
17633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_attribute_packed" >&5
17634 printf "%s\n" "$gcry_cv_gcc_attribute_packed" >&6; }
17635 if test "$gcry_cv_gcc_attribute_packed" = "yes" ; then
17636
17637 printf "%s\n" "#define HAVE_GCC_ATTRIBUTE_PACKED 1" >>confdefs.h
17638
17639 fi
17640
17641
17642 #
17643 # Check whether the compiler supports the GCC style may_alias attribute
17644 #
17645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the GCC style may_alias attribute is supported" >&5
17646 printf %s "checking whether the GCC style may_alias attribute is supported... " >&6; }
17647 if test ${gcry_cv_gcc_attribute_may_alias+y}
17648 then :
17649 printf %s "(cached) " >&6
17650 else $as_nop
17651 gcry_cv_gcc_attribute_may_alias=no
17652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17653 /* end confdefs.h. */
17654 typedef struct foo_s { int a; }
17655 __attribute__ ((may_alias)) foo_t;
17656 _ACEOF
17657 if ac_fn_c_try_compile "$LINENO"
17658 then :
17659 gcry_cv_gcc_attribute_may_alias=yes
17660 fi
17661 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17662 fi
17663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_attribute_may_alias" >&5
17664 printf "%s\n" "$gcry_cv_gcc_attribute_may_alias" >&6; }
17665 if test "$gcry_cv_gcc_attribute_may_alias" = "yes" ; then
17666
17667 printf "%s\n" "#define HAVE_GCC_ATTRIBUTE_MAY_ALIAS 1" >>confdefs.h
17668
17669 fi
17670
17671
17672 # Restore flags.
17673 CFLAGS=$_gcc_cflags_save;
17674
17675
17676 #
17677 # Check whether the compiler supports 'asm' or '__asm__' keyword for
17678 # assembler blocks.
17679 #
17680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether 'asm' assembler keyword is supported" >&5
17681 printf %s "checking whether 'asm' assembler keyword is supported... " >&6; }
17682 if test ${gcry_cv_have_asm+y}
17683 then :
17684 printf %s "(cached) " >&6
17685 else $as_nop
17686 gcry_cv_have_asm=no
17687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17688 /* end confdefs.h. */
17689 void a(void) { asm("":::"memory"); }
17690 _ACEOF
17691 if ac_fn_c_try_compile "$LINENO"
17692 then :
17693 gcry_cv_have_asm=yes
17694 fi
17695 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17696 fi
17697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_asm" >&5
17698 printf "%s\n" "$gcry_cv_have_asm" >&6; }
17699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether '__asm__' assembler keyword is supported" >&5
17700 printf %s "checking whether '__asm__' assembler keyword is supported... " >&6; }
17701 if test ${gcry_cv_have___asm__+y}
17702 then :
17703 printf %s "(cached) " >&6
17704 else $as_nop
17705 gcry_cv_have___asm__=no
17706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17707 /* end confdefs.h. */
17708 void a(void) { __asm__("":::"memory"); }
17709 _ACEOF
17710 if ac_fn_c_try_compile "$LINENO"
17711 then :
17712 gcry_cv_have___asm__=yes
17713 fi
17714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17715 fi
17716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have___asm__" >&5
17717 printf "%s\n" "$gcry_cv_have___asm__" >&6; }
17718 if test "$gcry_cv_have_asm" = "no" ; then
17719 if test "$gcry_cv_have___asm__" = "yes" ; then
17720
17721 printf "%s\n" "#define asm __asm__" >>confdefs.h
17722
17723 fi
17724 fi
17725
17726
17727 #
17728 # Check whether the compiler supports inline assembly memory barrier.
17729 #
17730 if test "$gcry_cv_have_asm" = "no" ; then
17731 if test "$gcry_cv_have___asm__" = "yes" ; then
17732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether inline assembly memory barrier is supported" >&5
17733 printf %s "checking whether inline assembly memory barrier is supported... " >&6; }
17734 if test ${gcry_cv_have_asm_volatile_memory+y}
17735 then :
17736 printf %s "(cached) " >&6
17737 else $as_nop
17738 gcry_cv_have_asm_volatile_memory=no
17739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17740 /* end confdefs.h. */
17741 void a(int x)
17742 {
17743 __asm__ volatile("":::"memory");
17744 __asm__ volatile("":"+r"(x)::"memory");
17745 }
17746 _ACEOF
17747 if ac_fn_c_try_compile "$LINENO"
17748 then :
17749 gcry_cv_have_asm_volatile_memory=yes
17750 fi
17751 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17752 fi
17753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_asm_volatile_memory" >&5
17754 printf "%s\n" "$gcry_cv_have_asm_volatile_memory" >&6; }
17755 fi
17756 else
17757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether inline assembly memory barrier is supported" >&5
17758 printf %s "checking whether inline assembly memory barrier is supported... " >&6; }
17759 if test ${gcry_cv_have_asm_volatile_memory+y}
17760 then :
17761 printf %s "(cached) " >&6
17762 else $as_nop
17763 gcry_cv_have_asm_volatile_memory=no
17764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17765 /* end confdefs.h. */
17766 void a(int x)
17767 {
17768 asm volatile("":::"memory");
17769 asm volatile("":"+r"(x)::"memory"); }
17770 _ACEOF
17771 if ac_fn_c_try_compile "$LINENO"
17772 then :
17773 gcry_cv_have_asm_volatile_memory=yes
17774 fi
17775 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17776 fi
17777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_asm_volatile_memory" >&5
17778 printf "%s\n" "$gcry_cv_have_asm_volatile_memory" >&6; }
17779 fi
17780 if test "$gcry_cv_have_asm_volatile_memory" = "yes" ; then
17781
17782 printf "%s\n" "#define HAVE_GCC_ASM_VOLATILE_MEMORY 1" >>confdefs.h
17783
17784 fi
17785
17786
17787 #
17788 # Check whether GCC assembler supports features needed for our ARM
17789 # implementations. This needs to be done before setting up the
17790 # assembler stuff.
17791 #
17792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler is compatible for ARM assembly implementations" >&5
17793 printf %s "checking whether GCC assembler is compatible for ARM assembly implementations... " >&6; }
17794 if test ${gcry_cv_gcc_arm_platform_as_ok+y}
17795 then :
17796 printf %s "(cached) " >&6
17797 else $as_nop
17798 if test "$try_asm_modules" != "yes" ; then
17799 gcry_cv_gcc_arm_platform_as_ok="n/a"
17800 else
17801 gcry_cv_gcc_arm_platform_as_ok=no
17802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17803 /* end confdefs.h. */
17804 __asm__(
17805 /* Test if assembler supports UAL syntax. */
17806 ".syntax unified\n\t"
17807 ".arm\n\t" /* our assembly code is in ARM mode */
17808 ".text\n\t"
17809 /* Following causes error if assembler ignored '.syntax unified'. */
17810 "asmfunc:\n\t"
17811 "add r0, r0, r4, ror #12;\n\t"
17812
17813 /* Test if '.type' and '.size' are supported. */
17814 ".size asmfunc,.-asmfunc;\n\t"
17815 ".type asmfunc,%function;\n\t"
17816 );
17817 void asmfunc(void);
17818 int
17819 main (void)
17820 {
17821 asmfunc();
17822 ;
17823 return 0;
17824 }
17825 _ACEOF
17826 if ac_fn_c_try_link "$LINENO"
17827 then :
17828 gcry_cv_gcc_arm_platform_as_ok=yes
17829 fi
17830 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17831 conftest$ac_exeext conftest.$ac_ext
17832 fi
17833 fi
17834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_arm_platform_as_ok" >&5
17835 printf "%s\n" "$gcry_cv_gcc_arm_platform_as_ok" >&6; }
17836 if test "$gcry_cv_gcc_arm_platform_as_ok" = "yes" ; then
17837
17838 printf "%s\n" "#define HAVE_COMPATIBLE_GCC_ARM_PLATFORM_AS 1" >>confdefs.h
17839
17840 fi
17841
17842
17843 #
17844 # Check whether GCC assembler supports features needed for our ARMv8/Aarch64
17845 # implementations. This needs to be done before setting up the
17846 # assembler stuff.
17847 #
17848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler is compatible for ARMv8/Aarch64 assembly implementations" >&5
17849 printf %s "checking whether GCC assembler is compatible for ARMv8/Aarch64 assembly implementations... " >&6; }
17850 if test ${gcry_cv_gcc_aarch64_platform_as_ok+y}
17851 then :
17852 printf %s "(cached) " >&6
17853 else $as_nop
17854 if test "$try_asm_modules" != "yes" ; then
17855 gcry_cv_gcc_aarch64_platform_as_ok="n/a"
17856 else
17857 gcry_cv_gcc_aarch64_platform_as_ok=no
17858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17859 /* end confdefs.h. */
17860 __asm__(
17861 ".text\n\t"
17862 "asmfunc:\n\t"
17863 "eor x0, x0, x30, ror #12;\n\t"
17864 "add x0, x0, x30, asr #12;\n\t"
17865 "eor v0.16b, v0.16b, v31.16b;\n\t"
17866 );
17867 void asmfunc(void);
17868 int
17869 main (void)
17870 {
17871 asmfunc();
17872 ;
17873 return 0;
17874 }
17875 _ACEOF
17876 if ac_fn_c_try_link "$LINENO"
17877 then :
17878 gcry_cv_gcc_aarch64_platform_as_ok=yes
17879 fi
17880 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17881 conftest$ac_exeext conftest.$ac_ext
17882 fi
17883 fi
17884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_aarch64_platform_as_ok" >&5
17885 printf "%s\n" "$gcry_cv_gcc_aarch64_platform_as_ok" >&6; }
17886 if test "$gcry_cv_gcc_aarch64_platform_as_ok" = "yes" ; then
17887
17888 printf "%s\n" "#define HAVE_COMPATIBLE_GCC_AARCH64_PLATFORM_AS 1" >>confdefs.h
17889
17890 fi
17891
17892 #
17893 # Check whether GCC assembler supports for CFI directives.
17894 #
17895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler supports for CFI directives" >&5
17896 printf %s "checking whether GCC assembler supports for CFI directives... " >&6; }
17897 if test ${gcry_cv_gcc_asm_cfi_directives+y}
17898 then :
17899 printf %s "(cached) " >&6
17900 else $as_nop
17901 gcry_cv_gcc_asm_cfi_directives=no
17902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17903 /* end confdefs.h. */
17904 __asm__(
17905 ".text\n\t"
17906 "ac_test:\n\t"
17907 ".cfi_startproc\n\t"
17908 ".cfi_remember_state\n\t"
17909 ".cfi_adjust_cfa_offset 8\n\t"
17910 ".cfi_rel_offset 0, 8\n\t"
17911 ".cfi_def_cfa_register 1\n\t"
17912 ".cfi_register 2, 3\n\t"
17913 ".cfi_restore 2\n\t"
17914 ".cfi_escape 0x0f, 0x02, 0x11, 0x00\n\t"
17915 ".cfi_restore_state\n\t"
17916 ".long 0\n\t"
17917 ".cfi_endproc\n\t"
17918 );
17919 int
17920 main (void)
17921 {
17922
17923 ;
17924 return 0;
17925 }
17926 _ACEOF
17927 if ac_fn_c_try_link "$LINENO"
17928 then :
17929 gcry_cv_gcc_asm_cfi_directives=yes
17930 fi
17931 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17932 conftest$ac_exeext conftest.$ac_ext
17933 fi
17934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_asm_cfi_directives" >&5
17935 printf "%s\n" "$gcry_cv_gcc_asm_cfi_directives" >&6; }
17936 if test "$gcry_cv_gcc_asm_cfi_directives" = "yes" ; then
17937
17938 printf "%s\n" "#define HAVE_GCC_ASM_CFI_DIRECTIVES 1" >>confdefs.h
17939
17940 fi
17941
17942
17943 #
17944 # Check whether GCC assembler supports for ELF directives.
17945 #
17946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler supports for ELF directives" >&5
17947 printf %s "checking whether GCC assembler supports for ELF directives... " >&6; }
17948 if test ${gcry_cv_gcc_asm_elf_directives+y}
17949 then :
17950 printf %s "(cached) " >&6
17951 else $as_nop
17952 gcry_cv_gcc_asm_elf_directives=no
17953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17954 /* end confdefs.h. */
17955 __asm__(
17956 /* Test if ELF directives '.type' and '.size' are supported. */
17957 ".text\n\t"
17958 "asmfunc:\n\t"
17959 ".size asmfunc,.-asmfunc;\n\t"
17960 ".type asmfunc,STT_FUNC;\n\t"
17961 );
17962 int
17963 main (void)
17964 {
17965
17966 ;
17967 return 0;
17968 }
17969 _ACEOF
17970 if ac_fn_c_try_link "$LINENO"
17971 then :
17972 gcry_cv_gcc_asm_elf_directives=yes
17973 fi
17974 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17975 conftest$ac_exeext conftest.$ac_ext
17976 fi
17977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_asm_elf_directives" >&5
17978 printf "%s\n" "$gcry_cv_gcc_asm_elf_directives" >&6; }
17979 if test "$gcry_cv_gcc_asm_elf_directives" = "yes" ; then
17980
17981 printf "%s\n" "#define HAVE_GCC_ASM_ELF_DIRECTIVES 1" >>confdefs.h
17982
17983 fi
17984
17985
17986 #
17987 # Check whether underscores in symbols are required. This needs to be
17988 # done before setting up the assembler stuff.
17989 #
17990
17991 tmp_do_check="no"
17992 case "${host}" in
17993 i?86-mingw32* | i?86-*-mingw32*)
17994 ac_cv_sys_symbol_underscore=yes
17995 ;;
17996 x86_64-*-mingw32*)
17997 ac_cv_sys_symbol_underscore=no
17998 ;;
17999 i386-emx-os2 | i345686-pc-os2*emx | i386-pc-msdosdjgpp)
18000 ac_cv_sys_symbol_underscore=yes
18001 ;;
18002 *)
18003 if test "$cross_compiling" != yes; then
18004 tmp_do_check="yes"
18005 fi
18006 ;;
18007 esac
18008 if test "$tmp_do_check" = "yes"; then
18009
18010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
18011 printf %s "checking for _ prefix in compiled symbols... " >&6; }
18012 if test ${ac_cv_sys_symbol_underscore+y}
18013 then :
18014 printf %s "(cached) " >&6
18015 else $as_nop
18016 ac_cv_sys_symbol_underscore=no
18017 cat > conftest.$ac_ext <<EOF
18018 void nm_test_func(void){}
18019 int main(void){nm_test_func();return 0;}
18020 EOF
18021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18022 (eval $ac_compile) 2>&5
18023 ac_status=$?
18024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18025 test $ac_status = 0; }; then
18026 # Now try to grab the symbols.
18027 nlist=conftest.nm
18028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
18029 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
18030 ac_status=$?
18031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18032 test $ac_status = 0; } && test -s "$nlist"; then
18033 # See whether the symbols have a leading underscore.
18034 if $GREP ' _nm_test_func$' "$nlist" >/dev/null; then
18035 ac_cv_sys_symbol_underscore=yes
18036 else
18037 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
18038 :
18039 else
18040 echo "configure: cannot find nm_test_func in $nlist" >&5
18041 fi
18042 fi
18043 else
18044 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
18045 fi
18046 else
18047 echo "configure: failed program was:" >&5
18048 cat conftest.c >&5
18049 fi
18050 rm -rf conftest*
18051
18052 fi
18053
18054 else
18055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
18056 printf %s "checking for _ prefix in compiled symbols... " >&6; }
18057 fi
18058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_symbol_underscore" >&5
18059 printf "%s\n" "$ac_cv_sys_symbol_underscore" >&6; }
18060 if test x$ac_cv_sys_symbol_underscore = xyes; then
18061
18062 printf "%s\n" "#define WITH_SYMBOL_UNDERSCORE 1" >>confdefs.h
18063
18064 fi
18065
18066
18067
18068 #################################
18069 #### ####
18070 #### Setup assembler stuff. ####
18071 #### Define mpi_cpu_arch. ####
18072 #### ####
18073 #################################
18074 # Check whether --enable-mpi-path was given.
18075 if test ${enable_mpi_path+y}
18076 then :
18077 enableval=$enable_mpi_path; mpi_extra_path="$enableval"
18078 else $as_nop
18079 mpi_extra_path=""
18080 fi
18081
18082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking architecture and mpi assembler functions" >&5
18083 printf %s "checking architecture and mpi assembler functions... " >&6; }
18084 if test -f $srcdir/mpi/config.links ; then
18085 . $srcdir/mpi/config.links
18086 ac_config_links="$ac_config_links "$mpi_ln_list""
18087
18088 ac_cv_mpi_sflags="$mpi_sflags"
18089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpi_cpu_arch" >&5
18090 printf "%s\n" "$mpi_cpu_arch" >&6; }
18091 else
18092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
18093 printf "%s\n" "failed" >&6; }
18094 as_fn_error $? "mpi/config.links missing!" "$LINENO" 5
18095 fi
18096 MPI_SFLAGS="$ac_cv_mpi_sflags"
18097
18098
18099 if test "$mpi_mod_asm_mpih_add1" = yes; then
18100 MPI_MOD_ASM_MPIH_ADD1_TRUE=
18101 MPI_MOD_ASM_MPIH_ADD1_FALSE='#'
18102 else
18103 MPI_MOD_ASM_MPIH_ADD1_TRUE='#'
18104 MPI_MOD_ASM_MPIH_ADD1_FALSE=
18105 fi
18106
18107 if test "$mpi_mod_asm_mpih_sub1" = yes; then
18108 MPI_MOD_ASM_MPIH_SUB1_TRUE=
18109 MPI_MOD_ASM_MPIH_SUB1_FALSE='#'
18110 else
18111 MPI_MOD_ASM_MPIH_SUB1_TRUE='#'
18112 MPI_MOD_ASM_MPIH_SUB1_FALSE=
18113 fi
18114
18115 if test "$mpi_mod_asm_mpih_mul1" = yes; then
18116 MPI_MOD_ASM_MPIH_MUL1_TRUE=
18117 MPI_MOD_ASM_MPIH_MUL1_FALSE='#'
18118 else
18119 MPI_MOD_ASM_MPIH_MUL1_TRUE='#'
18120 MPI_MOD_ASM_MPIH_MUL1_FALSE=
18121 fi
18122
18123 if test "$mpi_mod_asm_mpih_mul2" = yes; then
18124 MPI_MOD_ASM_MPIH_MUL2_TRUE=
18125 MPI_MOD_ASM_MPIH_MUL2_FALSE='#'
18126 else
18127 MPI_MOD_ASM_MPIH_MUL2_TRUE='#'
18128 MPI_MOD_ASM_MPIH_MUL2_FALSE=
18129 fi
18130
18131 if test "$mpi_mod_asm_mpih_mul3" = yes; then
18132 MPI_MOD_ASM_MPIH_MUL3_TRUE=
18133 MPI_MOD_ASM_MPIH_MUL3_FALSE='#'
18134 else
18135 MPI_MOD_ASM_MPIH_MUL3_TRUE='#'
18136 MPI_MOD_ASM_MPIH_MUL3_FALSE=
18137 fi
18138
18139 if test "$mpi_mod_asm_mpih_lshift" = yes; then
18140 MPI_MOD_ASM_MPIH_LSHIFT_TRUE=
18141 MPI_MOD_ASM_MPIH_LSHIFT_FALSE='#'
18142 else
18143 MPI_MOD_ASM_MPIH_LSHIFT_TRUE='#'
18144 MPI_MOD_ASM_MPIH_LSHIFT_FALSE=
18145 fi
18146
18147 if test "$mpi_mod_asm_mpih_rshift" = yes; then
18148 MPI_MOD_ASM_MPIH_RSHIFT_TRUE=
18149 MPI_MOD_ASM_MPIH_RSHIFT_FALSE='#'
18150 else
18151 MPI_MOD_ASM_MPIH_RSHIFT_TRUE='#'
18152 MPI_MOD_ASM_MPIH_RSHIFT_FALSE=
18153 fi
18154
18155 if test "$mpi_mod_asm_udiv" = yes; then
18156 MPI_MOD_ASM_UDIV_TRUE=
18157 MPI_MOD_ASM_UDIV_FALSE='#'
18158 else
18159 MPI_MOD_ASM_UDIV_TRUE='#'
18160 MPI_MOD_ASM_UDIV_FALSE=
18161 fi
18162
18163 if test "$mpi_mod_asm_udiv_qrnnd" = yes; then
18164 MPI_MOD_ASM_UDIV_QRNND_TRUE=
18165 MPI_MOD_ASM_UDIV_QRNND_FALSE='#'
18166 else
18167 MPI_MOD_ASM_UDIV_QRNND_TRUE='#'
18168 MPI_MOD_ASM_UDIV_QRNND_FALSE=
18169 fi
18170
18171 if test "$mpi_mod_c_mpih_add1" = yes; then
18172 MPI_MOD_C_MPIH_ADD1_TRUE=
18173 MPI_MOD_C_MPIH_ADD1_FALSE='#'
18174 else
18175 MPI_MOD_C_MPIH_ADD1_TRUE='#'
18176 MPI_MOD_C_MPIH_ADD1_FALSE=
18177 fi
18178
18179 if test "$mpi_mod_c_mpih_sub1" = yes; then
18180 MPI_MOD_C_MPIH_SUB1_TRUE=
18181 MPI_MOD_C_MPIH_SUB1_FALSE='#'
18182 else
18183 MPI_MOD_C_MPIH_SUB1_TRUE='#'
18184 MPI_MOD_C_MPIH_SUB1_FALSE=
18185 fi
18186
18187 if test "$mpi_mod_c_mpih_mul1" = yes; then
18188 MPI_MOD_C_MPIH_MUL1_TRUE=
18189 MPI_MOD_C_MPIH_MUL1_FALSE='#'
18190 else
18191 MPI_MOD_C_MPIH_MUL1_TRUE='#'
18192 MPI_MOD_C_MPIH_MUL1_FALSE=
18193 fi
18194
18195 if test "$mpi_mod_c_mpih_mul2" = yes; then
18196 MPI_MOD_C_MPIH_MUL2_TRUE=
18197 MPI_MOD_C_MPIH_MUL2_FALSE='#'
18198 else
18199 MPI_MOD_C_MPIH_MUL2_TRUE='#'
18200 MPI_MOD_C_MPIH_MUL2_FALSE=
18201 fi
18202
18203 if test "$mpi_mod_c_mpih_mul3" = yes; then
18204 MPI_MOD_C_MPIH_MUL3_TRUE=
18205 MPI_MOD_C_MPIH_MUL3_FALSE='#'
18206 else
18207 MPI_MOD_C_MPIH_MUL3_TRUE='#'
18208 MPI_MOD_C_MPIH_MUL3_FALSE=
18209 fi
18210
18211 if test "$mpi_mod_c_mpih_lshift" = yes; then
18212 MPI_MOD_C_MPIH_LSHIFT_TRUE=
18213 MPI_MOD_C_MPIH_LSHIFT_FALSE='#'
18214 else
18215 MPI_MOD_C_MPIH_LSHIFT_TRUE='#'
18216 MPI_MOD_C_MPIH_LSHIFT_FALSE=
18217 fi
18218
18219 if test "$mpi_mod_c_mpih_rshift" = yes; then
18220 MPI_MOD_C_MPIH_RSHIFT_TRUE=
18221 MPI_MOD_C_MPIH_RSHIFT_FALSE='#'
18222 else
18223 MPI_MOD_C_MPIH_RSHIFT_TRUE='#'
18224 MPI_MOD_C_MPIH_RSHIFT_FALSE=
18225 fi
18226
18227 if test "$mpi_mod_c_udiv" = yes; then
18228 MPI_MOD_C_UDIV_TRUE=
18229 MPI_MOD_C_UDIV_FALSE='#'
18230 else
18231 MPI_MOD_C_UDIV_TRUE='#'
18232 MPI_MOD_C_UDIV_FALSE=
18233 fi
18234
18235 if test "$mpi_mod_c_udiv_qrnnd" = yes; then
18236 MPI_MOD_C_UDIV_QRNND_TRUE=
18237 MPI_MOD_C_UDIV_QRNND_FALSE='#'
18238 else
18239 MPI_MOD_C_UDIV_QRNND_TRUE='#'
18240 MPI_MOD_C_UDIV_QRNND_FALSE=
18241 fi
18242
18243
18244 # Reset non applicable feature flags.
18245 if test "$mpi_cpu_arch" != "x86" ; then
18246 aesnisupport="n/a"
18247 shaextsupport="n/a"
18248 pclmulsupport="n/a"
18249 sse41support="n/a"
18250 avxsupport="n/a"
18251 avx2support="n/a"
18252 avx512support="n/a"
18253 gfnisupport="n/a"
18254 padlocksupport="n/a"
18255 drngsupport="n/a"
18256 fi
18257
18258 if test "$mpi_cpu_arch" != "arm" ; then
18259 if test "$mpi_cpu_arch" != "aarch64" ; then
18260 neonsupport="n/a"
18261 armcryptosupport="n/a"
18262 svesupport="n/a"
18263 sve2support="n/a"
18264 fi
18265 fi
18266
18267 if test "$mpi_cpu_arch" != "ppc"; then
18268 ppccryptosupport="n/a"
18269 fi
18270
18271 #############################################
18272 #### ####
18273 #### Platform specific compiler checks. ####
18274 #### ####
18275 #############################################
18276
18277
18278 # Following tests depend on warnings to cause compile to fail, so set -Werror
18279 # temporarily.
18280 _gcc_cflags_save=$CFLAGS
18281 CFLAGS="$CFLAGS -Werror"
18282
18283
18284 #
18285 # Check whether compiler supports 'optimize' function attribute
18286 #
18287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports 'optimize' function attribute" >&5
18288 printf %s "checking whether compiler supports 'optimize' function attribute... " >&6; }
18289 if test ${gcry_cv_gcc_attribute_optimize+y}
18290 then :
18291 printf %s "(cached) " >&6
18292 else $as_nop
18293 gcry_cv_gcc_attribute_optimize=no
18294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18295 /* end confdefs.h. */
18296 int __attribute__ ((optimize("-O2"))) fn(int i){return i;}
18297 _ACEOF
18298 if ac_fn_c_try_compile "$LINENO"
18299 then :
18300 gcry_cv_gcc_attribute_optimize=yes
18301 fi
18302 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18303 fi
18304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_attribute_optimize" >&5
18305 printf "%s\n" "$gcry_cv_gcc_attribute_optimize" >&6; }
18306 if test "$gcry_cv_gcc_attribute_optimize" = "yes" ; then
18307
18308 printf "%s\n" "#define HAVE_GCC_ATTRIBUTE_OPTIMIZE 1" >>confdefs.h
18309
18310 fi
18311
18312
18313 #
18314 # Check whether compiler supports 'ms_abi' function attribute.
18315 #
18316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports 'ms_abi' function attribute" >&5
18317 printf %s "checking whether compiler supports 'ms_abi' function attribute... " >&6; }
18318 if test ${gcry_cv_gcc_attribute_ms_abi+y}
18319 then :
18320 printf %s "(cached) " >&6
18321 else $as_nop
18322 gcry_cv_gcc_attribute_ms_abi=no
18323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18324 /* end confdefs.h. */
18325 int __attribute__ ((ms_abi)) proto(int);
18326 _ACEOF
18327 if ac_fn_c_try_compile "$LINENO"
18328 then :
18329 gcry_cv_gcc_attribute_ms_abi=yes
18330 fi
18331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18332 fi
18333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_attribute_ms_abi" >&5
18334 printf "%s\n" "$gcry_cv_gcc_attribute_ms_abi" >&6; }
18335 if test "$gcry_cv_gcc_attribute_ms_abi" = "yes" ; then
18336
18337 printf "%s\n" "#define HAVE_GCC_ATTRIBUTE_MS_ABI 1" >>confdefs.h
18338
18339 fi
18340
18341
18342 #
18343 # Check whether compiler supports 'sysv_abi' function attribute.
18344 #
18345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports 'sysv_abi' function attribute" >&5
18346 printf %s "checking whether compiler supports 'sysv_abi' function attribute... " >&6; }
18347 if test ${gcry_cv_gcc_attribute_sysv_abi+y}
18348 then :
18349 printf %s "(cached) " >&6
18350 else $as_nop
18351 gcry_cv_gcc_attribute_sysv_abi=no
18352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18353 /* end confdefs.h. */
18354 int __attribute__ ((sysv_abi)) proto(int);
18355 _ACEOF
18356 if ac_fn_c_try_compile "$LINENO"
18357 then :
18358 gcry_cv_gcc_attribute_sysv_abi=yes
18359 fi
18360 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18361 fi
18362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_attribute_sysv_abi" >&5
18363 printf "%s\n" "$gcry_cv_gcc_attribute_sysv_abi" >&6; }
18364 if test "$gcry_cv_gcc_attribute_sysv_abi" = "yes" ; then
18365
18366 printf "%s\n" "#define HAVE_GCC_ATTRIBUTE_SYSV_ABI 1" >>confdefs.h
18367
18368 fi
18369
18370
18371 #
18372 # Check whether default calling convention is 'ms_abi'.
18373 #
18374 if test "$gcry_cv_gcc_attribute_ms_abi" = "yes" ; then
18375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether default calling convention is 'ms_abi'" >&5
18376 printf %s "checking whether default calling convention is 'ms_abi'... " >&6; }
18377 if test ${gcry_cv_gcc_default_abi_is_ms_abi+y}
18378 then :
18379 printf %s "(cached) " >&6
18380 else $as_nop
18381 gcry_cv_gcc_default_abi_is_ms_abi=no
18382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18383 /* end confdefs.h. */
18384 void *test(void) {
18385 void *(*def_func)(void) = test;
18386 void *__attribute__((ms_abi))(*msabi_func)(void);
18387 /* warning on SysV abi targets, passes on Windows based targets */
18388 msabi_func = def_func;
18389 return msabi_func;
18390 }
18391 _ACEOF
18392 if ac_fn_c_try_compile "$LINENO"
18393 then :
18394 gcry_cv_gcc_default_abi_is_ms_abi=yes
18395 fi
18396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18397 fi
18398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_default_abi_is_ms_abi" >&5
18399 printf "%s\n" "$gcry_cv_gcc_default_abi_is_ms_abi" >&6; }
18400 if test "$gcry_cv_gcc_default_abi_is_ms_abi" = "yes" ; then
18401
18402 printf "%s\n" "#define HAVE_GCC_DEFAULT_ABI_IS_MS_ABI 1" >>confdefs.h
18403
18404 fi
18405 fi
18406
18407
18408 #
18409 # Check whether default calling convention is 'sysv_abi'.
18410 #
18411 if test "$gcry_cv_gcc_attribute_sysv_abi" = "yes" ; then
18412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether default calling convention is 'sysv_abi'" >&5
18413 printf %s "checking whether default calling convention is 'sysv_abi'... " >&6; }
18414 if test ${gcry_cv_gcc_default_abi_is_sysv_abi+y}
18415 then :
18416 printf %s "(cached) " >&6
18417 else $as_nop
18418 gcry_cv_gcc_default_abi_is_sysv_abi=no
18419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18420 /* end confdefs.h. */
18421 void *test(void) {
18422 void *(*def_func)(void) = test;
18423 void *__attribute__((sysv_abi))(*sysvabi_func)(void);
18424 /* warning on MS ABI targets, passes on SysV ABI targets */
18425 sysvabi_func = def_func;
18426 return sysvabi_func;
18427 }
18428 _ACEOF
18429 if ac_fn_c_try_compile "$LINENO"
18430 then :
18431 gcry_cv_gcc_default_abi_is_sysv_abi=yes
18432 fi
18433 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18434 fi
18435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_default_abi_is_sysv_abi" >&5
18436 printf "%s\n" "$gcry_cv_gcc_default_abi_is_sysv_abi" >&6; }
18437 if test "$gcry_cv_gcc_default_abi_is_sysv_abi" = "yes" ; then
18438
18439 printf "%s\n" "#define HAVE_GCC_DEFAULT_ABI_IS_SYSV_ABI 1" >>confdefs.h
18440
18441 fi
18442 fi
18443
18444
18445 # Restore flags.
18446 CFLAGS=$_gcc_cflags_save;
18447
18448
18449 #
18450 # Check whether GCC inline assembler supports SSSE3 instructions
18451 # This is required for the AES-NI instructions.
18452 #
18453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports SSSE3 instructions" >&5
18454 printf %s "checking whether GCC inline assembler supports SSSE3 instructions... " >&6; }
18455 if test ${gcry_cv_gcc_inline_asm_ssse3+y}
18456 then :
18457 printf %s "(cached) " >&6
18458 else $as_nop
18459 if test "$mpi_cpu_arch" != "x86" ||
18460 test "$try_asm_modules" != "yes" ; then
18461 gcry_cv_gcc_inline_asm_ssse3="n/a"
18462 else
18463 gcry_cv_gcc_inline_asm_ssse3=no
18464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18465 /* end confdefs.h. */
18466 static unsigned char be_mask[16] __attribute__ ((aligned (16))) =
18467 { 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 };
18468 void a(void) {
18469 __asm__("pshufb %[mask], %%xmm2\n\t"::[mask]"m"(*be_mask):);
18470 }
18471 int
18472 main (void)
18473 {
18474 a();
18475 ;
18476 return 0;
18477 }
18478 _ACEOF
18479 if ac_fn_c_try_link "$LINENO"
18480 then :
18481 gcry_cv_gcc_inline_asm_ssse3=yes
18482 fi
18483 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18484 conftest$ac_exeext conftest.$ac_ext
18485 fi
18486 fi
18487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_ssse3" >&5
18488 printf "%s\n" "$gcry_cv_gcc_inline_asm_ssse3" >&6; }
18489 if test "$gcry_cv_gcc_inline_asm_ssse3" = "yes" ; then
18490
18491 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_SSSE3 1" >>confdefs.h
18492
18493 fi
18494
18495
18496 #
18497 # Check whether GCC inline assembler supports PCLMUL instructions.
18498 #
18499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports PCLMUL instructions" >&5
18500 printf %s "checking whether GCC inline assembler supports PCLMUL instructions... " >&6; }
18501 if test ${gcry_cv_gcc_inline_asm_pclmul+y}
18502 then :
18503 printf %s "(cached) " >&6
18504 else $as_nop
18505 if test "$mpi_cpu_arch" != "x86" ||
18506 test "$try_asm_modules" != "yes" ; then
18507 gcry_cv_gcc_inline_asm_pclmul="n/a"
18508 else
18509 gcry_cv_gcc_inline_asm_pclmul=no
18510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18511 /* end confdefs.h. */
18512 void a(void) {
18513 __asm__("pclmulqdq \$0, %%xmm1, %%xmm3\n\t":::"cc");
18514 }
18515 int
18516 main (void)
18517 {
18518 a();
18519 ;
18520 return 0;
18521 }
18522 _ACEOF
18523 if ac_fn_c_try_link "$LINENO"
18524 then :
18525 gcry_cv_gcc_inline_asm_pclmul=yes
18526 fi
18527 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18528 conftest$ac_exeext conftest.$ac_ext
18529 fi
18530 fi
18531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_pclmul" >&5
18532 printf "%s\n" "$gcry_cv_gcc_inline_asm_pclmul" >&6; }
18533 if test "$gcry_cv_gcc_inline_asm_pclmul" = "yes" ; then
18534
18535 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_PCLMUL 1" >>confdefs.h
18536
18537 fi
18538
18539
18540 #
18541 # Check whether GCC inline assembler supports SHA Extensions instructions.
18542 #
18543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports SHA Extensions instructions" >&5
18544 printf %s "checking whether GCC inline assembler supports SHA Extensions instructions... " >&6; }
18545 if test ${gcry_cv_gcc_inline_asm_shaext+y}
18546 then :
18547 printf %s "(cached) " >&6
18548 else $as_nop
18549 if test "$mpi_cpu_arch" != "x86" ||
18550 test "$try_asm_modules" != "yes" ; then
18551 gcry_cv_gcc_inline_asm_shaext="n/a"
18552 else
18553 gcry_cv_gcc_inline_asm_shaext=no
18554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18555 /* end confdefs.h. */
18556 void a(void) {
18557 __asm__("sha1rnds4 \$0, %%xmm1, %%xmm3\n\t":::"cc");
18558 __asm__("sha1nexte %%xmm1, %%xmm3\n\t":::"cc");
18559 __asm__("sha1msg1 %%xmm1, %%xmm3\n\t":::"cc");
18560 __asm__("sha1msg2 %%xmm1, %%xmm3\n\t":::"cc");
18561 __asm__("sha256rnds2 %%xmm0, %%xmm1, %%xmm3\n\t":::"cc");
18562 __asm__("sha256msg1 %%xmm1, %%xmm3\n\t":::"cc");
18563 __asm__("sha256msg2 %%xmm1, %%xmm3\n\t":::"cc");
18564 }
18565 int
18566 main (void)
18567 {
18568 a();
18569 ;
18570 return 0;
18571 }
18572 _ACEOF
18573 if ac_fn_c_try_link "$LINENO"
18574 then :
18575 gcry_cv_gcc_inline_asm_shaext=yes
18576 fi
18577 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18578 conftest$ac_exeext conftest.$ac_ext
18579 fi
18580 fi
18581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_shaext" >&5
18582 printf "%s\n" "$gcry_cv_gcc_inline_asm_shaext" >&6; }
18583 if test "$gcry_cv_gcc_inline_asm_shaext" = "yes" ; then
18584
18585 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_SHAEXT 1" >>confdefs.h
18586
18587 fi
18588
18589
18590 #
18591 # Check whether GCC inline assembler supports SSE4.1 instructions.
18592 #
18593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports SSE4.1 instructions" >&5
18594 printf %s "checking whether GCC inline assembler supports SSE4.1 instructions... " >&6; }
18595 if test ${gcry_cv_gcc_inline_asm_sse41+y}
18596 then :
18597 printf %s "(cached) " >&6
18598 else $as_nop
18599 if test "$mpi_cpu_arch" != "x86" ||
18600 test "$try_asm_modules" != "yes" ; then
18601 gcry_cv_gcc_inline_asm_sse41="n/a"
18602 else
18603 gcry_cv_gcc_inline_asm_sse41=no
18604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18605 /* end confdefs.h. */
18606 void a(void) {
18607 int i;
18608 __asm__("pextrd \$2, %%xmm0, %[out]\n\t" : [out] "=m" (i));
18609 }
18610 int
18611 main (void)
18612 {
18613 a();
18614 ;
18615 return 0;
18616 }
18617 _ACEOF
18618 if ac_fn_c_try_link "$LINENO"
18619 then :
18620 gcry_cv_gcc_inline_asm_sse41=yes
18621 fi
18622 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18623 conftest$ac_exeext conftest.$ac_ext
18624 fi
18625 fi
18626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_sse41" >&5
18627 printf "%s\n" "$gcry_cv_gcc_inline_asm_sse41" >&6; }
18628 if test "$gcry_cv_gcc_inline_asm_sse41" = "yes" ; then
18629
18630 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_SSE41 1" >>confdefs.h
18631
18632 fi
18633
18634
18635 #
18636 # Check whether GCC inline assembler supports AVX instructions
18637 #
18638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports AVX instructions" >&5
18639 printf %s "checking whether GCC inline assembler supports AVX instructions... " >&6; }
18640 if test ${gcry_cv_gcc_inline_asm_avx+y}
18641 then :
18642 printf %s "(cached) " >&6
18643 else $as_nop
18644 if test "$mpi_cpu_arch" != "x86" ||
18645 test "$try_asm_modules" != "yes" ; then
18646 gcry_cv_gcc_inline_asm_avx="n/a"
18647 else
18648 gcry_cv_gcc_inline_asm_avx=no
18649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18650 /* end confdefs.h. */
18651 void a(void) {
18652 __asm__("xgetbv; vaesdeclast (%[mem]),%%xmm0,%%xmm7\n\t"::[mem]"r"(0):);
18653 }
18654 int
18655 main (void)
18656 {
18657 a();
18658 ;
18659 return 0;
18660 }
18661 _ACEOF
18662 if ac_fn_c_try_link "$LINENO"
18663 then :
18664 gcry_cv_gcc_inline_asm_avx=yes
18665 fi
18666 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18667 conftest$ac_exeext conftest.$ac_ext
18668 fi
18669 fi
18670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_avx" >&5
18671 printf "%s\n" "$gcry_cv_gcc_inline_asm_avx" >&6; }
18672 if test "$gcry_cv_gcc_inline_asm_avx" = "yes" ; then
18673
18674 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_AVX 1" >>confdefs.h
18675
18676 fi
18677
18678
18679 #
18680 # Check whether GCC inline assembler supports AVX2 instructions
18681 #
18682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports AVX2 instructions" >&5
18683 printf %s "checking whether GCC inline assembler supports AVX2 instructions... " >&6; }
18684 if test ${gcry_cv_gcc_inline_asm_avx2+y}
18685 then :
18686 printf %s "(cached) " >&6
18687 else $as_nop
18688 if test "$mpi_cpu_arch" != "x86" ||
18689 test "$try_asm_modules" != "yes" ; then
18690 gcry_cv_gcc_inline_asm_avx2="n/a"
18691 else
18692 gcry_cv_gcc_inline_asm_avx2=no
18693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18694 /* end confdefs.h. */
18695 void a(void) {
18696 __asm__("xgetbv; vpbroadcastb %%xmm7,%%ymm1\n\t":::"cc");
18697 }
18698 int
18699 main (void)
18700 {
18701 a();
18702 ;
18703 return 0;
18704 }
18705 _ACEOF
18706 if ac_fn_c_try_link "$LINENO"
18707 then :
18708 gcry_cv_gcc_inline_asm_avx2=yes
18709 fi
18710 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18711 conftest$ac_exeext conftest.$ac_ext
18712 fi
18713 fi
18714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_avx2" >&5
18715 printf "%s\n" "$gcry_cv_gcc_inline_asm_avx2" >&6; }
18716 if test "$gcry_cv_gcc_inline_asm_avx2" = "yes" ; then
18717
18718 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_AVX2 1" >>confdefs.h
18719
18720 fi
18721
18722
18723 #
18724 # Check whether GCC inline assembler supports AVX512 instructions
18725 #
18726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports AVX512 instructions" >&5
18727 printf %s "checking whether GCC inline assembler supports AVX512 instructions... " >&6; }
18728 if test ${gcry_cv_gcc_inline_asm_avx512+y}
18729 then :
18730 printf %s "(cached) " >&6
18731 else $as_nop
18732 if test "$mpi_cpu_arch" != "x86" ||
18733 test "$try_asm_modules" != "yes" ; then
18734 gcry_cv_gcc_inline_asm_avx512="n/a"
18735 else
18736 gcry_cv_gcc_inline_asm_avx512=no
18737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18738 /* end confdefs.h. */
18739 void a(void) {
18740 __asm__("xgetbv; vpopcntq %%zmm7, %%zmm1%{%%k1%}%{z%};\n\t":::"cc");
18741 __asm__("vpexpandb %%zmm3, %%zmm1;\n\t":::"cc");
18742 __asm__("vpxorq %%xmm7, %%xmm7, %%xmm7;\n\t":::"cc");
18743 __asm__("vpxorq %%ymm7, %%ymm7, %%ymm7;\n\t":::"cc");
18744 __asm__("vpxorq (%%eax)%{1to8%}, %%zmm7, %%zmm7;\n\t":::"cc");
18745 }
18746 int
18747 main (void)
18748 {
18749 a();
18750 ;
18751 return 0;
18752 }
18753 _ACEOF
18754 if ac_fn_c_try_link "$LINENO"
18755 then :
18756 gcry_cv_gcc_inline_asm_avx512=yes
18757 fi
18758 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18759 conftest$ac_exeext conftest.$ac_ext
18760 fi
18761 fi
18762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_avx512" >&5
18763 printf "%s\n" "$gcry_cv_gcc_inline_asm_avx512" >&6; }
18764 if test "$gcry_cv_gcc_inline_asm_avx512" = "yes" ; then
18765
18766 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_AVX512 1" >>confdefs.h
18767
18768 fi
18769
18770
18771 #
18772 # Check whether GCC inline assembler supports VAES and VPCLMUL instructions
18773 #
18774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports VAES and VPCLMUL instructions" >&5
18775 printf %s "checking whether GCC inline assembler supports VAES and VPCLMUL instructions... " >&6; }
18776 if test ${gcry_cv_gcc_inline_asm_vaes_vpclmul+y}
18777 then :
18778 printf %s "(cached) " >&6
18779 else $as_nop
18780 if test "$mpi_cpu_arch" != "x86" ||
18781 test "$try_asm_modules" != "yes" ; then
18782 gcry_cv_gcc_inline_asm_vaes_vpclmul="n/a"
18783 else
18784 gcry_cv_gcc_inline_asm_vaes_vpclmul=no
18785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18786 /* end confdefs.h. */
18787 void a(void) {
18788 __asm__("vaesenclast %%ymm7,%%ymm7,%%ymm1\n\t":::"cc");/*256-bit*/
18789 __asm__("vaesenclast %%zmm7,%%zmm7,%%zmm1\n\t":::"cc");/*512-bit*/
18790 __asm__("vpclmulqdq \$0,%%ymm7,%%ymm7,%%ymm1\n\t":::"cc");/*256-bit*/
18791 __asm__("vpclmulqdq \$0,%%zmm7,%%zmm7,%%zmm1\n\t":::"cc");/*512-bit*/
18792 }
18793 int
18794 main (void)
18795 {
18796 a();
18797 ;
18798 return 0;
18799 }
18800 _ACEOF
18801 if ac_fn_c_try_link "$LINENO"
18802 then :
18803 gcry_cv_gcc_inline_asm_vaes_vpclmul=yes
18804 fi
18805 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18806 conftest$ac_exeext conftest.$ac_ext
18807 fi
18808 fi
18809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_vaes_vpclmul" >&5
18810 printf "%s\n" "$gcry_cv_gcc_inline_asm_vaes_vpclmul" >&6; }
18811 if test "$gcry_cv_gcc_inline_asm_vaes_vpclmul" = "yes" ; then
18812
18813 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_VAES_VPCLMUL 1" >>confdefs.h
18814
18815 fi
18816
18817
18818 #
18819 # Check whether GCC inline assembler supports GFNI instructions
18820 #
18821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports GFNI instructions" >&5
18822 printf %s "checking whether GCC inline assembler supports GFNI instructions... " >&6; }
18823 if test ${gcry_cv_gcc_inline_asm_gfni+y}
18824 then :
18825 printf %s "(cached) " >&6
18826 else $as_nop
18827 if test "$mpi_cpu_arch" != "x86" ||
18828 test "$try_asm_modules" != "yes" ; then
18829 gcry_cv_gcc_inline_asm_gfni="n/a"
18830 else
18831 gcry_cv_gcc_inline_asm_gfni=no
18832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18833 /* end confdefs.h. */
18834 void a(void) {
18835 __asm__("gf2p8affineqb \$123, %%xmm0, %%xmm0;\n\t":::"cc"); /* SSE */
18836 __asm__("vgf2p8affineinvqb \$234, %%ymm1, %%ymm1, %%ymm1;\n\t":::"cc"); /* AVX */
18837 __asm__("vgf2p8mulb (%%eax), %%zmm2, %%zmm2;\n\t":::"cc"); /* AVX512 */
18838 }
18839 int
18840 main (void)
18841 {
18842 a();
18843 ;
18844 return 0;
18845 }
18846 _ACEOF
18847 if ac_fn_c_try_link "$LINENO"
18848 then :
18849 gcry_cv_gcc_inline_asm_gfni=yes
18850 fi
18851 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18852 conftest$ac_exeext conftest.$ac_ext
18853 fi
18854 fi
18855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_gfni" >&5
18856 printf "%s\n" "$gcry_cv_gcc_inline_asm_gfni" >&6; }
18857 if test "$gcry_cv_gcc_inline_asm_gfni" = "yes" ; then
18858
18859 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_GFNI 1" >>confdefs.h
18860
18861 fi
18862
18863
18864 #
18865 # Check whether GCC inline assembler supports BMI2 instructions
18866 #
18867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports BMI2 instructions" >&5
18868 printf %s "checking whether GCC inline assembler supports BMI2 instructions... " >&6; }
18869 if test ${gcry_cv_gcc_inline_asm_bmi2+y}
18870 then :
18871 printf %s "(cached) " >&6
18872 else $as_nop
18873 if test "$mpi_cpu_arch" != "x86" ||
18874 test "$try_asm_modules" != "yes" ; then
18875 gcry_cv_gcc_inline_asm_bmi2="n/a"
18876 else
18877 gcry_cv_gcc_inline_asm_bmi2=no
18878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18879 /* end confdefs.h. */
18880 unsigned int a(unsigned int x, unsigned int y) {
18881 unsigned int tmp1, tmp2;
18882 asm ("rorxl %2, %1, %0"
18883 : "=r" (tmp1)
18884 : "rm0" (x), "J" (32 - ((23) & 31)));
18885 asm ("andnl %2, %1, %0"
18886 : "=r" (tmp2)
18887 : "r0" (x), "rm" (y));
18888 return tmp1 + tmp2;
18889 }
18890 int
18891 main (void)
18892 {
18893 a(1, 2);
18894 ;
18895 return 0;
18896 }
18897 _ACEOF
18898 if ac_fn_c_try_link "$LINENO"
18899 then :
18900 gcry_cv_gcc_inline_asm_bmi2=yes
18901 fi
18902 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18903 conftest$ac_exeext conftest.$ac_ext
18904 fi
18905 fi
18906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_bmi2" >&5
18907 printf "%s\n" "$gcry_cv_gcc_inline_asm_bmi2" >&6; }
18908 if test "$gcry_cv_gcc_inline_asm_bmi2" = "yes" ; then
18909
18910 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_BMI2 1" >>confdefs.h
18911
18912 fi
18913
18914
18915 #
18916 # Check whether compiler supports x86/AVX512 intrinsics
18917 #
18918 _gcc_cflags_save=$CFLAGS
18919 CFLAGS="$CFLAGS -mavx512f"
18920
18921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports x86/AVX512 intrinsics" >&5
18922 printf %s "checking whether compiler supports x86/AVX512 intrinsics... " >&6; }
18923 if test ${gcry_cv_cc_x86_avx512_intrinsics+y}
18924 then :
18925 printf %s "(cached) " >&6
18926 else $as_nop
18927 if test "$mpi_cpu_arch" != "x86" ||
18928 test "$try_asm_modules" != "yes" ; then
18929 gcry_cv_cc_x86_avx512_intrinsics="n/a"
18930 else
18931 gcry_cv_cc_x86_avx512_intrinsics=no
18932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18933 /* end confdefs.h. */
18934 #include <immintrin.h>
18935 __m512i fn(void *in, __m128i y)
18936 {
18937 __m512i x;
18938 x = _mm512_loadu_epi32 (in); /* check the GCC bug 90980. */
18939 x = _mm512_maskz_loadu_epi32(_cvtu32_mask16(0xfff0), in)
18940 ^ _mm512_castsi128_si512(y);
18941 asm volatile ("vinserti32x4 \$3, %0, %%zmm6, %%zmm6;\n\t"
18942 "vpxord %%zmm6, %%zmm6, %%zmm6"
18943 ::"x"(y),"r"(in):"memory","xmm6");
18944 return x;
18945 }
18946
18947 _ACEOF
18948 if ac_fn_c_try_compile "$LINENO"
18949 then :
18950 gcry_cv_cc_x86_avx512_intrinsics=yes
18951 fi
18952 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18953 fi
18954 fi
18955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_cc_x86_avx512_intrinsics" >&5
18956 printf "%s\n" "$gcry_cv_cc_x86_avx512_intrinsics" >&6; }
18957 if test "$gcry_cv_cc_x86_avx512_intrinsics" = "yes" ; then
18958
18959 printf "%s\n" "#define HAVE_COMPATIBLE_CC_X86_AVX512_INTRINSICS 1" >>confdefs.h
18960
18961 fi
18962
18963 if test "$gcry_cv_cc_x86_avx512_intrinsics" = "yes"; then
18964 ENABLE_X86_AVX512_INTRINSICS_EXTRA_CFLAGS_TRUE=
18965 ENABLE_X86_AVX512_INTRINSICS_EXTRA_CFLAGS_FALSE='#'
18966 else
18967 ENABLE_X86_AVX512_INTRINSICS_EXTRA_CFLAGS_TRUE='#'
18968 ENABLE_X86_AVX512_INTRINSICS_EXTRA_CFLAGS_FALSE=
18969 fi
18970
18971
18972 # Restore flags.
18973 CFLAGS=$_gcc_cflags_save;
18974
18975
18976 #
18977 # Check whether GCC assembler needs "-Wa,--divide" to correctly handle
18978 # constant division
18979 #
18980 if test $amd64_as_feature_detection = yes; then
18981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler handles division correctly" >&5
18982 printf %s "checking whether GCC assembler handles division correctly... " >&6; }
18983 if test ${gcry_cv_gcc_as_const_division_ok+y}
18984 then :
18985 printf %s "(cached) " >&6
18986 else $as_nop
18987 gcry_cv_gcc_as_const_division_ok=no
18988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18989 /* end confdefs.h. */
18990 __asm__(".text\n\tfn:\n\t xorl \$(123456789/12345678), %ebp;\n\t");
18991 void fn(void);
18992 int
18993 main (void)
18994 {
18995 fn();
18996 ;
18997 return 0;
18998 }
18999 _ACEOF
19000 if ac_fn_c_try_link "$LINENO"
19001 then :
19002 gcry_cv_gcc_as_const_division_ok=yes
19003 fi
19004 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19005 conftest$ac_exeext conftest.$ac_ext
19006 fi
19007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_as_const_division_ok" >&5
19008 printf "%s\n" "$gcry_cv_gcc_as_const_division_ok" >&6; }
19009 if test "$gcry_cv_gcc_as_const_division_ok" = "no" ; then
19010 #
19011 # Add '-Wa,--divide' to CPPFLAGS and try check again.
19012 #
19013 _gcc_cppflags_save="$CPPFLAGS"
19014 CPPFLAGS="$CPPFLAGS -Wa,--divide"
19015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler handles division correctly with \"-Wa,--divide\"" >&5
19016 printf %s "checking whether GCC assembler handles division correctly with \"-Wa,--divide\"... " >&6; }
19017 if test ${gcry_cv_gcc_as_const_division_with_wadivide_ok+y}
19018 then :
19019 printf %s "(cached) " >&6
19020 else $as_nop
19021 gcry_cv_gcc_as_const_division_with_wadivide_ok=no
19022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19023 /* end confdefs.h. */
19024 __asm__(".text\n\tfn:\n\t xorl \$(123456789/12345678), %ebp;\n\t");
19025 void fn(void);
19026 int
19027 main (void)
19028 {
19029 fn();
19030 ;
19031 return 0;
19032 }
19033 _ACEOF
19034 if ac_fn_c_try_link "$LINENO"
19035 then :
19036 gcry_cv_gcc_as_const_division_with_wadivide_ok=yes
19037 fi
19038 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19039 conftest$ac_exeext conftest.$ac_ext
19040 fi
19041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_as_const_division_with_wadivide_ok" >&5
19042 printf "%s\n" "$gcry_cv_gcc_as_const_division_with_wadivide_ok" >&6; }
19043 if test "$gcry_cv_gcc_as_const_division_with_wadivide_ok" = "no" ; then
19044 # '-Wa,--divide' did not work, restore old flags.
19045 CPPFLAGS="$_gcc_cppflags_save"
19046 fi
19047 fi
19048 fi
19049
19050
19051 #
19052 # Check whether GCC assembler supports features needed for our i386/amd64
19053 # implementations
19054 #
19055 if test $amd64_as_feature_detection = yes; then
19056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler is compatible for i386/amd64 assembly implementations" >&5
19057 printf %s "checking whether GCC assembler is compatible for i386/amd64 assembly implementations... " >&6; }
19058 if test ${gcry_cv_gcc_x86_platform_as_ok+y}
19059 then :
19060 printf %s "(cached) " >&6
19061 else $as_nop
19062 if test "$mpi_cpu_arch" != "x86" ||
19063 test "$try_asm_modules" != "yes" ; then
19064 gcry_cv_gcc_x86_platform_as_ok="n/a"
19065 else
19066 gcry_cv_gcc_x86_platform_as_ok=no
19067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19068 /* end confdefs.h. */
19069 __asm__(
19070 /* Test if '.type' and '.size' are supported. */
19071 /* These work only on ELF targets. */
19072 ".text\n\t"
19073 "asmfunc:\n\t"
19074 ".size asmfunc,.-asmfunc;\n\t"
19075 ".type asmfunc,@function;\n\t"
19076 /* Test if assembler allows use of '/' for constant division
19077 * (Solaris/x86 issue). If previous constant division check
19078 * and "-Wa,--divide" workaround failed, this causes assembly
19079 * to be disable on this machine. */
19080 "xorl \$(123456789/12345678), %ebp;\n\t"
19081 );
19082 void asmfunc(void);
19083 int
19084 main (void)
19085 {
19086 asmfunc();
19087 ;
19088 return 0;
19089 }
19090 _ACEOF
19091 if ac_fn_c_try_link "$LINENO"
19092 then :
19093 gcry_cv_gcc_x86_platform_as_ok=yes
19094 fi
19095 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19096 conftest$ac_exeext conftest.$ac_ext
19097 fi
19098 fi
19099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_x86_platform_as_ok" >&5
19100 printf "%s\n" "$gcry_cv_gcc_x86_platform_as_ok" >&6; }
19101 if test "$gcry_cv_gcc_x86_platform_as_ok" = "yes" &&
19102 test "$ac_cv_sizeof_unsigned_long" = "8"; then
19103
19104 printf "%s\n" "#define HAVE_COMPATIBLE_GCC_AMD64_PLATFORM_AS 1" >>confdefs.h
19105
19106 fi
19107 if test "$gcry_cv_gcc_x86_platform_as_ok" = "yes" &&
19108 test "$ac_cv_sizeof_unsigned_long" = "4"; then
19109
19110 printf "%s\n" "#define HAVE_COMPATIBLE_GCC_I386_PLATFORM_AS 1" >>confdefs.h
19111
19112 fi
19113 if test "$gcry_cv_gcc_x86_platform_as_ok" = "no" &&
19114 test "$gcry_cv_gcc_attribute_sysv_abi" = "yes" &&
19115 test "$gcry_cv_gcc_default_abi_is_ms_abi" = "yes"; then
19116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler is compatible for WIN64 assembly implementations" >&5
19117 printf %s "checking whether GCC assembler is compatible for WIN64 assembly implementations... " >&6; }
19118 if test ${gcry_cv_gcc_win64_platform_as_ok+y}
19119 then :
19120 printf %s "(cached) " >&6
19121 else $as_nop
19122 gcry_cv_gcc_win64_platform_as_ok=no
19123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19124 /* end confdefs.h. */
19125 __asm__(
19126 ".text\n\t"
19127 ".globl asmfunc\n\t"
19128 "asmfunc:\n\t"
19129 "xorq \$(1234), %rbp;\n\t"
19130 );
19131 void asmfunc(void);
19132 int
19133 main (void)
19134 {
19135 asmfunc();
19136 ;
19137 return 0;
19138 }
19139 _ACEOF
19140 if ac_fn_c_try_link "$LINENO"
19141 then :
19142 gcry_cv_gcc_win64_platform_as_ok=yes
19143 fi
19144 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19145 conftest$ac_exeext conftest.$ac_ext
19146 fi
19147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_win64_platform_as_ok" >&5
19148 printf "%s\n" "$gcry_cv_gcc_win64_platform_as_ok" >&6; }
19149 if test "$gcry_cv_gcc_win64_platform_as_ok" = "yes" ; then
19150
19151 printf "%s\n" "#define HAVE_COMPATIBLE_GCC_WIN64_PLATFORM_AS 1" >>confdefs.h
19152
19153 fi
19154 fi
19155 if test "$gcry_cv_gcc_x86_platform_as_ok" = "no" &&
19156 test "$ac_cv_sizeof_unsigned_long" = "4"; then
19157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler is compatible for WIN32 assembly implementations" >&5
19158 printf %s "checking whether GCC assembler is compatible for WIN32 assembly implementations... " >&6; }
19159 if test ${gcry_cv_gcc_win32_platform_as_ok+y}
19160 then :
19161 printf %s "(cached) " >&6
19162 else $as_nop
19163 gcry_cv_gcc_win32_platform_as_ok=no
19164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19165 /* end confdefs.h. */
19166 __asm__(
19167 ".text\n\t"
19168 ".globl _asmfunc\n\t"
19169 "_asmfunc:\n\t"
19170 "xorl \$(1234), %ebp;\n\t"
19171 );
19172 void asmfunc(void);
19173 int
19174 main (void)
19175 {
19176 asmfunc();
19177 ;
19178 return 0;
19179 }
19180 _ACEOF
19181 if ac_fn_c_try_link "$LINENO"
19182 then :
19183 gcry_cv_gcc_win32_platform_as_ok=yes
19184 fi
19185 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19186 conftest$ac_exeext conftest.$ac_ext
19187 fi
19188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_win32_platform_as_ok" >&5
19189 printf "%s\n" "$gcry_cv_gcc_win32_platform_as_ok" >&6; }
19190 if test "$gcry_cv_gcc_win32_platform_as_ok" = "yes" ; then
19191
19192 printf "%s\n" "#define HAVE_COMPATIBLE_GCC_WIN32_PLATFORM_AS 1" >>confdefs.h
19193
19194 fi
19195 fi
19196 fi
19197
19198
19199 #
19200 # Check whether GCC assembler supports features needed for assembly
19201 # implementations that use Intel syntax
19202 #
19203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler is compatible for Intel syntax assembly implementations" >&5
19204 printf %s "checking whether GCC assembler is compatible for Intel syntax assembly implementations... " >&6; }
19205 if test ${gcry_cv_gcc_platform_as_ok_for_intel_syntax+y}
19206 then :
19207 printf %s "(cached) " >&6
19208 else $as_nop
19209 if test "$mpi_cpu_arch" != "x86" ||
19210 test "$try_asm_modules" != "yes" ; then
19211 gcry_cv_gcc_platform_as_ok_for_intel_syntax="n/a"
19212 else
19213 gcry_cv_gcc_platform_as_ok_for_intel_syntax=no
19214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19215 /* end confdefs.h. */
19216 __asm__(
19217 ".intel_syntax noprefix\n\t"
19218 ".text\n\t"
19219 "actest:\n\t"
19220 "pxor xmm1, xmm7;\n\t"
19221 "vperm2i128 ymm2, ymm3, ymm0, 1;\n\t"
19222 "add eax, ebp;\n\t"
19223 "rorx eax, ebp, 1;\n\t"
19224 "sub eax, [esp + 4];\n\t"
19225 "add dword ptr [esp + eax], 0b10101;\n\t"
19226 ".att_syntax prefix\n\t"
19227 );
19228 void actest(void);
19229 int
19230 main (void)
19231 {
19232 actest();
19233 ;
19234 return 0;
19235 }
19236 _ACEOF
19237 if ac_fn_c_try_link "$LINENO"
19238 then :
19239 gcry_cv_gcc_platform_as_ok_for_intel_syntax=yes
19240 fi
19241 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19242 conftest$ac_exeext conftest.$ac_ext
19243 fi
19244 fi
19245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_platform_as_ok_for_intel_syntax" >&5
19246 printf "%s\n" "$gcry_cv_gcc_platform_as_ok_for_intel_syntax" >&6; }
19247 if test "$gcry_cv_gcc_platform_as_ok_for_intel_syntax" = "yes" ; then
19248
19249 printf "%s\n" "#define HAVE_INTEL_SYNTAX_PLATFORM_AS 1" >>confdefs.h
19250
19251 fi
19252
19253
19254 #
19255 # Check whether compiler is configured for ARMv6 or newer architecture
19256 #
19257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler is configured for ARMv6 or newer architecture" >&5
19258 printf %s "checking whether compiler is configured for ARMv6 or newer architecture... " >&6; }
19259 if test ${gcry_cv_cc_arm_arch_is_v6+y}
19260 then :
19261 printf %s "(cached) " >&6
19262 else $as_nop
19263 if test "$mpi_cpu_arch" != "arm" ||
19264 test "$try_asm_modules" != "yes" ; then
19265 gcry_cv_cc_arm_arch_is_v6="n/a"
19266 else
19267 gcry_cv_cc_arm_arch_is_v6=no
19268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19269 /* end confdefs.h. */
19270
19271 #if defined(__arm__) && \
19272 ((defined(__ARM_ARCH) && __ARM_ARCH >= 6) \
19273 || defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) \
19274 || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__) \
19275 || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6T2__) \
19276 || defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) \
19277 || defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__) \
19278 || defined(__ARM_ARCH_7EM__))
19279 /* empty */
19280 #else
19281 /* fail compile if not ARMv6. */
19282 not_armv6 not_armv6 = (not_armv6)not_armv6;
19283 #endif
19284
19285 _ACEOF
19286 if ac_fn_c_try_compile "$LINENO"
19287 then :
19288 gcry_cv_cc_arm_arch_is_v6=yes
19289 fi
19290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19291 fi
19292 fi
19293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_cc_arm_arch_is_v6" >&5
19294 printf "%s\n" "$gcry_cv_cc_arm_arch_is_v6" >&6; }
19295 if test "$gcry_cv_cc_arm_arch_is_v6" = "yes" ; then
19296
19297 printf "%s\n" "#define HAVE_ARM_ARCH_V6 1" >>confdefs.h
19298
19299 fi
19300
19301
19302 #
19303 # Check whether GCC inline assembler supports NEON instructions
19304 #
19305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports NEON instructions" >&5
19306 printf %s "checking whether GCC inline assembler supports NEON instructions... " >&6; }
19307 if test ${gcry_cv_gcc_inline_asm_neon+y}
19308 then :
19309 printf %s "(cached) " >&6
19310 else $as_nop
19311 if test "$mpi_cpu_arch" != "arm" ||
19312 test "$try_asm_modules" != "yes" ; then
19313 gcry_cv_gcc_inline_asm_neon="n/a"
19314 else
19315 gcry_cv_gcc_inline_asm_neon=no
19316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19317 /* end confdefs.h. */
19318 __asm__(
19319 ".syntax unified\n\t"
19320 ".arm\n\t"
19321 ".fpu neon\n\t"
19322 ".text\n\t"
19323 "testfn:\n\t"
19324 "vld1.64 {q0-q1}, [r0]!;\n\t"
19325 "vrev64.8 q0, q3;\n\t"
19326 "vadd.u64 q0, q1;\n\t"
19327 "vadd.s64 d3, d2, d3;\n\t"
19328 );
19329 void testfn(void);
19330
19331 int
19332 main (void)
19333 {
19334 testfn();
19335 ;
19336 return 0;
19337 }
19338 _ACEOF
19339 if ac_fn_c_try_link "$LINENO"
19340 then :
19341 gcry_cv_gcc_inline_asm_neon=yes
19342 fi
19343 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19344 conftest$ac_exeext conftest.$ac_ext
19345 fi
19346 fi
19347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_neon" >&5
19348 printf "%s\n" "$gcry_cv_gcc_inline_asm_neon" >&6; }
19349 if test "$gcry_cv_gcc_inline_asm_neon" = "yes" ; then
19350
19351 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_NEON 1" >>confdefs.h
19352
19353 fi
19354
19355
19356 #
19357 # Check whether GCC inline assembler supports AArch32 Crypto Extension instructions
19358 #
19359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports AArch32 Crypto Extension instructions" >&5
19360 printf %s "checking whether GCC inline assembler supports AArch32 Crypto Extension instructions... " >&6; }
19361 if test ${gcry_cv_gcc_inline_asm_aarch32_crypto+y}
19362 then :
19363 printf %s "(cached) " >&6
19364 else $as_nop
19365 if test "$mpi_cpu_arch" != "arm" ||
19366 test "$try_asm_modules" != "yes" ; then
19367 gcry_cv_gcc_inline_asm_aarch32_crypto="n/a"
19368 else
19369 gcry_cv_gcc_inline_asm_aarch32_crypto=no
19370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19371 /* end confdefs.h. */
19372 __asm__(
19373 ".syntax unified\n\t"
19374 ".arch armv8-a\n\t"
19375 ".arm\n\t"
19376 ".fpu crypto-neon-fp-armv8\n\t"
19377 ".text\n\t"
19378
19379 "testfn:\n\t"
19380 "sha1h.32 q0, q0;\n\t"
19381 "sha1c.32 q0, q0, q0;\n\t"
19382 "sha1p.32 q0, q0, q0;\n\t"
19383 "sha1su0.32 q0, q0, q0;\n\t"
19384 "sha1su1.32 q0, q0;\n\t"
19385
19386 "sha256h.32 q0, q0, q0;\n\t"
19387 "sha256h2.32 q0, q0, q0;\n\t"
19388 "sha1p.32 q0, q0, q0;\n\t"
19389 "sha256su0.32 q0, q0;\n\t"
19390 "sha256su1.32 q0, q0, q15;\n\t"
19391
19392 "aese.8 q0, q0;\n\t"
19393 "aesd.8 q0, q0;\n\t"
19394 "aesmc.8 q0, q0;\n\t"
19395 "aesimc.8 q0, q0;\n\t"
19396
19397 "vmull.p64 q0, d0, d0;\n\t"
19398 );
19399 void testfn(void);
19400
19401 int
19402 main (void)
19403 {
19404 testfn();
19405 ;
19406 return 0;
19407 }
19408 _ACEOF
19409 if ac_fn_c_try_link "$LINENO"
19410 then :
19411 gcry_cv_gcc_inline_asm_aarch32_crypto=yes
19412 fi
19413 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19414 conftest$ac_exeext conftest.$ac_ext
19415 fi
19416 fi
19417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_aarch32_crypto" >&5
19418 printf "%s\n" "$gcry_cv_gcc_inline_asm_aarch32_crypto" >&6; }
19419 if test "$gcry_cv_gcc_inline_asm_aarch32_crypto" = "yes" ; then
19420
19421 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_AARCH32_CRYPTO 1" >>confdefs.h
19422
19423 fi
19424
19425
19426 #
19427 # Check whether GCC inline assembler supports AArch64 NEON instructions
19428 #
19429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports AArch64 NEON instructions" >&5
19430 printf %s "checking whether GCC inline assembler supports AArch64 NEON instructions... " >&6; }
19431 if test ${gcry_cv_gcc_inline_asm_aarch64_neon+y}
19432 then :
19433 printf %s "(cached) " >&6
19434 else $as_nop
19435 if test "$mpi_cpu_arch" != "aarch64" ||
19436 test "$try_asm_modules" != "yes" ; then
19437 gcry_cv_gcc_inline_asm_aarch64_neon="n/a"
19438 else
19439 gcry_cv_gcc_inline_asm_aarch64_neon=no
19440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19441 /* end confdefs.h. */
19442 __asm__(
19443 ".cpu generic+simd\n\t"
19444 ".text\n\t"
19445 "testfn:\n\t"
19446 "mov w0, \#42;\n\t"
19447 "dup v0.8b, w0;\n\t"
19448 "ld4 {v0.8b,v1.8b,v2.8b,v3.8b},[x0],\#32;\n\t"
19449 );
19450 void testfn(void);
19451
19452 int
19453 main (void)
19454 {
19455 testfn();
19456 ;
19457 return 0;
19458 }
19459 _ACEOF
19460 if ac_fn_c_try_link "$LINENO"
19461 then :
19462 gcry_cv_gcc_inline_asm_aarch64_neon=yes
19463 fi
19464 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19465 conftest$ac_exeext conftest.$ac_ext
19466 fi
19467 fi
19468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_aarch64_neon" >&5
19469 printf "%s\n" "$gcry_cv_gcc_inline_asm_aarch64_neon" >&6; }
19470 if test "$gcry_cv_gcc_inline_asm_aarch64_neon" = "yes" ; then
19471
19472 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_AARCH64_NEON 1" >>confdefs.h
19473
19474 fi
19475
19476
19477 #
19478 # Check whether GCC inline assembler supports AArch64 Crypto Extension instructions
19479 #
19480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports AArch64 Crypto Extension instructions" >&5
19481 printf %s "checking whether GCC inline assembler supports AArch64 Crypto Extension instructions... " >&6; }
19482 if test ${gcry_cv_gcc_inline_asm_aarch64_crypto+y}
19483 then :
19484 printf %s "(cached) " >&6
19485 else $as_nop
19486 if test "$mpi_cpu_arch" != "aarch64" ||
19487 test "$try_asm_modules" != "yes" ; then
19488 gcry_cv_gcc_inline_asm_aarch64_crypto="n/a"
19489 else
19490 gcry_cv_gcc_inline_asm_aarch64_crypto=no
19491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19492 /* end confdefs.h. */
19493 __asm__(
19494 ".cpu generic+simd+crypto\n\t"
19495 ".text\n\t"
19496 "testfn:\n\t"
19497 "mov w0, \#42;\n\t"
19498 "dup v0.8b, w0;\n\t"
19499 "ld4 {v0.8b,v1.8b,v2.8b,v3.8b},[x0],\#32;\n\t"
19500
19501 "sha1h s0, s0;\n\t"
19502 "sha1c q0, s0, v0.4s;\n\t"
19503 "sha1p q0, s0, v0.4s;\n\t"
19504 "sha1su0 v0.4s, v0.4s, v0.4s;\n\t"
19505 "sha1su1 v0.4s, v0.4s;\n\t"
19506
19507 "sha256h q0, q0, v0.4s;\n\t"
19508 "sha256h2 q0, q0, v0.4s;\n\t"
19509 "sha1p q0, s0, v0.4s;\n\t"
19510 "sha256su0 v0.4s, v0.4s;\n\t"
19511 "sha256su1 v0.4s, v0.4s, v31.4s;\n\t"
19512
19513 "aese v0.16b, v0.16b;\n\t"
19514 "aesd v0.16b, v0.16b;\n\t"
19515 "aesmc v0.16b, v0.16b;\n\t"
19516 "aesimc v0.16b, v0.16b;\n\t"
19517
19518 "pmull v0.1q, v0.1d, v31.1d;\n\t"
19519 "pmull2 v0.1q, v0.2d, v31.2d;\n\t"
19520 );
19521 void testfn(void);
19522
19523 int
19524 main (void)
19525 {
19526 testfn();
19527 ;
19528 return 0;
19529 }
19530 _ACEOF
19531 if ac_fn_c_try_link "$LINENO"
19532 then :
19533 gcry_cv_gcc_inline_asm_aarch64_crypto=yes
19534 fi
19535 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19536 conftest$ac_exeext conftest.$ac_ext
19537 fi
19538 fi
19539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_aarch64_crypto" >&5
19540 printf "%s\n" "$gcry_cv_gcc_inline_asm_aarch64_crypto" >&6; }
19541 if test "$gcry_cv_gcc_inline_asm_aarch64_crypto" = "yes" ; then
19542
19543 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_AARCH64_CRYPTO 1" >>confdefs.h
19544
19545 fi
19546
19547
19548 #
19549 # Check whether GCC inline assembler supports AArch64 SVE instructions
19550 #
19551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports AArch64 SVE instructions" >&5
19552 printf %s "checking whether GCC inline assembler supports AArch64 SVE instructions... " >&6; }
19553 if test ${gcry_cv_gcc_inline_asm_aarch64_sve+y}
19554 then :
19555 printf %s "(cached) " >&6
19556 else $as_nop
19557 if test "$mpi_cpu_arch" != "aarch64" ||
19558 test "$try_asm_modules" != "yes" ; then
19559 gcry_cv_gcc_inline_asm_aarch64_sve="n/a"
19560 else
19561 gcry_cv_gcc_inline_asm_aarch64_sve=no
19562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19563 /* end confdefs.h. */
19564 __asm__(
19565 ".cpu generic+simd+sve\n\t"
19566 ".text\n\t"
19567 "testfn:\n\t"
19568 "mov x0, \#60;\n\t"
19569 "whilelo p0.s, xzr, x0;\n\t"
19570 "mov z0.s, p0/z, \#55;\n\t"
19571 "ld1b {z0.b}, p0/z, [x1];\n\t"
19572 );
19573 void testfn(void);
19574
19575 int
19576 main (void)
19577 {
19578 testfn();
19579 ;
19580 return 0;
19581 }
19582 _ACEOF
19583 if ac_fn_c_try_link "$LINENO"
19584 then :
19585 gcry_cv_gcc_inline_asm_aarch64_sve=yes
19586 fi
19587 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19588 conftest$ac_exeext conftest.$ac_ext
19589 fi
19590 fi
19591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_aarch64_sve" >&5
19592 printf "%s\n" "$gcry_cv_gcc_inline_asm_aarch64_sve" >&6; }
19593 if test "$gcry_cv_gcc_inline_asm_aarch64_sve" = "yes" ; then
19594
19595 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_AARCH64_SVE 1" >>confdefs.h
19596
19597 fi
19598
19599
19600 #
19601 # Check whether GCC inline assembler supports AArch64 SVE2 instructions
19602 #
19603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports AArch64 SVE2 instructions" >&5
19604 printf %s "checking whether GCC inline assembler supports AArch64 SVE2 instructions... " >&6; }
19605 if test ${gcry_cv_gcc_inline_asm_aarch64_sve2+y}
19606 then :
19607 printf %s "(cached) " >&6
19608 else $as_nop
19609 if test "$mpi_cpu_arch" != "aarch64" ||
19610 test "$try_asm_modules" != "yes" ; then
19611 gcry_cv_gcc_inline_asm_aarch64_sve2="n/a"
19612 else
19613 gcry_cv_gcc_inline_asm_aarch64_sve2=no
19614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19615 /* end confdefs.h. */
19616 __asm__(
19617 ".cpu generic+simd+sve2\n\t"
19618 ".text\n\t"
19619 "testfn:\n\t"
19620 ";\n\t"
19621 "eor3 z0.d, z0.d, z1.d, z2.d;\n\t"
19622 "ext z8.b, {z20.b, z21.b}, \#3;\n\t"
19623 "adclt z0.d, z1.d, z2.d;\n\t"
19624 "tbl z0.b, {z8.b, z9.b}, z1.b;\n\t"
19625 "addhnb z16.s, z17.d, z18.d;\n\t"
19626 "mov z0.s, p0/z, \#55;\n\t"
19627 "ld1b {z0.b}, p0/z, [x1];\n\t"
19628 );
19629 void testfn(void);
19630
19631 int
19632 main (void)
19633 {
19634 testfn();
19635 ;
19636 return 0;
19637 }
19638 _ACEOF
19639 if ac_fn_c_try_link "$LINENO"
19640 then :
19641 gcry_cv_gcc_inline_asm_aarch64_sve2=yes
19642 fi
19643 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19644 conftest$ac_exeext conftest.$ac_ext
19645 fi
19646 fi
19647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_aarch64_sve2" >&5
19648 printf "%s\n" "$gcry_cv_gcc_inline_asm_aarch64_sve2" >&6; }
19649 if test "$gcry_cv_gcc_inline_asm_aarch64_sve2" = "yes" ; then
19650
19651 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_AARCH64_SVE2 1" >>confdefs.h
19652
19653 fi
19654
19655
19656 #
19657 # Check whether GCC inline assembler supports AArch64 SHA3/SHA512/SM3/SM4 instructions
19658 #
19659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports AArch64 SHA3/SHA512/SM3/SM4 instructions" >&5
19660 printf %s "checking whether GCC inline assembler supports AArch64 SHA3/SHA512/SM3/SM4 instructions... " >&6; }
19661 if test ${gcry_cv_gcc_inline_asm_aarch64_sha3_sha512_sm3_sm4+y}
19662 then :
19663 printf %s "(cached) " >&6
19664 else $as_nop
19665 if test "$mpi_cpu_arch" != "aarch64" ||
19666 test "$try_asm_modules" != "yes" ; then
19667 gcry_cv_gcc_inline_asm_aarch64_sha3_sha512_sm3_sm4="n/a"
19668 else
19669 gcry_cv_gcc_inline_asm_aarch64_sha3_sha512_sm3_sm4=no
19670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19671 /* end confdefs.h. */
19672 __asm__(
19673 ".arch armv8.2-a+sha3+sm4\n\t"
19674 ".text\n\t"
19675 "testfn:\n\t"
19676
19677 /* Test for SHA512 instructions */
19678 "sha512h q0, q0, v0.2d;\n\t"
19679 "sha512h2 q0, q0, v0.2d;\n\t"
19680 "sha512su0 v0.2d, v0.2d;\n\t"
19681 "sha512su1 v0.2d, v0.2d, v31.2d;\n\t"
19682
19683 /* Test for SHA3 instructions */
19684 "bcax v0.16b, v1.16b, v2.16b, v3.16b;\n\t"
19685 "eor3 v0.16b, v1.16b, v2.16b, v3.16b;\n\t"
19686 "rax1 v0.2d, v1.2d, v2.2d;\n\t"
19687 "xar v0.2d, v1.2d, v2.2d, \#1;\n\t"
19688
19689 /* Test for SM3 instructions */
19690 "sm3partw1 v0.4s, v1.4s, v2.4s;\n\t"
19691 "sm3partw2 v0.4s, v1.4s, v2.4s;\n\t"
19692 "sm3ss1 v0.4s, v1.4s, v2.4s, v3.4s;\n\t"
19693 "sm3tt1a v0.4s, v1.4s, v2.s[0];\n\t"
19694 "sm3tt1b v0.4s, v1.4s, v2.s[0];\n\t"
19695 "sm3tt2a v0.4s, v1.4s, v2.s[0];\n\t"
19696 "sm3tt2b v0.4s, v1.4s, v2.s[0];\n\t"
19697
19698 /* Test for SM4 instructions */
19699 "sm4e v0.4s, v1.4s;\n\t"
19700 "sm4ekey v0.4s, v1.4s, v2.4s;\n\t"
19701 );
19702 void testfn(void);
19703
19704 int
19705 main (void)
19706 {
19707 testfn();
19708 ;
19709 return 0;
19710 }
19711 _ACEOF
19712 if ac_fn_c_try_link "$LINENO"
19713 then :
19714 gcry_cv_gcc_inline_asm_aarch64_sha3_sha512_sm3_sm4=yes
19715 fi
19716 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19717 conftest$ac_exeext conftest.$ac_ext
19718 fi
19719 fi
19720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_aarch64_sha3_sha512_sm3_sm4" >&5
19721 printf "%s\n" "$gcry_cv_gcc_inline_asm_aarch64_sha3_sha512_sm3_sm4" >&6; }
19722 if test "$gcry_cv_gcc_inline_asm_aarch64_sha3_sha512_sm3_sm4" = "yes" ; then
19723
19724 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_AARCH64_SHA3_SHA512_SM3_SM4 1" >>confdefs.h
19725
19726 fi
19727
19728
19729 #
19730 # Check whether compiler supports AArch64/NEON/crypto intrinsics
19731 #
19732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports AArch64/NEON/crypto intrinsics" >&5
19733 printf %s "checking whether compiler supports AArch64/NEON/crypto intrinsics... " >&6; }
19734 if test ${gcry_cv_cc_aarch64_neon_intrinsics+y}
19735 then :
19736 printf %s "(cached) " >&6
19737 else $as_nop
19738 if test "$mpi_cpu_arch" != "aarch64" ||
19739 test "$try_asm_modules" != "yes" ; then
19740 gcry_cv_cc_aarch64_neon_intrinsics="n/a"
19741 else
19742 gcry_cv_cc_aarch64_neon_intrinsics=no
19743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19744 /* end confdefs.h. */
19745 #include <arm_neon.h>
19746 #define __m128i uint64x2_t
19747 #define vpsrldq128(s, a, o) \
19748 ({ uint64x2_t __tmp = { 0, 0 }; \
19749 o = (__m128i)vextq_u8((uint8x16_t)a, \
19750 (uint8x16_t)__tmp, (s) & 15); })
19751 #define vaesenclast128(a, b, o) \
19752 (o = (__m128i)vaeseq_u8((uint8x16_t)b, (uint8x16_t)a))
19753 #define memory_barrier_with_vec(a) __asm__("" : "+w"(a) :: "memory")
19754 static inline __attribute__((always_inline)) __m128i
19755 fn2(__m128i a)
19756 {
19757 vpsrldq128(2, a, a);
19758 return a;
19759 }
19760 __m128i fn(__m128i in)
19761 {
19762 __m128i x;
19763 memory_barrier_with_vec(in);
19764 x = fn2(in);
19765 memory_barrier_with_vec(x);
19766 vaesenclast128(in, x, in);
19767 memory_barrier_with_vec(in);
19768 return in;
19769 }
19770
19771 _ACEOF
19772 if ac_fn_c_try_compile "$LINENO"
19773 then :
19774 gcry_cv_cc_aarch64_neon_intrinsics=yes
19775 fi
19776 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19777 fi
19778 fi
19779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_cc_aarch64_neon_intrinsics" >&5
19780 printf "%s\n" "$gcry_cv_cc_aarch64_neon_intrinsics" >&6; }
19781 if test "$gcry_cv_cc_aarch64_neon_intrinsics" = "yes" ; then
19782
19783 printf "%s\n" "#define HAVE_COMPATIBLE_CC_AARCH64_NEON_INTRINSICS 1" >>confdefs.h
19784
19785 fi
19786
19787 _gcc_cflags_save=$CFLAGS
19788 CFLAGS="$CFLAGS -O2 -march=armv8-a+crypto"
19789
19790 if test "$gcry_cv_cc_aarch64_neon_intrinsics" = "no" &&
19791 test "$mpi_cpu_arch" = "aarch64" &&
19792 test "$try_asm_modules" = "yes" ; then
19793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports AArch64/NEON/crypto intrinsics with extra GCC flags" >&5
19794 printf %s "checking whether compiler supports AArch64/NEON/crypto intrinsics with extra GCC flags... " >&6; }
19795 if test ${gcry_cv_cc_aarch64_neon_intrinsics_cflags+y}
19796 then :
19797 printf %s "(cached) " >&6
19798 else $as_nop
19799 gcry_cv_cc_aarch64_neon_intrinsics_cflags=no
19800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19801 /* end confdefs.h. */
19802 #include <arm_neon.h>
19803 #define __m128i uint64x2_t
19804 #define vpsrldq128(s, a, o) \
19805 ({ uint64x2_t __tmp = { 0, 0 }; \
19806 o = (__m128i)vextq_u8((uint8x16_t)a, \
19807 (uint8x16_t)__tmp, (s) & 15); })
19808 #define vaesenclast128(a, b, o) \
19809 (o = (__m128i)vaeseq_u8((uint8x16_t)b, (uint8x16_t)a))
19810 #define memory_barrier_with_vec(a) __asm__("" : "+w"(a) :: "memory")
19811 static inline __attribute__((always_inline)) __m128i
19812 fn2(__m128i a)
19813 {
19814 vpsrldq128(2, a, a);
19815 return a;
19816 }
19817 __m128i fn(__m128i in)
19818 {
19819 __m128i x;
19820 memory_barrier_with_vec(in);
19821 x = fn2(in);
19822 memory_barrier_with_vec(x);
19823 vaesenclast128(in, x, in);
19824 memory_barrier_with_vec(in);
19825 return in;
19826 }
19827
19828 _ACEOF
19829 if ac_fn_c_try_compile "$LINENO"
19830 then :
19831 gcry_cv_cc_aarch64_neon_intrinsics_cflags=yes
19832 fi
19833 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19834 fi
19835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_cc_aarch64_neon_intrinsics_cflags" >&5
19836 printf "%s\n" "$gcry_cv_cc_aarch64_neon_intrinsics_cflags" >&6; }
19837 if test "$gcry_cv_cc_aarch64_neon_intrinsics_cflags" = "yes" ; then
19838
19839 printf "%s\n" "#define HAVE_COMPATIBLE_CC_AARCH64_NEON_INTRINSICS 1" >>confdefs.h
19840
19841
19842 printf "%s\n" "#define HAVE_COMPATIBLE_CC_AARCH64_NEON_INTRINSICS_WITH_CFLAGS 1" >>confdefs.h
19843
19844 fi
19845 fi
19846
19847 if test "$gcry_cv_cc_aarch64_neon_intrinsics_cflags" = "yes"; then
19848 ENABLE_AARCH64_NEON_INTRINSICS_EXTRA_CFLAGS_TRUE=
19849 ENABLE_AARCH64_NEON_INTRINSICS_EXTRA_CFLAGS_FALSE='#'
19850 else
19851 ENABLE_AARCH64_NEON_INTRINSICS_EXTRA_CFLAGS_TRUE='#'
19852 ENABLE_AARCH64_NEON_INTRINSICS_EXTRA_CFLAGS_FALSE=
19853 fi
19854
19855
19856 # Restore flags.
19857 CFLAGS=$_gcc_cflags_save;
19858
19859
19860 #
19861 # Check whether compiler supports PowerPC AltiVec/VSX intrinsics
19862 #
19863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports PowerPC AltiVec/VSX/crypto intrinsics" >&5
19864 printf %s "checking whether compiler supports PowerPC AltiVec/VSX/crypto intrinsics... " >&6; }
19865 if test ${gcry_cv_cc_ppc_altivec+y}
19866 then :
19867 printf %s "(cached) " >&6
19868 else $as_nop
19869 if test "$mpi_cpu_arch" != "ppc" ||
19870 test "$try_asm_modules" != "yes" ; then
19871 gcry_cv_cc_ppc_altivec="n/a"
19872 else
19873 gcry_cv_cc_ppc_altivec=no
19874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19875 /* end confdefs.h. */
19876 #include <altivec.h>
19877 typedef vector unsigned char block;
19878 typedef vector unsigned int vecu32;
19879 static inline __attribute__((always_inline)) vecu32
19880 vec_sld_u32(vecu32 a, vecu32 b, unsigned int idx)
19881 {
19882 return vec_sld (a, b, (4 * idx) & 15);
19883 }
19884 block fn(block in)
19885 {
19886 block t = vec_perm (in, in, vec_vsx_ld (0, (unsigned char*)0));
19887 vecu32 y = vec_vsx_ld (0, (unsigned int*)0);
19888 y = vec_sld_u32 (y, y, 3);
19889 return vec_cipher_be (t, in) ^ (block)y;
19890 }
19891
19892 _ACEOF
19893 if ac_fn_c_try_compile "$LINENO"
19894 then :
19895 gcry_cv_cc_ppc_altivec=yes
19896 fi
19897 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19898 fi
19899 fi
19900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_cc_ppc_altivec" >&5
19901 printf "%s\n" "$gcry_cv_cc_ppc_altivec" >&6; }
19902 if test "$gcry_cv_cc_ppc_altivec" = "yes" ; then
19903
19904 printf "%s\n" "#define HAVE_COMPATIBLE_CC_PPC_ALTIVEC 1" >>confdefs.h
19905
19906 fi
19907
19908 _gcc_cflags_save=$CFLAGS
19909 CFLAGS="$CFLAGS -O2 -maltivec -mvsx -mcrypto"
19910
19911 if test "$gcry_cv_cc_ppc_altivec" = "no" &&
19912 test "$mpi_cpu_arch" = "ppc" &&
19913 test "$try_asm_modules" = "yes" ; then
19914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports PowerPC AltiVec/VSX/crypto intrinsics with extra GCC flags" >&5
19915 printf %s "checking whether compiler supports PowerPC AltiVec/VSX/crypto intrinsics with extra GCC flags... " >&6; }
19916 if test ${gcry_cv_cc_ppc_altivec_cflags+y}
19917 then :
19918 printf %s "(cached) " >&6
19919 else $as_nop
19920 gcry_cv_cc_ppc_altivec_cflags=no
19921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19922 /* end confdefs.h. */
19923 #include <altivec.h>
19924 typedef vector unsigned char block;
19925 typedef vector unsigned int vecu32;
19926 static inline __attribute__((always_inline)) vecu32
19927 vec_sld_u32(vecu32 a, vecu32 b, unsigned int idx)
19928 {
19929 return vec_sld (a, b, (4 * idx) & 15);
19930 }
19931 block fn(block in)
19932 {
19933 block t = vec_perm (in, in, vec_vsx_ld (0, (unsigned char*)0));
19934 vecu32 y = vec_vsx_ld (0, (unsigned int*)0);
19935 y = vec_sld_u32 (y, y, 3);
19936 return vec_cipher_be (t, in) ^ (block)y;
19937 }
19938
19939 _ACEOF
19940 if ac_fn_c_try_compile "$LINENO"
19941 then :
19942 gcry_cv_cc_ppc_altivec_cflags=yes
19943 fi
19944 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19945 fi
19946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_cc_ppc_altivec_cflags" >&5
19947 printf "%s\n" "$gcry_cv_cc_ppc_altivec_cflags" >&6; }
19948 if test "$gcry_cv_cc_ppc_altivec_cflags" = "yes" ; then
19949
19950 printf "%s\n" "#define HAVE_COMPATIBLE_CC_PPC_ALTIVEC 1" >>confdefs.h
19951
19952
19953 printf "%s\n" "#define HAVE_COMPATIBLE_CC_PPC_ALTIVEC_WITH_CFLAGS 1" >>confdefs.h
19954
19955 fi
19956 fi
19957
19958 if test "$gcry_cv_cc_ppc_altivec_cflags" = "yes"; then
19959 ENABLE_PPC_VCRYPTO_EXTRA_CFLAGS_TRUE=
19960 ENABLE_PPC_VCRYPTO_EXTRA_CFLAGS_FALSE='#'
19961 else
19962 ENABLE_PPC_VCRYPTO_EXTRA_CFLAGS_TRUE='#'
19963 ENABLE_PPC_VCRYPTO_EXTRA_CFLAGS_FALSE=
19964 fi
19965
19966
19967 # Restore flags.
19968 CFLAGS=$_gcc_cflags_save;
19969
19970
19971 #
19972 # Check whether GCC inline assembler supports PowerPC AltiVec/VSX/crypto instructions
19973 #
19974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports PowerPC AltiVec/VSX/crypto instructions" >&5
19975 printf %s "checking whether GCC inline assembler supports PowerPC AltiVec/VSX/crypto instructions... " >&6; }
19976 if test ${gcry_cv_gcc_inline_asm_ppc_altivec+y}
19977 then :
19978 printf %s "(cached) " >&6
19979 else $as_nop
19980 if test "$mpi_cpu_arch" != "ppc" ||
19981 test "$try_asm_modules" != "yes" ; then
19982 gcry_cv_gcc_inline_asm_ppc_altivec="n/a"
19983 else
19984 gcry_cv_gcc_inline_asm_ppc_altivec=no
19985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19986 /* end confdefs.h. */
19987 __asm__(".globl testfn;\n"
19988 ".text\n\t"
19989 "testfn:\n"
19990 "stvx %v31,%r12,%r0;\n"
19991 "lvx %v20,%r12,%r0;\n"
19992 "vcipher %v0, %v1, %v22;\n"
19993 "lxvw4x %vs32, %r0, %r1;\n"
19994 "vadduwm %v0, %v1, %v22;\n"
19995 "vshasigmaw %v0, %v1, 0, 15;\n"
19996 "vshasigmad %v0, %v1, 0, 15;\n"
19997 "vpmsumd %v11, %v11, %v11;\n"
19998 );
19999 void testfn(void);
20000
20001 int
20002 main (void)
20003 {
20004 testfn();
20005 ;
20006 return 0;
20007 }
20008 _ACEOF
20009 if ac_fn_c_try_link "$LINENO"
20010 then :
20011 gcry_cv_gcc_inline_asm_ppc_altivec=yes
20012 fi
20013 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20014 conftest$ac_exeext conftest.$ac_ext
20015 fi
20016 fi
20017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_ppc_altivec" >&5
20018 printf "%s\n" "$gcry_cv_gcc_inline_asm_ppc_altivec" >&6; }
20019 if test "$gcry_cv_gcc_inline_asm_ppc_altivec" = "yes" ; then
20020
20021 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_PPC_ALTIVEC 1" >>confdefs.h
20022
20023 fi
20024
20025
20026 #
20027 # Check whether GCC inline assembler supports PowerISA 3.00 instructions
20028 #
20029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports PowerISA 3.00 instructions" >&5
20030 printf %s "checking whether GCC inline assembler supports PowerISA 3.00 instructions... " >&6; }
20031 if test ${gcry_cv_gcc_inline_asm_ppc_arch_3_00+y}
20032 then :
20033 printf %s "(cached) " >&6
20034 else $as_nop
20035 if test "$mpi_cpu_arch" != "ppc" ||
20036 test "$try_asm_modules" != "yes" ; then
20037 gcry_cv_gcc_inline_asm_ppc_arch_3_00="n/a"
20038 else
20039 gcry_cv_gcc_inline_asm_ppc_arch_3_00=no
20040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20041 /* end confdefs.h. */
20042 __asm__(".text\n\t"
20043 ".globl testfn;\n"
20044 "testfn:\n"
20045 "stxvb16x %r1,%v12,%v30;\n"
20046 );
20047 void testfn(void);
20048
20049 int
20050 main (void)
20051 {
20052 testfn();
20053 ;
20054 return 0;
20055 }
20056 _ACEOF
20057 if ac_fn_c_try_link "$LINENO"
20058 then :
20059 gcry_cv_gcc_inline_asm_ppc_arch_3_00=yes
20060 fi
20061 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20062 conftest$ac_exeext conftest.$ac_ext
20063 fi
20064 fi
20065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_ppc_arch_3_00" >&5
20066 printf "%s\n" "$gcry_cv_gcc_inline_asm_ppc_arch_3_00" >&6; }
20067 if test "$gcry_cv_gcc_inline_asm_ppc_arch_3_00" = "yes" ; then
20068
20069 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_PPC_ARCH_3_00 1" >>confdefs.h
20070
20071 fi
20072
20073
20074 #
20075 # Check whether compiler supports GCC PowerPC target attributes
20076 #
20077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports GCC PowerPC target attributes" >&5
20078 printf %s "checking whether compiler supports GCC PowerPC target attributes... " >&6; }
20079 if test ${gcry_cv_gcc_attribute_ppc_target+y}
20080 then :
20081 printf %s "(cached) " >&6
20082 else $as_nop
20083 if test "$mpi_cpu_arch" != "ppc" ; then
20084 gcry_cv_gcc_attribute_ppc_target="n/a"
20085 else
20086 gcry_cv_gcc_attribute_ppc_target=no
20087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20088 /* end confdefs.h. */
20089 void __attribute__((always_inline)) inline aifn(void) {}
20090 void __attribute__((target("cpu=power8"))) testfn8(void) {aifn();}
20091 void __attribute__((target("cpu=power9"))) testfn9(void)
20092 { testfn8(); aifn(); }
20093
20094 int
20095 main (void)
20096 {
20097 testfn9(); aifn();
20098 ;
20099 return 0;
20100 }
20101 _ACEOF
20102 if ac_fn_c_try_link "$LINENO"
20103 then :
20104 gcry_cv_gcc_attribute_ppc_target=yes
20105 fi
20106 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20107 conftest$ac_exeext conftest.$ac_ext
20108 fi
20109 fi
20110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_attribute_ppc_target" >&5
20111 printf "%s\n" "$gcry_cv_gcc_attribute_ppc_target" >&6; }
20112 if test "$gcry_cv_gcc_attribute_ppc_target" = "yes" ; then
20113
20114 printf "%s\n" "#define HAVE_GCC_ATTRIBUTE_PPC_TARGET 1" >>confdefs.h
20115
20116 fi
20117
20118
20119 #
20120 # Check whether compiler supports clang PowerPC target attributes
20121 #
20122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports clang PowerPC target attributes" >&5
20123 printf %s "checking whether compiler supports clang PowerPC target attributes... " >&6; }
20124 if test ${gcry_cv_clang_attribute_ppc_target+y}
20125 then :
20126 printf %s "(cached) " >&6
20127 else $as_nop
20128 if test "$mpi_cpu_arch" != "ppc" ; then
20129 gcry_cv_clang_attribute_ppc_target="n/a"
20130 else
20131 gcry_cv_clang_attribute_ppc_target=no
20132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20133 /* end confdefs.h. */
20134 void __attribute__((always_inline)) inline aifn(void) {}
20135 void __attribute__((target("arch=pwr8"))) testfn8(void) {aifn();}
20136 void __attribute__((target("arch=pwr9"))) testfn9(void)
20137 { testfn8(); aifn(); }
20138
20139 int
20140 main (void)
20141 {
20142 testfn9(); aifn();
20143 ;
20144 return 0;
20145 }
20146 _ACEOF
20147 if ac_fn_c_try_link "$LINENO"
20148 then :
20149 gcry_cv_clang_attribute_ppc_target=yes
20150 fi
20151 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20152 conftest$ac_exeext conftest.$ac_ext
20153 fi
20154 fi
20155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_clang_attribute_ppc_target" >&5
20156 printf "%s\n" "$gcry_cv_clang_attribute_ppc_target" >&6; }
20157 if test "$gcry_cv_clang_attribute_ppc_target" = "yes" ; then
20158
20159 printf "%s\n" "#define HAVE_CLANG_ATTRIBUTE_PPC_TARGET 1" >>confdefs.h
20160
20161 fi
20162
20163
20164 #
20165 # Check whether GCC inline assembler supports zSeries instructions
20166 #
20167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports zSeries instructions" >&5
20168 printf %s "checking whether GCC inline assembler supports zSeries instructions... " >&6; }
20169 if test ${gcry_cv_gcc_inline_asm_s390x+y}
20170 then :
20171 printf %s "(cached) " >&6
20172 else $as_nop
20173 if test "$mpi_cpu_arch" != "s390x" ||
20174 test "$try_asm_modules" != "yes" ; then
20175 gcry_cv_gcc_inline_asm_s390x="n/a"
20176 else
20177 gcry_cv_gcc_inline_asm_s390x=no
20178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20179 /* end confdefs.h. */
20180 typedef unsigned int u128_t __attribute__ ((mode (TI)));
20181 unsigned int testfunc(unsigned int x, void *y, unsigned int z)
20182 {
20183 unsigned long fac[8];
20184 register unsigned long reg0 asm("0") = 0;
20185 register unsigned long reg1 asm("1") = x;
20186 u128_t r1 = ((u128_t)(unsigned long)y << 64) | (unsigned long)z;
20187 u128_t r2 = 0;
20188 u128_t r3 = 0;
20189 asm volatile (".insn rre,0xb92e << 16, %[r1], %[r2]\n\t"
20190 : [r1] "+a" (r1), [r2] "+a" (r2)
20191 : "r" (reg0), "r" (reg1)
20192 : "cc", "memory");
20193 asm volatile (".insn rrf,0xb929 << 16, %[r1], %[r2], %[r3], 0\n\t"
20194 : [r1] "+a" (r1), [r2] "+a" (r2), [r3] "+a" (r3)
20195 : "r" (reg0), "r" (reg1)
20196 : "cc", "memory");
20197 reg0 = 8 - 1;
20198 asm ("stfle %1\n\t"
20199 : "+d" (reg0), "=Q" (fac[0])
20200 :
20201 : "cc", "memory");
20202 asm volatile ("mvc 0(16, %0), 0(%1)\n\t"
20203 :
20204 : "a" (y), "a" (fac)
20205 : "memory");
20206 asm volatile ("xc 0(16, %0), 0(%0)\n\t"
20207 :
20208 : "a" (fac)
20209 : "memory");
20210 asm volatile ("risbgn %%r11, %%r11, 0, 129, 0\n\t"
20211 :
20212 :
20213 : "memory", "r11");
20214 asm volatile ("algrk %%r14, %%r14, %%r14\n\t"
20215 :
20216 :
20217 : "memory", "r14");
20218 return (unsigned int)r1 ^ reg0;
20219 }
20220
20221 int
20222 main (void)
20223 {
20224 testfunc(0, 0, 0);
20225 ;
20226 return 0;
20227 }
20228 _ACEOF
20229 if ac_fn_c_try_link "$LINENO"
20230 then :
20231 gcry_cv_gcc_inline_asm_s390x=yes
20232 fi
20233 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20234 conftest$ac_exeext conftest.$ac_ext
20235 fi
20236 fi
20237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_s390x" >&5
20238 printf "%s\n" "$gcry_cv_gcc_inline_asm_s390x" >&6; }
20239 if test "$gcry_cv_gcc_inline_asm_s390x" = "yes" ; then
20240
20241 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_S390X 1" >>confdefs.h
20242
20243 fi
20244
20245
20246 #
20247 # Check whether GCC inline assembler supports zSeries vector instructions
20248 #
20249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports zSeries vector instructions" >&5
20250 printf %s "checking whether GCC inline assembler supports zSeries vector instructions... " >&6; }
20251 if test ${gcry_cv_gcc_inline_asm_s390x_vx+y}
20252 then :
20253 printf %s "(cached) " >&6
20254 else $as_nop
20255 if test "$mpi_cpu_arch" != "s390x" ||
20256 test "$try_asm_modules" != "yes" ; then
20257 gcry_cv_gcc_inline_asm_s390x_vx="n/a"
20258 else
20259 gcry_cv_gcc_inline_asm_s390x_vx=no
20260 if test "$gcry_cv_gcc_inline_asm_s390x" = "yes" ; then
20261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20262 /* end confdefs.h. */
20263 void testfunc(void)
20264 {
20265 asm volatile (".machine \"z13+vx\"\n\t"
20266 "vx %%v0, %%v1, %%v31\n\t"
20267 "verllf %%v11, %%v11, (16)(0)\n\t"
20268 :
20269 :
20270 : "memory");
20271 }
20272
20273 int
20274 main (void)
20275 {
20276 testfunc();
20277 ;
20278 return 0;
20279 }
20280 _ACEOF
20281 if ac_fn_c_try_link "$LINENO"
20282 then :
20283 gcry_cv_gcc_inline_asm_s390x_vx=yes
20284 fi
20285 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20286 conftest$ac_exeext conftest.$ac_ext
20287 fi
20288 fi
20289 fi
20290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_s390x_vx" >&5
20291 printf "%s\n" "$gcry_cv_gcc_inline_asm_s390x_vx" >&6; }
20292 if test "$gcry_cv_gcc_inline_asm_s390x_vx" = "yes" ; then
20293
20294 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_S390X_VX 1" >>confdefs.h
20295
20296 fi
20297
20298
20299 #######################################
20300 #### Checks for library functions. ####
20301 #######################################
20302
20303 ac_func=
20304 for ac_item in $ac_func_c_list
20305 do
20306 if test $ac_func; then
20307 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
20308 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
20309 echo "#define $ac_item 1" >> confdefs.h
20310 fi
20311 ac_func=
20312 else
20313 ac_func=$ac_item
20314 fi
20315 done
20316
20317 if test "x$ac_cv_func_vprintf" = xno
20318 then :
20319 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
20320 if test "x$ac_cv_func__doprnt" = xyes
20321 then :
20322
20323 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
20324
20325 fi
20326
20327 fi
20328 # We have replacements for these in src/missing-string.c
20329 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
20330 if test "x$ac_cv_func_stpcpy" = xyes
20331 then :
20332 printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
20333
20334 fi
20335 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
20336 if test "x$ac_cv_func_strcasecmp" = xyes
20337 then :
20338 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
20339
20340 fi
20341
20342 # We have replacements for these in src/g10lib.h
20343 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
20344 if test "x$ac_cv_func_strtoul" = xyes
20345 then :
20346 printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
20347
20348 fi
20349 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
20350 if test "x$ac_cv_func_memmove" = xyes
20351 then :
20352 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
20353
20354 fi
20355 ac_fn_c_check_func "$LINENO" "stricmp" "ac_cv_func_stricmp"
20356 if test "x$ac_cv_func_stricmp" = xyes
20357 then :
20358 printf "%s\n" "#define HAVE_STRICMP 1" >>confdefs.h
20359
20360 fi
20361 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
20362 if test "x$ac_cv_func_atexit" = xyes
20363 then :
20364 printf "%s\n" "#define HAVE_ATEXIT 1" >>confdefs.h
20365
20366 fi
20367 ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
20368 if test "x$ac_cv_func_raise" = xyes
20369 then :
20370 printf "%s\n" "#define HAVE_RAISE 1" >>confdefs.h
20371
20372 fi
20373
20374 # Other checks
20375 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
20376 if test "x$ac_cv_func_strerror" = xyes
20377 then :
20378 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
20379
20380 fi
20381 ac_fn_c_check_func "$LINENO" "rand" "ac_cv_func_rand"
20382 if test "x$ac_cv_func_rand" = xyes
20383 then :
20384 printf "%s\n" "#define HAVE_RAND 1" >>confdefs.h
20385
20386 fi
20387 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
20388 if test "x$ac_cv_func_mmap" = xyes
20389 then :
20390 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
20391
20392 fi
20393 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
20394 if test "x$ac_cv_func_getpagesize" = xyes
20395 then :
20396 printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h
20397
20398 fi
20399 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
20400 if test "x$ac_cv_func_sysconf" = xyes
20401 then :
20402 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
20403
20404 fi
20405 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
20406 if test "x$ac_cv_func_waitpid" = xyes
20407 then :
20408 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
20409
20410 fi
20411 ac_fn_c_check_func "$LINENO" "wait4" "ac_cv_func_wait4"
20412 if test "x$ac_cv_func_wait4" = xyes
20413 then :
20414 printf "%s\n" "#define HAVE_WAIT4 1" >>confdefs.h
20415
20416 fi
20417
20418 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
20419 if test "x$ac_cv_func_gettimeofday" = xyes
20420 then :
20421 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
20422
20423 fi
20424 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
20425 if test "x$ac_cv_func_getrusage" = xyes
20426 then :
20427 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
20428
20429 fi
20430 ac_fn_c_check_func "$LINENO" "gethrtime" "ac_cv_func_gethrtime"
20431 if test "x$ac_cv_func_gethrtime" = xyes
20432 then :
20433 printf "%s\n" "#define HAVE_GETHRTIME 1" >>confdefs.h
20434
20435 fi
20436 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
20437 if test "x$ac_cv_func_clock_gettime" = xyes
20438 then :
20439 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
20440
20441 fi
20442 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
20443 if test "x$ac_cv_func_syslog" = xyes
20444 then :
20445 printf "%s\n" "#define HAVE_SYSLOG 1" >>confdefs.h
20446
20447 fi
20448
20449 ac_fn_c_check_func "$LINENO" "syscall" "ac_cv_func_syscall"
20450 if test "x$ac_cv_func_syscall" = xyes
20451 then :
20452 printf "%s\n" "#define HAVE_SYSCALL 1" >>confdefs.h
20453
20454 fi
20455 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
20456 if test "x$ac_cv_func_fcntl" = xyes
20457 then :
20458 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
20459
20460 fi
20461 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
20462 if test "x$ac_cv_func_ftruncate" = xyes
20463 then :
20464 printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
20465
20466 fi
20467 ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile"
20468 if test "x$ac_cv_func_flockfile" = xyes
20469 then :
20470 printf "%s\n" "#define HAVE_FLOCKFILE 1" >>confdefs.h
20471
20472 fi
20473 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
20474 if test "x$ac_cv_func_getauxval" = xyes
20475 then :
20476 printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
20477
20478 fi
20479 ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
20480 if test "x$ac_cv_func_elf_aux_info" = xyes
20481 then :
20482 printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
20483
20484 fi
20485
20486 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
20487 if test "x$ac_cv_func_explicit_bzero" = xyes
20488 then :
20489 printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
20490
20491 fi
20492 ac_fn_c_check_func "$LINENO" "explicit_memset" "ac_cv_func_explicit_memset"
20493 if test "x$ac_cv_func_explicit_memset" = xyes
20494 then :
20495 printf "%s\n" "#define HAVE_EXPLICIT_MEMSET 1" >>confdefs.h
20496
20497 fi
20498 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
20499 if test "x$ac_cv_func_getentropy" = xyes
20500 then :
20501 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
20502
20503 fi
20504 ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
20505 if test "x$ac_cv_func_sysctlbyname" = xyes
20506 then :
20507 printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
20508
20509 fi
20510
20511
20512 ac_fn_c_check_func "$LINENO" "mlock" "ac_cv_func_mlock"
20513 if test "x$ac_cv_func_mlock" = xyes
20514 then :
20515 printf "%s\n" "#define HAVE_MLOCK 1" >>confdefs.h
20516
20517 fi
20518
20519 if test "$ac_cv_func_mlock" = "no"; then
20520 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
20521 if test "x$ac_cv_header_sys_mman_h" = xyes
20522 then :
20523 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
20524
20525 fi
20526
20527 if test "$ac_cv_header_sys_mman_h" = "yes"; then
20528 # Add librt to LIBS:
20529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memlk in -lrt" >&5
20530 printf %s "checking for memlk in -lrt... " >&6; }
20531 if test ${ac_cv_lib_rt_memlk+y}
20532 then :
20533 printf %s "(cached) " >&6
20534 else $as_nop
20535 ac_check_lib_save_LIBS=$LIBS
20536 LIBS="-lrt $LIBS"
20537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20538 /* end confdefs.h. */
20539
20540 /* Override any GCC internal prototype to avoid an error.
20541 Use char because int might match the return type of a GCC
20542 builtin and then its argument prototype would still apply. */
20543 char memlk ();
20544 int
20545 main (void)
20546 {
20547 return memlk ();
20548 ;
20549 return 0;
20550 }
20551 _ACEOF
20552 if ac_fn_c_try_link "$LINENO"
20553 then :
20554 ac_cv_lib_rt_memlk=yes
20555 else $as_nop
20556 ac_cv_lib_rt_memlk=no
20557 fi
20558 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20559 conftest$ac_exeext conftest.$ac_ext
20560 LIBS=$ac_check_lib_save_LIBS
20561 fi
20562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_memlk" >&5
20563 printf "%s\n" "$ac_cv_lib_rt_memlk" >&6; }
20564 if test "x$ac_cv_lib_rt_memlk" = xyes
20565 then :
20566 printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h
20567
20568 LIBS="-lrt $LIBS"
20569
20570 fi
20571
20572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mlock is in sys/mman.h" >&5
20573 printf %s "checking whether mlock is in sys/mman.h... " >&6; }
20574 if test ${gnupg_cv_mlock_is_in_sys_mman+y}
20575 then :
20576 printf %s "(cached) " >&6
20577 else $as_nop
20578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20579 /* end confdefs.h. */
20580
20581 #include <assert.h>
20582 #ifdef HAVE_SYS_MMAN_H
20583 #include <sys/mman.h>
20584 #endif
20585
20586 int
20587 main (void)
20588 {
20589
20590 int i;
20591
20592 /* glibc defines this for functions which it implements
20593 * to always fail with ENOSYS. Some functions are actually
20594 * named something starting with __ and the normal name
20595 * is an alias. */
20596 #if defined (__stub_mlock) || defined (__stub___mlock)
20597 choke me
20598 #else
20599 mlock(&i, 4);
20600 #endif
20601 ; return 0;
20602
20603 ;
20604 return 0;
20605 }
20606 _ACEOF
20607 if ac_fn_c_try_link "$LINENO"
20608 then :
20609 gnupg_cv_mlock_is_in_sys_mman=yes
20610 else $as_nop
20611 gnupg_cv_mlock_is_in_sys_mman=no
20612 fi
20613 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20614 conftest$ac_exeext conftest.$ac_ext
20615 fi
20616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_mlock_is_in_sys_mman" >&5
20617 printf "%s\n" "$gnupg_cv_mlock_is_in_sys_mman" >&6; }
20618 if test "$gnupg_cv_mlock_is_in_sys_mman" = "yes"; then
20619
20620 printf "%s\n" "#define HAVE_MLOCK 1" >>confdefs.h
20621
20622 fi
20623 fi
20624 fi
20625 if test "$ac_cv_func_mlock" = "yes"; then
20626 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
20627 if test "x$ac_cv_func_sysconf" = xyes
20628 then :
20629 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
20630
20631 fi
20632 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
20633 if test "x$ac_cv_func_getpagesize" = xyes
20634 then :
20635 printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h
20636
20637 fi
20638
20639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mlock is broken" >&5
20640 printf %s "checking whether mlock is broken... " >&6; }
20641 if test ${gnupg_cv_have_broken_mlock+y}
20642 then :
20643 printf %s "(cached) " >&6
20644 else $as_nop
20645 if test "$cross_compiling" = yes
20646 then :
20647 gnupg_cv_have_broken_mlock="assume-no"
20648
20649 else $as_nop
20650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20651 /* end confdefs.h. */
20652
20653 #include <stdlib.h>
20654 #include <unistd.h>
20655 #include <errno.h>
20656 #include <sys/mman.h>
20657 #include <sys/types.h>
20658 #include <fcntl.h>
20659
20660 int main(void)
20661 {
20662 char *pool;
20663 int err;
20664 long int pgsize;
20665
20666 #if defined(HAVE_SYSCONF) && defined(_SC_PAGESIZE)
20667 pgsize = sysconf (_SC_PAGESIZE);
20668 #elif defined (HAVE_GETPAGESIZE)
20669 pgsize = getpagesize();
20670 #else
20671 pgsize = -1;
20672 #endif
20673
20674 if (pgsize == -1)
20675 pgsize = 4096;
20676
20677 pool = malloc( 4096 + pgsize );
20678 if( !pool )
20679 return 2;
20680 pool += (pgsize - ((size_t)pool % pgsize));
20681
20682 err = mlock( pool, 4096 );
20683 if( !err || errno == EPERM || errno == EAGAIN)
20684 return 0; /* okay */
20685
20686 return 1; /* hmmm */
20687 }
20688
20689 _ACEOF
20690 if ac_fn_c_try_run "$LINENO"
20691 then :
20692 gnupg_cv_have_broken_mlock="no"
20693 else $as_nop
20694 gnupg_cv_have_broken_mlock="yes"
20695 fi
20696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20697 conftest.$ac_objext conftest.beam conftest.$ac_ext
20698 fi
20699
20700
20701 fi
20702
20703 if test "$gnupg_cv_have_broken_mlock" = "yes"; then
20704
20705 printf "%s\n" "#define HAVE_BROKEN_MLOCK 1" >>confdefs.h
20706
20707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20708 printf "%s\n" "yes" >&6; }
20709 else
20710 if test "$gnupg_cv_have_broken_mlock" = "no"; then
20711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20712 printf "%s\n" "no" >&6; }
20713 else
20714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: assuming no" >&5
20715 printf "%s\n" "assuming no" >&6; }
20716 fi
20717 fi
20718 fi
20719
20720
20721 #
20722 # Replacement functions.
20723 #
20724 ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
20725 if test "x$ac_cv_func_getpid" = xyes
20726 then :
20727 printf "%s\n" "#define HAVE_GETPID 1" >>confdefs.h
20728
20729 else $as_nop
20730 case " $LIBOBJS " in
20731 *" getpid.$ac_objext "* ) ;;
20732 *) LIBOBJS="$LIBOBJS getpid.$ac_objext"
20733 ;;
20734 esac
20735
20736 fi
20737 ac_fn_c_check_func "$LINENO" "clock" "ac_cv_func_clock"
20738 if test "x$ac_cv_func_clock" = xyes
20739 then :
20740 printf "%s\n" "#define HAVE_CLOCK 1" >>confdefs.h
20741
20742 else $as_nop
20743 case " $LIBOBJS " in
20744 *" clock.$ac_objext "* ) ;;
20745 *) LIBOBJS="$LIBOBJS clock.$ac_objext"
20746 ;;
20747 esac
20748
20749 fi
20750
20751
20752
20753 #
20754 # Check whether it is necessary to link against libdl.
20755 #
20756 DL_LIBS=""
20757 if test "$use_hmac_binary_check" != no ; then
20758 _gcry_save_libs="$LIBS"
20759 LIBS=""
20760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20761 printf %s "checking for library containing dlopen... " >&6; }
20762 if test ${ac_cv_search_dlopen+y}
20763 then :
20764 printf %s "(cached) " >&6
20765 else $as_nop
20766 ac_func_search_save_LIBS=$LIBS
20767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20768 /* end confdefs.h. */
20769
20770 /* Override any GCC internal prototype to avoid an error.
20771 Use char because int might match the return type of a GCC
20772 builtin and then its argument prototype would still apply. */
20773 char dlopen ();
20774 int
20775 main (void)
20776 {
20777 return dlopen ();
20778 ;
20779 return 0;
20780 }
20781 _ACEOF
20782 for ac_lib in '' c dl
20783 do
20784 if test -z "$ac_lib"; then
20785 ac_res="none required"
20786 else
20787 ac_res=-l$ac_lib
20788 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20789 fi
20790 if ac_fn_c_try_link "$LINENO"
20791 then :
20792 ac_cv_search_dlopen=$ac_res
20793 fi
20794 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20795 conftest$ac_exeext
20796 if test ${ac_cv_search_dlopen+y}
20797 then :
20798 break
20799 fi
20800 done
20801 if test ${ac_cv_search_dlopen+y}
20802 then :
20803
20804 else $as_nop
20805 ac_cv_search_dlopen=no
20806 fi
20807 rm conftest.$ac_ext
20808 LIBS=$ac_func_search_save_LIBS
20809 fi
20810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20811 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
20812 ac_res=$ac_cv_search_dlopen
20813 if test "$ac_res" != no
20814 then :
20815 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20816
20817 fi
20818
20819 DL_LIBS=$LIBS
20820 LIBS="$_gcry_save_libs"
20821 fi
20822
20823
20824
20825 #
20826 # Check whether we can use Linux capabilities as requested.
20827 #
20828 if test "$use_capabilities" = "yes" ; then
20829 use_capabilities=no
20830 ac_fn_c_check_header_compile "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
20831 if test "x$ac_cv_header_sys_capability_h" = xyes
20832 then :
20833 printf "%s\n" "#define HAVE_SYS_CAPABILITY_H 1" >>confdefs.h
20834
20835 fi
20836
20837 if test "$ac_cv_header_sys_capability_h" = "yes" ; then
20838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
20839 printf %s "checking for cap_init in -lcap... " >&6; }
20840 if test ${ac_cv_lib_cap_cap_init+y}
20841 then :
20842 printf %s "(cached) " >&6
20843 else $as_nop
20844 ac_check_lib_save_LIBS=$LIBS
20845 LIBS="-lcap $LIBS"
20846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20847 /* end confdefs.h. */
20848
20849 /* Override any GCC internal prototype to avoid an error.
20850 Use char because int might match the return type of a GCC
20851 builtin and then its argument prototype would still apply. */
20852 char cap_init ();
20853 int
20854 main (void)
20855 {
20856 return cap_init ();
20857 ;
20858 return 0;
20859 }
20860 _ACEOF
20861 if ac_fn_c_try_link "$LINENO"
20862 then :
20863 ac_cv_lib_cap_cap_init=yes
20864 else $as_nop
20865 ac_cv_lib_cap_cap_init=no
20866 fi
20867 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20868 conftest$ac_exeext conftest.$ac_ext
20869 LIBS=$ac_check_lib_save_LIBS
20870 fi
20871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
20872 printf "%s\n" "$ac_cv_lib_cap_cap_init" >&6; }
20873 if test "x$ac_cv_lib_cap_cap_init" = xyes
20874 then :
20875 ac_need_libcap=1
20876 fi
20877
20878 if test "$ac_cv_lib_cap_cap_init" = "yes"; then
20879
20880 printf "%s\n" "#define USE_CAPABILITIES 1" >>confdefs.h
20881
20882 LIBS="$LIBS -lcap"
20883 use_capabilities=yes
20884 fi
20885 fi
20886 if test "$use_capabilities" = "no" ; then
20887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
20888 ***
20889 *** The use of capabilities on this system is not possible.
20890 *** You need a recent Linux kernel and some patches:
20891 *** fcaps-2.2.9-990610.patch (kernel patch for 2.2.9)
20892 *** fcap-module-990613.tar.gz (kernel module)
20893 *** libcap-1.92.tar.gz (user mode library and utilities)
20894 *** And you have to configure the kernel with CONFIG_VFS_CAP_PLUGIN
20895 *** set (filesystems menu). Be warned: This code is *really* ALPHA.
20896 ***" >&5
20897 printf "%s\n" "$as_me: WARNING:
20898 ***
20899 *** The use of capabilities on this system is not possible.
20900 *** You need a recent Linux kernel and some patches:
20901 *** fcaps-2.2.9-990610.patch (kernel patch for 2.2.9)
20902 *** fcap-module-990613.tar.gz (kernel module)
20903 *** libcap-1.92.tar.gz (user mode library and utilities)
20904 *** And you have to configure the kernel with CONFIG_VFS_CAP_PLUGIN
20905 *** set (filesystems menu). Be warned: This code is *really* ALPHA.
20906 ***" >&2;}
20907 fi
20908 fi
20909
20910 # Check whether a random device is available.
20911 if test "$try_dev_random" = yes ; then
20912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
20913 printf %s "checking for random device... " >&6; }
20914 if test ${ac_cv_have_dev_random+y}
20915 then :
20916 printf %s "(cached) " >&6
20917 else $as_nop
20918 if test -r "$NAME_OF_DEV_RANDOM" && test -r "$NAME_OF_DEV_URANDOM" ; then
20919 ac_cv_have_dev_random=yes; else ac_cv_have_dev_random=no; fi
20920 fi
20921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_dev_random" >&5
20922 printf "%s\n" "$ac_cv_have_dev_random" >&6; }
20923 if test "$ac_cv_have_dev_random" = yes; then
20924
20925 printf "%s\n" "#define HAVE_DEV_RANDOM 1" >>confdefs.h
20926
20927 fi
20928 else
20929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
20930 printf %s "checking for random device... " >&6; }
20931 ac_cv_have_dev_random=no
20932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: has been disabled" >&5
20933 printf "%s\n" "has been disabled" >&6; }
20934 fi
20935
20936 # Figure out the random modules for this configuration.
20937 if test "$random" = "default"; then
20938
20939 # Select default value.
20940 if test "$ac_cv_func_getentropy" = yes; then
20941 random_modules="getentropy"
20942 elif test "$ac_cv_have_dev_random" = yes; then
20943 # Try Linuxish random device.
20944 random_modules="linux"
20945 else
20946 case "${host}" in
20947 *-*-mingw32ce*)
20948 # WindowsCE random device.
20949 random_modules="w32ce"
20950 ;;
20951 *-*-mingw32*|*-*-cygwin*)
20952 # Windows random device.
20953 random_modules="w32"
20954 ;;
20955 *)
20956 # Build everything, allow to select at runtime.
20957 random_modules="$auto_random_modules"
20958 ;;
20959 esac
20960 fi
20961 else
20962 if test "$random" = "auto"; then
20963 # Build everything, allow to select at runtime.
20964 random_modules="$auto_random_modules"
20965 else
20966 random_modules="$random"
20967 fi
20968 fi
20969
20970
20971 #
20972 # Other defines
20973 #
20974 if test mym4_isgit = "yes"; then
20975
20976 printf "%s\n" "#define IS_DEVELOPMENT_VERSION 1" >>confdefs.h
20977
20978 fi
20979
20980
20981 if test x$cross_compiling = xyes; then
20982 CROSS_COMPILING_TRUE=
20983 CROSS_COMPILING_FALSE='#'
20984 else
20985 CROSS_COMPILING_TRUE='#'
20986 CROSS_COMPILING_FALSE=
20987 fi
20988
20989
20990
20991 # This is handy for debugging so the compiler doesn't rearrange
20992 # things and eliminate variables.
20993 # Check whether --enable-optimization was given.
20994 if test ${enable_optimization+y}
20995 then :
20996 enableval=$enable_optimization; if test $enableval = no ; then
20997 CFLAGS=`echo $CFLAGS | sed 's/-O[0-9]//'`
20998 fi
20999 fi
21000
21001
21002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cc features" >&5
21003 printf "%s\n" "$as_me: checking for cc features" >&6;}
21004 # CFLAGS mangling when using gcc.
21005 if test "$GCC" = yes; then
21006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -fno-delete-null-pointer-checks" >&5
21007 printf %s "checking if gcc supports -fno-delete-null-pointer-checks... " >&6; }
21008 _gcc_cflags_save=$CFLAGS
21009 CFLAGS="-fno-delete-null-pointer-checks"
21010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21011 /* end confdefs.h. */
21012
21013 int
21014 main (void)
21015 {
21016
21017 ;
21018 return 0;
21019 }
21020 _ACEOF
21021 if ac_fn_c_try_compile "$LINENO"
21022 then :
21023 _gcc_wopt=yes
21024 else $as_nop
21025 _gcc_wopt=no
21026 fi
21027 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
21029 printf "%s\n" "$_gcc_wopt" >&6; }
21030 CFLAGS=$_gcc_cflags_save;
21031 if test x"$_gcc_wopt" = xyes ; then
21032 CFLAGS="$CFLAGS -fno-delete-null-pointer-checks"
21033 fi
21034
21035 CFLAGS="$CFLAGS -Wall"
21036 if test "$USE_MAINTAINER_MODE" = "yes"; then
21037 CFLAGS="$CFLAGS -Wcast-align -Wshadow -Wstrict-prototypes"
21038 CFLAGS="$CFLAGS -Wformat -Wno-format-y2k -Wformat-security"
21039
21040 # If -Wno-missing-field-initializers is supported we can enable a
21041 # a bunch of really useful warnings.
21042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
21043 printf %s "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
21044 _gcc_cflags_save=$CFLAGS
21045 CFLAGS="-Wno-missing-field-initializers"
21046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21047 /* end confdefs.h. */
21048
21049 int
21050 main (void)
21051 {
21052
21053 ;
21054 return 0;
21055 }
21056 _ACEOF
21057 if ac_fn_c_try_compile "$LINENO"
21058 then :
21059 _gcc_wopt=yes
21060 else $as_nop
21061 _gcc_wopt=no
21062 fi
21063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
21065 printf "%s\n" "$_gcc_wopt" >&6; }
21066 CFLAGS=$_gcc_cflags_save;
21067 if test x"$_gcc_wopt" = xyes ; then
21068 CFLAGS="$CFLAGS -W -Wextra -Wbad-function-cast"
21069 CFLAGS="$CFLAGS -Wwrite-strings"
21070 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
21071 CFLAGS="$CFLAGS -Wno-missing-field-initializers"
21072 CFLAGS="$CFLAGS -Wno-sign-compare"
21073 fi
21074
21075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
21076 printf %s "checking if gcc supports -Wpointer-arith... " >&6; }
21077 _gcc_cflags_save=$CFLAGS
21078 CFLAGS="-Wpointer-arith"
21079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21080 /* end confdefs.h. */
21081
21082 int
21083 main (void)
21084 {
21085
21086 ;
21087 return 0;
21088 }
21089 _ACEOF
21090 if ac_fn_c_try_compile "$LINENO"
21091 then :
21092 _gcc_wopt=yes
21093 else $as_nop
21094 _gcc_wopt=no
21095 fi
21096 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
21098 printf "%s\n" "$_gcc_wopt" >&6; }
21099 CFLAGS=$_gcc_cflags_save;
21100 if test x"$_gcc_wopt" = xyes ; then
21101 CFLAGS="$CFLAGS -Wpointer-arith"
21102 fi
21103 fi
21104 fi
21105
21106 # Check whether as(1) supports a noeexecstack feature. This test
21107 # includes an override option.
21108
21109
21110
21111
21112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether non excutable stack support is requested" >&5
21113 printf %s "checking whether non excutable stack support is requested... " >&6; }
21114 # Check whether --enable-noexecstack was given.
21115 if test ${enable_noexecstack+y}
21116 then :
21117 enableval=$enable_noexecstack; noexecstack_support=$enableval
21118 else $as_nop
21119 noexecstack_support=yes
21120 fi
21121
21122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $noexecstack_support" >&5
21123 printf "%s\n" "$noexecstack_support" >&6; }
21124
21125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether assembler supports --noexecstack option" >&5
21126 printf %s "checking whether assembler supports --noexecstack option... " >&6; }
21127 if test ${cl_cv_as_noexecstack+y}
21128 then :
21129 printf %s "(cached) " >&6
21130 else $as_nop
21131 cat > conftest.c <<EOF
21132 void foo(void) {}
21133 EOF
21134 if { ac_try='${CC} $CFLAGS $CPPFLAGS
21135 -S -o conftest.s conftest.c >/dev/null'
21136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21137 (eval $ac_try) 2>&5
21138 ac_status=$?
21139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21140 test $ac_status = 0; }; } \
21141 && grep .note.GNU-stack conftest.s >/dev/null \
21142 && { ac_try='${CCAS} $CCASFLAGS $CPPFLAGS -Wa,--noexecstack
21143 -c -o conftest.o conftest.s >/dev/null'
21144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21145 (eval $ac_try) 2>&5
21146 ac_status=$?
21147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21148 test $ac_status = 0; }; }
21149 then
21150 cl_cv_as_noexecstack=yes
21151 else
21152 cl_cv_as_noexecstack=no
21153 fi
21154 rm -f conftest*
21155 fi
21156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cl_cv_as_noexecstack" >&5
21157 printf "%s\n" "$cl_cv_as_noexecstack" >&6; }
21158 if test "$noexecstack_support" = yes -a "$cl_cv_as_noexecstack" = yes; then
21159 NOEXECSTACK_FLAGS="-Wa,--noexecstack"
21160 else
21161 NOEXECSTACK_FLAGS=
21162 fi
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173 ac_config_commands="$ac_config_commands gcrypt-conf"
21174
21175
21176 #####################
21177 #### Conclusion. ####
21178 #####################
21179
21180 # Check that requested feature can actually be used and define
21181 # ENABLE_foo_SUPPORT macros.
21182
21183 if test x"$aesnisupport" = xyes ; then
21184 if test "$gcry_cv_gcc_inline_asm_ssse3" != "yes" ; then
21185 aesnisupport="no (unsupported by compiler)"
21186 fi
21187 fi
21188 if test x"$shaextsupport" = xyes ; then
21189 if test "$gcry_cv_gcc_inline_asm_shaext" != "yes" ; then
21190 shaextsupport="no (unsupported by compiler)"
21191 fi
21192 fi
21193 if test x"$pclmulsupport" = xyes ; then
21194 if test "$gcry_cv_gcc_inline_asm_pclmul" != "yes" ; then
21195 pclmulsupport="no (unsupported by compiler)"
21196 fi
21197 fi
21198 if test x"$sse41support" = xyes ; then
21199 if test "$gcry_cv_gcc_inline_asm_sse41" != "yes" ; then
21200 sse41support="no (unsupported by compiler)"
21201 fi
21202 fi
21203 if test x"$avxsupport" = xyes ; then
21204 if test "$gcry_cv_gcc_inline_asm_avx" != "yes" ; then
21205 avxsupport="no (unsupported by compiler)"
21206 fi
21207 fi
21208 if test x"$avx2support" = xyes ; then
21209 if test "$gcry_cv_gcc_inline_asm_avx2" != "yes" ; then
21210 avx2support="no (unsupported by compiler)"
21211 fi
21212 fi
21213 if test x"$avx512support" = xyes ; then
21214 if test "$gcry_cv_gcc_inline_asm_avx512" != "yes" ; then
21215 avx512support="no (unsupported by compiler)"
21216 fi
21217 fi
21218 if test x"$gfnisupport" = xyes ; then
21219 if test "$gcry_cv_gcc_inline_asm_gfni" != "yes" ; then
21220 gfnisupport="no (unsupported by compiler)"
21221 fi
21222 fi
21223 if test x"$neonsupport" = xyes ; then
21224 if test "$gcry_cv_gcc_inline_asm_neon" != "yes" ; then
21225 if test "$gcry_cv_gcc_inline_asm_aarch64_neon" != "yes" ; then
21226 neonsupport="no (unsupported by compiler)"
21227 fi
21228 fi
21229 fi
21230 if test x"$armcryptosupport" = xyes ; then
21231 if test "$gcry_cv_gcc_inline_asm_aarch32_crypto" != "yes" ; then
21232 if test "$gcry_cv_gcc_inline_asm_aarch64_crypto" != "yes" ; then
21233 armcryptosupport="no (unsupported by compiler)"
21234 fi
21235 fi
21236 fi
21237 if test x"$svesupport" = xyes ; then
21238 if test "$gcry_cv_gcc_inline_asm_sve" != "yes" ; then
21239 if test "$gcry_cv_gcc_inline_asm_aarch64_sve" != "yes" ; then
21240 svesupport="no (unsupported by compiler)"
21241 fi
21242 fi
21243 fi
21244 if test x"$sve2support" = xyes ; then
21245 if test "$gcry_cv_gcc_inline_asm_sve2" != "yes" ; then
21246 if test "$gcry_cv_gcc_inline_asm_aarch64_sve2" != "yes" ; then
21247 sve2support="no (unsupported by compiler)"
21248 fi
21249 fi
21250 fi
21251
21252 if test x"$aesnisupport" = xyes ; then
21253
21254 printf "%s\n" "#define ENABLE_AESNI_SUPPORT 1" >>confdefs.h
21255
21256 fi
21257 if test x"$shaextsupport" = xyes ; then
21258
21259 printf "%s\n" "#define ENABLE_SHAEXT_SUPPORT 1" >>confdefs.h
21260
21261 fi
21262 if test x"$pclmulsupport" = xyes ; then
21263
21264 printf "%s\n" "#define ENABLE_PCLMUL_SUPPORT 1" >>confdefs.h
21265
21266 fi
21267 if test x"$sse41support" = xyes ; then
21268
21269 printf "%s\n" "#define ENABLE_SSE41_SUPPORT 1" >>confdefs.h
21270
21271 fi
21272 if test x"$avxsupport" = xyes ; then
21273
21274 printf "%s\n" "#define ENABLE_AVX_SUPPORT 1" >>confdefs.h
21275
21276 fi
21277 if test x"$avx2support" = xyes ; then
21278
21279 printf "%s\n" "#define ENABLE_AVX2_SUPPORT 1" >>confdefs.h
21280
21281 fi
21282 if test x"$avx512support" = xyes ; then
21283
21284 printf "%s\n" "#define ENABLE_AVX512_SUPPORT 1" >>confdefs.h
21285
21286 fi
21287 if test x"$gfnisupport" = xyes ; then
21288
21289 printf "%s\n" "#define ENABLE_GFNI_SUPPORT 1" >>confdefs.h
21290
21291 fi
21292 if test x"$neonsupport" = xyes ; then
21293
21294 printf "%s\n" "#define ENABLE_NEON_SUPPORT 1" >>confdefs.h
21295
21296 fi
21297 if test x"$armcryptosupport" = xyes ; then
21298
21299 printf "%s\n" "#define ENABLE_ARM_CRYPTO_SUPPORT 1" >>confdefs.h
21300
21301 fi
21302 if test x"$svesupport" = xyes ; then
21303
21304 printf "%s\n" "#define ENABLE_SVE_SUPPORT 1" >>confdefs.h
21305
21306 fi
21307 if test x"$sve2support" = xyes ; then
21308
21309 printf "%s\n" "#define ENABLE_SVE2_SUPPORT 1" >>confdefs.h
21310
21311 fi
21312 if test x"$ppccryptosupport" = xyes ; then
21313
21314 printf "%s\n" "#define ENABLE_PPC_CRYPTO_SUPPORT 1" >>confdefs.h
21315
21316 fi
21317 if test x"$jentsupport" = xyes ; then
21318
21319 printf "%s\n" "#define ENABLE_JENT_SUPPORT 1" >>confdefs.h
21320
21321 fi
21322 if test x"$padlocksupport" = xyes ; then
21323
21324 printf "%s\n" "#define ENABLE_PADLOCK_SUPPORT 1" >>confdefs.h
21325
21326 fi
21327 if test x"$drngsupport" = xyes ; then
21328
21329 printf "%s\n" "#define ENABLE_DRNG_SUPPORT 1" >>confdefs.h
21330
21331 fi
21332
21333
21334 if test x"$force_soft_hwfeatures" = xyes ; then
21335
21336 printf "%s\n" "#define ENABLE_FORCE_SOFT_HWFEATURES 1" >>confdefs.h
21337
21338 fi
21339
21340 # Define conditional sources and config.h symbols depending on the
21341 # selected ciphers, pubkey-ciphers, digests, kdfs, and random modules.
21342
21343
21344 name=arcfour
21345 list=$enabled_ciphers
21346 found=0
21347
21348 for n in $list; do
21349 if test "x$name" = "x$n"; then
21350 found=1
21351 fi
21352 done
21353
21354 if test "$found" = "1"; then
21355 GCRYPT_CIPHERS="$GCRYPT_CIPHERS arcfour.lo"
21356
21357 printf "%s\n" "#define USE_ARCFOUR 1" >>confdefs.h
21358
21359
21360 case "${host}" in
21361 x86_64-*-*)
21362 # Build with the assembly implementation
21363 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS arcfour-amd64.lo"
21364 ;;
21365 esac
21366 fi
21367
21368
21369 name=blowfish
21370 list=$enabled_ciphers
21371 found=0
21372
21373 for n in $list; do
21374 if test "x$name" = "x$n"; then
21375 found=1
21376 fi
21377 done
21378
21379 if test "$found" = "1" ; then
21380 GCRYPT_CIPHERS="$GCRYPT_CIPHERS blowfish.lo"
21381
21382 printf "%s\n" "#define USE_BLOWFISH 1" >>confdefs.h
21383
21384
21385 case "${host}" in
21386 x86_64-*-*)
21387 # Build with the assembly implementation
21388 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS blowfish-amd64.lo"
21389 ;;
21390 arm*-*-*)
21391 # Build with the assembly implementation
21392 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS blowfish-arm.lo"
21393 ;;
21394 esac
21395 fi
21396
21397
21398 name=cast5
21399 list=$enabled_ciphers
21400 found=0
21401
21402 for n in $list; do
21403 if test "x$name" = "x$n"; then
21404 found=1
21405 fi
21406 done
21407
21408 if test "$found" = "1" ; then
21409 GCRYPT_CIPHERS="$GCRYPT_CIPHERS cast5.lo"
21410
21411 printf "%s\n" "#define USE_CAST5 1" >>confdefs.h
21412
21413
21414 case "${host}" in
21415 x86_64-*-*)
21416 # Build with the assembly implementation
21417 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS cast5-amd64.lo"
21418 ;;
21419 arm*-*-*)
21420 # Build with the assembly implementation
21421 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS cast5-arm.lo"
21422 ;;
21423 esac
21424 fi
21425
21426
21427 name=des
21428 list=$enabled_ciphers
21429 found=0
21430
21431 for n in $list; do
21432 if test "x$name" = "x$n"; then
21433 found=1
21434 fi
21435 done
21436
21437 if test "$found" = "1" ; then
21438 GCRYPT_CIPHERS="$GCRYPT_CIPHERS des.lo"
21439
21440 printf "%s\n" "#define USE_DES 1" >>confdefs.h
21441
21442
21443 case "${host}" in
21444 x86_64-*-*)
21445 # Build with the assembly implementation
21446 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS des-amd64.lo"
21447 ;;
21448 esac
21449 fi
21450
21451
21452 name=aes
21453 list=$enabled_ciphers
21454 found=0
21455
21456 for n in $list; do
21457 if test "x$name" = "x$n"; then
21458 found=1
21459 fi
21460 done
21461
21462 if test "$found" = "1" ; then
21463 GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael.lo"
21464
21465 printf "%s\n" "#define USE_AES 1" >>confdefs.h
21466
21467
21468 case "${host}" in
21469 x86_64-*-*)
21470 # Build with the assembly implementation
21471 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-amd64.lo"
21472
21473 # Build with the SSSE3 implementation
21474 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-ssse3-amd64.lo"
21475 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-ssse3-amd64-asm.lo"
21476
21477 # Build with the VAES/AVX2 implementation
21478 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-vaes.lo"
21479 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-vaes-avx2-amd64.lo"
21480 ;;
21481 arm*-*-*)
21482 # Build with the assembly implementation
21483 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-arm.lo"
21484
21485 # Build with the ARMv8/AArch32 CE implementation
21486 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-armv8-ce.lo"
21487 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-armv8-aarch32-ce.lo"
21488 ;;
21489 aarch64-*-*)
21490 # Build with the assembly implementation
21491 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-aarch64.lo"
21492
21493 # Build with the ARMv8/AArch64 CE implementation
21494 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-armv8-ce.lo"
21495 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-armv8-aarch64-ce.lo"
21496 ;;
21497 powerpc64le-*-*)
21498 # Build with the crypto extension implementation
21499 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-ppc.lo"
21500 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-ppc9le.lo"
21501
21502 if test "$gcry_cv_gcc_inline_asm_ppc_altivec" = "yes" &&
21503 test "$gcry_cv_gcc_inline_asm_ppc_arch_3_00" = "yes" ; then
21504 # Build with AES-GCM bulk implementation for P10
21505 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-gcm-p10le.lo"
21506 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-p10le.lo"
21507 fi
21508 ;;
21509 powerpc64-*-*)
21510 # Big-Endian.
21511 # Build with the crypto extension implementation
21512 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-ppc.lo"
21513 ;;
21514 powerpc-*-*)
21515 # Big-Endian.
21516 # Build with the crypto extension implementation
21517 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-ppc.lo"
21518 ;;
21519 s390x-*-*)
21520 # Big-Endian.
21521 # Build with the crypto extension implementation
21522 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-s390x.lo"
21523 ;;
21524 esac
21525
21526 case "$mpi_cpu_arch" in
21527 x86)
21528 # Build with the AES-NI implementation
21529 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-aesni.lo"
21530
21531 # Build with the Padlock implementation
21532 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-padlock.lo"
21533
21534 # Build with the VAES/AVX2 implementation
21535 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-vaes-i386.lo"
21536 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-vaes-avx2-i386.lo"
21537 ;;
21538 esac
21539 fi
21540
21541
21542 name=twofish
21543 list=$enabled_ciphers
21544 found=0
21545
21546 for n in $list; do
21547 if test "x$name" = "x$n"; then
21548 found=1
21549 fi
21550 done
21551
21552 if test "$found" = "1" ; then
21553 GCRYPT_CIPHERS="$GCRYPT_CIPHERS twofish.lo"
21554
21555 printf "%s\n" "#define USE_TWOFISH 1" >>confdefs.h
21556
21557
21558 case "${host}" in
21559 x86_64-*-*)
21560 # Build with the assembly implementation
21561 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS twofish-amd64.lo"
21562
21563 if test x"$avx2support" = xyes ; then
21564 # Build with the AVX2 implementation
21565 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS twofish-avx2-amd64.lo"
21566 fi
21567 ;;
21568 arm*-*-*)
21569 # Build with the assembly implementation
21570 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS twofish-arm.lo"
21571 ;;
21572 aarch64-*-*)
21573 # Build with the assembly implementation
21574 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS twofish-aarch64.lo"
21575 ;;
21576 esac
21577 fi
21578
21579
21580 name=serpent
21581 list=$enabled_ciphers
21582 found=0
21583
21584 for n in $list; do
21585 if test "x$name" = "x$n"; then
21586 found=1
21587 fi
21588 done
21589
21590 if test "$found" = "1" ; then
21591 GCRYPT_CIPHERS="$GCRYPT_CIPHERS serpent.lo"
21592
21593 printf "%s\n" "#define USE_SERPENT 1" >>confdefs.h
21594
21595
21596 case "${host}" in
21597 x86_64-*-*)
21598 # Build with the SSE2 implementation
21599 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS serpent-sse2-amd64.lo"
21600 ;;
21601 esac
21602
21603 if test x"$avx2support" = xyes ; then
21604 # Build with the AVX2 implementation
21605 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS serpent-avx2-amd64.lo"
21606 fi
21607
21608 if test x"$avx512support" = xyes ; then
21609 # Build with the AVX512 implementation
21610 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS serpent-avx512-x86.lo"
21611 fi
21612
21613 if test x"$neonsupport" = xyes ; then
21614 # Build with the NEON implementation
21615 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS serpent-armv7-neon.lo"
21616 fi
21617 fi
21618
21619
21620 name=rfc2268
21621 list=$enabled_ciphers
21622 found=0
21623
21624 for n in $list; do
21625 if test "x$name" = "x$n"; then
21626 found=1
21627 fi
21628 done
21629
21630 if test "$found" = "1" ; then
21631 GCRYPT_CIPHERS="$GCRYPT_CIPHERS rfc2268.lo"
21632
21633 printf "%s\n" "#define USE_RFC2268 1" >>confdefs.h
21634
21635 fi
21636
21637
21638 name=seed
21639 list=$enabled_ciphers
21640 found=0
21641
21642 for n in $list; do
21643 if test "x$name" = "x$n"; then
21644 found=1
21645 fi
21646 done
21647
21648 if test "$found" = "1" ; then
21649 GCRYPT_CIPHERS="$GCRYPT_CIPHERS seed.lo"
21650
21651 printf "%s\n" "#define USE_SEED 1" >>confdefs.h
21652
21653 fi
21654
21655
21656 name=camellia
21657 list=$enabled_ciphers
21658 found=0
21659
21660 for n in $list; do
21661 if test "x$name" = "x$n"; then
21662 found=1
21663 fi
21664 done
21665
21666 if test "$found" = "1" ; then
21667 GCRYPT_CIPHERS="$GCRYPT_CIPHERS camellia.lo camellia-glue.lo"
21668
21669 printf "%s\n" "#define USE_CAMELLIA 1" >>confdefs.h
21670
21671
21672 case "${host}" in
21673 arm*-*-*)
21674 # Build with the assembly implementation
21675 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS camellia-arm.lo"
21676 ;;
21677 aarch64-*-*)
21678 # Build with the assembly implementation
21679 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS camellia-aarch64.lo"
21680 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS camellia-aarch64-ce.lo"
21681 ;;
21682 powerpc64le-*-*)
21683 # Build with the POWER vector implementations
21684 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS camellia-ppc8le.lo"
21685 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS camellia-ppc9le.lo"
21686 ;;
21687 esac
21688
21689 if test x"$avxsupport" = xyes ; then
21690 if test x"$aesnisupport" = xyes ; then
21691 # Build with the AES-NI/AVX implementation
21692 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS camellia-aesni-avx-amd64.lo"
21693 fi
21694 fi
21695
21696 if test x"$avx2support" = xyes ; then
21697 if test x"$aesnisupport" = xyes ; then
21698 # Build with the AES-NI/AVX2 implementation
21699 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS camellia-aesni-avx2-amd64.lo"
21700
21701 # Build with the VAES/AVX2 implementation
21702 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS camellia-vaes-avx2-amd64.lo"
21703
21704 # Build with the GFNI/AVX2 implementation
21705 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS camellia-gfni-avx2-amd64.lo"
21706
21707 # Build with the GFNI/AVX512 implementation
21708 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS camellia-gfni-avx512-amd64.lo"
21709 fi
21710 fi
21711 fi
21712
21713
21714 name=idea
21715 list=$enabled_ciphers
21716 found=0
21717
21718 for n in $list; do
21719 if test "x$name" = "x$n"; then
21720 found=1
21721 fi
21722 done
21723
21724 if test "$found" = "1" ; then
21725 GCRYPT_CIPHERS="$GCRYPT_CIPHERS idea.lo"
21726
21727 printf "%s\n" "#define USE_IDEA 1" >>confdefs.h
21728
21729 fi
21730
21731
21732 name=salsa20
21733 list=$enabled_ciphers
21734 found=0
21735
21736 for n in $list; do
21737 if test "x$name" = "x$n"; then
21738 found=1
21739 fi
21740 done
21741
21742 if test "$found" = "1" ; then
21743 GCRYPT_CIPHERS="$GCRYPT_CIPHERS salsa20.lo"
21744
21745 printf "%s\n" "#define USE_SALSA20 1" >>confdefs.h
21746
21747
21748 case "${host}" in
21749 x86_64-*-*)
21750 # Build with the assembly implementation
21751 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS salsa20-amd64.lo"
21752 ;;
21753 esac
21754
21755 if test x"$neonsupport" = xyes ; then
21756 # Build with the NEON implementation
21757 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS salsa20-armv7-neon.lo"
21758 fi
21759 fi
21760
21761
21762 name=gost28147
21763 list=$enabled_ciphers
21764 found=0
21765
21766 for n in $list; do
21767 if test "x$name" = "x$n"; then
21768 found=1
21769 fi
21770 done
21771
21772 if test "$found" = "1" ; then
21773 GCRYPT_CIPHERS="$GCRYPT_CIPHERS gost28147.lo"
21774
21775 printf "%s\n" "#define USE_GOST28147 1" >>confdefs.h
21776
21777 fi
21778
21779
21780 name=chacha20
21781 list=$enabled_ciphers
21782 found=0
21783
21784 for n in $list; do
21785 if test "x$name" = "x$n"; then
21786 found=1
21787 fi
21788 done
21789
21790 if test "$found" = "1" ; then
21791 GCRYPT_CIPHERS="$GCRYPT_CIPHERS chacha20.lo"
21792
21793 printf "%s\n" "#define USE_CHACHA20 1" >>confdefs.h
21794
21795
21796 case "${host}" in
21797 x86_64-*-*)
21798 # Build with the assembly implementation
21799 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS chacha20-amd64-ssse3.lo"
21800 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS chacha20-amd64-avx2.lo"
21801 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS chacha20-amd64-avx512.lo"
21802 ;;
21803 aarch64-*-*)
21804 # Build with the assembly implementation
21805 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS chacha20-aarch64.lo"
21806 ;;
21807 powerpc64le-*-*)
21808 # Build with the ppc8 vector implementation
21809 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS chacha20-ppc.lo"
21810 # Build with the assembly implementation
21811 if test "$gcry_cv_gcc_inline_asm_ppc_altivec" = "yes" &&
21812 test "$gcry_cv_gcc_inline_asm_ppc_arch_3_00" = "yes" ; then
21813 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS chacha20-p10le-8x.lo"
21814 fi
21815 ;;
21816 powerpc64-*-*)
21817 # Build with the ppc8 vector implementation
21818 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS chacha20-ppc.lo"
21819 ;;
21820 powerpc-*-*)
21821 # Build with the ppc8 vector implementation
21822 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS chacha20-ppc.lo"
21823 ;;
21824 s390x-*-*)
21825 # Build with the s390x/zSeries vector implementation
21826 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS chacha20-s390x.lo"
21827 ;;
21828 esac
21829
21830 if test x"$neonsupport" = xyes ; then
21831 # Build with the NEON implementation
21832 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS chacha20-armv7-neon.lo"
21833 fi
21834 fi
21835
21836
21837 name=sm4
21838 list=$enabled_ciphers
21839 found=0
21840
21841 for n in $list; do
21842 if test "x$name" = "x$n"; then
21843 found=1
21844 fi
21845 done
21846
21847 if test "$found" = "1" ; then
21848 GCRYPT_CIPHERS="$GCRYPT_CIPHERS sm4.lo"
21849
21850 printf "%s\n" "#define USE_SM4 1" >>confdefs.h
21851
21852
21853 case "${host}" in
21854 x86_64-*-*)
21855 # Build with the assembly implementation
21856 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS sm4-aesni-avx-amd64.lo"
21857 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS sm4-aesni-avx2-amd64.lo"
21858 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS sm4-gfni-avx2-amd64.lo"
21859 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS sm4-gfni-avx512-amd64.lo"
21860 ;;
21861 aarch64-*-*)
21862 # Build with the assembly implementation
21863 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS sm4-aarch64.lo"
21864 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS sm4-armv8-aarch64-ce.lo"
21865 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS sm4-armv9-aarch64-sve-ce.lo"
21866 ;;
21867 powerpc64le-*-*)
21868 # Build with the ppc64le vector implementation
21869 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS sm4-ppc.lo"
21870 ;;
21871 esac
21872 fi
21873
21874
21875 name=aria
21876 list=$enabled_ciphers
21877 found=0
21878
21879 for n in $list; do
21880 if test "x$name" = "x$n"; then
21881 found=1
21882 fi
21883 done
21884
21885 if test "$found" = "1" ; then
21886 GCRYPT_CIPHERS="$GCRYPT_CIPHERS aria.lo"
21887
21888 printf "%s\n" "#define USE_ARIA 1" >>confdefs.h
21889
21890
21891 case "${host}" in
21892 x86_64-*-*)
21893 # Build with the assembly implementation
21894 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS aria-aesni-avx-amd64.lo"
21895 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS aria-aesni-avx2-amd64.lo"
21896 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS aria-gfni-avx512-amd64.lo"
21897 ;;
21898 esac
21899 fi
21900
21901
21902 name=dsa
21903 list=$enabled_pubkey_ciphers
21904 found=0
21905
21906 for n in $list; do
21907 if test "x$name" = "x$n"; then
21908 found=1
21909 fi
21910 done
21911
21912 if test "$found" = "1"; then
21913 USE_DSA_TRUE=
21914 USE_DSA_FALSE='#'
21915 else
21916 USE_DSA_TRUE='#'
21917 USE_DSA_FALSE=
21918 fi
21919
21920 if test "$found" = "1" ; then
21921 GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS dsa.lo"
21922
21923 printf "%s\n" "#define USE_DSA 1" >>confdefs.h
21924
21925 fi
21926
21927
21928 name=rsa
21929 list=$enabled_pubkey_ciphers
21930 found=0
21931
21932 for n in $list; do
21933 if test "x$name" = "x$n"; then
21934 found=1
21935 fi
21936 done
21937
21938 if test "$found" = "1"; then
21939 USE_RSA_TRUE=
21940 USE_RSA_FALSE='#'
21941 else
21942 USE_RSA_TRUE='#'
21943 USE_RSA_FALSE=
21944 fi
21945
21946 if test "$found" = "1" ; then
21947 GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS rsa.lo"
21948
21949 printf "%s\n" "#define USE_RSA 1" >>confdefs.h
21950
21951 fi
21952
21953
21954 name=elgamal
21955 list=$enabled_pubkey_ciphers
21956 found=0
21957
21958 for n in $list; do
21959 if test "x$name" = "x$n"; then
21960 found=1
21961 fi
21962 done
21963
21964 if test "$found" = "1"; then
21965 USE_ELGAMAL_TRUE=
21966 USE_ELGAMAL_FALSE='#'
21967 else
21968 USE_ELGAMAL_TRUE='#'
21969 USE_ELGAMAL_FALSE=
21970 fi
21971
21972 if test "$found" = "1" ; then
21973 GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS elgamal.lo"
21974
21975 printf "%s\n" "#define USE_ELGAMAL 1" >>confdefs.h
21976
21977 fi
21978
21979
21980 name=ecc
21981 list=$enabled_pubkey_ciphers
21982 found=0
21983
21984 for n in $list; do
21985 if test "x$name" = "x$n"; then
21986 found=1
21987 fi
21988 done
21989
21990 if test "$found" = "1"; then
21991 USE_ECC_TRUE=
21992 USE_ECC_FALSE='#'
21993 else
21994 USE_ECC_TRUE='#'
21995 USE_ECC_FALSE=
21996 fi
21997
21998 if test "$found" = "1" ; then
21999 GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS \
22000 ecc.lo ecc-curves.lo ecc-misc.lo \
22001 ecc-ecdh.lo ecc-ecdsa.lo ecc-eddsa.lo ecc-gost.lo \
22002 ecc-sm2.lo"
22003
22004 printf "%s\n" "#define USE_ECC 1" >>confdefs.h
22005
22006 fi
22007
22008
22009 name=crc
22010 list=$enabled_digests
22011 found=0
22012
22013 for n in $list; do
22014 if test "x$name" = "x$n"; then
22015 found=1
22016 fi
22017 done
22018
22019 if test "$found" = "1" ; then
22020 GCRYPT_DIGESTS="$GCRYPT_DIGESTS crc.lo"
22021
22022 printf "%s\n" "#define USE_CRC 1" >>confdefs.h
22023
22024
22025 case "${host}" in
22026 i?86-*-* | x86_64-*-*)
22027 # Build with the assembly implementation
22028 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS crc-intel-pclmul.lo"
22029 ;;
22030 aarch64-*-*)
22031 # Build with the assembly implementation
22032 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS crc-armv8-ce.lo"
22033 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS crc-armv8-aarch64-ce.lo"
22034 ;;
22035 powerpc64le-*-*)
22036 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS crc-ppc.lo"
22037 ;;
22038 powerpc64-*-*)
22039 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS crc-ppc.lo"
22040 ;;
22041 powerpc-*-*)
22042 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS crc-ppc.lo"
22043 ;;
22044 esac
22045 fi
22046
22047
22048 name=gostr3411-94
22049 list=$enabled_digests
22050 found=0
22051
22052 for n in $list; do
22053 if test "x$name" = "x$n"; then
22054 found=1
22055 fi
22056 done
22057
22058 if test "$found" = "1" ; then
22059 # GOST R 34.11-94 internally uses GOST 28147-89
22060
22061 name=gost28147
22062 list=$enabled_ciphers
22063 found=0
22064
22065 for n in $list; do
22066 if test "x$name" = "x$n"; then
22067 found=1
22068 fi
22069 done
22070
22071 if test "$found" = "1" ; then
22072 GCRYPT_DIGESTS="$GCRYPT_DIGESTS gostr3411-94.lo"
22073
22074 printf "%s\n" "#define USE_GOST_R_3411_94 1" >>confdefs.h
22075
22076 fi
22077 fi
22078
22079
22080 name=stribog
22081 list=$enabled_digests
22082 found=0
22083
22084 for n in $list; do
22085 if test "x$name" = "x$n"; then
22086 found=1
22087 fi
22088 done
22089
22090 if test "$found" = "1" ; then
22091 GCRYPT_DIGESTS="$GCRYPT_DIGESTS stribog.lo"
22092
22093 printf "%s\n" "#define USE_GOST_R_3411_12 1" >>confdefs.h
22094
22095 fi
22096
22097
22098 name=md2
22099 list=$enabled_digests
22100 found=0
22101
22102 for n in $list; do
22103 if test "x$name" = "x$n"; then
22104 found=1
22105 fi
22106 done
22107
22108 if test "$found" = "1" ; then
22109 GCRYPT_DIGESTS="$GCRYPT_DIGESTS md2.lo"
22110
22111 printf "%s\n" "#define USE_MD2 1" >>confdefs.h
22112
22113 fi
22114
22115
22116 name=md4
22117 list=$enabled_digests
22118 found=0
22119
22120 for n in $list; do
22121 if test "x$name" = "x$n"; then
22122 found=1
22123 fi
22124 done
22125
22126 if test "$found" = "1" ; then
22127 GCRYPT_DIGESTS="$GCRYPT_DIGESTS md4.lo"
22128
22129 printf "%s\n" "#define USE_MD4 1" >>confdefs.h
22130
22131 fi
22132
22133
22134 name=md5
22135 list=$enabled_digests
22136 found=0
22137
22138 for n in $list; do
22139 if test "x$name" = "x$n"; then
22140 found=1
22141 fi
22142 done
22143
22144 if test "$found" = "1" ; then
22145 GCRYPT_DIGESTS="$GCRYPT_DIGESTS md5.lo"
22146
22147 printf "%s\n" "#define USE_MD5 1" >>confdefs.h
22148
22149 fi
22150
22151
22152 name=rmd160
22153 list=$enabled_digests
22154 found=0
22155
22156 for n in $list; do
22157 if test "x$name" = "x$n"; then
22158 found=1
22159 fi
22160 done
22161
22162 if test "$found" = "1" ; then
22163 GCRYPT_DIGESTS="$GCRYPT_DIGESTS rmd160.lo"
22164
22165 printf "%s\n" "#define USE_RMD160 1" >>confdefs.h
22166
22167 fi
22168
22169
22170 name=sha256
22171 list=$enabled_digests
22172 found=0
22173
22174 for n in $list; do
22175 if test "x$name" = "x$n"; then
22176 found=1
22177 fi
22178 done
22179
22180 if test "$found" = "1" ; then
22181 GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha256.lo"
22182
22183 printf "%s\n" "#define USE_SHA256 1" >>confdefs.h
22184
22185
22186 case "${host}" in
22187 x86_64-*-*)
22188 # Build with the assembly implementation
22189 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha256-ssse3-amd64.lo"
22190 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha256-avx-amd64.lo"
22191 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha256-avx2-bmi2-amd64.lo"
22192 ;;
22193 arm*-*-*)
22194 # Build with the assembly implementation
22195 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha256-armv8-aarch32-ce.lo"
22196 ;;
22197 aarch64-*-*)
22198 # Build with the assembly implementation
22199 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha256-armv8-aarch64-ce.lo"
22200 ;;
22201 powerpc64le-*-*)
22202 # Build with the crypto extension implementation
22203 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha256-ppc.lo"
22204 ;;
22205 powerpc64-*-*)
22206 # Big-Endian.
22207 # Build with the crypto extension implementation
22208 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha256-ppc.lo"
22209 ;;
22210 powerpc-*-*)
22211 # Big-Endian.
22212 # Build with the crypto extension implementation
22213 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha256-ppc.lo"
22214 esac
22215
22216 case "$mpi_cpu_arch" in
22217 x86)
22218 # Build with the SHAEXT implementation
22219 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha256-intel-shaext.lo"
22220 ;;
22221 esac
22222 fi
22223
22224
22225 name=sha512
22226 list=$enabled_digests
22227 found=0
22228
22229 for n in $list; do
22230 if test "x$name" = "x$n"; then
22231 found=1
22232 fi
22233 done
22234
22235 if test "$found" = "1" ; then
22236 GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha512.lo"
22237
22238 printf "%s\n" "#define USE_SHA512 1" >>confdefs.h
22239
22240
22241 case "${host}" in
22242 x86_64-*-*)
22243 # Build with the assembly implementation
22244 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha512-ssse3-amd64.lo"
22245 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha512-avx-amd64.lo"
22246 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha512-avx2-bmi2-amd64.lo"
22247 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha512-avx512-amd64.lo"
22248 ;;
22249 i?86-*-*)
22250 # Build with the assembly implementation
22251 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha512-ssse3-i386.lo"
22252 ;;
22253 arm*-*-*)
22254 # Build with the assembly implementation
22255 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha512-arm.lo"
22256 ;;
22257 aarch64-*-*)
22258 # Build with the assembly implementation
22259 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha512-armv8-aarch64-ce.lo"
22260 ;;
22261 powerpc64le-*-*)
22262 # Build with the crypto extension implementation
22263 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha512-ppc.lo"
22264 ;;
22265 powerpc64-*-*)
22266 # Big-Endian.
22267 # Build with the crypto extension implementation
22268 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha512-ppc.lo"
22269 ;;
22270 powerpc-*-*)
22271 # Big-Endian.
22272 # Build with the crypto extension implementation
22273 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha512-ppc.lo"
22274 esac
22275
22276 if test x"$neonsupport" = xyes ; then
22277 # Build with the NEON implementation
22278 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha512-armv7-neon.lo"
22279 fi
22280 fi
22281
22282
22283 name=sha3
22284 list=$enabled_digests
22285 found=0
22286
22287 for n in $list; do
22288 if test "x$name" = "x$n"; then
22289 found=1
22290 fi
22291 done
22292
22293 if test "$found" = "1" ; then
22294 GCRYPT_DIGESTS="$GCRYPT_DIGESTS keccak.lo"
22295
22296 printf "%s\n" "#define USE_SHA3 1" >>confdefs.h
22297
22298
22299 case "${host}" in
22300 x86_64-*-*)
22301 # Build with the assembly implementation
22302 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS keccak-amd64-avx512.lo"
22303 ;;
22304 esac
22305
22306 if test x"$neonsupport" = xyes ; then
22307 # Build with the NEON implementation
22308 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS keccak-armv7-neon.lo"
22309 fi
22310 fi
22311
22312
22313 name=tiger
22314 list=$enabled_digests
22315 found=0
22316
22317 for n in $list; do
22318 if test "x$name" = "x$n"; then
22319 found=1
22320 fi
22321 done
22322
22323 if test "$found" = "1" ; then
22324 GCRYPT_DIGESTS="$GCRYPT_DIGESTS tiger.lo"
22325
22326 printf "%s\n" "#define USE_TIGER 1" >>confdefs.h
22327
22328 fi
22329
22330
22331 name=whirlpool
22332 list=$enabled_digests
22333 found=0
22334
22335 for n in $list; do
22336 if test "x$name" = "x$n"; then
22337 found=1
22338 fi
22339 done
22340
22341 if test "$found" = "1" ; then
22342 GCRYPT_DIGESTS="$GCRYPT_DIGESTS whirlpool.lo"
22343
22344 printf "%s\n" "#define USE_WHIRLPOOL 1" >>confdefs.h
22345
22346
22347 case "${host}" in
22348 x86_64-*-*)
22349 # Build with the assembly implementation
22350 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS whirlpool-sse2-amd64.lo"
22351 ;;
22352 esac
22353 fi
22354
22355
22356 name=blake2
22357 list=$enabled_digests
22358 found=0
22359
22360 for n in $list; do
22361 if test "x$name" = "x$n"; then
22362 found=1
22363 fi
22364 done
22365
22366 if test "$found" = "1" ; then
22367 GCRYPT_DIGESTS="$GCRYPT_DIGESTS blake2.lo"
22368
22369 printf "%s\n" "#define USE_BLAKE2 1" >>confdefs.h
22370
22371
22372 case "${host}" in
22373 x86_64-*-*)
22374 # Build with the assembly implementation
22375 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS blake2b-amd64-avx2.lo"
22376 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS blake2b-amd64-avx512.lo"
22377 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS blake2s-amd64-avx.lo"
22378 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS blake2s-amd64-avx512.lo"
22379 ;;
22380 esac
22381 fi
22382
22383
22384 name=sm3
22385 list=$enabled_digests
22386 found=0
22387
22388 for n in $list; do
22389 if test "x$name" = "x$n"; then
22390 found=1
22391 fi
22392 done
22393
22394 if test "$found" = "1" ; then
22395 GCRYPT_DIGESTS="$GCRYPT_DIGESTS sm3.lo"
22396
22397 printf "%s\n" "#define USE_SM3 1" >>confdefs.h
22398
22399
22400 case "${host}" in
22401 x86_64-*-*)
22402 # Build with the assembly implementation
22403 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sm3-avx-bmi2-amd64.lo"
22404 ;;
22405 aarch64-*-*)
22406 # Build with the assembly implementation
22407 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sm3-aarch64.lo"
22408 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sm3-armv8-aarch64-ce.lo"
22409 ;;
22410 esac
22411 fi
22412
22413 # SHA-1 needs to be included always for example because it is used by
22414 # random-csprng.c.
22415 GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha1.lo"
22416
22417 printf "%s\n" "#define USE_SHA1 1" >>confdefs.h
22418
22419
22420 case "${host}" in
22421 x86_64-*-*)
22422 # Build with the assembly implementation
22423 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha1-ssse3-amd64.lo"
22424 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha1-avx-amd64.lo"
22425 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha1-avx-bmi2-amd64.lo"
22426 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha1-avx2-bmi2-amd64.lo"
22427 ;;
22428 arm*-*-*)
22429 # Build with the assembly implementation
22430 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha1-armv7-neon.lo"
22431 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha1-armv8-aarch32-ce.lo"
22432 ;;
22433 aarch64-*-*)
22434 # Build with the assembly implementation
22435 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha1-armv8-aarch64-ce.lo"
22436 ;;
22437 esac
22438
22439 case "$mpi_cpu_arch" in
22440 x86)
22441 # Build with the SHAEXT implementation
22442 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha1-intel-shaext.lo"
22443 ;;
22444 esac
22445
22446 # Arch specific GCM implementations
22447 case "${host}" in
22448 i?86-*-* | x86_64-*-*)
22449 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS cipher-gcm-intel-pclmul.lo"
22450 ;;
22451 arm*-*-*)
22452 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS cipher-gcm-armv7-neon.lo"
22453 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS cipher-gcm-armv8-aarch32-ce.lo"
22454 ;;
22455 aarch64-*-*)
22456 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS cipher-gcm-armv8-aarch64-ce.lo"
22457 ;;
22458 powerpc64le-*-* | powerpc64-*-* | powerpc-*-*)
22459 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS cipher-gcm-ppc.lo"
22460 ;;
22461 esac
22462
22463 # Arch specific MAC implementations
22464 case "${host}" in
22465 s390x-*-*)
22466 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS poly1305-s390x.lo"
22467 ;;
22468 x86_64-*-*)
22469 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS poly1305-amd64-avx512.lo"
22470 ;;
22471 powerpc64le-*-*)
22472 # Build with the assembly implementation
22473 if test "$gcry_cv_gcc_inline_asm_ppc_altivec" = "yes" &&
22474 test "$gcry_cv_gcc_inline_asm_ppc_arch_3_00" = "yes" ; then
22475 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS poly1305-p10le.lo"
22476 fi
22477 ;;
22478 esac
22479
22480
22481 name=scrypt
22482 list=$enabled_kdfs
22483 found=0
22484
22485 for n in $list; do
22486 if test "x$name" = "x$n"; then
22487 found=1
22488 fi
22489 done
22490
22491 if test "$found" = "1" ; then
22492 GCRYPT_KDFS="$GCRYPT_KDFS scrypt.lo"
22493
22494 printf "%s\n" "#define USE_SCRYPT 1" >>confdefs.h
22495
22496 fi
22497
22498
22499 name=getentropy
22500 list=$random_modules
22501 found=0
22502
22503 for n in $list; do
22504 if test "x$name" = "x$n"; then
22505 found=1
22506 fi
22507 done
22508
22509 if test "$found" = "1" ; then
22510 GCRYPT_RANDOM="$GCRYPT_RANDOM rndgetentropy.lo"
22511
22512 printf "%s\n" "#define USE_RNDGETENTROPY 1" >>confdefs.h
22513
22514 fi
22515
22516
22517 name=linux
22518 list=$random_modules
22519 found=0
22520
22521 for n in $list; do
22522 if test "x$name" = "x$n"; then
22523 found=1
22524 fi
22525 done
22526
22527 if test "$found" = "1" ; then
22528 GCRYPT_RANDOM="$GCRYPT_RANDOM rndoldlinux.lo"
22529
22530 printf "%s\n" "#define USE_RNDOLDLINUX 1" >>confdefs.h
22531
22532 fi
22533
22534
22535 name=unix
22536 list=$random_modules
22537 found=0
22538
22539 for n in $list; do
22540 if test "x$name" = "x$n"; then
22541 found=1
22542 fi
22543 done
22544
22545 if test "$found" = "1" ; then
22546 GCRYPT_RANDOM="$GCRYPT_RANDOM rndunix.lo"
22547
22548 printf "%s\n" "#define USE_RNDUNIX 1" >>confdefs.h
22549
22550 fi
22551
22552
22553 name=egd
22554 list=$random_modules
22555 found=0
22556
22557 for n in $list; do
22558 if test "x$name" = "x$n"; then
22559 found=1
22560 fi
22561 done
22562
22563 if test "$found" = "1" ; then
22564 GCRYPT_RANDOM="$GCRYPT_RANDOM rndegd.lo"
22565
22566 printf "%s\n" "#define USE_RNDEGD 1" >>confdefs.h
22567
22568 fi
22569
22570
22571 name=w32
22572 list=$random_modules
22573 found=0
22574
22575 for n in $list; do
22576 if test "x$name" = "x$n"; then
22577 found=1
22578 fi
22579 done
22580
22581 if test "$found" = "1" ; then
22582 GCRYPT_RANDOM="$GCRYPT_RANDOM rndw32.lo"
22583
22584 printf "%s\n" "#define USE_RNDW32 1" >>confdefs.h
22585
22586 fi
22587
22588
22589 name=w32ce
22590 list=$random_modules
22591 found=0
22592
22593 for n in $list; do
22594 if test "x$name" = "x$n"; then
22595 found=1
22596 fi
22597 done
22598
22599 if test "$found" = "1" ; then
22600 GCRYPT_RANDOM="$GCRYPT_RANDOM rndw32ce.lo"
22601
22602 printf "%s\n" "#define USE_RNDW32CE 1" >>confdefs.h
22603
22604 fi
22605
22606 if test "$try_asm_modules" = yes ; then
22607 # Build with assembly implementations
22608 GCRYPT_CIPHERS="$GCRYPT_CIPHERS $GCRYPT_ASM_CIPHERS"
22609 GCRYPT_DIGESTS="$GCRYPT_DIGESTS $GCRYPT_ASM_DIGESTS"
22610 fi
22611
22612
22613
22614
22615
22616
22617
22618 LIBGCRYPT_CIPHERS=$enabled_ciphers
22619
22620 LIBGCRYPT_PUBKEY_CIPHERS=$enabled_pubkey_ciphers
22621
22622 LIBGCRYPT_DIGESTS=$enabled_digests
22623
22624
22625 # For printing the configuration we need a colon separated list of
22626 # algorithm names.
22627 tmp=`echo "$enabled_ciphers" | tr ' ' : `
22628
22629 printf "%s\n" "#define LIBGCRYPT_CIPHERS \"$tmp\"" >>confdefs.h
22630
22631 tmp=`echo "$enabled_pubkey_ciphers" | tr ' ' : `
22632
22633 printf "%s\n" "#define LIBGCRYPT_PUBKEY_CIPHERS \"$tmp\"" >>confdefs.h
22634
22635 tmp=`echo "$enabled_digests" | tr ' ' : `
22636
22637 printf "%s\n" "#define LIBGCRYPT_DIGESTS \"$tmp\"" >>confdefs.h
22638
22639 tmp=`echo "$enabled_kdfs" | tr ' ' : `
22640
22641 printf "%s\n" "#define LIBGCRYPT_KDFS \"$tmp\"" >>confdefs.h
22642
22643
22644
22645 #
22646 # Define conditional sources depending on the used hardware platform.
22647 # Note that all possible modules must also be listed in
22648 # src/Makefile.am (EXTRA_libgcrypt_la_SOURCES).
22649 #
22650 GCRYPT_HWF_MODULES=
22651 case "$mpi_cpu_arch" in
22652 x86)
22653
22654 printf "%s\n" "#define HAVE_CPU_ARCH_X86 1" >>confdefs.h
22655
22656 GCRYPT_HWF_MODULES="libgcrypt_la-hwf-x86.lo"
22657 ;;
22658 alpha)
22659
22660 printf "%s\n" "#define HAVE_CPU_ARCH_ALPHA 1" >>confdefs.h
22661
22662 ;;
22663 sparc)
22664
22665 printf "%s\n" "#define HAVE_CPU_ARCH_SPARC 1" >>confdefs.h
22666
22667 ;;
22668 mips)
22669
22670 printf "%s\n" "#define HAVE_CPU_ARCH_MIPS 1" >>confdefs.h
22671
22672 ;;
22673 m68k)
22674
22675 printf "%s\n" "#define HAVE_CPU_ARCH_M68K 1" >>confdefs.h
22676
22677 ;;
22678 ppc)
22679
22680 printf "%s\n" "#define HAVE_CPU_ARCH_PPC 1" >>confdefs.h
22681
22682 GCRYPT_HWF_MODULES="libgcrypt_la-hwf-ppc.lo"
22683 ;;
22684 arm)
22685
22686 printf "%s\n" "#define HAVE_CPU_ARCH_ARM 1" >>confdefs.h
22687
22688 GCRYPT_HWF_MODULES="libgcrypt_la-hwf-arm.lo"
22689 ;;
22690 aarch64)
22691
22692 printf "%s\n" "#define HAVE_CPU_ARCH_ARM 1" >>confdefs.h
22693
22694 GCRYPT_HWF_MODULES="libgcrypt_la-hwf-arm.lo"
22695 ;;
22696 s390x)
22697
22698 printf "%s\n" "#define HAVE_CPU_ARCH_S390X 1" >>confdefs.h
22699
22700 GCRYPT_HWF_MODULES="libgcrypt_la-hwf-s390x.lo"
22701 ;;
22702 esac
22703
22704
22705
22706 #
22707 # Option to disable building of doc file
22708 #
22709 build_doc=yes
22710 # Check whether --enable-doc was given.
22711 if test ${enable_doc+y}
22712 then :
22713 enableval=$enable_doc; build_doc=$enableval
22714 else $as_nop
22715 build_doc=yes
22716 fi
22717
22718 if test "x$build_doc" != xno; then
22719 BUILD_DOC_TRUE=
22720 BUILD_DOC_FALSE='#'
22721 else
22722 BUILD_DOC_TRUE='#'
22723 BUILD_DOC_FALSE=
22724 fi
22725
22726
22727
22728 #
22729 # Provide information about the build.
22730 #
22731 BUILD_REVISION="9d94d784"
22732
22733
22734 printf "%s\n" "#define BUILD_REVISION \"$BUILD_REVISION\"" >>confdefs.h
22735
22736
22737 BUILD_VERSION=`echo "$PACKAGE_VERSION" | sed 's/\([0-9.]*\).*/\1./'`
22738 BUILD_VERSION="${BUILD_VERSION}40340"
22739 BUILD_FILEVERSION=`echo "${BUILD_VERSION}" | tr . ,`
22740
22741
22742
22743 # Check whether --enable-build-timestamp was given.
22744 if test ${enable_build_timestamp+y}
22745 then :
22746 enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
22747 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
22748 else
22749 BUILD_TIMESTAMP="$enableval"
22750 fi
22751 else $as_nop
22752 BUILD_TIMESTAMP="<none>"
22753 fi
22754
22755
22756
22757 printf "%s\n" "#define BUILD_TIMESTAMP \"$BUILD_TIMESTAMP\"" >>confdefs.h
22758
22759
22760
22761 # And create the files.
22762 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/libgcrypt.pc src/versioninfo.rc tests/Makefile"
22763
22764 ac_config_files="$ac_config_files tests/hashtest-6g"
22765
22766 ac_config_files="$ac_config_files tests/hashtest-256g"
22767
22768 ac_config_files="$ac_config_files tests/basic-disable-all-hwf"
22769
22770 cat >confcache <<\_ACEOF
22771 # This file is a shell script that caches the results of configure
22772 # tests run on this system so they can be shared between configure
22773 # scripts and configure runs, see configure's option --config-cache.
22774 # It is not useful on other systems. If it contains results you don't
22775 # want to keep, you may remove or edit it.
22776 #
22777 # config.status only pays attention to the cache file if you give it
22778 # the --recheck option to rerun configure.
22779 #
22780 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22781 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22782 # following values.
22783
22784 _ACEOF
22785
22786 # The following way of writing the cache mishandles newlines in values,
22787 # but we know of no workaround that is simple, portable, and efficient.
22788 # So, we kill variables containing newlines.
22789 # Ultrix sh set writes to stderr and can't be redirected directly,
22790 # and sets the high bit in the cache file unless we assign to the vars.
22791 (
22792 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22793 eval ac_val=\$$ac_var
22794 case $ac_val in #(
22795 *${as_nl}*)
22796 case $ac_var in #(
22797 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22798 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22799 esac
22800 case $ac_var in #(
22801 _ | IFS | as_nl) ;; #(
22802 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22803 *) { eval $ac_var=; unset $ac_var;} ;;
22804 esac ;;
22805 esac
22806 done
22807
22808 (set) 2>&1 |
22809 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22810 *${as_nl}ac_space=\ *)
22811 # `set' does not quote correctly, so add quotes: double-quote
22812 # substitution turns \\\\ into \\, and sed turns \\ into \.
22813 sed -n \
22814 "s/'/'\\\\''/g;
22815 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22816 ;; #(
22817 *)
22818 # `set' quotes correctly as required by POSIX, so do not add quotes.
22819 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22820 ;;
22821 esac |
22822 sort
22823 ) |
22824 sed '
22825 /^ac_cv_env_/b end
22826 t clear
22827 :clear
22828 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
22829 t end
22830 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22831 :end' >>confcache
22832 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22833 if test -w "$cache_file"; then
22834 if test "x$cache_file" != "x/dev/null"; then
22835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22836 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
22837 if test ! -f "$cache_file" || test -h "$cache_file"; then
22838 cat confcache >"$cache_file"
22839 else
22840 case $cache_file in #(
22841 */* | ?:*)
22842 mv -f confcache "$cache_file"$$ &&
22843 mv -f "$cache_file"$$ "$cache_file" ;; #(
22844 *)
22845 mv -f confcache "$cache_file" ;;
22846 esac
22847 fi
22848 fi
22849 else
22850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22851 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
22852 fi
22853 fi
22854 rm -f confcache
22855
22856 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22857 # Let make expand exec_prefix.
22858 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22859
22860 DEFS=-DHAVE_CONFIG_H
22861
22862 ac_libobjs=
22863 ac_ltlibobjs=
22864 U=
22865 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22866 # 1. Remove the extension, and $U if already installed.
22867 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22868 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
22869 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22870 # will be set to the directory where LIBOBJS objects are built.
22871 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22872 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22873 done
22874 LIBOBJS=$ac_libobjs
22875
22876 LTLIBOBJS=$ac_ltlibobjs
22877
22878
22879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22880 printf %s "checking that generated files are newer than configure... " >&6; }
22881 if test -n "$am_sleep_pid"; then
22882 # Hide warnings about reused PIDs.
22883 wait $am_sleep_pid 2>/dev/null
22884 fi
22885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
22886 printf "%s\n" "done" >&6; }
22887 if test -n "$EXEEXT"; then
22888 am__EXEEXT_TRUE=
22889 am__EXEEXT_FALSE='#'
22890 else
22891 am__EXEEXT_TRUE='#'
22892 am__EXEEXT_FALSE=
22893 fi
22894
22895 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22896 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22897 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22898 fi
22899 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22900 as_fn_error $? "conditional \"AMDEP\" was never defined.
22901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22902 fi
22903 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22904 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22906 fi
22907 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22908 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22910 fi
22911 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
22912 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
22913 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22914 fi
22915 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
22916 as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
22917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22918 fi
22919 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
22920 as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
22921 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22922 fi
22923
22924 if test -z "${USE_HMAC_BINARY_CHECK_TRUE}" && test -z "${USE_HMAC_BINARY_CHECK_FALSE}"; then
22925 as_fn_error $? "conditional \"USE_HMAC_BINARY_CHECK\" was never defined.
22926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22927 fi
22928 if test -z "${ENABLE_O_FLAG_MUNGING_TRUE}" && test -z "${ENABLE_O_FLAG_MUNGING_FALSE}"; then
22929 as_fn_error $? "conditional \"ENABLE_O_FLAG_MUNGING\" was never defined.
22930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22931 fi
22932 if test -z "${ENABLE_INSTRUMENTATION_MUNGING_TRUE}" && test -z "${ENABLE_INSTRUMENTATION_MUNGING_FALSE}"; then
22933 as_fn_error $? "conditional \"ENABLE_INSTRUMENTATION_MUNGING\" was never defined.
22934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22935 fi
22936 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
22937 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
22938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22939 fi
22940 if test -z "${USE_GPGRT_CONFIG_TRUE}" && test -z "${USE_GPGRT_CONFIG_FALSE}"; then
22941 as_fn_error $? "conditional \"USE_GPGRT_CONFIG\" was never defined.
22942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22943 fi
22944 if test -z "${MPI_MOD_ASM_MPIH_ADD1_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_ADD1_FALSE}"; then
22945 as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_ADD1\" was never defined.
22946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22947 fi
22948 if test -z "${MPI_MOD_ASM_MPIH_SUB1_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_SUB1_FALSE}"; then
22949 as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_SUB1\" was never defined.
22950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22951 fi
22952 if test -z "${MPI_MOD_ASM_MPIH_MUL1_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_MUL1_FALSE}"; then
22953 as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_MUL1\" was never defined.
22954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22955 fi
22956 if test -z "${MPI_MOD_ASM_MPIH_MUL2_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_MUL2_FALSE}"; then
22957 as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_MUL2\" was never defined.
22958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22959 fi
22960 if test -z "${MPI_MOD_ASM_MPIH_MUL3_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_MUL3_FALSE}"; then
22961 as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_MUL3\" was never defined.
22962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22963 fi
22964 if test -z "${MPI_MOD_ASM_MPIH_LSHIFT_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_LSHIFT_FALSE}"; then
22965 as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_LSHIFT\" was never defined.
22966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22967 fi
22968 if test -z "${MPI_MOD_ASM_MPIH_RSHIFT_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_RSHIFT_FALSE}"; then
22969 as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_RSHIFT\" was never defined.
22970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22971 fi
22972 if test -z "${MPI_MOD_ASM_UDIV_TRUE}" && test -z "${MPI_MOD_ASM_UDIV_FALSE}"; then
22973 as_fn_error $? "conditional \"MPI_MOD_ASM_UDIV\" was never defined.
22974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22975 fi
22976 if test -z "${MPI_MOD_ASM_UDIV_QRNND_TRUE}" && test -z "${MPI_MOD_ASM_UDIV_QRNND_FALSE}"; then
22977 as_fn_error $? "conditional \"MPI_MOD_ASM_UDIV_QRNND\" was never defined.
22978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22979 fi
22980 if test -z "${MPI_MOD_C_MPIH_ADD1_TRUE}" && test -z "${MPI_MOD_C_MPIH_ADD1_FALSE}"; then
22981 as_fn_error $? "conditional \"MPI_MOD_C_MPIH_ADD1\" was never defined.
22982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22983 fi
22984 if test -z "${MPI_MOD_C_MPIH_SUB1_TRUE}" && test -z "${MPI_MOD_C_MPIH_SUB1_FALSE}"; then
22985 as_fn_error $? "conditional \"MPI_MOD_C_MPIH_SUB1\" was never defined.
22986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22987 fi
22988 if test -z "${MPI_MOD_C_MPIH_MUL1_TRUE}" && test -z "${MPI_MOD_C_MPIH_MUL1_FALSE}"; then
22989 as_fn_error $? "conditional \"MPI_MOD_C_MPIH_MUL1\" was never defined.
22990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22991 fi
22992 if test -z "${MPI_MOD_C_MPIH_MUL2_TRUE}" && test -z "${MPI_MOD_C_MPIH_MUL2_FALSE}"; then
22993 as_fn_error $? "conditional \"MPI_MOD_C_MPIH_MUL2\" was never defined.
22994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22995 fi
22996 if test -z "${MPI_MOD_C_MPIH_MUL3_TRUE}" && test -z "${MPI_MOD_C_MPIH_MUL3_FALSE}"; then
22997 as_fn_error $? "conditional \"MPI_MOD_C_MPIH_MUL3\" was never defined.
22998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22999 fi
23000 if test -z "${MPI_MOD_C_MPIH_LSHIFT_TRUE}" && test -z "${MPI_MOD_C_MPIH_LSHIFT_FALSE}"; then
23001 as_fn_error $? "conditional \"MPI_MOD_C_MPIH_LSHIFT\" was never defined.
23002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23003 fi
23004 if test -z "${MPI_MOD_C_MPIH_RSHIFT_TRUE}" && test -z "${MPI_MOD_C_MPIH_RSHIFT_FALSE}"; then
23005 as_fn_error $? "conditional \"MPI_MOD_C_MPIH_RSHIFT\" was never defined.
23006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23007 fi
23008 if test -z "${MPI_MOD_C_UDIV_TRUE}" && test -z "${MPI_MOD_C_UDIV_FALSE}"; then
23009 as_fn_error $? "conditional \"MPI_MOD_C_UDIV\" was never defined.
23010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23011 fi
23012 if test -z "${MPI_MOD_C_UDIV_QRNND_TRUE}" && test -z "${MPI_MOD_C_UDIV_QRNND_FALSE}"; then
23013 as_fn_error $? "conditional \"MPI_MOD_C_UDIV_QRNND\" was never defined.
23014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23015 fi
23016 if test -z "${ENABLE_X86_AVX512_INTRINSICS_EXTRA_CFLAGS_TRUE}" && test -z "${ENABLE_X86_AVX512_INTRINSICS_EXTRA_CFLAGS_FALSE}"; then
23017 as_fn_error $? "conditional \"ENABLE_X86_AVX512_INTRINSICS_EXTRA_CFLAGS\" was never defined.
23018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23019 fi
23020 if test -z "${ENABLE_AARCH64_NEON_INTRINSICS_EXTRA_CFLAGS_TRUE}" && test -z "${ENABLE_AARCH64_NEON_INTRINSICS_EXTRA_CFLAGS_FALSE}"; then
23021 as_fn_error $? "conditional \"ENABLE_AARCH64_NEON_INTRINSICS_EXTRA_CFLAGS\" was never defined.
23022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23023 fi
23024 if test -z "${ENABLE_PPC_VCRYPTO_EXTRA_CFLAGS_TRUE}" && test -z "${ENABLE_PPC_VCRYPTO_EXTRA_CFLAGS_FALSE}"; then
23025 as_fn_error $? "conditional \"ENABLE_PPC_VCRYPTO_EXTRA_CFLAGS\" was never defined.
23026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23027 fi
23028 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
23029 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
23030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23031 fi
23032 if test -z "${USE_DSA_TRUE}" && test -z "${USE_DSA_FALSE}"; then
23033 as_fn_error $? "conditional \"USE_DSA\" was never defined.
23034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23035 fi
23036 if test -z "${USE_RSA_TRUE}" && test -z "${USE_RSA_FALSE}"; then
23037 as_fn_error $? "conditional \"USE_RSA\" was never defined.
23038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23039 fi
23040 if test -z "${USE_ELGAMAL_TRUE}" && test -z "${USE_ELGAMAL_FALSE}"; then
23041 as_fn_error $? "conditional \"USE_ELGAMAL\" was never defined.
23042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23043 fi
23044 if test -z "${USE_ECC_TRUE}" && test -z "${USE_ECC_FALSE}"; then
23045 as_fn_error $? "conditional \"USE_ECC\" was never defined.
23046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23047 fi
23048 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
23049 as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
23050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23051 fi
23052
23053 : "${CONFIG_STATUS=./config.status}"
23054 ac_write_fail=0
23055 ac_clean_files_save=$ac_clean_files
23056 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23058 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
23059 as_write_fail=0
23060 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23061 #! $SHELL
23062 # Generated by $as_me.
23063 # Run this file to recreate the current configuration.
23064 # Compiler output produced by configure, useful for debugging
23065 # configure, is in config.log if it exists.
23066
23067 debug=false
23068 ac_cs_recheck=false
23069 ac_cs_silent=false
23070
23071 SHELL=\${CONFIG_SHELL-$SHELL}
23072 export SHELL
23073 _ASEOF
23074 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23075 ## -------------------- ##
23076 ## M4sh Initialization. ##
23077 ## -------------------- ##
23078
23079 # Be more Bourne compatible
23080 DUALCASE=1; export DUALCASE # for MKS sh
23081 as_nop=:
23082 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23083 then :
23084 emulate sh
23085 NULLCMD=:
23086 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23087 # is contrary to our usage. Disable this feature.
23088 alias -g '${1+"$@"}'='"$@"'
23089 setopt NO_GLOB_SUBST
23090 else $as_nop
23091 case `(set -o) 2>/dev/null` in #(
23092 *posix*) :
23093 set -o posix ;; #(
23094 *) :
23095 ;;
23096 esac
23097 fi
23098
23099
23100
23101 # Reset variables that may have inherited troublesome values from
23102 # the environment.
23103
23104 # IFS needs to be set, to space, tab, and newline, in precisely that order.
23105 # (If _AS_PATH_WALK were called with IFS unset, it would have the
23106 # side effect of setting IFS to empty, thus disabling word splitting.)
23107 # Quoting is to prevent editors from complaining about space-tab.
23108 as_nl='
23109 '
23110 export as_nl
23111 IFS=" "" $as_nl"
23112
23113 PS1='$ '
23114 PS2='> '
23115 PS4='+ '
23116
23117 # Ensure predictable behavior from utilities with locale-dependent output.
23118 LC_ALL=C
23119 export LC_ALL
23120 LANGUAGE=C
23121 export LANGUAGE
23122
23123 # We cannot yet rely on "unset" to work, but we need these variables
23124 # to be unset--not just set to an empty or harmless value--now, to
23125 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
23126 # also avoids known problems related to "unset" and subshell syntax
23127 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
23128 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
23129 do eval test \${$as_var+y} \
23130 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23131 done
23132
23133 # Ensure that fds 0, 1, and 2 are open.
23134 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
23135 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
23136 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
23137
23138 # The user is always right.
23139 if ${PATH_SEPARATOR+false} :; then
23140 PATH_SEPARATOR=:
23141 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23142 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23143 PATH_SEPARATOR=';'
23144 }
23145 fi
23146
23147
23148 # Find who we are. Look in the path if we contain no directory separator.
23149 as_myself=
23150 case $0 in #((
23151 *[\\/]* ) as_myself=$0 ;;
23152 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23153 for as_dir in $PATH
23154 do
23155 IFS=$as_save_IFS
23156 case $as_dir in #(((
23157 '') as_dir=./ ;;
23158 */) ;;
23159 *) as_dir=$as_dir/ ;;
23160 esac
23161 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
23162 done
23163 IFS=$as_save_IFS
23164
23165 ;;
23166 esac
23167 # We did not find ourselves, most probably we were run as `sh COMMAND'
23168 # in which case we are not to be found in the path.
23169 if test "x$as_myself" = x; then
23170 as_myself=$0
23171 fi
23172 if test ! -f "$as_myself"; then
23173 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23174 exit 1
23175 fi
23176
23177
23178
23179 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23180 # ----------------------------------------
23181 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23182 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23183 # script with STATUS, using 1 if that was 0.
23184 as_fn_error ()
23185 {
23186 as_status=$1; test $as_status -eq 0 && as_status=1
23187 if test "$4"; then
23188 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23190 fi
23191 printf "%s\n" "$as_me: error: $2" >&2
23192 as_fn_exit $as_status
23193 } # as_fn_error
23194
23195
23196
23197 # as_fn_set_status STATUS
23198 # -----------------------
23199 # Set $? to STATUS, without forking.
23200 as_fn_set_status ()
23201 {
23202 return $1
23203 } # as_fn_set_status
23204
23205 # as_fn_exit STATUS
23206 # -----------------
23207 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23208 as_fn_exit ()
23209 {
23210 set +e
23211 as_fn_set_status $1
23212 exit $1
23213 } # as_fn_exit
23214
23215 # as_fn_unset VAR
23216 # ---------------
23217 # Portably unset VAR.
23218 as_fn_unset ()
23219 {
23220 { eval $1=; unset $1;}
23221 }
23222 as_unset=as_fn_unset
23223
23224 # as_fn_append VAR VALUE
23225 # ----------------------
23226 # Append the text in VALUE to the end of the definition contained in VAR. Take
23227 # advantage of any shell optimizations that allow amortized linear growth over
23228 # repeated appends, instead of the typical quadratic growth present in naive
23229 # implementations.
23230 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
23231 then :
23232 eval 'as_fn_append ()
23233 {
23234 eval $1+=\$2
23235 }'
23236 else $as_nop
23237 as_fn_append ()
23238 {
23239 eval $1=\$$1\$2
23240 }
23241 fi # as_fn_append
23242
23243 # as_fn_arith ARG...
23244 # ------------------
23245 # Perform arithmetic evaluation on the ARGs, and store the result in the
23246 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23247 # must be portable across $(()) and expr.
23248 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
23249 then :
23250 eval 'as_fn_arith ()
23251 {
23252 as_val=$(( $* ))
23253 }'
23254 else $as_nop
23255 as_fn_arith ()
23256 {
23257 as_val=`expr "$@" || test $? -eq 1`
23258 }
23259 fi # as_fn_arith
23260
23261
23262 if expr a : '\(a\)' >/dev/null 2>&1 &&
23263 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23264 as_expr=expr
23265 else
23266 as_expr=false
23267 fi
23268
23269 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23270 as_basename=basename
23271 else
23272 as_basename=false
23273 fi
23274
23275 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23276 as_dirname=dirname
23277 else
23278 as_dirname=false
23279 fi
23280
23281 as_me=`$as_basename -- "$0" ||
23282 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23283 X"$0" : 'X\(//\)$' \| \
23284 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23285 printf "%s\n" X/"$0" |
23286 sed '/^.*\/\([^/][^/]*\)\/*$/{
23287 s//\1/
23288 q
23289 }
23290 /^X\/\(\/\/\)$/{
23291 s//\1/
23292 q
23293 }
23294 /^X\/\(\/\).*/{
23295 s//\1/
23296 q
23297 }
23298 s/.*/./; q'`
23299
23300 # Avoid depending upon Character Ranges.
23301 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23302 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23303 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23304 as_cr_digits='0123456789'
23305 as_cr_alnum=$as_cr_Letters$as_cr_digits
23306
23307
23308 # Determine whether it's possible to make 'echo' print without a newline.
23309 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
23310 # for compatibility with existing Makefiles.
23311 ECHO_C= ECHO_N= ECHO_T=
23312 case `echo -n x` in #(((((
23313 -n*)
23314 case `echo 'xy\c'` in
23315 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23316 xy) ECHO_C='\c';;
23317 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23318 ECHO_T=' ';;
23319 esac;;
23320 *)
23321 ECHO_N='-n';;
23322 esac
23323
23324 # For backward compatibility with old third-party macros, we provide
23325 # the shell variables $as_echo and $as_echo_n. New code should use
23326 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
23327 as_echo='printf %s\n'
23328 as_echo_n='printf %s'
23329
23330 rm -f conf$$ conf$$.exe conf$$.file
23331 if test -d conf$$.dir; then
23332 rm -f conf$$.dir/conf$$.file
23333 else
23334 rm -f conf$$.dir
23335 mkdir conf$$.dir 2>/dev/null
23336 fi
23337 if (echo >conf$$.file) 2>/dev/null; then
23338 if ln -s conf$$.file conf$$ 2>/dev/null; then
23339 as_ln_s='ln -s'
23340 # ... but there are two gotchas:
23341 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23342 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23343 # In both cases, we have to default to `cp -pR'.
23344 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23345 as_ln_s='cp -pR'
23346 elif ln conf$$.file conf$$ 2>/dev/null; then
23347 as_ln_s=ln
23348 else
23349 as_ln_s='cp -pR'
23350 fi
23351 else
23352 as_ln_s='cp -pR'
23353 fi
23354 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23355 rmdir conf$$.dir 2>/dev/null
23356
23357
23358 # as_fn_mkdir_p
23359 # -------------
23360 # Create "$as_dir" as a directory, including parents if necessary.
23361 as_fn_mkdir_p ()
23362 {
23363
23364 case $as_dir in #(
23365 -*) as_dir=./$as_dir;;
23366 esac
23367 test -d "$as_dir" || eval $as_mkdir_p || {
23368 as_dirs=
23369 while :; do
23370 case $as_dir in #(
23371 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23372 *) as_qdir=$as_dir;;
23373 esac
23374 as_dirs="'$as_qdir' $as_dirs"
23375 as_dir=`$as_dirname -- "$as_dir" ||
23376 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23377 X"$as_dir" : 'X\(//\)[^/]' \| \
23378 X"$as_dir" : 'X\(//\)$' \| \
23379 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23380 printf "%s\n" X"$as_dir" |
23381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23382 s//\1/
23383 q
23384 }
23385 /^X\(\/\/\)[^/].*/{
23386 s//\1/
23387 q
23388 }
23389 /^X\(\/\/\)$/{
23390 s//\1/
23391 q
23392 }
23393 /^X\(\/\).*/{
23394 s//\1/
23395 q
23396 }
23397 s/.*/./; q'`
23398 test -d "$as_dir" && break
23399 done
23400 test -z "$as_dirs" || eval "mkdir $as_dirs"
23401 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23402
23403
23404 } # as_fn_mkdir_p
23405 if mkdir -p . 2>/dev/null; then
23406 as_mkdir_p='mkdir -p "$as_dir"'
23407 else
23408 test -d ./-p && rmdir ./-p
23409 as_mkdir_p=false
23410 fi
23411
23412
23413 # as_fn_executable_p FILE
23414 # -----------------------
23415 # Test if FILE is an executable regular file.
23416 as_fn_executable_p ()
23417 {
23418 test -f "$1" && test -x "$1"
23419 } # as_fn_executable_p
23420 as_test_x='test -x'
23421 as_executable_p=as_fn_executable_p
23422
23423 # Sed expression to map a string onto a valid CPP name.
23424 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23425
23426 # Sed expression to map a string onto a valid variable name.
23427 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23428
23429
23430 exec 6>&1
23431 ## ----------------------------------- ##
23432 ## Main body of $CONFIG_STATUS script. ##
23433 ## ----------------------------------- ##
23434 _ASEOF
23435 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23436
23437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23438 # Save the log message, to keep $0 and so on meaningful, and to
23439 # report actual input values of CONFIG_FILES etc. instead of their
23440 # values after options handling.
23441 ac_log="
23442 This file was extended by libgcrypt $as_me 1.11.0, which was
23443 generated by GNU Autoconf 2.71. Invocation command line was
23444
23445 CONFIG_FILES = $CONFIG_FILES
23446 CONFIG_HEADERS = $CONFIG_HEADERS
23447 CONFIG_LINKS = $CONFIG_LINKS
23448 CONFIG_COMMANDS = $CONFIG_COMMANDS
23449 $ $0 $@
23450
23451 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23452 "
23453
23454 _ACEOF
23455
23456 case $ac_config_files in *"
23457 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23458 esac
23459
23460 case $ac_config_headers in *"
23461 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23462 esac
23463
23464
23465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23466 # Files that config.status was made for.
23467 config_files="$ac_config_files"
23468 config_headers="$ac_config_headers"
23469 config_links="$ac_config_links"
23470 config_commands="$ac_config_commands"
23471
23472 _ACEOF
23473
23474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23475 ac_cs_usage="\
23476 \`$as_me' instantiates files and other configuration actions
23477 from templates according to the current configuration. Unless the files
23478 and actions are specified as TAGs, all are instantiated by default.
23479
23480 Usage: $0 [OPTION]... [TAG]...
23481
23482 -h, --help print this help, then exit
23483 -V, --version print version number and configuration settings, then exit
23484 --config print configuration, then exit
23485 -q, --quiet, --silent
23486 do not print progress messages
23487 -d, --debug don't remove temporary files
23488 --recheck update $as_me by reconfiguring in the same conditions
23489 --file=FILE[:TEMPLATE]
23490 instantiate the configuration file FILE
23491 --header=FILE[:TEMPLATE]
23492 instantiate the configuration header FILE
23493
23494 Configuration files:
23495 $config_files
23496
23497 Configuration headers:
23498 $config_headers
23499
23500 Configuration links:
23501 $config_links
23502
23503 Configuration commands:
23504 $config_commands
23505
23506 Report bugs to <https://bugs.gnupg.org>."
23507
23508 _ACEOF
23509 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
23510 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
23511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23512 ac_cs_config='$ac_cs_config_escaped'
23513 ac_cs_version="\\
23514 libgcrypt config.status 1.11.0
23515 configured by $0, generated by GNU Autoconf 2.71,
23516 with options \\"\$ac_cs_config\\"
23517
23518 Copyright (C) 2021 Free Software Foundation, Inc.
23519 This config.status script is free software; the Free Software Foundation
23520 gives unlimited permission to copy, distribute and modify it."
23521
23522 ac_pwd='$ac_pwd'
23523 srcdir='$srcdir'
23524 INSTALL='$INSTALL'
23525 MKDIR_P='$MKDIR_P'
23526 AWK='$AWK'
23527 test -n "\$AWK" || AWK=awk
23528 _ACEOF
23529
23530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23531 # The default lists apply if the user does not specify any file.
23532 ac_need_defaults=:
23533 while test $# != 0
23534 do
23535 case $1 in
23536 --*=?*)
23537 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23538 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23539 ac_shift=:
23540 ;;
23541 --*=)
23542 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23543 ac_optarg=
23544 ac_shift=:
23545 ;;
23546 *)
23547 ac_option=$1
23548 ac_optarg=$2
23549 ac_shift=shift
23550 ;;
23551 esac
23552
23553 case $ac_option in
23554 # Handling of the options.
23555 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23556 ac_cs_recheck=: ;;
23557 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23558 printf "%s\n" "$ac_cs_version"; exit ;;
23559 --config | --confi | --conf | --con | --co | --c )
23560 printf "%s\n" "$ac_cs_config"; exit ;;
23561 --debug | --debu | --deb | --de | --d | -d )
23562 debug=: ;;
23563 --file | --fil | --fi | --f )
23564 $ac_shift
23565 case $ac_optarg in
23566 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23567 '') as_fn_error $? "missing file argument" ;;
23568 esac
23569 as_fn_append CONFIG_FILES " '$ac_optarg'"
23570 ac_need_defaults=false;;
23571 --header | --heade | --head | --hea )
23572 $ac_shift
23573 case $ac_optarg in
23574 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23575 esac
23576 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23577 ac_need_defaults=false;;
23578 --he | --h)
23579 # Conflict between --help and --header
23580 as_fn_error $? "ambiguous option: \`$1'
23581 Try \`$0 --help' for more information.";;
23582 --help | --hel | -h )
23583 printf "%s\n" "$ac_cs_usage"; exit ;;
23584 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23585 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23586 ac_cs_silent=: ;;
23587
23588 # This is an error.
23589 -*) as_fn_error $? "unrecognized option: \`$1'
23590 Try \`$0 --help' for more information." ;;
23591
23592 *) as_fn_append ac_config_targets " $1"
23593 ac_need_defaults=false ;;
23594
23595 esac
23596 shift
23597 done
23598
23599 ac_configure_extra_args=
23600
23601 if $ac_cs_silent; then
23602 exec 6>/dev/null
23603 ac_configure_extra_args="$ac_configure_extra_args --silent"
23604 fi
23605
23606 _ACEOF
23607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23608 if \$ac_cs_recheck; then
23609 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23610 shift
23611 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
23612 CONFIG_SHELL='$SHELL'
23613 export CONFIG_SHELL
23614 exec "\$@"
23615 fi
23616
23617 _ACEOF
23618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23619 exec 5>>config.log
23620 {
23621 echo
23622 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23623 ## Running $as_me. ##
23624 _ASBOX
23625 printf "%s\n" "$ac_log"
23626 } >&5
23627
23628 _ACEOF
23629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23630 #
23631 # INIT-COMMANDS
23632 #
23633 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
23634
23635
23636 # The HP-UX ksh and POSIX shell print the target directory to stdout
23637 # if CDPATH is set.
23638 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23639
23640 sed_quote_subst='$sed_quote_subst'
23641 double_quote_subst='$double_quote_subst'
23642 delay_variable_subst='$delay_variable_subst'
23643 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23644 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23645 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
23646 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23647 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23648 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23649 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23650 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23651 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23652 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23653 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23654 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23655 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23656 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23657 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23658 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23659 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23660 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23661 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23662 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23663 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23664 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23665 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23666 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23667 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23668 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23669 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23670 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23671 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23672 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23673 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23674 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23675 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23676 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23677 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23678 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23679 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23680 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23681 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23682 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23683 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23684 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23685 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23686 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23687 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23688 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23689 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23690 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23691 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23692 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23693 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23694 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23695 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23696 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23697 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23698 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23699 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23700 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"`'
23701 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23702 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23703 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23704 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23705 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23706 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23707 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23708 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23709 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23710 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23711 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23712 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23713 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23714 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23715 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23716 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23717 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23718 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23719 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23720 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23721 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23722 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23723 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23724 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23725 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23726 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23727 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23728 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23729 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23730 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23731 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23732 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23733 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23734 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23735 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23736 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23737 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23738 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23739 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23740 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23741 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23742 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23743 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23744 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23745 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23746 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23747 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23748 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23749 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23750 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23751 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23752 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23753 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23754 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23755 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23756 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23757 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23758 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23759 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23760 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23761 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23762 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23763 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23764 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23765 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23766 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23767 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
23768 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23769 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23770 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23771 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23772 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23773 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23774 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
23775 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
23776 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
23777 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
23778 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
23779 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
23780 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
23781 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
23782 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
23783 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
23784 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
23785 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
23786 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
23787 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
23788 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
23789 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
23790 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
23791 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
23792 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
23793 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
23794 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
23795 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
23796 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
23797 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
23798 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
23799 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
23800 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
23801 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
23802 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
23803 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
23804 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
23805 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
23806 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
23807 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
23808 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
23809 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
23810 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
23811 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
23812 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
23813 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
23814 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
23815 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
23816
23817 LTCC='$LTCC'
23818 LTCFLAGS='$LTCFLAGS'
23819 compiler='$compiler_DEFAULT'
23820
23821 # A function that is used when there is no print builtin or printf.
23822 func_fallback_echo ()
23823 {
23824 eval 'cat <<_LTECHO_EOF
23825 \$1
23826 _LTECHO_EOF'
23827 }
23828
23829 # Quote evaled strings.
23830 for var in AS \
23831 DLLTOOL \
23832 OBJDUMP \
23833 SHELL \
23834 ECHO \
23835 PATH_SEPARATOR \
23836 SED \
23837 GREP \
23838 EGREP \
23839 FGREP \
23840 LD \
23841 NM \
23842 LN_S \
23843 lt_SP2NL \
23844 lt_NL2SP \
23845 reload_flag \
23846 deplibs_check_method \
23847 file_magic_cmd \
23848 file_magic_glob \
23849 want_nocaseglob \
23850 sharedlib_from_linklib_cmd \
23851 AR \
23852 AR_FLAGS \
23853 archiver_list_spec \
23854 STRIP \
23855 RANLIB \
23856 CC \
23857 CFLAGS \
23858 compiler \
23859 lt_cv_sys_global_symbol_pipe \
23860 lt_cv_sys_global_symbol_to_cdecl \
23861 lt_cv_sys_global_symbol_to_c_name_address \
23862 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23863 nm_file_list_spec \
23864 lt_prog_compiler_no_builtin_flag \
23865 lt_prog_compiler_pic \
23866 lt_prog_compiler_wl \
23867 lt_prog_compiler_static \
23868 lt_cv_prog_compiler_c_o \
23869 need_locks \
23870 MANIFEST_TOOL \
23871 DSYMUTIL \
23872 NMEDIT \
23873 LIPO \
23874 OTOOL \
23875 OTOOL64 \
23876 shrext_cmds \
23877 export_dynamic_flag_spec \
23878 whole_archive_flag_spec \
23879 compiler_needs_object \
23880 with_gnu_ld \
23881 allow_undefined_flag \
23882 no_undefined_flag \
23883 hardcode_libdir_flag_spec \
23884 hardcode_libdir_separator \
23885 exclude_expsyms \
23886 include_expsyms \
23887 file_list_spec \
23888 variables_saved_for_relink \
23889 libname_spec \
23890 library_names_spec \
23891 soname_spec \
23892 install_override_mode \
23893 finish_eval \
23894 old_striplib \
23895 striplib \
23896 LD_RC \
23897 reload_flag_RC \
23898 compiler_RC \
23899 lt_prog_compiler_no_builtin_flag_RC \
23900 lt_prog_compiler_pic_RC \
23901 lt_prog_compiler_wl_RC \
23902 lt_prog_compiler_static_RC \
23903 lt_cv_prog_compiler_c_o_RC \
23904 export_dynamic_flag_spec_RC \
23905 whole_archive_flag_spec_RC \
23906 compiler_needs_object_RC \
23907 with_gnu_ld_RC \
23908 allow_undefined_flag_RC \
23909 no_undefined_flag_RC \
23910 hardcode_libdir_flag_spec_RC \
23911 hardcode_libdir_separator_RC \
23912 exclude_expsyms_RC \
23913 include_expsyms_RC \
23914 file_list_spec_RC; do
23915 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23916 *[\\\\\\\`\\"\\\$]*)
23917 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
23918 ;;
23919 *)
23920 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23921 ;;
23922 esac
23923 done
23924
23925 # Double-quote double-evaled strings.
23926 for var in reload_cmds \
23927 old_postinstall_cmds \
23928 old_postuninstall_cmds \
23929 old_archive_cmds \
23930 extract_expsyms_cmds \
23931 old_archive_from_new_cmds \
23932 old_archive_from_expsyms_cmds \
23933 archive_cmds \
23934 archive_expsym_cmds \
23935 module_cmds \
23936 module_expsym_cmds \
23937 export_symbols_cmds \
23938 prelink_cmds \
23939 postlink_cmds \
23940 postinstall_cmds \
23941 postuninstall_cmds \
23942 finish_cmds \
23943 sys_lib_search_path_spec \
23944 sys_lib_dlsearch_path_spec \
23945 reload_cmds_RC \
23946 old_archive_cmds_RC \
23947 old_archive_from_new_cmds_RC \
23948 old_archive_from_expsyms_cmds_RC \
23949 archive_cmds_RC \
23950 archive_expsym_cmds_RC \
23951 module_cmds_RC \
23952 module_expsym_cmds_RC \
23953 export_symbols_cmds_RC \
23954 prelink_cmds_RC \
23955 postlink_cmds_RC; do
23956 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23957 *[\\\\\\\`\\"\\\$]*)
23958 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
23959 ;;
23960 *)
23961 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23962 ;;
23963 esac
23964 done
23965
23966 ac_aux_dir='$ac_aux_dir'
23967 xsi_shell='$xsi_shell'
23968 lt_shell_append='$lt_shell_append'
23969
23970 # See if we are running on zsh, and set the options which allow our
23971 # commands through without removal of \ escapes INIT.
23972 if test -n "\${ZSH_VERSION+set}" ; then
23973 setopt NO_GLOB_SUBST
23974 fi
23975
23976
23977 PACKAGE='$PACKAGE'
23978 VERSION='$VERSION'
23979 TIMESTAMP='$TIMESTAMP'
23980 RM='$RM'
23981 ofile='$ofile'
23982
23983
23984
23985
23986
23987 build_selection=$build_libtool_modification
23988
23989 prefix=$prefix
23990 exec_prefix=$exec_prefix
23991 libdir=$libdir
23992 datadir=$datadir
23993 DATADIRNAME=$DATADIRNAME
23994
23995
23996 _ACEOF
23997
23998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23999
24000 # Handling of arguments.
24001 for ac_config_target in $ac_config_targets
24002 do
24003 case $ac_config_target in
24004 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24005 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24006 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24007 "libtool-patch") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool-patch" ;;
24008 ""$mpi_ln_list"") CONFIG_LINKS="$CONFIG_LINKS "$mpi_ln_list"" ;;
24009 "gcrypt-conf") CONFIG_COMMANDS="$CONFIG_COMMANDS gcrypt-conf" ;;
24010 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24011 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
24012 "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
24013 "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;;
24014 "cipher/Makefile") CONFIG_FILES="$CONFIG_FILES cipher/Makefile" ;;
24015 "random/Makefile") CONFIG_FILES="$CONFIG_FILES random/Makefile" ;;
24016 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24017 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24018 "src/gcrypt.h") CONFIG_FILES="$CONFIG_FILES src/gcrypt.h" ;;
24019 "src/libgcrypt-config") CONFIG_FILES="$CONFIG_FILES src/libgcrypt-config" ;;
24020 "src/libgcrypt.pc") CONFIG_FILES="$CONFIG_FILES src/libgcrypt.pc" ;;
24021 "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
24022 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
24023 "tests/hashtest-6g") CONFIG_FILES="$CONFIG_FILES tests/hashtest-6g" ;;
24024 "tests/hashtest-256g") CONFIG_FILES="$CONFIG_FILES tests/hashtest-256g" ;;
24025 "tests/basic-disable-all-hwf") CONFIG_FILES="$CONFIG_FILES tests/basic-disable-all-hwf" ;;
24026
24027 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24028 esac
24029 done
24030
24031
24032 # If the user did not use the arguments to specify the items to instantiate,
24033 # then the envvar interface is used. Set only those that are not.
24034 # We use the long form for the default assignment because of an extremely
24035 # bizarre bug on SunOS 4.1.3.
24036 if $ac_need_defaults; then
24037 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
24038 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
24039 test ${CONFIG_LINKS+y} || CONFIG_LINKS=$config_links
24040 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
24041 fi
24042
24043 # Have a temporary directory for convenience. Make it in the build tree
24044 # simply because there is no reason against having it here, and in addition,
24045 # creating and moving files from /tmp can sometimes cause problems.
24046 # Hook for its removal unless debugging.
24047 # Note that there is a small window in which the directory will not be cleaned:
24048 # after its creation but before its name has been assigned to `$tmp'.
24049 $debug ||
24050 {
24051 tmp= ac_tmp=
24052 trap 'exit_status=$?
24053 : "${ac_tmp:=$tmp}"
24054 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24055 ' 0
24056 trap 'as_fn_exit 1' 1 2 13 15
24057 }
24058 # Create a (secure) tmp directory for tmp files.
24059
24060 {
24061 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24062 test -d "$tmp"
24063 } ||
24064 {
24065 tmp=./conf$$-$RANDOM
24066 (umask 077 && mkdir "$tmp")
24067 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24068 ac_tmp=$tmp
24069
24070 # Set up the scripts for CONFIG_FILES section.
24071 # No need to generate them if there are no CONFIG_FILES.
24072 # This happens for instance with `./config.status config.h'.
24073 if test -n "$CONFIG_FILES"; then
24074
24075
24076 ac_cr=`echo X | tr X '\015'`
24077 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24078 # But we know of no other shell where ac_cr would be empty at this
24079 # point, so we can use a bashism as a fallback.
24080 if test "x$ac_cr" = x; then
24081 eval ac_cr=\$\'\\r\'
24082 fi
24083 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24084 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24085 ac_cs_awk_cr='\\r'
24086 else
24087 ac_cs_awk_cr=$ac_cr
24088 fi
24089
24090 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24091 _ACEOF
24092
24093
24094 {
24095 echo "cat >conf$$subs.awk <<_ACEOF" &&
24096 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24097 echo "_ACEOF"
24098 } >conf$$subs.sh ||
24099 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24100 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24101 ac_delim='%!_!# '
24102 for ac_last_try in false false false false false :; do
24103 . ./conf$$subs.sh ||
24104 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24105
24106 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24107 if test $ac_delim_n = $ac_delim_num; then
24108 break
24109 elif $ac_last_try; then
24110 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24111 else
24112 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24113 fi
24114 done
24115 rm -f conf$$subs.sh
24116
24117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24118 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24119 _ACEOF
24120 sed -n '
24121 h
24122 s/^/S["/; s/!.*/"]=/
24123 p
24124 g
24125 s/^[^!]*!//
24126 :repl
24127 t repl
24128 s/'"$ac_delim"'$//
24129 t delim
24130 :nl
24131 h
24132 s/\(.\{148\}\)..*/\1/
24133 t more1
24134 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24135 p
24136 n
24137 b repl
24138 :more1
24139 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24140 p
24141 g
24142 s/.\{148\}//
24143 t nl
24144 :delim
24145 h
24146 s/\(.\{148\}\)..*/\1/
24147 t more2
24148 s/["\\]/\\&/g; s/^/"/; s/$/"/
24149 p
24150 b
24151 :more2
24152 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24153 p
24154 g
24155 s/.\{148\}//
24156 t delim
24157 ' <conf$$subs.awk | sed '
24158 /^[^""]/{
24159 N
24160 s/\n//
24161 }
24162 ' >>$CONFIG_STATUS || ac_write_fail=1
24163 rm -f conf$$subs.awk
24164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24165 _ACAWK
24166 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24167 for (key in S) S_is_set[key] = 1
24168 FS = ""
24169
24170 }
24171 {
24172 line = $ 0
24173 nfields = split(line, field, "@")
24174 substed = 0
24175 len = length(field[1])
24176 for (i = 2; i < nfields; i++) {
24177 key = field[i]
24178 keylen = length(key)
24179 if (S_is_set[key]) {
24180 value = S[key]
24181 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24182 len += length(value) + length(field[++i])
24183 substed = 1
24184 } else
24185 len += 1 + keylen
24186 }
24187
24188 print line
24189 }
24190
24191 _ACAWK
24192 _ACEOF
24193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24194 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24195 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24196 else
24197 cat
24198 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24199 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24200 _ACEOF
24201
24202 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24203 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24204 # trailing colons and then remove the whole line if VPATH becomes empty
24205 # (actually we leave an empty line to preserve line numbers).
24206 if test "x$srcdir" = x.; then
24207 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
24208 h
24209 s///
24210 s/^/:/
24211 s/[ ]*$/:/
24212 s/:\$(srcdir):/:/g
24213 s/:\${srcdir}:/:/g
24214 s/:@srcdir@:/:/g
24215 s/^:*//
24216 s/:*$//
24217 x
24218 s/\(=[ ]*\).*/\1/
24219 G
24220 s/\n//
24221 s/^[^=]*=[ ]*$//
24222 }'
24223 fi
24224
24225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24226 fi # test -n "$CONFIG_FILES"
24227
24228 # Set up the scripts for CONFIG_HEADERS section.
24229 # No need to generate them if there are no CONFIG_HEADERS.
24230 # This happens for instance with `./config.status Makefile'.
24231 if test -n "$CONFIG_HEADERS"; then
24232 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24233 BEGIN {
24234 _ACEOF
24235
24236 # Transform confdefs.h into an awk script `defines.awk', embedded as
24237 # here-document in config.status, that substitutes the proper values into
24238 # config.h.in to produce config.h.
24239
24240 # Create a delimiter string that does not exist in confdefs.h, to ease
24241 # handling of long lines.
24242 ac_delim='%!_!# '
24243 for ac_last_try in false false :; do
24244 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24245 if test -z "$ac_tt"; then
24246 break
24247 elif $ac_last_try; then
24248 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24249 else
24250 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24251 fi
24252 done
24253
24254 # For the awk script, D is an array of macro values keyed by name,
24255 # likewise P contains macro parameters if any. Preserve backslash
24256 # newline sequences.
24257
24258 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24259 sed -n '
24260 s/.\{148\}/&'"$ac_delim"'/g
24261 t rset
24262 :rset
24263 s/^[ ]*#[ ]*define[ ][ ]*/ /
24264 t def
24265 d
24266 :def
24267 s/\\$//
24268 t bsnl
24269 s/["\\]/\\&/g
24270 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24271 D["\1"]=" \3"/p
24272 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24273 d
24274 :bsnl
24275 s/["\\]/\\&/g
24276 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24277 D["\1"]=" \3\\\\\\n"\\/p
24278 t cont
24279 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24280 t cont
24281 d
24282 :cont
24283 n
24284 s/.\{148\}/&'"$ac_delim"'/g
24285 t clear
24286 :clear
24287 s/\\$//
24288 t bsnlc
24289 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24290 d
24291 :bsnlc
24292 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24293 b cont
24294 ' <confdefs.h | sed '
24295 s/'"$ac_delim"'/"\\\
24296 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24297
24298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24299 for (key in D) D_is_set[key] = 1
24300 FS = ""
24301 }
24302 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24303 line = \$ 0
24304 split(line, arg, " ")
24305 if (arg[1] == "#") {
24306 defundef = arg[2]
24307 mac1 = arg[3]
24308 } else {
24309 defundef = substr(arg[1], 2)
24310 mac1 = arg[2]
24311 }
24312 split(mac1, mac2, "(") #)
24313 macro = mac2[1]
24314 prefix = substr(line, 1, index(line, defundef) - 1)
24315 if (D_is_set[macro]) {
24316 # Preserve the white space surrounding the "#".
24317 print prefix "define", macro P[macro] D[macro]
24318 next
24319 } else {
24320 # Replace #undef with comments. This is necessary, for example,
24321 # in the case of _POSIX_SOURCE, which is predefined and required
24322 # on some systems where configure will not decide to define it.
24323 if (defundef == "undef") {
24324 print "/*", prefix defundef, macro, "*/"
24325 next
24326 }
24327 }
24328 }
24329 { print }
24330 _ACAWK
24331 _ACEOF
24332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24333 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24334 fi # test -n "$CONFIG_HEADERS"
24335
24336
24337 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
24338 shift
24339 for ac_tag
24340 do
24341 case $ac_tag in
24342 :[FHLC]) ac_mode=$ac_tag; continue;;
24343 esac
24344 case $ac_mode$ac_tag in
24345 :[FHL]*:*);;
24346 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
24347 :[FH]-) ac_tag=-:-;;
24348 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24349 esac
24350 ac_save_IFS=$IFS
24351 IFS=:
24352 set x $ac_tag
24353 IFS=$ac_save_IFS
24354 shift
24355 ac_file=$1
24356 shift
24357
24358 case $ac_mode in
24359 :L) ac_source=$1;;
24360 :[FH])
24361 ac_file_inputs=
24362 for ac_f
24363 do
24364 case $ac_f in
24365 -) ac_f="$ac_tmp/stdin";;
24366 *) # Look for the file first in the build tree, then in the source tree
24367 # (if the path is not absolute). The absolute path cannot be DOS-style,
24368 # because $ac_f cannot contain `:'.
24369 test -f "$ac_f" ||
24370 case $ac_f in
24371 [\\/$]*) false;;
24372 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24373 esac ||
24374 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24375 esac
24376 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24377 as_fn_append ac_file_inputs " '$ac_f'"
24378 done
24379
24380 # Let's still pretend it is `configure' which instantiates (i.e., don't
24381 # use $as_me), people would be surprised to read:
24382 # /* config.h. Generated by config.status. */
24383 configure_input='Generated from '`
24384 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24385 `' by configure.'
24386 if test x"$ac_file" != x-; then
24387 configure_input="$ac_file. $configure_input"
24388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24389 printf "%s\n" "$as_me: creating $ac_file" >&6;}
24390 fi
24391 # Neutralize special characters interpreted by sed in replacement strings.
24392 case $configure_input in #(
24393 *\&* | *\|* | *\\* )
24394 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
24395 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24396 *) ac_sed_conf_input=$configure_input;;
24397 esac
24398
24399 case $ac_tag in
24400 *:-:* | *:-) cat >"$ac_tmp/stdin" \
24401 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24402 esac
24403 ;;
24404 esac
24405
24406 ac_dir=`$as_dirname -- "$ac_file" ||
24407 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24408 X"$ac_file" : 'X\(//\)[^/]' \| \
24409 X"$ac_file" : 'X\(//\)$' \| \
24410 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24411 printf "%s\n" X"$ac_file" |
24412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24413 s//\1/
24414 q
24415 }
24416 /^X\(\/\/\)[^/].*/{
24417 s//\1/
24418 q
24419 }
24420 /^X\(\/\/\)$/{
24421 s//\1/
24422 q
24423 }
24424 /^X\(\/\).*/{
24425 s//\1/
24426 q
24427 }
24428 s/.*/./; q'`
24429 as_dir="$ac_dir"; as_fn_mkdir_p
24430 ac_builddir=.
24431
24432 case "$ac_dir" in
24433 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24434 *)
24435 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
24436 # A ".." for each directory in $ac_dir_suffix.
24437 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24438 case $ac_top_builddir_sub in
24439 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24440 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24441 esac ;;
24442 esac
24443 ac_abs_top_builddir=$ac_pwd
24444 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24445 # for backward compatibility:
24446 ac_top_builddir=$ac_top_build_prefix
24447
24448 case $srcdir in
24449 .) # We are building in place.
24450 ac_srcdir=.
24451 ac_top_srcdir=$ac_top_builddir_sub
24452 ac_abs_top_srcdir=$ac_pwd ;;
24453 [\\/]* | ?:[\\/]* ) # Absolute name.
24454 ac_srcdir=$srcdir$ac_dir_suffix;
24455 ac_top_srcdir=$srcdir
24456 ac_abs_top_srcdir=$srcdir ;;
24457 *) # Relative name.
24458 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24459 ac_top_srcdir=$ac_top_build_prefix$srcdir
24460 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24461 esac
24462 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24463
24464
24465 case $ac_mode in
24466 :F)
24467 #
24468 # CONFIG_FILE
24469 #
24470
24471 case $INSTALL in
24472 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24473 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24474 esac
24475 ac_MKDIR_P=$MKDIR_P
24476 case $MKDIR_P in
24477 [\\/$]* | ?:[\\/]* ) ;;
24478 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24479 esac
24480 _ACEOF
24481
24482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24483 # If the template does not know about datarootdir, expand it.
24484 # FIXME: This hack should be removed a few years after 2.60.
24485 ac_datarootdir_hack=; ac_datarootdir_seen=
24486 ac_sed_dataroot='
24487 /datarootdir/ {
24488 p
24489 q
24490 }
24491 /@datadir@/p
24492 /@docdir@/p
24493 /@infodir@/p
24494 /@localedir@/p
24495 /@mandir@/p'
24496 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24497 *datarootdir*) ac_datarootdir_seen=yes;;
24498 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24500 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24501 _ACEOF
24502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24503 ac_datarootdir_hack='
24504 s&@datadir@&$datadir&g
24505 s&@docdir@&$docdir&g
24506 s&@infodir@&$infodir&g
24507 s&@localedir@&$localedir&g
24508 s&@mandir@&$mandir&g
24509 s&\\\${datarootdir}&$datarootdir&g' ;;
24510 esac
24511 _ACEOF
24512
24513 # Neutralize VPATH when `$srcdir' = `.'.
24514 # Shell code in configure.ac might set extrasub.
24515 # FIXME: do we really want to maintain this feature?
24516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24517 ac_sed_extra="$ac_vpsub
24518 $extrasub
24519 _ACEOF
24520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24521 :t
24522 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24523 s|@configure_input@|$ac_sed_conf_input|;t t
24524 s&@top_builddir@&$ac_top_builddir_sub&;t t
24525 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24526 s&@srcdir@&$ac_srcdir&;t t
24527 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24528 s&@top_srcdir@&$ac_top_srcdir&;t t
24529 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24530 s&@builddir@&$ac_builddir&;t t
24531 s&@abs_builddir@&$ac_abs_builddir&;t t
24532 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24533 s&@INSTALL@&$ac_INSTALL&;t t
24534 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24535 $ac_datarootdir_hack
24536 "
24537 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24538 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24539
24540 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24541 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24542 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24543 "$ac_tmp/out"`; test -z "$ac_out"; } &&
24544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24545 which seems to be undefined. Please make sure it is defined" >&5
24546 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24547 which seems to be undefined. Please make sure it is defined" >&2;}
24548
24549 rm -f "$ac_tmp/stdin"
24550 case $ac_file in
24551 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24552 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24553 esac \
24554 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24555 ;;
24556 :H)
24557 #
24558 # CONFIG_HEADER
24559 #
24560 if test x"$ac_file" != x-; then
24561 {
24562 printf "%s\n" "/* $configure_input */" >&1 \
24563 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24564 } >"$ac_tmp/config.h" \
24565 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24566 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24568 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
24569 else
24570 rm -f "$ac_file"
24571 mv "$ac_tmp/config.h" "$ac_file" \
24572 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24573 fi
24574 else
24575 printf "%s\n" "/* $configure_input */" >&1 \
24576 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24577 || as_fn_error $? "could not create -" "$LINENO" 5
24578 fi
24579 # Compute "$ac_file"'s index in $config_headers.
24580 _am_arg="$ac_file"
24581 _am_stamp_count=1
24582 for _am_header in $config_headers :; do
24583 case $_am_header in
24584 $_am_arg | $_am_arg:* )
24585 break ;;
24586 * )
24587 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24588 esac
24589 done
24590 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24591 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24592 X"$_am_arg" : 'X\(//\)[^/]' \| \
24593 X"$_am_arg" : 'X\(//\)$' \| \
24594 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24595 printf "%s\n" X"$_am_arg" |
24596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24597 s//\1/
24598 q
24599 }
24600 /^X\(\/\/\)[^/].*/{
24601 s//\1/
24602 q
24603 }
24604 /^X\(\/\/\)$/{
24605 s//\1/
24606 q
24607 }
24608 /^X\(\/\).*/{
24609 s//\1/
24610 q
24611 }
24612 s/.*/./; q'`/stamp-h$_am_stamp_count
24613 ;;
24614 :L)
24615 #
24616 # CONFIG_LINK
24617 #
24618
24619 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
24620 :
24621 else
24622 # Prefer the file from the source tree if names are identical.
24623 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
24624 ac_source=$srcdir/$ac_source
24625 fi
24626
24627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
24628 printf "%s\n" "$as_me: linking $ac_source to $ac_file" >&6;}
24629
24630 if test ! -r "$ac_source"; then
24631 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
24632 fi
24633 rm -f "$ac_file"
24634
24635 # Try a relative symlink, then a hard link, then a copy.
24636 case $ac_source in
24637 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
24638 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
24639 esac
24640 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
24641 ln "$ac_source" "$ac_file" 2>/dev/null ||
24642 cp -p "$ac_source" "$ac_file" ||
24643 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
24644 fi
24645 ;;
24646 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24647 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
24648 ;;
24649 esac
24650
24651
24652 case $ac_file$ac_mode in
24653 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24654 # Older Autoconf quotes --file arguments for eval, but not when files
24655 # are listed without --file. Let's play safe and only enable the eval
24656 # if we detect the quoting.
24657 # TODO: see whether this extra hack can be removed once we start
24658 # requiring Autoconf 2.70 or later.
24659 case $CONFIG_FILES in #(
24660 *\'*) :
24661 eval set x "$CONFIG_FILES" ;; #(
24662 *) :
24663 set x $CONFIG_FILES ;; #(
24664 *) :
24665 ;;
24666 esac
24667 shift
24668 # Used to flag and report bootstrapping failures.
24669 am_rc=0
24670 for am_mf
24671 do
24672 # Strip MF so we end up with the name of the file.
24673 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
24674 # Check whether this is an Automake generated Makefile which includes
24675 # dependency-tracking related rules and includes.
24676 # Grep'ing the whole file directly is not great: AIX grep has a line
24677 # limit of 2048, but all sed's we know have understand at least 4000.
24678 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
24679 || continue
24680 am_dirpart=`$as_dirname -- "$am_mf" ||
24681 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24682 X"$am_mf" : 'X\(//\)[^/]' \| \
24683 X"$am_mf" : 'X\(//\)$' \| \
24684 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24685 printf "%s\n" X"$am_mf" |
24686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24687 s//\1/
24688 q
24689 }
24690 /^X\(\/\/\)[^/].*/{
24691 s//\1/
24692 q
24693 }
24694 /^X\(\/\/\)$/{
24695 s//\1/
24696 q
24697 }
24698 /^X\(\/\).*/{
24699 s//\1/
24700 q
24701 }
24702 s/.*/./; q'`
24703 am_filepart=`$as_basename -- "$am_mf" ||
24704 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
24705 X"$am_mf" : 'X\(//\)$' \| \
24706 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24707 printf "%s\n" X/"$am_mf" |
24708 sed '/^.*\/\([^/][^/]*\)\/*$/{
24709 s//\1/
24710 q
24711 }
24712 /^X\/\(\/\/\)$/{
24713 s//\1/
24714 q
24715 }
24716 /^X\/\(\/\).*/{
24717 s//\1/
24718 q
24719 }
24720 s/.*/./; q'`
24721 { echo "$as_me:$LINENO: cd "$am_dirpart" \
24722 && sed -e '/# am--include-marker/d' "$am_filepart" \
24723 | $MAKE -f - am--depfiles" >&5
24724 (cd "$am_dirpart" \
24725 && sed -e '/# am--include-marker/d' "$am_filepart" \
24726 | $MAKE -f - am--depfiles) >&5 2>&5
24727 ac_status=$?
24728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729 (exit $ac_status); } || am_rc=$?
24730 done
24731 if test $am_rc -ne 0; then
24732 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24733 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24734 as_fn_error $? "Something went wrong bootstrapping makefile fragments
24735 for automatic dependency tracking. If GNU make was not used, consider
24736 re-running the configure script with MAKE=\"gmake\" (or whatever is
24737 necessary). You can also try re-running configure with the
24738 '--disable-dependency-tracking' option to at least be able to build
24739 the package (albeit without support for automatic dependency tracking).
24740 See \`config.log' for more details" "$LINENO" 5; }
24741 fi
24742 { am_dirpart=; unset am_dirpart;}
24743 { am_filepart=; unset am_filepart;}
24744 { am_mf=; unset am_mf;}
24745 { am_rc=; unset am_rc;}
24746 rm -f conftest-deps.mk
24747 }
24748 ;;
24749 "libtool":C)
24750
24751 # See if we are running on zsh, and set the options which allow our
24752 # commands through without removal of \ escapes.
24753 if test -n "${ZSH_VERSION+set}" ; then
24754 setopt NO_GLOB_SUBST
24755 fi
24756
24757 cfgfile="${ofile}T"
24758 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24759 $RM "$cfgfile"
24760
24761 cat <<_LT_EOF >> "$cfgfile"
24762 #! $SHELL
24763
24764 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
24765 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
24766 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24767 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24768 #
24769 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24770 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
24771 # Foundation, Inc.
24772 # Written by Gordon Matzigkeit, 1996
24773 #
24774 # This file is part of GNU Libtool.
24775 #
24776 # GNU Libtool is free software; you can redistribute it and/or
24777 # modify it under the terms of the GNU General Public License as
24778 # published by the Free Software Foundation; either version 2 of
24779 # the License, or (at your option) any later version.
24780 #
24781 # As a special exception to the GNU General Public License,
24782 # if you distribute this file as part of a program or library that
24783 # is built using GNU Libtool, you may include this file under the
24784 # same distribution terms that you use for the rest of that program.
24785 #
24786 # GNU Libtool is distributed in the hope that it will be useful,
24787 # but WITHOUT ANY WARRANTY; without even the implied warranty of
24788 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24789 # GNU General Public License for more details.
24790 #
24791 # You should have received a copy of the GNU General Public License
24792 # along with GNU Libtool; see the file COPYING. If not, a copy
24793 # can be downloaded from https://www.gnu.org/licenses/gpl.html, or
24794 # obtained by writing to the Free Software Foundation, Inc.,
24795 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24796
24797
24798 # The names of the tagged configurations supported by this script.
24799 available_tags="RC "
24800
24801 # ### BEGIN LIBTOOL CONFIG
24802
24803 # Which release of libtool.m4 was used?
24804 macro_version=$macro_version
24805 macro_revision=$macro_revision
24806
24807 # Assembler program.
24808 AS=$lt_AS
24809
24810 # DLL creation program.
24811 DLLTOOL=$lt_DLLTOOL
24812
24813 # Object dumper program.
24814 OBJDUMP=$lt_OBJDUMP
24815
24816 # Whether or not to build static libraries.
24817 build_old_libs=$enable_static
24818
24819 # Whether or not to build shared libraries.
24820 build_libtool_libs=$enable_shared
24821
24822 # What type of objects to build.
24823 pic_mode=$pic_mode
24824
24825 # Whether or not to optimize for fast installation.
24826 fast_install=$enable_fast_install
24827
24828 # Shell to use when invoking shell scripts.
24829 SHELL=$lt_SHELL
24830
24831 # An echo program that protects backslashes.
24832 ECHO=$lt_ECHO
24833
24834 # The PATH separator for the build system.
24835 PATH_SEPARATOR=$lt_PATH_SEPARATOR
24836
24837 # The host system.
24838 host_alias=$host_alias
24839 host=$host
24840 host_os=$host_os
24841
24842 # The build system.
24843 build_alias=$build_alias
24844 build=$build
24845 build_os=$build_os
24846
24847 # A sed program that does not truncate output.
24848 SED=$lt_SED
24849
24850 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24851 Xsed="\$SED -e 1s/^X//"
24852
24853 # A grep program that handles long lines.
24854 GREP=$lt_GREP
24855
24856 # An ERE matcher.
24857 EGREP=$lt_EGREP
24858
24859 # A literal string matcher.
24860 FGREP=$lt_FGREP
24861
24862 # A BSD- or MS-compatible name lister.
24863 NM=$lt_NM
24864
24865 # Whether we need soft or hard links.
24866 LN_S=$lt_LN_S
24867
24868 # What is the maximum length of a command?
24869 max_cmd_len=$max_cmd_len
24870
24871 # Object file suffix (normally "o").
24872 objext=$ac_objext
24873
24874 # Executable file suffix (normally "").
24875 exeext=$exeext
24876
24877 # whether the shell understands "unset".
24878 lt_unset=$lt_unset
24879
24880 # turn spaces into newlines.
24881 SP2NL=$lt_lt_SP2NL
24882
24883 # turn newlines into spaces.
24884 NL2SP=$lt_lt_NL2SP
24885
24886 # convert \$build file names to \$host format.
24887 to_host_file_cmd=$lt_cv_to_host_file_cmd
24888
24889 # convert \$build files to toolchain format.
24890 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24891
24892 # Method to check whether dependent libraries are shared objects.
24893 deplibs_check_method=$lt_deplibs_check_method
24894
24895 # Command to use when deplibs_check_method = "file_magic".
24896 file_magic_cmd=$lt_file_magic_cmd
24897
24898 # How to find potential files when deplibs_check_method = "file_magic".
24899 file_magic_glob=$lt_file_magic_glob
24900
24901 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24902 want_nocaseglob=$lt_want_nocaseglob
24903
24904 # Command to associate shared and link libraries.
24905 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24906
24907 # The archiver.
24908 AR=$lt_AR
24909
24910 # Flags to create an archive.
24911 AR_FLAGS=$lt_AR_FLAGS
24912
24913 # How to feed a file listing to the archiver.
24914 archiver_list_spec=$lt_archiver_list_spec
24915
24916 # A symbol stripping program.
24917 STRIP=$lt_STRIP
24918
24919 # Commands used to install an old-style archive.
24920 RANLIB=$lt_RANLIB
24921 old_postinstall_cmds=$lt_old_postinstall_cmds
24922 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24923
24924 # Whether to use a lock for old archive extraction.
24925 lock_old_archive_extraction=$lock_old_archive_extraction
24926
24927 # A C compiler.
24928 LTCC=$lt_CC
24929
24930 # LTCC compiler flags.
24931 LTCFLAGS=$lt_CFLAGS
24932
24933 # Take the output of nm and produce a listing of raw symbols and C names.
24934 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24935
24936 # Transform the output of nm in a proper C declaration.
24937 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24938
24939 # Transform the output of nm in a C name address pair.
24940 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24941
24942 # Transform the output of nm in a C name address pair when lib prefix is needed.
24943 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24944
24945 # Specify filename containing input files for \$NM.
24946 nm_file_list_spec=$lt_nm_file_list_spec
24947
24948 # The root where to search for dependent libraries,and in which our libraries should be installed.
24949 lt_sysroot=$lt_sysroot
24950
24951 # The name of the directory that contains temporary libtool files.
24952 objdir=$objdir
24953
24954 # Used to examine libraries when file_magic_cmd begins with "file".
24955 MAGIC_CMD=$MAGIC_CMD
24956
24957 # Must we lock files when doing compilation?
24958 need_locks=$lt_need_locks
24959
24960 # Manifest tool.
24961 MANIFEST_TOOL=$lt_MANIFEST_TOOL
24962
24963 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24964 DSYMUTIL=$lt_DSYMUTIL
24965
24966 # Tool to change global to local symbols on Mac OS X.
24967 NMEDIT=$lt_NMEDIT
24968
24969 # Tool to manipulate fat objects and archives on Mac OS X.
24970 LIPO=$lt_LIPO
24971
24972 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24973 OTOOL=$lt_OTOOL
24974
24975 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24976 OTOOL64=$lt_OTOOL64
24977
24978 # Old archive suffix (normally "a").
24979 libext=$libext
24980
24981 # Shared library suffix (normally ".so").
24982 shrext_cmds=$lt_shrext_cmds
24983
24984 # The commands to extract the exported symbol list from a shared archive.
24985 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24986
24987 # Variables whose values should be saved in libtool wrapper scripts and
24988 # restored at link time.
24989 variables_saved_for_relink=$lt_variables_saved_for_relink
24990
24991 # Do we need the "lib" prefix for modules?
24992 need_lib_prefix=$need_lib_prefix
24993
24994 # Do we need a version for libraries?
24995 need_version=$need_version
24996
24997 # Library versioning type.
24998 version_type=$version_type
24999
25000 # Shared library runtime path variable.
25001 runpath_var=$runpath_var
25002
25003 # Shared library path variable.
25004 shlibpath_var=$shlibpath_var
25005
25006 # Is shlibpath searched before the hard-coded library search path?
25007 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25008
25009 # Format of library name prefix.
25010 libname_spec=$lt_libname_spec
25011
25012 # List of archive names. First name is the real one, the rest are links.
25013 # The last name is the one that the linker finds with -lNAME
25014 library_names_spec=$lt_library_names_spec
25015
25016 # The coded name of the library, if different from the real name.
25017 soname_spec=$lt_soname_spec
25018
25019 # Permission mode override for installation of shared libraries.
25020 install_override_mode=$lt_install_override_mode
25021
25022 # Command to use after installation of a shared archive.
25023 postinstall_cmds=$lt_postinstall_cmds
25024
25025 # Command to use after uninstallation of a shared archive.
25026 postuninstall_cmds=$lt_postuninstall_cmds
25027
25028 # Commands used to finish a libtool library installation in a directory.
25029 finish_cmds=$lt_finish_cmds
25030
25031 # As "finish_cmds", except a single script fragment to be evaled but
25032 # not shown.
25033 finish_eval=$lt_finish_eval
25034
25035 # Whether we should hardcode library paths into libraries.
25036 hardcode_into_libs=$hardcode_into_libs
25037
25038 # Compile-time system search path for libraries.
25039 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25040
25041 # Run-time system search path for libraries.
25042 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25043
25044 # Whether dlopen is supported.
25045 dlopen_support=$enable_dlopen
25046
25047 # Whether dlopen of programs is supported.
25048 dlopen_self=$enable_dlopen_self
25049
25050 # Whether dlopen of statically linked programs is supported.
25051 dlopen_self_static=$enable_dlopen_self_static
25052
25053 # Commands to strip libraries.
25054 old_striplib=$lt_old_striplib
25055 striplib=$lt_striplib
25056
25057
25058 # The linker used to build libraries.
25059 LD=$lt_LD
25060
25061 # How to create reloadable object files.
25062 reload_flag=$lt_reload_flag
25063 reload_cmds=$lt_reload_cmds
25064
25065 # Commands used to build an old-style archive.
25066 old_archive_cmds=$lt_old_archive_cmds
25067
25068 # A language specific compiler.
25069 CC=$lt_compiler
25070
25071 # Is the compiler the GNU compiler?
25072 with_gcc=$GCC
25073
25074 # Compiler flag to turn off builtin functions.
25075 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25076
25077 # Additional compiler flags for building library objects.
25078 pic_flag=$lt_lt_prog_compiler_pic
25079
25080 # How to pass a linker flag through the compiler.
25081 wl=$lt_lt_prog_compiler_wl
25082
25083 # Compiler flag to prevent dynamic linking.
25084 link_static_flag=$lt_lt_prog_compiler_static
25085
25086 # Does compiler simultaneously support -c and -o options?
25087 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25088
25089 # Whether or not to add -lc for building shared libraries.
25090 build_libtool_need_lc=$archive_cmds_need_lc
25091
25092 # Whether or not to disallow shared libs when runtime libs are static.
25093 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25094
25095 # Compiler flag to allow reflexive dlopens.
25096 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25097
25098 # Compiler flag to generate shared objects directly from archives.
25099 whole_archive_flag_spec=$lt_whole_archive_flag_spec
25100
25101 # Whether the compiler copes with passing no objects directly.
25102 compiler_needs_object=$lt_compiler_needs_object
25103
25104 # Create an old-style archive from a shared archive.
25105 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25106
25107 # Create a temporary old-style archive to link instead of a shared archive.
25108 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25109
25110 # Commands used to build a shared archive.
25111 archive_cmds=$lt_archive_cmds
25112 archive_expsym_cmds=$lt_archive_expsym_cmds
25113
25114 # Commands used to build a loadable module if different from building
25115 # a shared archive.
25116 module_cmds=$lt_module_cmds
25117 module_expsym_cmds=$lt_module_expsym_cmds
25118
25119 # Whether we are building with GNU ld or not.
25120 with_gnu_ld=$lt_with_gnu_ld
25121
25122 # Flag that allows shared libraries with undefined symbols to be built.
25123 allow_undefined_flag=$lt_allow_undefined_flag
25124
25125 # Flag that enforces no undefined symbols.
25126 no_undefined_flag=$lt_no_undefined_flag
25127
25128 # Flag to hardcode \$libdir into a binary during linking.
25129 # This must work even if \$libdir does not exist
25130 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25131
25132 # Whether we need a single "-rpath" flag with a separated argument.
25133 hardcode_libdir_separator=$lt_hardcode_libdir_separator
25134
25135 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25136 # DIR into the resulting binary.
25137 hardcode_direct=$hardcode_direct
25138
25139 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25140 # DIR into the resulting binary and the resulting library dependency is
25141 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25142 # library is relocated.
25143 hardcode_direct_absolute=$hardcode_direct_absolute
25144
25145 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25146 # into the resulting binary.
25147 hardcode_minus_L=$hardcode_minus_L
25148
25149 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25150 # into the resulting binary.
25151 hardcode_shlibpath_var=$hardcode_shlibpath_var
25152
25153 # Set to "yes" if building a shared library automatically hardcodes DIR
25154 # into the library and all subsequent libraries and executables linked
25155 # against it.
25156 hardcode_automatic=$hardcode_automatic
25157
25158 # Set to yes if linker adds runtime paths of dependent libraries
25159 # to runtime path list.
25160 inherit_rpath=$inherit_rpath
25161
25162 # Whether libtool must link a program against all its dependency libraries.
25163 link_all_deplibs=$link_all_deplibs
25164
25165 # Set to "yes" if exported symbols are required.
25166 always_export_symbols=$always_export_symbols
25167
25168 # The commands to list exported symbols.
25169 export_symbols_cmds=$lt_export_symbols_cmds
25170
25171 # Symbols that should not be listed in the preloaded symbols.
25172 exclude_expsyms=$lt_exclude_expsyms
25173
25174 # Symbols that must always be exported.
25175 include_expsyms=$lt_include_expsyms
25176
25177 # Commands necessary for linking programs (against libraries) with templates.
25178 prelink_cmds=$lt_prelink_cmds
25179
25180 # Commands necessary for finishing linking programs.
25181 postlink_cmds=$lt_postlink_cmds
25182
25183 # Specify filename containing input files.
25184 file_list_spec=$lt_file_list_spec
25185
25186 # How to hardcode a shared library path into an executable.
25187 hardcode_action=$hardcode_action
25188
25189 # ### END LIBTOOL CONFIG
25190
25191 _LT_EOF
25192
25193 case $host_os in
25194 aix3*)
25195 cat <<\_LT_EOF >> "$cfgfile"
25196 # AIX sometimes has problems with the GCC collect2 program. For some
25197 # reason, if we set the COLLECT_NAMES environment variable, the problems
25198 # vanish in a puff of smoke.
25199 if test "X${COLLECT_NAMES+set}" != Xset; then
25200 COLLECT_NAMES=
25201 export COLLECT_NAMES
25202 fi
25203 _LT_EOF
25204 ;;
25205 esac
25206
25207
25208
25209 ltmain="$ac_aux_dir/ltmain.sh"
25210
25211
25212 # We use sed instead of cat because bash on DJGPP gets confused if
25213 # if finds mixed CR/LF and LF-only lines. Since sed operates in
25214 # text mode, it properly converts lines to CR/LF. This bash problem
25215 # is reportedly fixed, but why not run on old versions too?
25216 sed '$q' "$ltmain" >> "$cfgfile" \
25217 || (rm -f "$cfgfile"; exit 1)
25218
25219 if test x"$xsi_shell" = xyes; then
25220 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
25221 func_dirname ()\
25222 {\
25223 \ case ${1} in\
25224 \ */*) func_dirname_result="${1%/*}${2}" ;;\
25225 \ * ) func_dirname_result="${3}" ;;\
25226 \ esac\
25227 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
25228 && mv -f "$cfgfile.tmp" "$cfgfile" \
25229 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25230 test 0 -eq $? || _lt_function_replace_fail=:
25231
25232
25233 sed -e '/^func_basename ()$/,/^} # func_basename /c\
25234 func_basename ()\
25235 {\
25236 \ func_basename_result="${1##*/}"\
25237 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
25238 && mv -f "$cfgfile.tmp" "$cfgfile" \
25239 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25240 test 0 -eq $? || _lt_function_replace_fail=:
25241
25242
25243 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
25244 func_dirname_and_basename ()\
25245 {\
25246 \ case ${1} in\
25247 \ */*) func_dirname_result="${1%/*}${2}" ;;\
25248 \ * ) func_dirname_result="${3}" ;;\
25249 \ esac\
25250 \ func_basename_result="${1##*/}"\
25251 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
25252 && mv -f "$cfgfile.tmp" "$cfgfile" \
25253 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25254 test 0 -eq $? || _lt_function_replace_fail=:
25255
25256
25257 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
25258 func_stripname ()\
25259 {\
25260 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
25261 \ # positional parameters, so assign one to ordinary parameter first.\
25262 \ func_stripname_result=${3}\
25263 \ func_stripname_result=${func_stripname_result#"${1}"}\
25264 \ func_stripname_result=${func_stripname_result%"${2}"}\
25265 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
25266 && mv -f "$cfgfile.tmp" "$cfgfile" \
25267 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25268 test 0 -eq $? || _lt_function_replace_fail=:
25269
25270
25271 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
25272 func_split_long_opt ()\
25273 {\
25274 \ func_split_long_opt_name=${1%%=*}\
25275 \ func_split_long_opt_arg=${1#*=}\
25276 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
25277 && mv -f "$cfgfile.tmp" "$cfgfile" \
25278 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25279 test 0 -eq $? || _lt_function_replace_fail=:
25280
25281
25282 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
25283 func_split_short_opt ()\
25284 {\
25285 \ func_split_short_opt_arg=${1#??}\
25286 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
25287 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
25288 && mv -f "$cfgfile.tmp" "$cfgfile" \
25289 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25290 test 0 -eq $? || _lt_function_replace_fail=:
25291
25292
25293 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
25294 func_lo2o ()\
25295 {\
25296 \ case ${1} in\
25297 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
25298 \ *) func_lo2o_result=${1} ;;\
25299 \ esac\
25300 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
25301 && mv -f "$cfgfile.tmp" "$cfgfile" \
25302 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25303 test 0 -eq $? || _lt_function_replace_fail=:
25304
25305
25306 sed -e '/^func_xform ()$/,/^} # func_xform /c\
25307 func_xform ()\
25308 {\
25309 func_xform_result=${1%.*}.lo\
25310 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
25311 && mv -f "$cfgfile.tmp" "$cfgfile" \
25312 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25313 test 0 -eq $? || _lt_function_replace_fail=:
25314
25315
25316 sed -e '/^func_arith ()$/,/^} # func_arith /c\
25317 func_arith ()\
25318 {\
25319 func_arith_result=$(( $* ))\
25320 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
25321 && mv -f "$cfgfile.tmp" "$cfgfile" \
25322 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25323 test 0 -eq $? || _lt_function_replace_fail=:
25324
25325
25326 sed -e '/^func_len ()$/,/^} # func_len /c\
25327 func_len ()\
25328 {\
25329 func_len_result=${#1}\
25330 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
25331 && mv -f "$cfgfile.tmp" "$cfgfile" \
25332 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25333 test 0 -eq $? || _lt_function_replace_fail=:
25334
25335 fi
25336
25337 if test x"$lt_shell_append" = xyes; then
25338 sed -e '/^func_append ()$/,/^} # func_append /c\
25339 func_append ()\
25340 {\
25341 eval "${1}+=\\${2}"\
25342 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
25343 && mv -f "$cfgfile.tmp" "$cfgfile" \
25344 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25345 test 0 -eq $? || _lt_function_replace_fail=:
25346
25347
25348 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
25349 func_append_quoted ()\
25350 {\
25351 \ func_quote_for_eval "${2}"\
25352 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
25353 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
25354 && mv -f "$cfgfile.tmp" "$cfgfile" \
25355 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25356 test 0 -eq $? || _lt_function_replace_fail=:
25357
25358
25359 # Save a `func_append' function call where possible by direct use of '+='
25360 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
25361 && mv -f "$cfgfile.tmp" "$cfgfile" \
25362 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25363 test 0 -eq $? || _lt_function_replace_fail=:
25364 else
25365 # Save a `func_append' function call even when '+=' is not available
25366 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
25367 && mv -f "$cfgfile.tmp" "$cfgfile" \
25368 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25369 test 0 -eq $? || _lt_function_replace_fail=:
25370 fi
25371
25372 if test x"$_lt_function_replace_fail" = x":"; then
25373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
25374 printf "%s\n" "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
25375 fi
25376
25377
25378 mv -f "$cfgfile" "$ofile" ||
25379 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25380 chmod +x "$ofile"
25381
25382
25383 cat <<_LT_EOF >> "$ofile"
25384
25385 # ### BEGIN LIBTOOL TAG CONFIG: RC
25386
25387 # The linker used to build libraries.
25388 LD=$lt_LD_RC
25389
25390 # How to create reloadable object files.
25391 reload_flag=$lt_reload_flag_RC
25392 reload_cmds=$lt_reload_cmds_RC
25393
25394 # Commands used to build an old-style archive.
25395 old_archive_cmds=$lt_old_archive_cmds_RC
25396
25397 # A language specific compiler.
25398 CC=$lt_compiler_RC
25399
25400 # Is the compiler the GNU compiler?
25401 with_gcc=$GCC_RC
25402
25403 # Compiler flag to turn off builtin functions.
25404 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25405
25406 # Additional compiler flags for building library objects.
25407 pic_flag=$lt_lt_prog_compiler_pic_RC
25408
25409 # How to pass a linker flag through the compiler.
25410 wl=$lt_lt_prog_compiler_wl_RC
25411
25412 # Compiler flag to prevent dynamic linking.
25413 link_static_flag=$lt_lt_prog_compiler_static_RC
25414
25415 # Does compiler simultaneously support -c and -o options?
25416 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25417
25418 # Whether or not to add -lc for building shared libraries.
25419 build_libtool_need_lc=$archive_cmds_need_lc_RC
25420
25421 # Whether or not to disallow shared libs when runtime libs are static.
25422 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25423
25424 # Compiler flag to allow reflexive dlopens.
25425 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25426
25427 # Compiler flag to generate shared objects directly from archives.
25428 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25429
25430 # Whether the compiler copes with passing no objects directly.
25431 compiler_needs_object=$lt_compiler_needs_object_RC
25432
25433 # Create an old-style archive from a shared archive.
25434 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25435
25436 # Create a temporary old-style archive to link instead of a shared archive.
25437 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25438
25439 # Commands used to build a shared archive.
25440 archive_cmds=$lt_archive_cmds_RC
25441 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25442
25443 # Commands used to build a loadable module if different from building
25444 # a shared archive.
25445 module_cmds=$lt_module_cmds_RC
25446 module_expsym_cmds=$lt_module_expsym_cmds_RC
25447
25448 # Whether we are building with GNU ld or not.
25449 with_gnu_ld=$lt_with_gnu_ld_RC
25450
25451 # Flag that allows shared libraries with undefined symbols to be built.
25452 allow_undefined_flag=$lt_allow_undefined_flag_RC
25453
25454 # Flag that enforces no undefined symbols.
25455 no_undefined_flag=$lt_no_undefined_flag_RC
25456
25457 # Flag to hardcode \$libdir into a binary during linking.
25458 # This must work even if \$libdir does not exist
25459 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25460
25461 # Whether we need a single "-rpath" flag with a separated argument.
25462 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25463
25464 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25465 # DIR into the resulting binary.
25466 hardcode_direct=$hardcode_direct_RC
25467
25468 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25469 # DIR into the resulting binary and the resulting library dependency is
25470 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25471 # library is relocated.
25472 hardcode_direct_absolute=$hardcode_direct_absolute_RC
25473
25474 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25475 # into the resulting binary.
25476 hardcode_minus_L=$hardcode_minus_L_RC
25477
25478 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25479 # into the resulting binary.
25480 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25481
25482 # Set to "yes" if building a shared library automatically hardcodes DIR
25483 # into the library and all subsequent libraries and executables linked
25484 # against it.
25485 hardcode_automatic=$hardcode_automatic_RC
25486
25487 # Set to yes if linker adds runtime paths of dependent libraries
25488 # to runtime path list.
25489 inherit_rpath=$inherit_rpath_RC
25490
25491 # Whether libtool must link a program against all its dependency libraries.
25492 link_all_deplibs=$link_all_deplibs_RC
25493
25494 # Set to "yes" if exported symbols are required.
25495 always_export_symbols=$always_export_symbols_RC
25496
25497 # The commands to list exported symbols.
25498 export_symbols_cmds=$lt_export_symbols_cmds_RC
25499
25500 # Symbols that should not be listed in the preloaded symbols.
25501 exclude_expsyms=$lt_exclude_expsyms_RC
25502
25503 # Symbols that must always be exported.
25504 include_expsyms=$lt_include_expsyms_RC
25505
25506 # Commands necessary for linking programs (against libraries) with templates.
25507 prelink_cmds=$lt_prelink_cmds_RC
25508
25509 # Commands necessary for finishing linking programs.
25510 postlink_cmds=$lt_postlink_cmds_RC
25511
25512 # Specify filename containing input files.
25513 file_list_spec=$lt_file_list_spec_RC
25514
25515 # How to hardcode a shared library path into an executable.
25516 hardcode_action=$hardcode_action_RC
25517
25518 # ### END LIBTOOL TAG CONFIG: RC
25519 _LT_EOF
25520
25521 ;;
25522 "libtool-patch":C)
25523 if test "$build_selection" = never; then
25524 echo "patch not applied"
25525 elif (mv -f libtool libtool.orig; \
25526 sed -f $srcdir/build-aux/libtool-patch.sed libtool.orig >libtool); then
25527 echo "applied successfully"
25528 elif test "$build_selection" = try; then
25529 mv -f libtool.orig libtool
25530 echo "patch failed, thus, using original"
25531 else
25532 echo "patch failed"
25533 as_fn_exit 1
25534 fi
25535 ;;
25536 "gcrypt-conf":C)
25537 chmod +x src/libgcrypt-config
25538 ;;
25539 "tests/hashtest-6g":F) chmod +x tests/hashtest-6g ;;
25540 "tests/hashtest-256g":F) chmod +x tests/hashtest-256g ;;
25541 "tests/basic-disable-all-hwf":F) chmod +x tests/basic-disable-all-hwf ;;
25542
25543 esac
25544 done # for ac_tag
25545
25546
25547 as_fn_exit 0
25548 _ACEOF
25549 ac_clean_files=$ac_clean_files_save
25550
25551 test $ac_write_fail = 0 ||
25552 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25553
25554
25555 # configure is writing to config.log, and then calls config.status.
25556 # config.status does its own redirection, appending to config.log.
25557 # Unfortunately, on DOS this fails, as config.log is still kept open
25558 # by configure, so config.status won't be able to write to it; its
25559 # output is simply discarded. So we exec the FD to /dev/null,
25560 # effectively closing config.log, so it can be properly (re)opened and
25561 # appended to by config.status. When coming back to configure, we
25562 # need to make the FD available again.
25563 if test "$no_create" != yes; then
25564 ac_cs_success=:
25565 ac_config_status_args=
25566 test "$silent" = yes &&
25567 ac_config_status_args="$ac_config_status_args --quiet"
25568 exec 5>/dev/null
25569 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25570 exec 5>>config.log
25571 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25572 # would make configure fail if this is the last instruction.
25573 $ac_cs_success || as_fn_exit 1
25574 fi
25575 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25577 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25578 fi
25579
25580
25581
25582 detection_module="${GCRYPT_HWF_MODULES%.lo}"
25583 test -n "$detection_module" || detection_module="none"
25584
25585 # Give some feedback
25586
25587 echo " " 1>&6
25588
25589
25590 echo " Libgcrypt v${VERSION} has been configured as follows:" 1>&6
25591
25592
25593 echo " " 1>&6
25594
25595
25596 echo " Platform: $PRINTABLE_OS_NAME ($host)" 1>&6
25597
25598
25599 echo " Hardware detection module: $detection_module" 1>&6
25600
25601
25602 tmp=" Enabled cipher algorithms:"
25603 tmpi="abc"
25604 if test "${#tmpi}" -ne 3 >/dev/null 2>&1 ; then
25605 echo "$tmp $enabled_ciphers" 1>&6
25606 else
25607 tmpi=`echo "$tmp"| sed 's/./ /g'`
25608 echo $enabled_ciphers EOF | tr ' ' '\n' | \
25609 while read word; do
25610 if test "${#tmp}" -gt 70 ; then
25611 echo "$tmp" 1>&6
25612 tmp="$tmpi"
25613 fi
25614 if test "$word" = "EOF" ; then
25615 echo "$tmp" 1>&6
25616 else
25617 tmp="$tmp $word"
25618 fi
25619 done
25620 fi
25621
25622
25623 tmp=" Enabled digest algorithms:"
25624 tmpi="abc"
25625 if test "${#tmpi}" -ne 3 >/dev/null 2>&1 ; then
25626 echo "$tmp $enabled_digests" 1>&6
25627 else
25628 tmpi=`echo "$tmp"| sed 's/./ /g'`
25629 echo $enabled_digests EOF | tr ' ' '\n' | \
25630 while read word; do
25631 if test "${#tmp}" -gt 70 ; then
25632 echo "$tmp" 1>&6
25633 tmp="$tmpi"
25634 fi
25635 if test "$word" = "EOF" ; then
25636 echo "$tmp" 1>&6
25637 else
25638 tmp="$tmp $word"
25639 fi
25640 done
25641 fi
25642
25643
25644 tmp=" Enabled kdf algorithms: "
25645 tmpi="abc"
25646 if test "${#tmpi}" -ne 3 >/dev/null 2>&1 ; then
25647 echo "$tmp $enabled_kdfs" 1>&6
25648 else
25649 tmpi=`echo "$tmp"| sed 's/./ /g'`
25650 echo $enabled_kdfs EOF | tr ' ' '\n' | \
25651 while read word; do
25652 if test "${#tmp}" -gt 70 ; then
25653 echo "$tmp" 1>&6
25654 tmp="$tmpi"
25655 fi
25656 if test "$word" = "EOF" ; then
25657 echo "$tmp" 1>&6
25658 else
25659 tmp="$tmp $word"
25660 fi
25661 done
25662 fi
25663
25664
25665 tmp=" Enabled pubkey algorithms:"
25666 tmpi="abc"
25667 if test "${#tmpi}" -ne 3 >/dev/null 2>&1 ; then
25668 echo "$tmp $enabled_pubkey_ciphers" 1>&6
25669 else
25670 tmpi=`echo "$tmp"| sed 's/./ /g'`
25671 echo $enabled_pubkey_ciphers EOF | tr ' ' '\n' | \
25672 while read word; do
25673 if test "${#tmp}" -gt 70 ; then
25674 echo "$tmp" 1>&6
25675 tmp="$tmpi"
25676 fi
25677 if test "$word" = "EOF" ; then
25678 echo "$tmp" 1>&6
25679 else
25680 tmp="$tmp $word"
25681 fi
25682 done
25683 fi
25684
25685
25686 echo " Random number generator: $random" 1>&6
25687
25688
25689 echo " Try using jitter entropy: $jentsupport" 1>&6
25690
25691
25692 echo " Using linux capabilities: $use_capabilities" 1>&6
25693
25694
25695 echo " FIPS module version: $fips_module_version" 1>&6
25696
25697
25698 echo " Try using Padlock crypto: $padlocksupport" 1>&6
25699
25700
25701 echo " Try using AES-NI crypto: $aesnisupport" 1>&6
25702
25703
25704 echo " Try using Intel SHAEXT: $shaextsupport" 1>&6
25705
25706
25707 echo " Try using Intel PCLMUL: $pclmulsupport" 1>&6
25708
25709
25710 echo " Try using Intel SSE4.1: $sse41support" 1>&6
25711
25712
25713 echo " Try using DRNG (RDRAND): $drngsupport" 1>&6
25714
25715
25716 echo " Try using Intel AVX: $avxsupport" 1>&6
25717
25718
25719 echo " Try using Intel AVX2: $avx2support" 1>&6
25720
25721
25722 echo " Try using Intel AVX512: $avx512support" 1>&6
25723
25724
25725 echo " Try using Intel GFNI: $gfnisupport" 1>&6
25726
25727
25728 echo " Try using ARM NEON: $neonsupport" 1>&6
25729
25730
25731 echo " Try using ARMv8 crypto: $armcryptosupport" 1>&6
25732
25733
25734 echo " Try using ARMv8 SVE: $svesupport" 1>&6
25735
25736
25737 echo " Try using ARMv9 SVE2: $sve2support" 1>&6
25738
25739
25740 echo " Try using PPC crypto: $ppccryptosupport" 1>&6
25741
25742
25743 echo " " 1>&6
25744
25745
25746 if test "x${gpg_config_script_warn}" != x; then
25747 cat <<G10EOF
25748 Mismatches between the target platform and the to
25749 be used libraries have been been detected for:
25750 ${gpg_config_script_warn}
25751 Please check above for warning messages.
25752
25753 G10EOF
25754 fi
25755
25756 if test "$gcry_cv_gcc_attribute_aligned" != "yes" ; then
25757 cat <<G10EOF
25758 Please note that your compiler does not support the GCC style
25759 aligned attribute. Using this software may evoke bus errors.
25760
25761 G10EOF
25762 fi
25763